1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/dialogflow/v2/participant.proto 18 19 package com.google.cloud.dialogflow.v2; 20 21 public interface MessageOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Message) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Optional. The unique identifier of the message. 31 * Format: `projects/<Project ID>/locations/<Location 32 * ID>/conversations/<Conversation ID>/messages/<Message ID>`. 33 * </pre> 34 * 35 * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code> 36 * 37 * @return The name. 38 */ getName()39 java.lang.String getName(); 40 /** 41 * 42 * 43 * <pre> 44 * Optional. The unique identifier of the message. 45 * Format: `projects/<Project ID>/locations/<Location 46 * ID>/conversations/<Conversation ID>/messages/<Message ID>`. 47 * </pre> 48 * 49 * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code> 50 * 51 * @return The bytes for name. 52 */ getNameBytes()53 com.google.protobuf.ByteString getNameBytes(); 54 55 /** 56 * 57 * 58 * <pre> 59 * Required. The message content. 60 * </pre> 61 * 62 * <code>string content = 2 [(.google.api.field_behavior) = REQUIRED];</code> 63 * 64 * @return The content. 65 */ getContent()66 java.lang.String getContent(); 67 /** 68 * 69 * 70 * <pre> 71 * Required. The message content. 72 * </pre> 73 * 74 * <code>string content = 2 [(.google.api.field_behavior) = REQUIRED];</code> 75 * 76 * @return The bytes for content. 77 */ getContentBytes()78 com.google.protobuf.ByteString getContentBytes(); 79 80 /** 81 * 82 * 83 * <pre> 84 * Optional. The message language. 85 * This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) 86 * language tag. Example: "en-US". 87 * </pre> 88 * 89 * <code>string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 90 * 91 * @return The languageCode. 92 */ getLanguageCode()93 java.lang.String getLanguageCode(); 94 /** 95 * 96 * 97 * <pre> 98 * Optional. The message language. 99 * This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) 100 * language tag. Example: "en-US". 101 * </pre> 102 * 103 * <code>string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];</code> 104 * 105 * @return The bytes for languageCode. 106 */ getLanguageCodeBytes()107 com.google.protobuf.ByteString getLanguageCodeBytes(); 108 109 /** 110 * 111 * 112 * <pre> 113 * Output only. The participant that sends this message. 114 * </pre> 115 * 116 * <code>string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 117 * 118 * @return The participant. 119 */ getParticipant()120 java.lang.String getParticipant(); 121 /** 122 * 123 * 124 * <pre> 125 * Output only. The participant that sends this message. 126 * </pre> 127 * 128 * <code>string participant = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 129 * 130 * @return The bytes for participant. 131 */ getParticipantBytes()132 com.google.protobuf.ByteString getParticipantBytes(); 133 134 /** 135 * 136 * 137 * <pre> 138 * Output only. The role of the participant. 139 * </pre> 140 * 141 * <code> 142 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 143 * </code> 144 * 145 * @return The enum numeric value on the wire for participantRole. 146 */ getParticipantRoleValue()147 int getParticipantRoleValue(); 148 /** 149 * 150 * 151 * <pre> 152 * Output only. The role of the participant. 153 * </pre> 154 * 155 * <code> 156 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 157 * </code> 158 * 159 * @return The participantRole. 160 */ getParticipantRole()161 com.google.cloud.dialogflow.v2.Participant.Role getParticipantRole(); 162 163 /** 164 * 165 * 166 * <pre> 167 * Output only. The time when the message was created in Contact Center AI. 168 * </pre> 169 * 170 * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 171 * </code> 172 * 173 * @return Whether the createTime field is set. 174 */ hasCreateTime()175 boolean hasCreateTime(); 176 /** 177 * 178 * 179 * <pre> 180 * Output only. The time when the message was created in Contact Center AI. 181 * </pre> 182 * 183 * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 184 * </code> 185 * 186 * @return The createTime. 187 */ getCreateTime()188 com.google.protobuf.Timestamp getCreateTime(); 189 /** 190 * 191 * 192 * <pre> 193 * Output only. The time when the message was created in Contact Center AI. 194 * </pre> 195 * 196 * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 197 * </code> 198 */ getCreateTimeOrBuilder()199 com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); 200 201 /** 202 * 203 * 204 * <pre> 205 * Optional. The time when the message was sent. 206 * </pre> 207 * 208 * <code>.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL]; 209 * </code> 210 * 211 * @return Whether the sendTime field is set. 212 */ hasSendTime()213 boolean hasSendTime(); 214 /** 215 * 216 * 217 * <pre> 218 * Optional. The time when the message was sent. 219 * </pre> 220 * 221 * <code>.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL]; 222 * </code> 223 * 224 * @return The sendTime. 225 */ getSendTime()226 com.google.protobuf.Timestamp getSendTime(); 227 /** 228 * 229 * 230 * <pre> 231 * Optional. The time when the message was sent. 232 * </pre> 233 * 234 * <code>.google.protobuf.Timestamp send_time = 9 [(.google.api.field_behavior) = OPTIONAL]; 235 * </code> 236 */ getSendTimeOrBuilder()237 com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder(); 238 239 /** 240 * 241 * 242 * <pre> 243 * Output only. The annotation for the message. 244 * </pre> 245 * 246 * <code> 247 * .google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 248 * </code> 249 * 250 * @return Whether the messageAnnotation field is set. 251 */ hasMessageAnnotation()252 boolean hasMessageAnnotation(); 253 /** 254 * 255 * 256 * <pre> 257 * Output only. The annotation for the message. 258 * </pre> 259 * 260 * <code> 261 * .google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 262 * </code> 263 * 264 * @return The messageAnnotation. 265 */ getMessageAnnotation()266 com.google.cloud.dialogflow.v2.MessageAnnotation getMessageAnnotation(); 267 /** 268 * 269 * 270 * <pre> 271 * Output only. The annotation for the message. 272 * </pre> 273 * 274 * <code> 275 * .google.cloud.dialogflow.v2.MessageAnnotation message_annotation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 276 * </code> 277 */ getMessageAnnotationOrBuilder()278 com.google.cloud.dialogflow.v2.MessageAnnotationOrBuilder getMessageAnnotationOrBuilder(); 279 280 /** 281 * 282 * 283 * <pre> 284 * Output only. The sentiment analysis result for the message. 285 * </pre> 286 * 287 * <code> 288 * .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 289 * </code> 290 * 291 * @return Whether the sentimentAnalysis field is set. 292 */ hasSentimentAnalysis()293 boolean hasSentimentAnalysis(); 294 /** 295 * 296 * 297 * <pre> 298 * Output only. The sentiment analysis result for the message. 299 * </pre> 300 * 301 * <code> 302 * .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 303 * </code> 304 * 305 * @return The sentimentAnalysis. 306 */ getSentimentAnalysis()307 com.google.cloud.dialogflow.v2.SentimentAnalysisResult getSentimentAnalysis(); 308 /** 309 * 310 * 311 * <pre> 312 * Output only. The sentiment analysis result for the message. 313 * </pre> 314 * 315 * <code> 316 * .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 317 * </code> 318 */ getSentimentAnalysisOrBuilder()319 com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder getSentimentAnalysisOrBuilder(); 320 } 321