diff --git a/.idea/java-dialogflow.iml b/.idea/java-dialogflow.iml
deleted file mode 100644
index c16e7389d..000000000
--- a/.idea/java-dialogflow.iml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
+ * Browse carousel card for Actions on Google. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
+ *
+ */
+ boolean hasBrowseCarouselCard();
+ /**
+ *
+ *
+ * + * Browse carousel card for Actions on Google. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard getBrowseCarouselCard();
+ /**
+ *
+ *
+ * + * Browse carousel card for Actions on Google. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder
+ getBrowseCarouselCardOrBuilder();
+
+ /**
+ *
+ *
+ * + * Table card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
+ */
+ boolean hasTableCard();
+ /**
+ *
+ *
+ * + * Table card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard getTableCard();
+ /**
+ *
+ *
+ * + * Table card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardOrBuilder getTableCardOrBuilder();
+
+ /**
+ *
+ *
+ * + * The media content card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
+ */
+ boolean hasMediaContent();
+ /**
+ *
+ *
+ * + * The media content card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent getMediaContent();
+ /**
+ *
+ *
+ * + * The media content card for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContentOrBuilder getMediaContentOrBuilder();
+
/**
*
*
@@ -6220,6 +6320,68 @@ private Message(
messageCase_ = 12;
break;
}
+ case 178:
+ {
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder
+ subBuilder = null;
+ if (messageCase_ == 22) {
+ subBuilder =
+ ((com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_)
+ .toBuilder();
+ }
+ message_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_);
+ message_ = subBuilder.buildPartial();
+ }
+ messageCase_ = 22;
+ break;
+ }
+ case 186:
+ {
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder subBuilder = null;
+ if (messageCase_ == 23) {
+ subBuilder =
+ ((com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_)
+ .toBuilder();
+ }
+ message_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_);
+ message_ = subBuilder.buildPartial();
+ }
+ messageCase_ = 23;
+ break;
+ }
+ case 194:
+ {
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder subBuilder =
+ null;
+ if (messageCase_ == 24) {
+ subBuilder =
+ ((com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_)
+ .toBuilder();
+ }
+ message_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_);
+ message_ = subBuilder.buildPartial();
+ }
+ messageCase_ = 24;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -26308,94 +26470,13593 @@ public com.google.protobuf.Parser+ * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getMediaTypeValue();
+ /**
+ *
+ *
+ * + * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType getMediaType();
- public MessageCase getMessageCase() {
- return MessageCase.forNumber(messageCase_);
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ java.util.List+ * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ getMediaObjects(int index);
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ int getMediaObjectsCount();
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObjectOrBuilder>
+ getMediaObjectsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObjectOrBuilder
+ getMediaObjectsOrBuilder(int index);
}
-
- public static final int TEXT_FIELD_NUMBER = 1;
/**
*
*
* - * The text response. + * The media content card for Actions on Google. ** - *
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.MediaContent}
*/
- public boolean hasText() {
- return messageCase_ == 1;
- }
- /**
- *
- *
- * - * The text response. - *- * - *
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ public static final class MediaContent extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.MediaContent)
+ MediaContentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MediaContent.newBuilder() to construct.
+ private MediaContent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private MediaContent() {
+ mediaType_ = 0;
+ mediaObjects_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MediaContent(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ mediaType_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ mediaObjects_ =
+ new java.util.ArrayList<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObject>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ mediaObjects_.add(
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObject.parser(),
+ extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ mediaObjects_ = java.util.Collections.unmodifiableList(mediaObjects_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.IntentProto
+ .internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.IntentProto
+ .internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.class,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder.class);
+ }
+
+ /**
+ *
+ *
+ * + * Format of response media type. + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType} + */ + public enum ResponseMediaType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified. + *+ * + *
RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0;
+ */
+ RESPONSE_MEDIA_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Response media type is audio. + *+ * + *
AUDIO = 1;
+ */
+ AUDIO(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified. + *+ * + *
RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int RESPONSE_MEDIA_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Response media type is audio. + *+ * + *
AUDIO = 1;
+ */
+ public static final int AUDIO_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static ResponseMediaType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ResponseMediaType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return RESPONSE_MEDIA_TYPE_UNSPECIFIED;
+ case 1:
+ return AUDIO;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean hasLargeImage();
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.Image getLargeImage();
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getLargeImageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean hasIcon();
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.Image getIcon();
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getIconOrBuilder();
+
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ java.lang.String getContentUrl();
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ com.google.protobuf.ByteString getContentUrlBytes();
+
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .ImageCase
+ getImageCase();
+ }
+ /**
+ *
+ *
+ * + * Response media object for media content card. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject} + */ + public static final class ResponseMediaObject extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject) + ResponseMediaObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResponseMediaObject.newBuilder() to construct. + private ResponseMediaObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ResponseMediaObject() { + name_ = ""; + description_ = ""; + contentUrl_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResponseMediaObject( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder subBuilder = null; + if (imageCase_ == 3) { + subBuilder = + ((com.google.cloud.dialogflow.v2.Intent.Message.Image) image_) + .toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_); + image_ = subBuilder.buildPartial(); + } + imageCase_ = 3; + break; + } + case 34: + { + com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder subBuilder = null; + if (imageCase_ == 4) { + subBuilder = + ((com.google.cloud.dialogflow.v2.Intent.Message.Image) image_) + .toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_); + image_ = subBuilder.buildPartial(); + } + imageCase_ = 4; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + contentUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_ResponseMediaObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject + .class, + com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject + .Builder.class); + } + + private int imageCase_ = 0; + private java.lang.Object image_; + + public enum ImageCase implements com.google.protobuf.Internal.EnumLite { + LARGE_IMAGE(3), + ICON(4), + IMAGE_NOT_SET(0); + private final int value; + + private ImageCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ImageCase valueOf(int value) { + return forNumber(value); + } + + public static ImageCase forNumber(int value) { + switch (value) { + case 3: + return LARGE_IMAGE; + case 4: + return ICON; + case 0: + return IMAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LARGE_IMAGE_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasLargeImage() {
+ return imageCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getLargeImage() {
+ if (imageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder
+ getLargeImageOrBuilder() {
+ if (imageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+
+ public static final int ICON_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasIcon() {
+ return imageCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getIcon() {
+ if (imageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getIconOrBuilder() {
+ if (imageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+
+ public static final int CONTENT_URL_FIELD_NUMBER = 5;
+ private volatile java.lang.Object contentUrl_;
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ public java.lang.String getContentUrl() {
+ java.lang.Object ref = contentUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ contentUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ public com.google.protobuf.ByteString getContentUrlBytes() {
+ java.lang.Object ref = contentUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ contentUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ if (imageCase_ == 3) {
+ output.writeMessage(3, (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_);
+ }
+ if (imageCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_);
+ }
+ if (!getContentUrlBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contentUrl_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ if (imageCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_);
+ }
+ if (imageCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_);
+ }
+ if (!getContentUrlBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contentUrl_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getContentUrl().equals(other.getContentUrl())) return false;
+ if (!getImageCase().equals(other.getImageCase())) return false;
+ switch (imageCase_) {
+ case 3:
+ if (!getLargeImage().equals(other.getLargeImage())) return false;
+ break;
+ case 4:
+ if (!getIcon().equals(other.getIcon())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + CONTENT_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getContentUrl().hashCode();
+ switch (imageCase_) {
+ case 3:
+ hash = (37 * hash) + LARGE_IMAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getLargeImage().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + ICON_FIELD_NUMBER;
+ hash = (53 * hash) + getIcon().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response media object for media content card. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Name of media card. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of media card. + *+ * + *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ largeImageBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasLargeImage() {
+ return imageCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getLargeImage() {
+ if (largeImageBuilder_ == null) {
+ if (imageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ } else {
+ if (imageCase_ == 3) {
+ return largeImageBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setLargeImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (largeImageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ image_ = value;
+ onChanged();
+ } else {
+ largeImageBuilder_.setMessage(value);
+ }
+ imageCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setLargeImage(
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder builderForValue) {
+ if (largeImageBuilder_ == null) {
+ image_ = builderForValue.build();
+ onChanged();
+ } else {
+ largeImageBuilder_.setMessage(builderForValue.build());
+ }
+ imageCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeLargeImage(
+ com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (largeImageBuilder_ == null) {
+ if (imageCase_ == 3
+ && image_
+ != com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()) {
+ image_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ image_ = value;
+ }
+ onChanged();
+ } else {
+ if (imageCase_ == 3) {
+ largeImageBuilder_.mergeFrom(value);
+ }
+ largeImageBuilder_.setMessage(value);
+ }
+ imageCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearLargeImage() {
+ if (largeImageBuilder_ == null) {
+ if (imageCase_ == 3) {
+ imageCase_ = 0;
+ image_ = null;
+ onChanged();
+ }
+ } else {
+ if (imageCase_ == 3) {
+ imageCase_ = 0;
+ image_ = null;
+ }
+ largeImageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder
+ getLargeImageBuilder() {
+ return getLargeImageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder
+ getLargeImageOrBuilder() {
+ if ((imageCase_ == 3) && (largeImageBuilder_ != null)) {
+ return largeImageBuilder_.getMessageOrBuilder();
+ } else {
+ if (imageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Image to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ getLargeImageFieldBuilder() {
+ if (largeImageBuilder_ == null) {
+ if (!(imageCase_ == 3)) {
+ image_ = com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ largeImageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_,
+ getParentForChildren(),
+ isClean());
+ image_ = null;
+ }
+ imageCase_ = 3;
+ onChanged();
+ ;
+ return largeImageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ iconBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasIcon() {
+ return imageCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getIcon() {
+ if (iconBuilder_ == null) {
+ if (imageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ } else {
+ if (imageCase_ == 4) {
+ return iconBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setIcon(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (iconBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ image_ = value;
+ onChanged();
+ } else {
+ iconBuilder_.setMessage(value);
+ }
+ imageCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setIcon(
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder builderForValue) {
+ if (iconBuilder_ == null) {
+ image_ = builderForValue.build();
+ onChanged();
+ } else {
+ iconBuilder_.setMessage(builderForValue.build());
+ }
+ imageCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeIcon(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (iconBuilder_ == null) {
+ if (imageCase_ == 4
+ && image_
+ != com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()) {
+ image_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ image_ = value;
+ }
+ onChanged();
+ } else {
+ if (imageCase_ == 4) {
+ iconBuilder_.mergeFrom(value);
+ }
+ iconBuilder_.setMessage(value);
+ }
+ imageCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearIcon() {
+ if (iconBuilder_ == null) {
+ if (imageCase_ == 4) {
+ imageCase_ = 0;
+ image_ = null;
+ onChanged();
+ }
+ } else {
+ if (imageCase_ == 4) {
+ imageCase_ = 0;
+ image_ = null;
+ }
+ iconBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder getIconBuilder() {
+ return getIconFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getIconOrBuilder() {
+ if ((imageCase_ == 4) && (iconBuilder_ != null)) {
+ return iconBuilder_.getMessageOrBuilder();
+ } else {
+ if (imageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Icon to display above media content. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ getIconFieldBuilder() {
+ if (iconBuilder_ == null) {
+ if (!(imageCase_ == 4)) {
+ image_ = com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ iconBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Image) image_,
+ getParentForChildren(),
+ isClean());
+ image_ = null;
+ }
+ imageCase_ = 4;
+ onChanged();
+ ;
+ return iconBuilder_;
+ }
+
+ private java.lang.Object contentUrl_ = "";
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ public java.lang.String getContentUrl() {
+ java.lang.Object ref = contentUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ contentUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ public com.google.protobuf.ByteString getContentUrlBytes() {
+ java.lang.Object ref = contentUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ contentUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ public Builder setContentUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ contentUrl_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ public Builder clearContentUrl() {
+
+ contentUrl_ = getDefaultInstance().getContentUrl();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Url where the media is stored. + *+ * + *
string content_url = 5;
+ */
+ public Builder setContentUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ contentUrl_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObject
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getMediaTypeValue() {
+ return mediaType_;
+ }
+ /**
+ *
+ *
+ * + * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType
+ getMediaType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType result =
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType.valueOf(
+ mediaType_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int MEDIA_OBJECTS_FIELD_NUMBER = 2;
+ private java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject>
+ mediaObjects_;
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject>
+ getMediaObjectsList() {
+ return mediaObjects_;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObjectOrBuilder>
+ getMediaObjectsOrBuilderList() {
+ return mediaObjects_;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public int getMediaObjectsCount() {
+ return mediaObjects_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ getMediaObjects(int index) {
+ return mediaObjects_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObjectOrBuilder
+ getMediaObjectsOrBuilder(int index) {
+ return mediaObjects_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (mediaType_
+ != com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType
+ .RESPONSE_MEDIA_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, mediaType_);
+ }
+ for (int i = 0; i < mediaObjects_.size(); i++) {
+ output.writeMessage(2, mediaObjects_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (mediaType_
+ != com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType
+ .RESPONSE_MEDIA_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mediaType_);
+ }
+ for (int i = 0; i < mediaObjects_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mediaObjects_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.MediaContent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) obj;
+
+ if (mediaType_ != other.mediaType_) return false;
+ if (!getMediaObjectsList().equals(other.getMediaObjectsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MEDIA_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + mediaType_;
+ if (getMediaObjectsCount() > 0) {
+ hash = (37 * hash) + MEDIA_OBJECTS_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaObjectsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The media content card for Actions on Google. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.MediaContent} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getMediaTypeValue() {
+ return mediaType_;
+ }
+ /**
+ *
+ *
+ * + * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMediaTypeValue(int value) {
+ mediaType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType
+ getMediaType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType result =
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType.valueOf(
+ mediaType_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMediaType(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mediaType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. What type of media is the content (ie "audio"). + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearMediaType() {
+
+ mediaType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject>
+ mediaObjects_ = java.util.Collections.emptyList();
+
+ private void ensureMediaObjectsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ mediaObjects_ =
+ new java.util.ArrayList<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject>(
+ mediaObjects_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObjectOrBuilder>
+ mediaObjectsBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject>
+ getMediaObjectsList() {
+ if (mediaObjectsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(mediaObjects_);
+ } else {
+ return mediaObjectsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public int getMediaObjectsCount() {
+ if (mediaObjectsBuilder_ == null) {
+ return mediaObjects_.size();
+ } else {
+ return mediaObjectsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ getMediaObjects(int index) {
+ if (mediaObjectsBuilder_ == null) {
+ return mediaObjects_.get(index);
+ } else {
+ return mediaObjectsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder setMediaObjects(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject value) {
+ if (mediaObjectsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMediaObjectsIsMutable();
+ mediaObjects_.set(index, value);
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder setMediaObjects(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject.Builder
+ builderForValue) {
+ if (mediaObjectsBuilder_ == null) {
+ ensureMediaObjectsIsMutable();
+ mediaObjects_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder addMediaObjects(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject value) {
+ if (mediaObjectsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMediaObjectsIsMutable();
+ mediaObjects_.add(value);
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder addMediaObjects(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject value) {
+ if (mediaObjectsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMediaObjectsIsMutable();
+ mediaObjects_.add(index, value);
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder addMediaObjects(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject.Builder
+ builderForValue) {
+ if (mediaObjectsBuilder_ == null) {
+ ensureMediaObjectsIsMutable();
+ mediaObjects_.add(builderForValue.build());
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder addMediaObjects(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject.Builder
+ builderForValue) {
+ if (mediaObjectsBuilder_ == null) {
+ ensureMediaObjectsIsMutable();
+ mediaObjects_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder addAllMediaObjects(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObject>
+ values) {
+ if (mediaObjectsBuilder_ == null) {
+ ensureMediaObjectsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mediaObjects_);
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder clearMediaObjects() {
+ if (mediaObjectsBuilder_ == null) {
+ mediaObjects_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public Builder removeMediaObjects(int index) {
+ if (mediaObjectsBuilder_ == null) {
+ ensureMediaObjectsIsMutable();
+ mediaObjects_.remove(index);
+ onChanged();
+ } else {
+ mediaObjectsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .Builder
+ getMediaObjectsBuilder(int index) {
+ return getMediaObjectsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObjectOrBuilder
+ getMediaObjectsOrBuilder(int index) {
+ if (mediaObjectsBuilder_ == null) {
+ return mediaObjects_.get(index);
+ } else {
+ return mediaObjectsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObjectOrBuilder>
+ getMediaObjectsOrBuilderList() {
+ if (mediaObjectsBuilder_ != null) {
+ return mediaObjectsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(mediaObjects_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .Builder
+ addMediaObjectsBuilder() {
+ return getMediaObjectsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .Builder
+ addMediaObjectsBuilder(int index) {
+ return getMediaObjectsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. List of media objects. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .Builder>
+ getMediaObjectsBuilderList() {
+ return getMediaObjectsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObjectOrBuilder>
+ getMediaObjectsFieldBuilder() {
+ if (mediaObjectsBuilder_ == null) {
+ mediaObjectsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
+ .Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ .ResponseMediaObjectOrBuilder>(
+ mediaObjects_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ mediaObjects_ = null;
+ }
+ return mediaObjectsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.MediaContent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.MediaContent)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.MediaContent();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem>
+ getItemsList();
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ getItems(int index);
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ int getItemsCount();
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder>
+ getItemsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder
+ getItemsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getImageDisplayOptionsValue();
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ getImageDisplayOptions();
+ }
+ /**
+ *
+ *
+ * + * Browse Carousel Card for Actions on Google. + * https://developers.google.com/actions/assistant/responses#browsing_carousel + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard} + */ + public static final class BrowseCarouselCard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) + BrowseCarouselCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use BrowseCarouselCard.newBuilder() to construct. + private BrowseCarouselCard(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BrowseCarouselCard() { + items_ = java.util.Collections.emptyList(); + imageDisplayOptions_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BrowseCarouselCard( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem>(); + mutable_bitField0_ |= 0x00000001; + } + items_.add( + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.parser(), + extensionRegistry)); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + imageDisplayOptions_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.class, + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder.class); + } + + /** + * + * + *
+ * Image display options for Actions on Google. This should be used for + * when the image's aspect ratio does not match the image container's + * aspect ratio. + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions} + */ + public enum ImageDisplayOptions implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Fill the gaps between the image and the image container with gray + * bars. + *+ * + *
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;
+ */
+ IMAGE_DISPLAY_OPTIONS_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Fill the gaps between the image and the image container with gray + * bars. + *+ * + *
GRAY = 1;
+ */
+ GRAY(1),
+ /**
+ *
+ *
+ * + * Fill the gaps between the image and the image container with white + * bars. + *+ * + *
WHITE = 2;
+ */
+ WHITE(2),
+ /**
+ *
+ *
+ * + * Image is scaled such that the image width and height match or exceed + * the container dimensions. This may crop the top and bottom of the + * image if the scaled image height is greater than the container + * height, or crop the left and right of the image if the scaled image + * width is greater than the container width. This is similar to "Zoom + * Mode" on a widescreen TV when playing a 4:3 video. + *+ * + *
CROPPED = 3;
+ */
+ CROPPED(3),
+ /**
+ *
+ *
+ * + * Pad the gaps between image and image frame with a blurred copy of the + * same image. + *+ * + *
BLURRED_BACKGROUND = 4;
+ */
+ BLURRED_BACKGROUND(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Fill the gaps between the image and the image container with gray + * bars. + *+ * + *
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;
+ */
+ public static final int IMAGE_DISPLAY_OPTIONS_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Fill the gaps between the image and the image container with gray + * bars. + *+ * + *
GRAY = 1;
+ */
+ public static final int GRAY_VALUE = 1;
+ /**
+ *
+ *
+ * + * Fill the gaps between the image and the image container with white + * bars. + *+ * + *
WHITE = 2;
+ */
+ public static final int WHITE_VALUE = 2;
+ /**
+ *
+ *
+ * + * Image is scaled such that the image width and height match or exceed + * the container dimensions. This may crop the top and bottom of the + * image if the scaled image height is greater than the container + * height, or crop the left and right of the image if the scaled image + * width is greater than the container width. This is similar to "Zoom + * Mode" on a widescreen TV when playing a 4:3 video. + *+ * + *
CROPPED = 3;
+ */
+ public static final int CROPPED_VALUE = 3;
+ /**
+ *
+ *
+ * + * Pad the gaps between image and image frame with a blurred copy of the + * same image. + *+ * + *
BLURRED_BACKGROUND = 4;
+ */
+ public static final int BLURRED_BACKGROUND_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static ImageDisplayOptions valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ImageDisplayOptions forNumber(int value) {
+ switch (value) {
+ case 0:
+ return IMAGE_DISPLAY_OPTIONS_UNSPECIFIED;
+ case 1:
+ return GRAY;
+ case 2:
+ return WHITE;
+ case 3:
+ return CROPPED;
+ case 4:
+ return BLURRED_BACKGROUND;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ boolean hasOpenUriAction();
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .OpenUrlAction
+ getOpenUriAction();
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .OpenUrlActionOrBuilder
+ getOpenUriActionOrBuilder();
+
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ java.lang.String getTitle();
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ com.google.protobuf.ByteString getTitleBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean hasImage();
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.Image getImage();
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.lang.String getFooter();
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ com.google.protobuf.ByteString getFooterBytes();
+ }
+ /**
+ *
+ *
+ * + * Browsing carousel tile + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem} + */ + public static final class BrowseCarouselCardItem + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem) + BrowseCarouselCardItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use BrowseCarouselCardItem.newBuilder() to construct. + private BrowseCarouselCardItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BrowseCarouselCardItem() { + title_ = ""; + description_ = ""; + footer_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BrowseCarouselCardItem( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder + subBuilder = null; + if (openUriAction_ != null) { + subBuilder = openUriAction_.toBuilder(); + } + openUriAction_ = + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(openUriAction_); + openUriAction_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder subBuilder = null; + if (image_ != null) { + subBuilder = image_.toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(image_); + image_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + footer_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.class, + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder.class); + } + + public interface OpenUrlActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Required. URL + *+ * + *
string url = 1;
+ */
+ java.lang.String getUrl();
+ /**
+ *
+ *
+ * + * Required. URL + *+ * + *
string url = 1;
+ */
+ com.google.protobuf.ByteString getUrlBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getUrlTypeHintValue();
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .OpenUrlAction.UrlTypeHint
+ getUrlTypeHint();
+ }
+ /**
+ *
+ *
+ * + * Actions on Google action to open a given url. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction} + */ + public static final class OpenUrlAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction) + OpenUrlActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpenUrlAction.newBuilder() to construct. + private OpenUrlAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private OpenUrlAction() { + url_ = ""; + urlTypeHint_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OpenUrlAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + url_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + urlTypeHint_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.class, + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder.class); + } + + /** + * + * + *
+ * Type of the URI. + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint} + */ + public enum UrlTypeHint implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified + *+ * + *
URL_TYPE_HINT_UNSPECIFIED = 0;
+ */
+ URL_TYPE_HINT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Url would be an amp action + *+ * + *
AMP_ACTION = 1;
+ */
+ AMP_ACTION(1),
+ /**
+ *
+ *
+ * + * URL that points directly to AMP content, or to a canonical URL + * which refers to AMP content via <link rel="amphtml">. + *+ * + *
AMP_CONTENT = 2;
+ */
+ AMP_CONTENT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified + *+ * + *
URL_TYPE_HINT_UNSPECIFIED = 0;
+ */
+ public static final int URL_TYPE_HINT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Url would be an amp action + *+ * + *
AMP_ACTION = 1;
+ */
+ public static final int AMP_ACTION_VALUE = 1;
+ /**
+ *
+ *
+ * + * URL that points directly to AMP content, or to a canonical URL + * which refers to AMP content via <link rel="amphtml">. + *+ * + *
AMP_CONTENT = 2;
+ */
+ public static final int AMP_CONTENT_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static UrlTypeHint valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static UrlTypeHint forNumber(int value) {
+ switch (value) {
+ case 0:
+ return URL_TYPE_HINT_UNSPECIFIED;
+ case 1:
+ return AMP_ACTION;
+ case 2:
+ return AMP_CONTENT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. URL + *+ * + *
string url = 1;
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. URL + *+ * + *
string url = 1;
+ */
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int URL_TYPE_HINT_FIELD_NUMBER = 3;
+ private int urlTypeHint_;
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getUrlTypeHintValue() {
+ return urlTypeHint_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
+ getUrlTypeHint() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .OpenUrlAction.UrlTypeHint
+ result =
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.valueOf(urlTypeHint_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getUrlBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_);
+ }
+ if (urlTypeHint_
+ != com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.URL_TYPE_HINT_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(3, urlTypeHint_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getUrlBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_);
+ }
+ if (urlTypeHint_
+ != com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.URL_TYPE_HINT_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, urlTypeHint_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .OpenUrlAction
+ other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction)
+ obj;
+
+ if (!getUrl().equals(other.getUrl())) return false;
+ if (urlTypeHint_ != other.urlTypeHint_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (37 * hash) + URL_TYPE_HINT_FIELD_NUMBER;
+ hash = (53 * hash) + urlTypeHint_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Actions on Google action to open a given url. + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. URL + *+ * + *
string url = 1;
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. URL + *+ * + *
string url = 1;
+ */
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. URL + *+ * + *
string url = 1;
+ */
+ public Builder setUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. URL + *+ * + *
string url = 1;
+ */
+ public Builder clearUrl() {
+
+ url_ = getDefaultInstance().getUrl();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. URL + *+ * + *
string url = 1;
+ */
+ public Builder setUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int urlTypeHint_ = 0;
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getUrlTypeHintValue() {
+ return urlTypeHint_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUrlTypeHintValue(int value) {
+ urlTypeHint_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
+ getUrlTypeHint() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
+ result =
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.valueOf(urlTypeHint_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUrlTypeHint(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ urlTypeHint_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearUrlTypeHint() {
+
+ urlTypeHint_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public boolean hasOpenUriAction() {
+ return openUriAction_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ getOpenUriAction() {
+ return openUriAction_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()
+ : openUriAction_;
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlActionOrBuilder
+ getOpenUriActionOrBuilder() {
+ return getOpenUriAction();
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object title_;
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IMAGE_FIELD_NUMBER = 4;
+ private com.google.cloud.dialogflow.v2.Intent.Message.Image image_;
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasImage() {
+ return image_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getImage() {
+ return image_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()
+ : image_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder() {
+ return getImage();
+ }
+
+ public static final int FOOTER_FIELD_NUMBER = 5;
+ private volatile java.lang.Object footer_;
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getFooter() {
+ java.lang.Object ref = footer_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ footer_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getFooterBytes() {
+ java.lang.Object ref = footer_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ footer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (openUriAction_ != null) {
+ output.writeMessage(1, getOpenUriAction());
+ }
+ if (!getTitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
+ }
+ if (image_ != null) {
+ output.writeMessage(4, getImage());
+ }
+ if (!getFooterBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, footer_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (openUriAction_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpenUriAction());
+ }
+ if (!getTitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
+ }
+ if (image_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getImage());
+ }
+ if (!getFooterBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, footer_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem)
+ obj;
+
+ if (hasOpenUriAction() != other.hasOpenUriAction()) return false;
+ if (hasOpenUriAction()) {
+ if (!getOpenUriAction().equals(other.getOpenUriAction())) return false;
+ }
+ if (!getTitle().equals(other.getTitle())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (hasImage() != other.hasImage()) return false;
+ if (hasImage()) {
+ if (!getImage().equals(other.getImage())) return false;
+ }
+ if (!getFooter().equals(other.getFooter())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasOpenUriAction()) {
+ hash = (37 * hash) + OPEN_URI_ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getOpenUriAction().hashCode();
+ }
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (hasImage()) {
+ hash = (37 * hash) + IMAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getImage().hashCode();
+ }
+ hash = (37 * hash) + FOOTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFooter().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Browsing carousel tile + *+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public boolean hasOpenUriAction() {
+ return openUriActionBuilder_ != null || openUriAction_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ getOpenUriAction() {
+ if (openUriActionBuilder_ == null) {
+ return openUriAction_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()
+ : openUriAction_;
+ } else {
+ return openUriActionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public Builder setOpenUriAction(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ value) {
+ if (openUriActionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ openUriAction_ = value;
+ onChanged();
+ } else {
+ openUriActionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public Builder setOpenUriAction(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.Builder
+ builderForValue) {
+ if (openUriActionBuilder_ == null) {
+ openUriAction_ = builderForValue.build();
+ onChanged();
+ } else {
+ openUriActionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public Builder mergeOpenUriAction(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction
+ value) {
+ if (openUriActionBuilder_ == null) {
+ if (openUriAction_ != null) {
+ openUriAction_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.newBuilder(openUriAction_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ openUriAction_ = value;
+ }
+ onChanged();
+ } else {
+ openUriActionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public Builder clearOpenUriAction() {
+ if (openUriActionBuilder_ == null) {
+ openUriAction_ = null;
+ onChanged();
+ } else {
+ openUriAction_ = null;
+ openUriActionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.Builder
+ getOpenUriActionBuilder() {
+
+ onChanged();
+ return getOpenUriActionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlActionOrBuilder
+ getOpenUriActionOrBuilder() {
+ if (openUriActionBuilder_ != null) {
+ return openUriActionBuilder_.getMessageOrBuilder();
+ } else {
+ return openUriAction_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()
+ : openUriAction_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Action to present to the user. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlActionOrBuilder>
+ getOpenUriActionFieldBuilder() {
+ if (openUriActionBuilder_ == null) {
+ openUriActionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlAction.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.OpenUrlActionOrBuilder>(
+ getOpenUriAction(), getParentForChildren(), isClean());
+ openUriAction_ = null;
+ }
+ return openUriActionBuilder_;
+ }
+
+ private java.lang.Object title_ = "";
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ public Builder setTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the carousel item. Maximum of two lines of text. + *+ * + *
string title = 2;
+ */
+ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Description of the carousel item. Maximum of four lines of + * text. + *+ * + *
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2.Intent.Message.Image image_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ imageBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasImage() {
+ return imageBuilder_ != null || image_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getImage() {
+ if (imageBuilder_ == null) {
+ return image_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()
+ : image_;
+ } else {
+ return imageBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ image_ = value;
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImage(
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder builderForValue) {
+ if (imageBuilder_ == null) {
+ image_ = builderForValue.build();
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (image_ != null) {
+ image_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.newBuilder(image_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ image_ = value;
+ }
+ onChanged();
+ } else {
+ imageBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearImage() {
+ if (imageBuilder_ == null) {
+ image_ = null;
+ onChanged();
+ } else {
+ image_ = null;
+ imageBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder getImageBuilder() {
+
+ onChanged();
+ return getImageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder() {
+ if (imageBuilder_ != null) {
+ return imageBuilder_.getMessageOrBuilder();
+ } else {
+ return image_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()
+ : image_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Hero image for the carousel item. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ getImageFieldBuilder() {
+ if (imageBuilder_ == null) {
+ imageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>(
+ getImage(), getParentForChildren(), isClean());
+ image_ = null;
+ }
+ return imageBuilder_;
+ }
+
+ private java.lang.Object footer_ = "";
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getFooter() {
+ java.lang.Object ref = footer_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ footer_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getFooterBytes() {
+ java.lang.Object ref = footer_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ footer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setFooter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ footer_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder clearFooter() {
+
+ footer_ = getDefaultInstance().getFooter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + *+ * + *
string footer = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setFooterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ footer_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem>
+ getItemsList() {
+ return items_;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder>
+ getItemsOrBuilderList() {
+ return items_;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public int getItemsCount() {
+ return items_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ getItems(int index) {
+ return items_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder
+ getItemsOrBuilder(int index) {
+ return items_.get(index);
+ }
+
+ public static final int IMAGE_DISPLAY_OPTIONS_FIELD_NUMBER = 2;
+ private int imageDisplayOptions_;
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getImageDisplayOptionsValue() {
+ return imageDisplayOptions_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ getImageDisplayOptions() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ result =
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ .valueOf(imageDisplayOptions_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ .UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < items_.size(); i++) {
+ output.writeMessage(1, items_.get(i));
+ }
+ if (imageDisplayOptions_
+ != com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ .IMAGE_DISPLAY_OPTIONS_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, imageDisplayOptions_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < items_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i));
+ }
+ if (imageDisplayOptions_
+ != com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ .IMAGE_DISPLAY_OPTIONS_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, imageDisplayOptions_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) obj;
+
+ if (!getItemsList().equals(other.getItemsList())) return false;
+ if (imageDisplayOptions_ != other.imageDisplayOptions_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getItemsCount() > 0) {
+ hash = (37 * hash) + ITEMS_FIELD_NUMBER;
+ hash = (53 * hash) + getItemsList().hashCode();
+ }
+ hash = (37 * hash) + IMAGE_DISPLAY_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + imageDisplayOptions_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Browse Carousel Card for Actions on Google. + * https://developers.google.com/actions/assistant/responses#browsing_carousel + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem>
+ getItemsList() {
+ if (itemsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(items_);
+ } else {
+ return itemsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public int getItemsCount() {
+ if (itemsBuilder_ == null) {
+ return items_.size();
+ } else {
+ return itemsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem
+ getItems(int index) {
+ if (itemsBuilder_ == null) {
+ return items_.get(index);
+ } else {
+ return itemsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder setItems(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ value) {
+ if (itemsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemsIsMutable();
+ items_.set(index, value);
+ onChanged();
+ } else {
+ itemsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder setItems(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .Builder
+ builderForValue) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder addItems(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ value) {
+ if (itemsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemsIsMutable();
+ items_.add(value);
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder addItems(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ value) {
+ if (itemsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemsIsMutable();
+ items_.add(index, value);
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder addItems(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .Builder
+ builderForValue) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.add(builderForValue.build());
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder addItems(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
+ .Builder
+ builderForValue) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder addAllItems(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem>
+ values) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
+ onChanged();
+ } else {
+ itemsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder clearItems() {
+ if (itemsBuilder_ == null) {
+ items_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ itemsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public Builder removeItems(int index) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.remove(index);
+ onChanged();
+ } else {
+ itemsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.Builder
+ getItemsBuilder(int index) {
+ return getItemsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder
+ getItemsOrBuilder(int index) {
+ if (itemsBuilder_ == null) {
+ return items_.get(index);
+ } else {
+ return itemsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder>
+ getItemsOrBuilderList() {
+ if (itemsBuilder_ != null) {
+ return itemsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(items_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.Builder
+ addItemsBuilder() {
+ return getItemsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.Builder
+ addItemsBuilder(int index) {
+ return getItemsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.Builder>
+ getItemsBuilderList() {
+ return getItemsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder>
+ getItemsFieldBuilder() {
+ if (itemsBuilder_ == null) {
+ itemsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItem.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .BrowseCarouselCardItemOrBuilder>(
+ items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ items_ = null;
+ }
+ return itemsBuilder_;
+ }
+
+ private int imageDisplayOptions_ = 0;
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getImageDisplayOptionsValue() {
+ return imageDisplayOptions_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageDisplayOptionsValue(int value) {
+ imageDisplayOptions_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ getImageDisplayOptions() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ result =
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ .ImageDisplayOptions.valueOf(imageDisplayOptions_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageDisplayOptions(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ imageDisplayOptions_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearImageDisplayOptions() {
+
+ imageDisplayOptions_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ java.lang.String getTitle();
+ /**
+ *
+ *
+ * + * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ com.google.protobuf.ByteString getTitleBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.lang.String getSubtitle();
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ com.google.protobuf.ByteString getSubtitleBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean hasImage();
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.Image getImage();
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties getColumnProperties(int index);
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getColumnPropertiesCount();
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder>
+ getColumnPropertiesOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder
+ getColumnPropertiesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow getRows(int index);
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getRowsCount();
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardRowOrBuilder>
+ getRowsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRowOrBuilder getRowsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button getButtons(int index);
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getButtonsCount();
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder>
+ getButtonsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder getButtonsOrBuilder(
+ int index);
+ }
+ /**
+ *
+ *
+ * + * Table card for Actions on Google. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.TableCard} + */ + public static final class TableCard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.TableCard) + TableCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableCard.newBuilder() to construct. + private TableCard(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TableCard() { + title_ = ""; + subtitle_ = ""; + columnProperties_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + buttons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableCard( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + subtitle_ = s; + break; + } + case 26: + { + com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder subBuilder = null; + if (image_ != null) { + subBuilder = image_.toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(image_); + image_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + columnProperties_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties>(); + mutable_bitField0_ |= 0x00000008; + } + columnProperties_.add( + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.parser(), + extensionRegistry)); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + rows_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow>(); + mutable_bitField0_ |= 0x00000010; + } + rows_.add( + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.parser(), + extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + buttons_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button>(); + mutable_bitField0_ |= 0x00000020; + } + buttons_.add( + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + columnProperties_ = java.util.Collections.unmodifiableList(columnProperties_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + buttons_ = java.util.Collections.unmodifiableList(buttons_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.TableCard.class, + com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder.class); + } + + private int bitField0_; + public static final int TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object title_; + /** + * + * + *
+ * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SUBTITLE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object subtitle_;
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getSubtitle() {
+ java.lang.Object ref = subtitle_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ subtitle_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getSubtitleBytes() {
+ java.lang.Object ref = subtitle_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ subtitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IMAGE_FIELD_NUMBER = 3;
+ private com.google.cloud.dialogflow.v2.Intent.Message.Image image_;
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasImage() {
+ return image_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getImage() {
+ return image_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()
+ : image_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder() {
+ return getImage();
+ }
+
+ public static final int COLUMN_PROPERTIES_FIELD_NUMBER = 4;
+ private java.util.List+ * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder>
+ getColumnPropertiesOrBuilderList() {
+ return columnProperties_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getColumnPropertiesCount() {
+ return columnProperties_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties getColumnProperties(
+ int index) {
+ return columnProperties_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder
+ getColumnPropertiesOrBuilder(int index) {
+ return columnProperties_.get(index);
+ }
+
+ public static final int ROWS_FIELD_NUMBER = 5;
+ private java.util.List+ * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardRowOrBuilder>
+ getRowsOrBuilderList() {
+ return rows_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getRowsCount() {
+ return rows_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow getRows(int index) {
+ return rows_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardRowOrBuilder getRowsOrBuilder(
+ int index) {
+ return rows_.get(index);
+ }
+
+ public static final int BUTTONS_FIELD_NUMBER = 6;
+ private java.util.List+ * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder>
+ getButtonsOrBuilderList() {
+ return buttons_;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getButtonsCount() {
+ return buttons_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button getButtons(int index) {
+ return buttons_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder
+ getButtonsOrBuilder(int index) {
+ return buttons_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getTitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
+ }
+ if (!getSubtitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subtitle_);
+ }
+ if (image_ != null) {
+ output.writeMessage(3, getImage());
+ }
+ for (int i = 0; i < columnProperties_.size(); i++) {
+ output.writeMessage(4, columnProperties_.get(i));
+ }
+ for (int i = 0; i < rows_.size(); i++) {
+ output.writeMessage(5, rows_.get(i));
+ }
+ for (int i = 0; i < buttons_.size(); i++) {
+ output.writeMessage(6, buttons_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getTitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
+ }
+ if (!getSubtitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subtitle_);
+ }
+ if (image_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImage());
+ }
+ for (int i = 0; i < columnProperties_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(4, columnProperties_.get(i));
+ }
+ for (int i = 0; i < rows_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, rows_.get(i));
+ }
+ for (int i = 0; i < buttons_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, buttons_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.TableCard)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) obj;
+
+ if (!getTitle().equals(other.getTitle())) return false;
+ if (!getSubtitle().equals(other.getSubtitle())) return false;
+ if (hasImage() != other.hasImage()) return false;
+ if (hasImage()) {
+ if (!getImage().equals(other.getImage())) return false;
+ }
+ if (!getColumnPropertiesList().equals(other.getColumnPropertiesList())) return false;
+ if (!getRowsList().equals(other.getRowsList())) return false;
+ if (!getButtonsList().equals(other.getButtonsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + SUBTITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getSubtitle().hashCode();
+ if (hasImage()) {
+ hash = (37 * hash) + IMAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getImage().hashCode();
+ }
+ if (getColumnPropertiesCount() > 0) {
+ hash = (37 * hash) + COLUMN_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnPropertiesList().hashCode();
+ }
+ if (getRowsCount() > 0) {
+ hash = (37 * hash) + ROWS_FIELD_NUMBER;
+ hash = (53 * hash) + getRowsList().hashCode();
+ }
+ if (getButtonsCount() > 0) {
+ hash = (37 * hash) + BUTTONS_FIELD_NUMBER;
+ hash = (53 * hash) + getButtonsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Table card for Actions on Google. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.TableCard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ public Builder setTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Title of the card. + *+ * + *
string title = 1;
+ */
+ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object subtitle_ = "";
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public java.lang.String getSubtitle() {
+ java.lang.Object ref = subtitle_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ subtitle_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public com.google.protobuf.ByteString getSubtitleBytes() {
+ java.lang.Object ref = subtitle_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ subtitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setSubtitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ subtitle_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder clearSubtitle() {
+
+ subtitle_ = getDefaultInstance().getSubtitle();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Subtitle to the title. + *+ * + *
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setSubtitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ subtitle_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2.Intent.Message.Image image_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ imageBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public boolean hasImage() {
+ return imageBuilder_ != null || image_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getImage() {
+ if (imageBuilder_ == null) {
+ return image_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()
+ : image_;
+ } else {
+ return imageBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ image_ = value;
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImage(
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder builderForValue) {
+ if (imageBuilder_ == null) {
+ image_ = builderForValue.build();
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (image_ != null) {
+ image_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.newBuilder(image_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ image_ = value;
+ }
+ onChanged();
+ } else {
+ imageBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearImage() {
+ if (imageBuilder_ == null) {
+ image_ = null;
+ onChanged();
+ } else {
+ image_ = null;
+ imageBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder getImageBuilder() {
+
+ onChanged();
+ return getImageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder() {
+ if (imageBuilder_ != null) {
+ return imageBuilder_.getMessageOrBuilder();
+ } else {
+ return image_ == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()
+ : image_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Image which should be displayed on the card. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ getImageFieldBuilder() {
+ if (imageBuilder_ == null) {
+ imageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>(
+ getImage(), getParentForChildren(), isClean());
+ image_ = null;
+ }
+ return imageBuilder_;
+ }
+
+ private java.util.List+ * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getColumnPropertiesCount() {
+ if (columnPropertiesBuilder_ == null) {
+ return columnProperties_.size();
+ } else {
+ return columnPropertiesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties getColumnProperties(
+ int index) {
+ if (columnPropertiesBuilder_ == null) {
+ return columnProperties_.get(index);
+ } else {
+ return columnPropertiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setColumnProperties(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties value) {
+ if (columnPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnPropertiesIsMutable();
+ columnProperties_.set(index, value);
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setColumnProperties(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder
+ builderForValue) {
+ if (columnPropertiesBuilder_ == null) {
+ ensureColumnPropertiesIsMutable();
+ columnProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addColumnProperties(
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties value) {
+ if (columnPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnPropertiesIsMutable();
+ columnProperties_.add(value);
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addColumnProperties(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties value) {
+ if (columnPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnPropertiesIsMutable();
+ columnProperties_.add(index, value);
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addColumnProperties(
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder
+ builderForValue) {
+ if (columnPropertiesBuilder_ == null) {
+ ensureColumnPropertiesIsMutable();
+ columnProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addColumnProperties(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder
+ builderForValue) {
+ if (columnPropertiesBuilder_ == null) {
+ ensureColumnPropertiesIsMutable();
+ columnProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllColumnProperties(
+ java.lang.Iterable<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties>
+ values) {
+ if (columnPropertiesBuilder_ == null) {
+ ensureColumnPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnProperties_);
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearColumnProperties() {
+ if (columnPropertiesBuilder_ == null) {
+ columnProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeColumnProperties(int index) {
+ if (columnPropertiesBuilder_ == null) {
+ ensureColumnPropertiesIsMutable();
+ columnProperties_.remove(index);
+ onChanged();
+ } else {
+ columnPropertiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder
+ getColumnPropertiesBuilder(int index) {
+ return getColumnPropertiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder
+ getColumnPropertiesOrBuilder(int index) {
+ if (columnPropertiesBuilder_ == null) {
+ return columnProperties_.get(index);
+ } else {
+ return columnPropertiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder>
+ getColumnPropertiesOrBuilderList() {
+ if (columnPropertiesBuilder_ != null) {
+ return columnPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(columnProperties_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder
+ addColumnPropertiesBuilder() {
+ return getColumnPropertiesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder
+ addColumnPropertiesBuilder(int index) {
+ return getColumnPropertiesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Display properties for the columns in this table. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder>
+ getColumnPropertiesBuilderList() {
+ return getColumnPropertiesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties,
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder>
+ getColumnPropertiesFieldBuilder() {
+ if (columnPropertiesBuilder_ == null) {
+ columnPropertiesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties,
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesOrBuilder>(
+ columnProperties_,
+ ((bitField0_ & 0x00000008) != 0),
+ getParentForChildren(),
+ isClean());
+ columnProperties_ = null;
+ }
+ return columnPropertiesBuilder_;
+ }
+
+ private java.util.List+ * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getRowsCount() {
+ if (rowsBuilder_ == null) {
+ return rows_.size();
+ } else {
+ return rowsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow getRows(int index) {
+ if (rowsBuilder_ == null) {
+ return rows_.get(index);
+ } else {
+ return rowsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRows(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.set(index, value);
+ onChanged();
+ } else {
+ rowsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRows(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRows(com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.add(value);
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRows(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.add(index, value);
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRows(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRows(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllRows(
+ java.lang.Iterable extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow>
+ values) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_);
+ onChanged();
+ } else {
+ rowsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRows() {
+ if (rowsBuilder_ == null) {
+ rows_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ rowsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeRows(int index) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.remove(index);
+ onChanged();
+ } else {
+ rowsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.Builder getRowsBuilder(
+ int index) {
+ return getRowsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardRowOrBuilder getRowsOrBuilder(
+ int index) {
+ if (rowsBuilder_ == null) {
+ return rows_.get(index);
+ } else {
+ return rowsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardRowOrBuilder>
+ getRowsOrBuilderList() {
+ if (rowsBuilder_ != null) {
+ return rowsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rows_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.Builder addRowsBuilder() {
+ return getRowsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.Builder addRowsBuilder(
+ int index) {
+ return getRowsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Rows in this table of data. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getButtonsCount() {
+ if (buttonsBuilder_ == null) {
+ return buttons_.size();
+ } else {
+ return buttonsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button getButtons(
+ int index) {
+ if (buttonsBuilder_ == null) {
+ return buttons_.get(index);
+ } else {
+ return buttonsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setButtons(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button value) {
+ if (buttonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureButtonsIsMutable();
+ buttons_.set(index, value);
+ onChanged();
+ } else {
+ buttonsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setButtons(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder
+ builderForValue) {
+ if (buttonsBuilder_ == null) {
+ ensureButtonsIsMutable();
+ buttons_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ buttonsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addButtons(
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button value) {
+ if (buttonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureButtonsIsMutable();
+ buttons_.add(value);
+ onChanged();
+ } else {
+ buttonsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addButtons(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button value) {
+ if (buttonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureButtonsIsMutable();
+ buttons_.add(index, value);
+ onChanged();
+ } else {
+ buttonsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addButtons(
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder
+ builderForValue) {
+ if (buttonsBuilder_ == null) {
+ ensureButtonsIsMutable();
+ buttons_.add(builderForValue.build());
+ onChanged();
+ } else {
+ buttonsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addButtons(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder
+ builderForValue) {
+ if (buttonsBuilder_ == null) {
+ ensureButtonsIsMutable();
+ buttons_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ buttonsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllButtons(
+ java.lang.Iterable<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button>
+ values) {
+ if (buttonsBuilder_ == null) {
+ ensureButtonsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buttons_);
+ onChanged();
+ } else {
+ buttonsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearButtons() {
+ if (buttonsBuilder_ == null) {
+ buttons_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ buttonsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeButtons(int index) {
+ if (buttonsBuilder_ == null) {
+ ensureButtonsIsMutable();
+ buttons_.remove(index);
+ onChanged();
+ } else {
+ buttonsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder
+ getButtonsBuilder(int index) {
+ return getButtonsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder
+ getButtonsOrBuilder(int index) {
+ if (buttonsBuilder_ == null) {
+ return buttons_.get(index);
+ } else {
+ return buttonsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder>
+ getButtonsOrBuilderList() {
+ if (buttonsBuilder_ != null) {
+ return buttonsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(buttons_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder
+ addButtonsBuilder() {
+ return getButtonsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder
+ addButtonsBuilder(int index) {
+ return getButtonsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of buttons for the card. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder>
+ getButtonsBuilderList() {
+ return getButtonsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder>
+ getButtonsFieldBuilder() {
+ if (buttonsBuilder_ == null) {
+ buttonsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonOrBuilder>(
+ buttons_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
+ buttons_ = null;
+ }
+ return buttonsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.TableCard)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.TableCard)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.TableCard DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.TableCard();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCard getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ java.lang.String getHeader();
+ /**
+ *
+ *
+ * + * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ com.google.protobuf.ByteString getHeaderBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getHorizontalAlignmentValue();
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ getHorizontalAlignment();
+ }
+ /**
+ *
+ *
+ * + * Column properties for [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.ColumnProperties} + */ + public static final class ColumnProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.ColumnProperties) + ColumnPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnProperties.newBuilder() to construct. + private ColumnProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ColumnProperties() { + header_ = ""; + horizontalAlignment_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ColumnProperties( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + header_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + horizontalAlignment_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_ColumnProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_ColumnProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.class, + com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.Builder.class); + } + + /** + * + * + *
+ * Text alignments within a cell. + *+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment} + */ + public enum HorizontalAlignment implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Text is aligned to the leading edge of the column. + *+ * + *
HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0;
+ */
+ HORIZONTAL_ALIGNMENT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Text is aligned to the leading edge of the column. + *+ * + *
LEADING = 1;
+ */
+ LEADING(1),
+ /**
+ *
+ *
+ * + * Text is centered in the column. + *+ * + *
CENTER = 2;
+ */
+ CENTER(2),
+ /**
+ *
+ *
+ * + * Text is aligned to the trailing edge of the column. + *+ * + *
TRAILING = 3;
+ */
+ TRAILING(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Text is aligned to the leading edge of the column. + *+ * + *
HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0;
+ */
+ public static final int HORIZONTAL_ALIGNMENT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Text is aligned to the leading edge of the column. + *+ * + *
LEADING = 1;
+ */
+ public static final int LEADING_VALUE = 1;
+ /**
+ *
+ *
+ * + * Text is centered in the column. + *+ * + *
CENTER = 2;
+ */
+ public static final int CENTER_VALUE = 2;
+ /**
+ *
+ *
+ * + * Text is aligned to the trailing edge of the column. + *+ * + *
TRAILING = 3;
+ */
+ public static final int TRAILING_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static HorizontalAlignment valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static HorizontalAlignment forNumber(int value) {
+ switch (value) {
+ case 0:
+ return HORIZONTAL_ALIGNMENT_UNSPECIFIED;
+ case 1:
+ return LEADING;
+ case 2:
+ return CENTER;
+ case 3:
+ return TRAILING;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ public java.lang.String getHeader() {
+ java.lang.Object ref = header_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ header_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ public com.google.protobuf.ByteString getHeaderBytes() {
+ java.lang.Object ref = header_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ header_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER = 2;
+ private int horizontalAlignment_;
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getHorizontalAlignmentValue() {
+ return horizontalAlignment_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ getHorizontalAlignment() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment result =
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ .valueOf(horizontalAlignment_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ .UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getHeaderBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, header_);
+ }
+ if (horizontalAlignment_
+ != com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ .HORIZONTAL_ALIGNMENT_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, horizontalAlignment_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getHeaderBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, header_);
+ }
+ if (horizontalAlignment_
+ != com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ .HORIZONTAL_ALIGNMENT_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, horizontalAlignment_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties) obj;
+
+ if (!getHeader().equals(other.getHeader())) return false;
+ if (horizontalAlignment_ != other.horizontalAlignment_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + HEADER_FIELD_NUMBER;
+ hash = (53 * hash) + getHeader().hashCode();
+ hash = (37 * hash) + HORIZONTAL_ALIGNMENT_FIELD_NUMBER;
+ hash = (53 * hash) + horizontalAlignment_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Column properties for [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.ColumnProperties} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ public java.lang.String getHeader() {
+ java.lang.Object ref = header_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ header_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ public com.google.protobuf.ByteString getHeaderBytes() {
+ java.lang.Object ref = header_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ header_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ public Builder setHeader(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ header_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ public Builder clearHeader() {
+
+ header_ = getDefaultInstance().getHeader();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Column heading. + *+ * + *
string header = 1;
+ */
+ public Builder setHeaderBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ header_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int horizontalAlignment_ = 0;
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getHorizontalAlignmentValue() {
+ return horizontalAlignment_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setHorizontalAlignmentValue(int value) {
+ horizontalAlignment_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ getHorizontalAlignment() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ result =
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ .valueOf(horizontalAlignment_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setHorizontalAlignment(
+ com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ horizontalAlignment_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Defines text alignment for all cells in this column. + *+ * + *
+ * .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearHorizontalAlignment() {
+
+ horizontalAlignment_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.ColumnProperties)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.ColumnProperties)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell getCells(int index);
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getCellsCount();
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardCellOrBuilder>
+ getCellsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCellOrBuilder getCellsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * Optional. Whether to add a visual divider after this row. + *+ * + *
bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ boolean getDividerAfter();
+ }
+ /**
+ *
+ *
+ * + * Row of [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.TableCardRow} + */ + public static final class TableCardRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.TableCardRow) + TableCardRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableCardRow.newBuilder() to construct. + private TableCardRow(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TableCardRow() { + cells_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableCardRow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cells_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell>(); + mutable_bitField0_ |= 0x00000001; + } + cells_.add( + input.readMessage( + com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.parser(), + extensionRegistry)); + break; + } + case 16: + { + dividerAfter_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + cells_ = java.util.Collections.unmodifiableList(cells_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.class, + com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow.Builder.class); + } + + private int bitField0_; + public static final int CELLS_FIELD_NUMBER = 1; + private java.util.List
+ * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardCellOrBuilder>
+ getCellsOrBuilderList() {
+ return cells_;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getCellsCount() {
+ return cells_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell getCells(int index) {
+ return cells_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardCellOrBuilder getCellsOrBuilder(
+ int index) {
+ return cells_.get(index);
+ }
+
+ public static final int DIVIDER_AFTER_FIELD_NUMBER = 2;
+ private boolean dividerAfter_;
+ /**
+ *
+ *
+ * + * Optional. Whether to add a visual divider after this row. + *+ * + *
bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public boolean getDividerAfter() {
+ return dividerAfter_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < cells_.size(); i++) {
+ output.writeMessage(1, cells_.get(i));
+ }
+ if (dividerAfter_ != false) {
+ output.writeBool(2, dividerAfter_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < cells_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cells_.get(i));
+ }
+ if (dividerAfter_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, dividerAfter_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow) obj;
+
+ if (!getCellsList().equals(other.getCellsList())) return false;
+ if (getDividerAfter() != other.getDividerAfter()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getCellsCount() > 0) {
+ hash = (37 * hash) + CELLS_FIELD_NUMBER;
+ hash = (53 * hash) + getCellsList().hashCode();
+ }
+ hash = (37 * hash) + DIVIDER_AFTER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDividerAfter());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Row of [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.TableCardRow} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getCellsCount() {
+ if (cellsBuilder_ == null) {
+ return cells_.size();
+ } else {
+ return cellsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell getCells(int index) {
+ if (cellsBuilder_ == null) {
+ return cells_.get(index);
+ } else {
+ return cellsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setCells(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell value) {
+ if (cellsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCellsIsMutable();
+ cells_.set(index, value);
+ onChanged();
+ } else {
+ cellsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setCells(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.Builder builderForValue) {
+ if (cellsBuilder_ == null) {
+ ensureCellsIsMutable();
+ cells_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ cellsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addCells(com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell value) {
+ if (cellsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCellsIsMutable();
+ cells_.add(value);
+ onChanged();
+ } else {
+ cellsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addCells(
+ int index, com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell value) {
+ if (cellsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCellsIsMutable();
+ cells_.add(index, value);
+ onChanged();
+ } else {
+ cellsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addCells(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.Builder builderForValue) {
+ if (cellsBuilder_ == null) {
+ ensureCellsIsMutable();
+ cells_.add(builderForValue.build());
+ onChanged();
+ } else {
+ cellsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addCells(
+ int index,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.Builder builderForValue) {
+ if (cellsBuilder_ == null) {
+ ensureCellsIsMutable();
+ cells_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ cellsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllCells(
+ java.lang.Iterable<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell>
+ values) {
+ if (cellsBuilder_ == null) {
+ ensureCellsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cells_);
+ onChanged();
+ } else {
+ cellsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearCells() {
+ if (cellsBuilder_ == null) {
+ cells_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ cellsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeCells(int index) {
+ if (cellsBuilder_ == null) {
+ ensureCellsIsMutable();
+ cells_.remove(index);
+ onChanged();
+ } else {
+ cellsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.Builder getCellsBuilder(
+ int index) {
+ return getCellsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardCellOrBuilder
+ getCellsOrBuilder(int index) {
+ if (cellsBuilder_ == null) {
+ return cells_.get(index);
+ } else {
+ return cellsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.dialogflow.v2.Intent.Message.TableCardCellOrBuilder>
+ getCellsOrBuilderList() {
+ if (cellsBuilder_ != null) {
+ return cellsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(cells_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.Builder
+ addCellsBuilder() {
+ return getCellsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.Builder addCellsBuilder(
+ int index) {
+ return getCellsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. List of cells that make up this row. + *+ * + *
+ * repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Whether to add a visual divider after this row. + *+ * + *
bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public boolean getDividerAfter() {
+ return dividerAfter_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Whether to add a visual divider after this row. + *+ * + *
bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder setDividerAfter(boolean value) {
+
+ dividerAfter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Whether to add a visual divider after this row. + *+ * + *
bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder clearDividerAfter() {
+
+ dividerAfter_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.TableCardRow)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.TableCardRow)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardRow
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ java.lang.String getText();
+ /**
+ *
+ *
+ * + * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ com.google.protobuf.ByteString getTextBytes();
+ }
+ /**
+ *
+ *
+ * + * Cell of [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.TableCardCell} + */ + public static final class TableCardCell extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.TableCardCell) + TableCardCellOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableCardCell.newBuilder() to construct. + private TableCardCell(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TableCardCell() { + text_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableCardCell( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardCell_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.IntentProto + .internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardCell_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.class, + com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell.Builder.class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + private volatile java.lang.Object text_; + /** + * + * + *
+ * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getTextBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getTextBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell other =
+ (com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell) obj;
+
+ if (!getText().equals(other.getText())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Cell of [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.TableCardCell} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ public Builder clearText() {
+
+ text_ = getDefaultInstance().getText();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Text in this cell. + *+ * + *
string text = 1;
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ text_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.TableCardCell)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.TableCardCell)
+ private static final com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Intent.Message.TableCardCell
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The text response. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public boolean hasText() {
+ return messageCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The text response. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
*/
public com.google.cloud.dialogflow.v2.Intent.Message.Text getText() {
if (messageCase_ == 1) {
@@ -26709,170 +40370,312 @@ public boolean hasSuggestions() {
*
*
* - * The suggestion chips for Actions on Google. + * The suggestion chips for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Suggestions getSuggestions() {
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The suggestion chips for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder
+ getSuggestionsOrBuilder() {
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ }
+
+ public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER = 10;
+ /**
+ *
+ *
+ * + * The link out suggestion chip for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ */
+ public boolean hasLinkOutSuggestion() {
+ return messageCase_ == 10;
+ }
+ /**
+ *
+ *
+ * + * The link out suggestion chip for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion getLinkOutSuggestion() {
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The link out suggestion chip for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder
+ getLinkOutSuggestionOrBuilder() {
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.getDefaultInstance();
+ }
+
+ public static final int LIST_SELECT_FIELD_NUMBER = 11;
+ /**
+ *
+ *
+ * + * The list card response for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ */
+ public boolean hasListSelect() {
+ return messageCase_ == 11;
+ }
+ /**
+ *
+ *
+ * + * The list card response for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect getListSelect() {
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The list card response for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder
+ getListSelectOrBuilder() {
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
+ }
+
+ public static final int CAROUSEL_SELECT_FIELD_NUMBER = 12;
+ /**
+ *
+ *
+ * + * The carousel card response for Actions on Google. + *+ * + *
.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ */
+ public boolean hasCarouselSelect() {
+ return messageCase_ == 12;
+ }
+ /**
+ *
+ *
+ * + * The carousel card response for Actions on Google. ** - *
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Suggestions getSuggestions() {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect getCarouselSelect() {
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
}
/**
*
*
* - * The suggestion chips for Actions on Google. + * The carousel card response for Actions on Google. ** - *
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder
- getSuggestionsOrBuilder() {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder
+ getCarouselSelectOrBuilder() {
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
}
- public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER = 10;
+ public static final int BROWSE_CAROUSEL_CARD_FIELD_NUMBER = 22;
/**
*
*
* - * The link out suggestion chip for Actions on Google. + * Browse carousel card for Actions on Google. ** - *
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public boolean hasLinkOutSuggestion() {
- return messageCase_ == 10;
+ public boolean hasBrowseCarouselCard() {
+ return messageCase_ == 22;
}
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion getLinkOutSuggestion() {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ getBrowseCarouselCard() {
+ if (messageCase_ == 22) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.getDefaultInstance();
}
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder
- getLinkOutSuggestionOrBuilder() {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder
+ getBrowseCarouselCardOrBuilder() {
+ if (messageCase_ == 22) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.getDefaultInstance();
}
- public static final int LIST_SELECT_FIELD_NUMBER = 11;
+ public static final int TABLE_CARD_FIELD_NUMBER = 23;
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public boolean hasListSelect() {
- return messageCase_ == 11;
+ public boolean hasTableCard() {
+ return messageCase_ == 23;
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect getListSelect() {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCard getTableCard() {
+ if (messageCase_ == 23) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.TableCard.getDefaultInstance();
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder
- getListSelectOrBuilder() {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardOrBuilder
+ getTableCardOrBuilder() {
+ if (messageCase_ == 23) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.TableCard.getDefaultInstance();
}
- public static final int CAROUSEL_SELECT_FIELD_NUMBER = 12;
+ public static final int MEDIA_CONTENT_FIELD_NUMBER = 24;
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public boolean hasCarouselSelect() {
- return messageCase_ == 12;
+ public boolean hasMediaContent() {
+ return messageCase_ == 24;
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect getCarouselSelect() {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent getMediaContent() {
+ if (messageCase_ == 24) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.getDefaultInstance();
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder
- getCarouselSelectOrBuilder() {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContentOrBuilder
+ getMediaContentOrBuilder() {
+ if (messageCase_ == 24) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.getDefaultInstance();
}
public static final int PLATFORM_FIELD_NUMBER = 6;
@@ -26969,6 +40772,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
12, (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_);
}
+ if (messageCase_ == 22) {
+ output.writeMessage(
+ 22, (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_);
+ }
+ if (messageCase_ == 23) {
+ output.writeMessage(23, (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_);
+ }
+ if (messageCase_ == 24) {
+ output.writeMessage(
+ 24, (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_);
+ }
unknownFields.writeTo(output);
}
@@ -27038,6 +40852,21 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
12, (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_);
}
+ if (messageCase_ == 22) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 22, (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_);
+ }
+ if (messageCase_ == 23) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 23, (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_);
+ }
+ if (messageCase_ == 24) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 24, (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -27090,6 +40919,15 @@ public boolean equals(final java.lang.Object obj) {
case 12:
if (!getCarouselSelect().equals(other.getCarouselSelect())) return false;
break;
+ case 22:
+ if (!getBrowseCarouselCard().equals(other.getBrowseCarouselCard())) return false;
+ break;
+ case 23:
+ if (!getTableCard().equals(other.getTableCard())) return false;
+ break;
+ case 24:
+ if (!getMediaContent().equals(other.getMediaContent())) return false;
+ break;
case 0:
default:
}
@@ -27151,6 +40989,18 @@ public int hashCode() {
hash = (37 * hash) + CAROUSEL_SELECT_FIELD_NUMBER;
hash = (53 * hash) + getCarouselSelect().hashCode();
break;
+ case 22:
+ hash = (37 * hash) + BROWSE_CAROUSEL_CARD_FIELD_NUMBER;
+ hash = (53 * hash) + getBrowseCarouselCard().hashCode();
+ break;
+ case 23:
+ hash = (37 * hash) + TABLE_CARD_FIELD_NUMBER;
+ hash = (53 * hash) + getTableCard().hashCode();
+ break;
+ case 24:
+ hash = (37 * hash) + MEDIA_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaContent().hashCode();
+ break;
case 0:
default:
}
@@ -27275,436 +41125,1087 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.dialogflow.v2.IntentProto
- .internal_static_google_cloud_dialogflow_v2_Intent_Message_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.dialogflow.v2.Intent.Message.class,
- com.google.cloud.dialogflow.v2.Intent.Message.Builder.class);
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.IntentProto
+ .internal_static_google_cloud_dialogflow_v2_Intent_Message_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.Intent.Message.class,
+ com.google.cloud.dialogflow.v2.Intent.Message.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dialogflow.v2.Intent.Message.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ platform_ = 0;
+
+ messageCase_ = 0;
+ message_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dialogflow.v2.IntentProto
+ .internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.Intent.Message getDefaultInstanceForType() {
+ return com.google.cloud.dialogflow.v2.Intent.Message.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.Intent.Message build() {
+ com.google.cloud.dialogflow.v2.Intent.Message result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.Intent.Message buildPartial() {
+ com.google.cloud.dialogflow.v2.Intent.Message result =
+ new com.google.cloud.dialogflow.v2.Intent.Message(this);
+ if (messageCase_ == 1) {
+ if (textBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = textBuilder_.build();
+ }
+ }
+ if (messageCase_ == 2) {
+ if (imageBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = imageBuilder_.build();
+ }
+ }
+ if (messageCase_ == 3) {
+ if (quickRepliesBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = quickRepliesBuilder_.build();
+ }
+ }
+ if (messageCase_ == 4) {
+ if (cardBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = cardBuilder_.build();
+ }
+ }
+ if (messageCase_ == 5) {
+ if (payloadBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = payloadBuilder_.build();
+ }
+ }
+ if (messageCase_ == 7) {
+ if (simpleResponsesBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = simpleResponsesBuilder_.build();
+ }
+ }
+ if (messageCase_ == 8) {
+ if (basicCardBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = basicCardBuilder_.build();
+ }
+ }
+ if (messageCase_ == 9) {
+ if (suggestionsBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = suggestionsBuilder_.build();
+ }
+ }
+ if (messageCase_ == 10) {
+ if (linkOutSuggestionBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = linkOutSuggestionBuilder_.build();
+ }
+ }
+ if (messageCase_ == 11) {
+ if (listSelectBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = listSelectBuilder_.build();
+ }
+ }
+ if (messageCase_ == 12) {
+ if (carouselSelectBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = carouselSelectBuilder_.build();
+ }
+ }
+ if (messageCase_ == 22) {
+ if (browseCarouselCardBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = browseCarouselCardBuilder_.build();
+ }
+ }
+ if (messageCase_ == 23) {
+ if (tableCardBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = tableCardBuilder_.build();
+ }
+ }
+ if (messageCase_ == 24) {
+ if (mediaContentBuilder_ == null) {
+ result.message_ = message_;
+ } else {
+ result.message_ = mediaContentBuilder_.build();
+ }
+ }
+ result.platform_ = platform_;
+ result.messageCase_ = messageCase_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
}
- // Construct using com.google.cloud.dialogflow.v2.Intent.Message.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
}
- private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
}
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
}
@java.lang.Override
- public Builder clear() {
- super.clear();
- platform_ = 0;
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
- messageCase_ = 0;
- message_ = null;
- return this;
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
}
@java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.dialogflow.v2.IntentProto
- .internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor;
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dialogflow.v2.Intent.Message) {
+ return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Message other) {
+ if (other == com.google.cloud.dialogflow.v2.Intent.Message.getDefaultInstance())
+ return this;
+ if (other.platform_ != 0) {
+ setPlatformValue(other.getPlatformValue());
+ }
+ switch (other.getMessageCase()) {
+ case TEXT:
+ {
+ mergeText(other.getText());
+ break;
+ }
+ case IMAGE:
+ {
+ mergeImage(other.getImage());
+ break;
+ }
+ case QUICK_REPLIES:
+ {
+ mergeQuickReplies(other.getQuickReplies());
+ break;
+ }
+ case CARD:
+ {
+ mergeCard(other.getCard());
+ break;
+ }
+ case PAYLOAD:
+ {
+ mergePayload(other.getPayload());
+ break;
+ }
+ case SIMPLE_RESPONSES:
+ {
+ mergeSimpleResponses(other.getSimpleResponses());
+ break;
+ }
+ case BASIC_CARD:
+ {
+ mergeBasicCard(other.getBasicCard());
+ break;
+ }
+ case SUGGESTIONS:
+ {
+ mergeSuggestions(other.getSuggestions());
+ break;
+ }
+ case LINK_OUT_SUGGESTION:
+ {
+ mergeLinkOutSuggestion(other.getLinkOutSuggestion());
+ break;
+ }
+ case LIST_SELECT:
+ {
+ mergeListSelect(other.getListSelect());
+ break;
+ }
+ case CAROUSEL_SELECT:
+ {
+ mergeCarouselSelect(other.getCarouselSelect());
+ break;
+ }
+ case BROWSE_CAROUSEL_CARD:
+ {
+ mergeBrowseCarouselCard(other.getBrowseCarouselCard());
+ break;
+ }
+ case TABLE_CARD:
+ {
+ mergeTableCard(other.getTableCard());
+ break;
+ }
+ case MEDIA_CONTENT:
+ {
+ mergeMediaContent(other.getMediaContent());
+ break;
+ }
+ case MESSAGE_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
}
@java.lang.Override
- public com.google.cloud.dialogflow.v2.Intent.Message getDefaultInstanceForType() {
- return com.google.cloud.dialogflow.v2.Intent.Message.getDefaultInstance();
+ public final boolean isInitialized() {
+ return true;
}
@java.lang.Override
- public com.google.cloud.dialogflow.v2.Intent.Message build() {
- com.google.cloud.dialogflow.v2.Intent.Message result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dialogflow.v2.Intent.Message parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.dialogflow.v2.Intent.Message) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
}
- return result;
+ return this;
}
- @java.lang.Override
- public com.google.cloud.dialogflow.v2.Intent.Message buildPartial() {
- com.google.cloud.dialogflow.v2.Intent.Message result =
- new com.google.cloud.dialogflow.v2.Intent.Message(this);
- if (messageCase_ == 1) {
- if (textBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = textBuilder_.build();
+ private int messageCase_ = 0;
+ private java.lang.Object message_;
+
+ public MessageCase getMessageCase() {
+ return MessageCase.forNumber(messageCase_);
+ }
+
+ public Builder clearMessage() {
+ messageCase_ = 0;
+ message_ = null;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Text,
+ com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder>
+ textBuilder_;
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public boolean hasText() {
+ return messageCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Text getText() {
+ if (textBuilder_ == null) {
+ if (messageCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
+ } else {
+ if (messageCase_ == 1) {
+ return textBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public Builder setText(com.google.cloud.dialogflow.v2.Intent.Message.Text value) {
+ if (textBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ message_ = value;
+ onChanged();
+ } else {
+ textBuilder_.setMessage(value);
+ }
+ messageCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public Builder setText(
+ com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder builderForValue) {
+ if (textBuilder_ == null) {
+ message_ = builderForValue.build();
+ onChanged();
+ } else {
+ textBuilder_.setMessage(builderForValue.build());
}
- if (messageCase_ == 2) {
- if (imageBuilder_ == null) {
- result.message_ = message_;
+ messageCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public Builder mergeText(com.google.cloud.dialogflow.v2.Intent.Message.Text value) {
+ if (textBuilder_ == null) {
+ if (messageCase_ == 1
+ && message_
+ != com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance()) {
+ message_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.Text.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
- result.message_ = imageBuilder_.build();
+ message_ = value;
}
- }
- if (messageCase_ == 3) {
- if (quickRepliesBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = quickRepliesBuilder_.build();
+ onChanged();
+ } else {
+ if (messageCase_ == 1) {
+ textBuilder_.mergeFrom(value);
}
+ textBuilder_.setMessage(value);
}
- if (messageCase_ == 4) {
- if (cardBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = cardBuilder_.build();
+ messageCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public Builder clearText() {
+ if (textBuilder_ == null) {
+ if (messageCase_ == 1) {
+ messageCase_ = 0;
+ message_ = null;
+ onChanged();
+ }
+ } else {
+ if (messageCase_ == 1) {
+ messageCase_ = 0;
+ message_ = null;
}
+ textBuilder_.clear();
}
- if (messageCase_ == 5) {
- if (payloadBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = payloadBuilder_.build();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder getTextBuilder() {
+ return getTextFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder getTextOrBuilder() {
+ if ((messageCase_ == 1) && (textBuilder_ != null)) {
+ return textBuilder_.getMessageOrBuilder();
+ } else {
+ if (messageCase_ == 1) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_;
}
+ return com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
}
- if (messageCase_ == 7) {
- if (simpleResponsesBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = simpleResponsesBuilder_.build();
+ }
+ /**
+ *
+ *
+ *
+ * The text response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Text,
+ com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder>
+ getTextFieldBuilder() {
+ if (textBuilder_ == null) {
+ if (!(messageCase_ == 1)) {
+ message_ = com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
}
+ textBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Text,
+ com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_,
+ getParentForChildren(),
+ isClean());
+ message_ = null;
}
- if (messageCase_ == 8) {
- if (basicCardBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = basicCardBuilder_.build();
+ messageCase_ = 1;
+ onChanged();
+ ;
+ return textBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ imageBuilder_;
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public boolean hasImage() {
+ return messageCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image getImage() {
+ if (imageBuilder_ == null) {
+ if (messageCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_;
}
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ } else {
+ if (messageCase_ == 2) {
+ return imageBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
}
- if (messageCase_ == 9) {
- if (suggestionsBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = suggestionsBuilder_.build();
+ }
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public Builder setImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ message_ = value;
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(value);
}
- if (messageCase_ == 10) {
- if (linkOutSuggestionBuilder_ == null) {
- result.message_ = message_;
+ messageCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public Builder setImage(
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder builderForValue) {
+ if (imageBuilder_ == null) {
+ message_ = builderForValue.build();
+ onChanged();
+ } else {
+ imageBuilder_.setMessage(builderForValue.build());
+ }
+ messageCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public Builder mergeImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
+ if (imageBuilder_ == null) {
+ if (messageCase_ == 2
+ && message_
+ != com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()) {
+ message_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
- result.message_ = linkOutSuggestionBuilder_.build();
+ message_ = value;
+ }
+ onChanged();
+ } else {
+ if (messageCase_ == 2) {
+ imageBuilder_.mergeFrom(value);
}
+ imageBuilder_.setMessage(value);
}
- if (messageCase_ == 11) {
- if (listSelectBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = listSelectBuilder_.build();
+ messageCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public Builder clearImage() {
+ if (imageBuilder_ == null) {
+ if (messageCase_ == 2) {
+ messageCase_ = 0;
+ message_ = null;
+ onChanged();
}
- }
- if (messageCase_ == 12) {
- if (carouselSelectBuilder_ == null) {
- result.message_ = message_;
- } else {
- result.message_ = carouselSelectBuilder_.build();
+ } else {
+ if (messageCase_ == 2) {
+ messageCase_ = 0;
+ message_ = null;
}
+ imageBuilder_.clear();
}
- result.platform_ = platform_;
- result.messageCase_ = messageCase_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
+ return this;
}
-
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder getImageBuilder() {
+ return getImageFieldBuilder().getBuilder();
}
-
- @java.lang.Override
- public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder() {
+ if ((messageCase_ == 2) && (imageBuilder_ != null)) {
+ return imageBuilder_.getMessageOrBuilder();
+ } else {
+ if (messageCase_ == 2) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
}
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index,
- java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ /**
+ *
+ *
+ *
+ * The image response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
+ getImageFieldBuilder() {
+ if (imageBuilder_ == null) {
+ if (!(messageCase_ == 2)) {
+ message_ = com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ }
+ imageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.Image,
+ com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_,
+ getParentForChildren(),
+ isClean());
+ message_ = null;
+ }
+ messageCase_ = 2;
+ onChanged();
+ ;
+ return imageBuilder_;
}
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies,
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder>
+ quickRepliesBuilder_;
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public boolean hasQuickReplies() {
+ return messageCase_ == 3;
}
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.dialogflow.v2.Intent.Message) {
- return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message) other);
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies getQuickReplies() {
+ if (quickRepliesBuilder_ == null) {
+ if (messageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
} else {
- super.mergeFrom(other);
- return this;
+ if (messageCase_ == 3) {
+ return quickRepliesBuilder_.getMessage();
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
}
}
-
- public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Message other) {
- if (other == com.google.cloud.dialogflow.v2.Intent.Message.getDefaultInstance())
- return this;
- if (other.platform_ != 0) {
- setPlatformValue(other.getPlatformValue());
- }
- switch (other.getMessageCase()) {
- case TEXT:
- {
- mergeText(other.getText());
- break;
- }
- case IMAGE:
- {
- mergeImage(other.getImage());
- break;
- }
- case QUICK_REPLIES:
- {
- mergeQuickReplies(other.getQuickReplies());
- break;
- }
- case CARD:
- {
- mergeCard(other.getCard());
- break;
- }
- case PAYLOAD:
- {
- mergePayload(other.getPayload());
- break;
- }
- case SIMPLE_RESPONSES:
- {
- mergeSimpleResponses(other.getSimpleResponses());
- break;
- }
- case BASIC_CARD:
- {
- mergeBasicCard(other.getBasicCard());
- break;
- }
- case SUGGESTIONS:
- {
- mergeSuggestions(other.getSuggestions());
- break;
- }
- case LINK_OUT_SUGGESTION:
- {
- mergeLinkOutSuggestion(other.getLinkOutSuggestion());
- break;
- }
- case LIST_SELECT:
- {
- mergeListSelect(other.getListSelect());
- break;
- }
- case CAROUSEL_SELECT:
- {
- mergeCarouselSelect(other.getCarouselSelect());
- break;
- }
- case MESSAGE_NOT_SET:
- {
- break;
- }
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public Builder setQuickReplies(
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies value) {
+ if (quickRepliesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ message_ = value;
+ onChanged();
+ } else {
+ quickRepliesBuilder_.setMessage(value);
}
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
+ messageCase_ = 3;
return this;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public Builder setQuickReplies(
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder builderForValue) {
+ if (quickRepliesBuilder_ == null) {
+ message_ = builderForValue.build();
+ onChanged();
+ } else {
+ quickRepliesBuilder_.setMessage(builderForValue.build());
+ }
+ messageCase_ = 3;
+ return this;
}
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.cloud.dialogflow.v2.Intent.Message parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.dialogflow.v2.Intent.Message) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public Builder mergeQuickReplies(
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies value) {
+ if (quickRepliesBuilder_ == null) {
+ if (messageCase_ == 3
+ && message_
+ != com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies
+ .getDefaultInstance()) {
+ message_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ message_ = value;
+ }
+ onChanged();
+ } else {
+ if (messageCase_ == 3) {
+ quickRepliesBuilder_.mergeFrom(value);
}
+ quickRepliesBuilder_.setMessage(value);
}
+ messageCase_ = 3;
return this;
}
-
- private int messageCase_ = 0;
- private java.lang.Object message_;
-
- public MessageCase getMessageCase() {
- return MessageCase.forNumber(messageCase_);
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public Builder clearQuickReplies() {
+ if (quickRepliesBuilder_ == null) {
+ if (messageCase_ == 3) {
+ messageCase_ = 0;
+ message_ = null;
+ onChanged();
+ }
+ } else {
+ if (messageCase_ == 3) {
+ messageCase_ = 0;
+ message_ = null;
+ }
+ quickRepliesBuilder_.clear();
+ }
+ return this;
}
-
- public Builder clearMessage() {
- messageCase_ = 0;
- message_ = null;
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder
+ getQuickRepliesBuilder() {
+ return getQuickRepliesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ public com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder
+ getQuickRepliesOrBuilder() {
+ if ((messageCase_ == 3) && (quickRepliesBuilder_ != null)) {
+ return quickRepliesBuilder_.getMessageOrBuilder();
+ } else {
+ if (messageCase_ == 3) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_;
+ }
+ return com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The quick replies response.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies,
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder>
+ getQuickRepliesFieldBuilder() {
+ if (quickRepliesBuilder_ == null) {
+ if (!(messageCase_ == 3)) {
+ message_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
+ }
+ quickRepliesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies,
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_,
+ getParentForChildren(),
+ isClean());
+ message_ = null;
+ }
+ messageCase_ = 3;
onChanged();
- return this;
+ ;
+ return quickRepliesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Text,
- com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder>
- textBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.Card,
+ com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder>
+ cardBuilder_;
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public boolean hasText() {
- return messageCase_ == 1;
+ public boolean hasCard() {
+ return messageCase_ == 4;
}
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Text getText() {
- if (textBuilder_ == null) {
- if (messageCase_ == 1) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.Card getCard() {
+ if (cardBuilder_ == null) {
+ if (messageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
} else {
- if (messageCase_ == 1) {
- return textBuilder_.getMessage();
+ if (messageCase_ == 4) {
+ return cardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
}
}
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public Builder setText(com.google.cloud.dialogflow.v2.Intent.Message.Text value) {
- if (textBuilder_ == null) {
+ public Builder setCard(com.google.cloud.dialogflow.v2.Intent.Message.Card value) {
+ if (cardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- textBuilder_.setMessage(value);
+ cardBuilder_.setMessage(value);
}
- messageCase_ = 1;
+ messageCase_ = 4;
return this;
}
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public Builder setText(
- com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder builderForValue) {
- if (textBuilder_ == null) {
+ public Builder setCard(
+ com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder builderForValue) {
+ if (cardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- textBuilder_.setMessage(builderForValue.build());
+ cardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 1;
+ messageCase_ = 4;
return this;
}
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public Builder mergeText(com.google.cloud.dialogflow.v2.Intent.Message.Text value) {
- if (textBuilder_ == null) {
- if (messageCase_ == 1
+ public Builder mergeCard(com.google.cloud.dialogflow.v2.Intent.Message.Card value) {
+ if (cardBuilder_ == null) {
+ if (messageCase_ == 4
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance()) {
+ != com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.Text.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.Card.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_)
.mergeFrom(value)
.buildPartial();
} else {
message_ = value;
}
onChanged();
- } else {
- if (messageCase_ == 1) {
- textBuilder_.mergeFrom(value);
+ } else {
+ if (messageCase_ == 4) {
+ cardBuilder_.mergeFrom(value);
}
- textBuilder_.setMessage(value);
+ cardBuilder_.setMessage(value);
}
- messageCase_ = 1;
+ messageCase_ = 4;
return this;
}
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public Builder clearText() {
- if (textBuilder_ == null) {
- if (messageCase_ == 1) {
+ public Builder clearCard() {
+ if (cardBuilder_ == null) {
+ if (messageCase_ == 4) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 1) {
+ if (messageCase_ == 4) {
messageCase_ = 0;
message_ = null;
}
- textBuilder_.clear();
+ cardBuilder_.clear();
}
return this;
}
@@ -27712,165 +42213,171 @@ public Builder clearText() {
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder getTextBuilder() {
- return getTextFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder getCardBuilder() {
+ return getCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder getTextOrBuilder() {
- if ((messageCase_ == 1) && (textBuilder_ != null)) {
- return textBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder getCardOrBuilder() {
+ if ((messageCase_ == 4) && (cardBuilder_ != null)) {
+ return cardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 1) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_;
+ if (messageCase_ == 4) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
}
}
/**
*
*
*
- * The text response.
+ * The card response.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
+ * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Text,
- com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder>
- getTextFieldBuilder() {
- if (textBuilder_ == null) {
- if (!(messageCase_ == 1)) {
- message_ = com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.Card,
+ com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder>
+ getCardFieldBuilder() {
+ if (cardBuilder_ == null) {
+ if (!(messageCase_ == 4)) {
+ message_ = com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
}
- textBuilder_ =
+ cardBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Text,
- com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.Card,
+ com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 1;
+ messageCase_ = 4;
onChanged();
;
- return textBuilder_;
+ return cardBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Image,
- com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
- imageBuilder_;
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ payloadBuilder_;
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public boolean hasImage() {
- return messageCase_ == 2;
+ public boolean hasPayload() {
+ return messageCase_ == 5;
}
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Image getImage() {
- if (imageBuilder_ == null) {
- if (messageCase_ == 2) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_;
+ public com.google.protobuf.Struct getPayload() {
+ if (payloadBuilder_ == null) {
+ if (messageCase_ == 5) {
+ return (com.google.protobuf.Struct) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ return com.google.protobuf.Struct.getDefaultInstance();
} else {
- if (messageCase_ == 2) {
- return imageBuilder_.getMessage();
+ if (messageCase_ == 5) {
+ return payloadBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ return com.google.protobuf.Struct.getDefaultInstance();
}
}
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder setImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
- if (imageBuilder_ == null) {
+ public Builder setPayload(com.google.protobuf.Struct value) {
+ if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- imageBuilder_.setMessage(value);
+ payloadBuilder_.setMessage(value);
}
- messageCase_ = 2;
+ messageCase_ = 5;
return this;
}
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder setImage(
- com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder builderForValue) {
- if (imageBuilder_ == null) {
+ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
+ if (payloadBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- imageBuilder_.setMessage(builderForValue.build());
+ payloadBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 2;
+ messageCase_ = 5;
return this;
}
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder mergeImage(com.google.cloud.dialogflow.v2.Intent.Message.Image value) {
- if (imageBuilder_ == null) {
- if (messageCase_ == 2
- && message_
- != com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()) {
+ public Builder mergePayload(com.google.protobuf.Struct value) {
+ if (payloadBuilder_ == null) {
+ if (messageCase_ == 5 && message_ != com.google.protobuf.Struct.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.Image.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_)
+ com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -27878,36 +42385,38 @@ public Builder mergeImage(com.google.cloud.dialogflow.v2.Intent.Message.Image va
}
onChanged();
} else {
- if (messageCase_ == 2) {
- imageBuilder_.mergeFrom(value);
+ if (messageCase_ == 5) {
+ payloadBuilder_.mergeFrom(value);
}
- imageBuilder_.setMessage(value);
+ payloadBuilder_.setMessage(value);
}
- messageCase_ = 2;
+ messageCase_ = 5;
return this;
}
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public Builder clearImage() {
- if (imageBuilder_ == null) {
- if (messageCase_ == 2) {
+ public Builder clearPayload() {
+ if (payloadBuilder_ == null) {
+ if (messageCase_ == 5) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 2) {
+ if (messageCase_ == 5) {
messageCase_ = 0;
message_ = null;
}
- imageBuilder_.clear();
+ payloadBuilder_.clear();
}
return this;
}
@@ -27915,168 +42424,177 @@ public Builder clearImage() {
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder getImageBuilder() {
- return getImageFieldBuilder().getBuilder();
+ public com.google.protobuf.Struct.Builder getPayloadBuilder() {
+ return getPayloadFieldBuilder().getBuilder();
}
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder() {
- if ((messageCase_ == 2) && (imageBuilder_ != null)) {
- return imageBuilder_.getMessageOrBuilder();
+ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
+ if ((messageCase_ == 5) && (payloadBuilder_ != null)) {
+ return payloadBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 2) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_;
+ if (messageCase_ == 5) {
+ return (com.google.protobuf.Struct) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ return com.google.protobuf.Struct.getDefaultInstance();
}
}
/**
*
*
*
- * The image response.
+ * Returns a response containing a custom, platform-specific payload.
+ * See the Intent.Message.Platform type for a description of the
+ * structure that may be required for your platform.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
+ * .google.protobuf.Struct payload = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Image,
- com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>
- getImageFieldBuilder() {
- if (imageBuilder_ == null) {
- if (!(messageCase_ == 2)) {
- message_ = com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance();
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ getPayloadFieldBuilder() {
+ if (payloadBuilder_ == null) {
+ if (!(messageCase_ == 5)) {
+ message_ = com.google.protobuf.Struct.getDefaultInstance();
}
- imageBuilder_ =
+ payloadBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Image,
- com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_,
- getParentForChildren(),
- isClean());
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>(
+ (com.google.protobuf.Struct) message_, getParentForChildren(), isClean());
message_ = null;
}
- messageCase_ = 2;
+ messageCase_ = 5;
onChanged();
;
- return imageBuilder_;
+ return payloadBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies,
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder>
- quickRepliesBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses,
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder>
+ simpleResponsesBuilder_;
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public boolean hasQuickReplies() {
- return messageCase_ == 3;
+ public boolean hasSimpleResponses() {
+ return messageCase_ == 7;
}
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies getQuickReplies() {
- if (quickRepliesBuilder_ == null) {
- if (messageCase_ == 3) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses getSimpleResponses() {
+ if (simpleResponsesBuilder_ == null) {
+ if (messageCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
} else {
- if (messageCase_ == 3) {
- return quickRepliesBuilder_.getMessage();
+ if (messageCase_ == 7) {
+ return simpleResponsesBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
}
}
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public Builder setQuickReplies(
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies value) {
- if (quickRepliesBuilder_ == null) {
+ public Builder setSimpleResponses(
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses value) {
+ if (simpleResponsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- quickRepliesBuilder_.setMessage(value);
+ simpleResponsesBuilder_.setMessage(value);
}
- messageCase_ = 3;
+ messageCase_ = 7;
return this;
}
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public Builder setQuickReplies(
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder builderForValue) {
- if (quickRepliesBuilder_ == null) {
+ public Builder setSimpleResponses(
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder builderForValue) {
+ if (simpleResponsesBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- quickRepliesBuilder_.setMessage(builderForValue.build());
+ simpleResponsesBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 3;
+ messageCase_ = 7;
return this;
}
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public Builder mergeQuickReplies(
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies value) {
- if (quickRepliesBuilder_ == null) {
- if (messageCase_ == 3
+ public Builder mergeSimpleResponses(
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses value) {
+ if (simpleResponsesBuilder_ == null) {
+ if (messageCase_ == 7
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies
+ != com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -28084,36 +42602,37 @@ public Builder mergeQuickReplies(
}
onChanged();
} else {
- if (messageCase_ == 3) {
- quickRepliesBuilder_.mergeFrom(value);
+ if (messageCase_ == 7) {
+ simpleResponsesBuilder_.mergeFrom(value);
}
- quickRepliesBuilder_.setMessage(value);
+ simpleResponsesBuilder_.setMessage(value);
}
- messageCase_ = 3;
+ messageCase_ = 7;
return this;
}
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public Builder clearQuickReplies() {
- if (quickRepliesBuilder_ == null) {
- if (messageCase_ == 3) {
+ public Builder clearSimpleResponses() {
+ if (simpleResponsesBuilder_ == null) {
+ if (messageCase_ == 7) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 3) {
+ if (messageCase_ == 7) {
messageCase_ = 0;
message_ = null;
}
- quickRepliesBuilder_.clear();
+ simpleResponsesBuilder_.clear();
}
return this;
}
@@ -28121,168 +42640,171 @@ public Builder clearQuickReplies() {
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder
- getQuickRepliesBuilder() {
- return getQuickRepliesFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder
+ getSimpleResponsesBuilder() {
+ return getSimpleResponsesFieldBuilder().getBuilder();
}
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder
- getQuickRepliesOrBuilder() {
- if ((messageCase_ == 3) && (quickRepliesBuilder_ != null)) {
- return quickRepliesBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder
+ getSimpleResponsesOrBuilder() {
+ if ((messageCase_ == 7) && (simpleResponsesBuilder_ != null)) {
+ return simpleResponsesBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 3) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_;
+ if (messageCase_ == 7) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
}
}
/**
*
*
*
- * The quick replies response.
+ * The voice and text-only responses for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
+ * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies,
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder>
- getQuickRepliesFieldBuilder() {
- if (quickRepliesBuilder_ == null) {
- if (!(messageCase_ == 3)) {
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses,
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder>
+ getSimpleResponsesFieldBuilder() {
+ if (simpleResponsesBuilder_ == null) {
+ if (!(messageCase_ == 7)) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
}
- quickRepliesBuilder_ =
+ simpleResponsesBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies,
- com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses,
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 3;
+ messageCase_ = 7;
onChanged();
;
- return quickRepliesBuilder_;
+ return simpleResponsesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Card,
- com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder>
- cardBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder>
+ basicCardBuilder_;
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public boolean hasCard() {
- return messageCase_ == 4;
+ public boolean hasBasicCard() {
+ return messageCase_ == 8;
}
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Card getCard() {
- if (cardBuilder_ == null) {
- if (messageCase_ == 4) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard getBasicCard() {
+ if (basicCardBuilder_ == null) {
+ if (messageCase_ == 8) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
} else {
- if (messageCase_ == 4) {
- return cardBuilder_.getMessage();
+ if (messageCase_ == 8) {
+ return basicCardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
}
}
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder setCard(com.google.cloud.dialogflow.v2.Intent.Message.Card value) {
- if (cardBuilder_ == null) {
+ public Builder setBasicCard(com.google.cloud.dialogflow.v2.Intent.Message.BasicCard value) {
+ if (basicCardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- cardBuilder_.setMessage(value);
+ basicCardBuilder_.setMessage(value);
}
- messageCase_ = 4;
+ messageCase_ = 8;
return this;
}
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder setCard(
- com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder builderForValue) {
- if (cardBuilder_ == null) {
+ public Builder setBasicCard(
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder builderForValue) {
+ if (basicCardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- cardBuilder_.setMessage(builderForValue.build());
+ basicCardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 4;
+ messageCase_ = 8;
return this;
}
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder mergeCard(com.google.cloud.dialogflow.v2.Intent.Message.Card value) {
- if (cardBuilder_ == null) {
- if (messageCase_ == 4
+ public Builder mergeBasicCard(com.google.cloud.dialogflow.v2.Intent.Message.BasicCard value) {
+ if (basicCardBuilder_ == null) {
+ if (messageCase_ == 8
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance()) {
+ != com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.Card.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -28290,36 +42812,36 @@ public Builder mergeCard(com.google.cloud.dialogflow.v2.Intent.Message.Card valu
}
onChanged();
} else {
- if (messageCase_ == 4) {
- cardBuilder_.mergeFrom(value);
+ if (messageCase_ == 8) {
+ basicCardBuilder_.mergeFrom(value);
}
- cardBuilder_.setMessage(value);
+ basicCardBuilder_.setMessage(value);
}
- messageCase_ = 4;
+ messageCase_ = 8;
return this;
}
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public Builder clearCard() {
- if (cardBuilder_ == null) {
- if (messageCase_ == 4) {
+ public Builder clearBasicCard() {
+ if (basicCardBuilder_ == null) {
+ if (messageCase_ == 8) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 4) {
+ if (messageCase_ == 8) {
messageCase_ = 0;
message_ = null;
}
- cardBuilder_.clear();
+ basicCardBuilder_.clear();
}
return this;
}
@@ -28327,171 +42849,169 @@ public Builder clearCard() {
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder getCardBuilder() {
- return getCardFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder getBasicCardBuilder() {
+ return getBasicCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder getCardOrBuilder() {
- if ((messageCase_ == 4) && (cardBuilder_ != null)) {
- return cardBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder
+ getBasicCardOrBuilder() {
+ if ((messageCase_ == 8) && (basicCardBuilder_ != null)) {
+ return basicCardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 4) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_;
+ if (messageCase_ == 8) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
}
}
/**
*
*
*
- * The card response.
+ * The basic card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
+ * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Card,
- com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder>
- getCardFieldBuilder() {
- if (cardBuilder_ == null) {
- if (!(messageCase_ == 4)) {
- message_ = com.google.cloud.dialogflow.v2.Intent.Message.Card.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder>
+ getBasicCardFieldBuilder() {
+ if (basicCardBuilder_ == null) {
+ if (!(messageCase_ == 8)) {
+ message_ = com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
}
- cardBuilder_ =
+ basicCardBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Card,
- com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 4;
+ messageCase_ = 8;
onChanged();
;
- return cardBuilder_;
+ return basicCardBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Struct,
- com.google.protobuf.Struct.Builder,
- com.google.protobuf.StructOrBuilder>
- payloadBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions,
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder>
+ suggestionsBuilder_;
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public boolean hasPayload() {
- return messageCase_ == 5;
+ public boolean hasSuggestions() {
+ return messageCase_ == 9;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public com.google.protobuf.Struct getPayload() {
- if (payloadBuilder_ == null) {
- if (messageCase_ == 5) {
- return (com.google.protobuf.Struct) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.Suggestions getSuggestions() {
+ if (suggestionsBuilder_ == null) {
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
}
- return com.google.protobuf.Struct.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
} else {
- if (messageCase_ == 5) {
- return payloadBuilder_.getMessage();
+ if (messageCase_ == 9) {
+ return suggestionsBuilder_.getMessage();
}
- return com.google.protobuf.Struct.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
}
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder setPayload(com.google.protobuf.Struct value) {
- if (payloadBuilder_ == null) {
+ public Builder setSuggestions(
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions value) {
+ if (suggestionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- payloadBuilder_.setMessage(value);
+ suggestionsBuilder_.setMessage(value);
}
- messageCase_ = 5;
+ messageCase_ = 9;
return this;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
- if (payloadBuilder_ == null) {
+ public Builder setSuggestions(
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder builderForValue) {
+ if (suggestionsBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- payloadBuilder_.setMessage(builderForValue.build());
+ suggestionsBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 5;
+ messageCase_ = 9;
return this;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder mergePayload(com.google.protobuf.Struct value) {
- if (payloadBuilder_ == null) {
- if (messageCase_ == 5 && message_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ public Builder mergeSuggestions(
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions value) {
+ if (suggestionsBuilder_ == null) {
+ if (messageCase_ == 9
+ && message_
+ != com.google.cloud.dialogflow.v2.Intent.Message.Suggestions
+ .getDefaultInstance()) {
message_ =
- com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -28499,38 +43019,36 @@ public Builder mergePayload(com.google.protobuf.Struct value) {
}
onChanged();
} else {
- if (messageCase_ == 5) {
- payloadBuilder_.mergeFrom(value);
+ if (messageCase_ == 9) {
+ suggestionsBuilder_.mergeFrom(value);
}
- payloadBuilder_.setMessage(value);
+ suggestionsBuilder_.setMessage(value);
}
- messageCase_ = 5;
+ messageCase_ = 9;
return this;
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public Builder clearPayload() {
- if (payloadBuilder_ == null) {
- if (messageCase_ == 5) {
+ public Builder clearSuggestions() {
+ if (suggestionsBuilder_ == null) {
+ if (messageCase_ == 9) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 5) {
+ if (messageCase_ == 9) {
messageCase_ = 0;
message_ = null;
}
- payloadBuilder_.clear();
+ suggestionsBuilder_.clear();
}
return this;
}
@@ -28538,177 +43056,184 @@ public Builder clearPayload() {
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public com.google.protobuf.Struct.Builder getPayloadBuilder() {
- return getPayloadFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder
+ getSuggestionsBuilder() {
+ return getSuggestionsFieldBuilder().getBuilder();
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
- public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
- if ((messageCase_ == 5) && (payloadBuilder_ != null)) {
- return payloadBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder
+ getSuggestionsOrBuilder() {
+ if ((messageCase_ == 9) && (suggestionsBuilder_ != null)) {
+ return suggestionsBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 5) {
- return (com.google.protobuf.Struct) message_;
+ if (messageCase_ == 9) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
}
- return com.google.protobuf.Struct.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
}
}
/**
*
*
*
- * Returns a response containing a custom, platform-specific payload.
- * See the Intent.Message.Platform type for a description of the
- * structure that may be required for your platform.
+ * The suggestion chips for Actions on Google.
*
*
- * .google.protobuf.Struct payload = 5;
+ * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Struct,
- com.google.protobuf.Struct.Builder,
- com.google.protobuf.StructOrBuilder>
- getPayloadFieldBuilder() {
- if (payloadBuilder_ == null) {
- if (!(messageCase_ == 5)) {
- message_ = com.google.protobuf.Struct.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions,
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder>
+ getSuggestionsFieldBuilder() {
+ if (suggestionsBuilder_ == null) {
+ if (!(messageCase_ == 9)) {
+ message_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
}
- payloadBuilder_ =
+ suggestionsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Struct,
- com.google.protobuf.Struct.Builder,
- com.google.protobuf.StructOrBuilder>(
- (com.google.protobuf.Struct) message_, getParentForChildren(), isClean());
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions,
+ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_,
+ getParentForChildren(),
+ isClean());
message_ = null;
}
- messageCase_ = 5;
+ messageCase_ = 9;
onChanged();
;
- return payloadBuilder_;
+ return suggestionsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses,
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder>
- simpleResponsesBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion,
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder>
+ linkOutSuggestionBuilder_;
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public boolean hasSimpleResponses() {
- return messageCase_ == 7;
+ public boolean hasLinkOutSuggestion() {
+ return messageCase_ == 10;
}
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses getSimpleResponses() {
- if (simpleResponsesBuilder_ == null) {
- if (messageCase_ == 7) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ getLinkOutSuggestion() {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ .getDefaultInstance();
} else {
- if (messageCase_ == 7) {
- return simpleResponsesBuilder_.getMessage();
+ if (messageCase_ == 10) {
+ return linkOutSuggestionBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ .getDefaultInstance();
}
}
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public Builder setSimpleResponses(
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses value) {
- if (simpleResponsesBuilder_ == null) {
+ public Builder setLinkOutSuggestion(
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion value) {
+ if (linkOutSuggestionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- simpleResponsesBuilder_.setMessage(value);
+ linkOutSuggestionBuilder_.setMessage(value);
}
- messageCase_ = 7;
+ messageCase_ = 10;
return this;
}
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public Builder setSimpleResponses(
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder builderForValue) {
- if (simpleResponsesBuilder_ == null) {
+ public Builder setLinkOutSuggestion(
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder builderForValue) {
+ if (linkOutSuggestionBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- simpleResponsesBuilder_.setMessage(builderForValue.build());
+ linkOutSuggestionBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 7;
+ messageCase_ = 10;
return this;
}
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public Builder mergeSimpleResponses(
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses value) {
- if (simpleResponsesBuilder_ == null) {
- if (messageCase_ == 7
+ public Builder mergeLinkOutSuggestion(
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion value) {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (messageCase_ == 10
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses
+ != com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -28716,37 +43241,38 @@ public Builder mergeSimpleResponses(
}
onChanged();
} else {
- if (messageCase_ == 7) {
- simpleResponsesBuilder_.mergeFrom(value);
+ if (messageCase_ == 10) {
+ linkOutSuggestionBuilder_.mergeFrom(value);
}
- simpleResponsesBuilder_.setMessage(value);
+ linkOutSuggestionBuilder_.setMessage(value);
}
- messageCase_ = 7;
+ messageCase_ = 10;
return this;
}
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public Builder clearSimpleResponses() {
- if (simpleResponsesBuilder_ == null) {
- if (messageCase_ == 7) {
+ public Builder clearLinkOutSuggestion() {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (messageCase_ == 10) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 7) {
+ if (messageCase_ == 10) {
messageCase_ = 0;
message_ = null;
}
- simpleResponsesBuilder_.clear();
+ linkOutSuggestionBuilder_.clear();
}
return this;
}
@@ -28754,171 +43280,178 @@ public Builder clearSimpleResponses() {
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder
- getSimpleResponsesBuilder() {
- return getSimpleResponsesFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder
+ getLinkOutSuggestionBuilder() {
+ return getLinkOutSuggestionFieldBuilder().getBuilder();
}
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder
- getSimpleResponsesOrBuilder() {
- if ((messageCase_ == 7) && (simpleResponsesBuilder_ != null)) {
- return simpleResponsesBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder
+ getLinkOutSuggestionOrBuilder() {
+ if ((messageCase_ == 10) && (linkOutSuggestionBuilder_ != null)) {
+ return linkOutSuggestionBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 7) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_;
+ if (messageCase_ == 10) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ .getDefaultInstance();
}
}
/**
*
*
*
- * The voice and text-only responses for Actions on Google.
+ * The link out suggestion chip for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
+ *
+ * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses,
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder>
- getSimpleResponsesFieldBuilder() {
- if (simpleResponsesBuilder_ == null) {
- if (!(messageCase_ == 7)) {
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion,
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder>
+ getLinkOutSuggestionFieldBuilder() {
+ if (linkOutSuggestionBuilder_ == null) {
+ if (!(messageCase_ == 10)) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ .getDefaultInstance();
}
- simpleResponsesBuilder_ =
+ linkOutSuggestionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses,
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion,
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 7;
+ messageCase_ = 10;
onChanged();
;
- return simpleResponsesBuilder_;
+ return linkOutSuggestionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard,
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder>
- basicCardBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect,
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder>
+ listSelectBuilder_;
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public boolean hasBasicCard() {
- return messageCase_ == 8;
+ public boolean hasListSelect() {
+ return messageCase_ == 11;
}
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard getBasicCard() {
- if (basicCardBuilder_ == null) {
- if (messageCase_ == 8) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect getListSelect() {
+ if (listSelectBuilder_ == null) {
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
} else {
- if (messageCase_ == 8) {
- return basicCardBuilder_.getMessage();
+ if (messageCase_ == 11) {
+ return listSelectBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
}
}
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public Builder setBasicCard(com.google.cloud.dialogflow.v2.Intent.Message.BasicCard value) {
- if (basicCardBuilder_ == null) {
+ public Builder setListSelect(com.google.cloud.dialogflow.v2.Intent.Message.ListSelect value) {
+ if (listSelectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- basicCardBuilder_.setMessage(value);
+ listSelectBuilder_.setMessage(value);
}
- messageCase_ = 8;
+ messageCase_ = 11;
return this;
}
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public Builder setBasicCard(
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder builderForValue) {
- if (basicCardBuilder_ == null) {
+ public Builder setListSelect(
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder builderForValue) {
+ if (listSelectBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- basicCardBuilder_.setMessage(builderForValue.build());
+ listSelectBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 8;
+ messageCase_ = 11;
return this;
}
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public Builder mergeBasicCard(com.google.cloud.dialogflow.v2.Intent.Message.BasicCard value) {
- if (basicCardBuilder_ == null) {
- if (messageCase_ == 8
+ public Builder mergeListSelect(
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect value) {
+ if (listSelectBuilder_ == null) {
+ if (messageCase_ == 11
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance()) {
+ != com.google.cloud.dialogflow.v2.Intent.Message.ListSelect
+ .getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -28926,36 +43459,36 @@ public Builder mergeBasicCard(com.google.cloud.dialogflow.v2.Intent.Message.Basi
}
onChanged();
} else {
- if (messageCase_ == 8) {
- basicCardBuilder_.mergeFrom(value);
+ if (messageCase_ == 11) {
+ listSelectBuilder_.mergeFrom(value);
}
- basicCardBuilder_.setMessage(value);
+ listSelectBuilder_.setMessage(value);
}
- messageCase_ = 8;
+ messageCase_ = 11;
return this;
}
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public Builder clearBasicCard() {
- if (basicCardBuilder_ == null) {
- if (messageCase_ == 8) {
+ public Builder clearListSelect() {
+ if (listSelectBuilder_ == null) {
+ if (messageCase_ == 11) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 8) {
+ if (messageCase_ == 11) {
messageCase_ = 0;
message_ = null;
}
- basicCardBuilder_.clear();
+ listSelectBuilder_.clear();
}
return this;
}
@@ -28963,169 +43496,176 @@ public Builder clearBasicCard() {
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder getBasicCardBuilder() {
- return getBasicCardFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder
+ getListSelectBuilder() {
+ return getListSelectFieldBuilder().getBuilder();
}
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder
- getBasicCardOrBuilder() {
- if ((messageCase_ == 8) && (basicCardBuilder_ != null)) {
- return basicCardBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder
+ getListSelectOrBuilder() {
+ if ((messageCase_ == 11) && (listSelectBuilder_ != null)) {
+ return listSelectBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 8) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_;
+ if (messageCase_ == 11) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
}
}
/**
*
*
*
- * The basic card response for Actions on Google.
+ * The list card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
+ * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard,
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder>
- getBasicCardFieldBuilder() {
- if (basicCardBuilder_ == null) {
- if (!(messageCase_ == 8)) {
- message_ = com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect,
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder>
+ getListSelectFieldBuilder() {
+ if (listSelectBuilder_ == null) {
+ if (!(messageCase_ == 11)) {
+ message_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
}
- basicCardBuilder_ =
+ listSelectBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard,
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect,
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 8;
+ messageCase_ = 11;
onChanged();
;
- return basicCardBuilder_;
+ return listSelectBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions,
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder>
- suggestionsBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect,
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder>
+ carouselSelectBuilder_;
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public boolean hasSuggestions() {
- return messageCase_ == 9;
+ public boolean hasCarouselSelect() {
+ return messageCase_ == 12;
}
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Suggestions getSuggestions() {
- if (suggestionsBuilder_ == null) {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect getCarouselSelect() {
+ if (carouselSelectBuilder_ == null) {
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
} else {
- if (messageCase_ == 9) {
- return suggestionsBuilder_.getMessage();
+ if (messageCase_ == 12) {
+ return carouselSelectBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
}
}
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder setSuggestions(
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions value) {
- if (suggestionsBuilder_ == null) {
+ public Builder setCarouselSelect(
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect value) {
+ if (carouselSelectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- suggestionsBuilder_.setMessage(value);
+ carouselSelectBuilder_.setMessage(value);
}
- messageCase_ = 9;
+ messageCase_ = 12;
return this;
}
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder setSuggestions(
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder builderForValue) {
- if (suggestionsBuilder_ == null) {
+ public Builder setCarouselSelect(
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder builderForValue) {
+ if (carouselSelectBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- suggestionsBuilder_.setMessage(builderForValue.build());
+ carouselSelectBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 9;
+ messageCase_ = 12;
return this;
}
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder mergeSuggestions(
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions value) {
- if (suggestionsBuilder_ == null) {
- if (messageCase_ == 9
+ public Builder mergeCarouselSelect(
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect value) {
+ if (carouselSelectBuilder_ == null) {
+ if (messageCase_ == 12
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.Suggestions
+ != com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -29133,36 +43673,37 @@ public Builder mergeSuggestions(
}
onChanged();
} else {
- if (messageCase_ == 9) {
- suggestionsBuilder_.mergeFrom(value);
+ if (messageCase_ == 12) {
+ carouselSelectBuilder_.mergeFrom(value);
}
- suggestionsBuilder_.setMessage(value);
+ carouselSelectBuilder_.setMessage(value);
}
- messageCase_ = 9;
+ messageCase_ = 12;
return this;
}
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public Builder clearSuggestions() {
- if (suggestionsBuilder_ == null) {
- if (messageCase_ == 9) {
+ public Builder clearCarouselSelect() {
+ if (carouselSelectBuilder_ == null) {
+ if (messageCase_ == 12) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 9) {
+ if (messageCase_ == 12) {
messageCase_ = 0;
message_ = null;
}
- suggestionsBuilder_.clear();
+ carouselSelectBuilder_.clear();
}
return this;
}
@@ -29170,113 +43711,116 @@ public Builder clearSuggestions() {
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder
- getSuggestionsBuilder() {
- return getSuggestionsFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder
+ getCarouselSelectBuilder() {
+ return getCarouselSelectFieldBuilder().getBuilder();
}
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder
- getSuggestionsOrBuilder() {
- if ((messageCase_ == 9) && (suggestionsBuilder_ != null)) {
- return suggestionsBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder
+ getCarouselSelectOrBuilder() {
+ if ((messageCase_ == 12) && (carouselSelectBuilder_ != null)) {
+ return carouselSelectBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 9) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_;
+ if (messageCase_ == 12) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
}
}
/**
*
*
*
- * The suggestion chips for Actions on Google.
+ * The carousel card response for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
+ * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions,
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder>
- getSuggestionsFieldBuilder() {
- if (suggestionsBuilder_ == null) {
- if (!(messageCase_ == 9)) {
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect,
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder>
+ getCarouselSelectFieldBuilder() {
+ if (carouselSelectBuilder_ == null) {
+ if (!(messageCase_ == 12)) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
}
- suggestionsBuilder_ =
+ carouselSelectBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions,
- com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect,
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 9;
+ messageCase_ = 12;
onChanged();
;
- return suggestionsBuilder_;
+ return carouselSelectBuilder_;
}
-
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion,
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder>
- linkOutSuggestionBuilder_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder>
+ browseCarouselCardBuilder_;
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public boolean hasLinkOutSuggestion() {
- return messageCase_ == 10;
+ public boolean hasBrowseCarouselCard() {
+ return messageCase_ == 22;
}
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
- getLinkOutSuggestion() {
- if (linkOutSuggestionBuilder_ == null) {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
+ getBrowseCarouselCard() {
+ if (browseCarouselCardBuilder_ == null) {
+ if (messageCase_ == 22) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ return com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
.getDefaultInstance();
} else {
- if (messageCase_ == 10) {
- return linkOutSuggestionBuilder_.getMessage();
+ if (messageCase_ == 22) {
+ return browseCarouselCardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ return com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
.getDefaultInstance();
}
}
@@ -29284,70 +43828,71 @@ public boolean hasLinkOutSuggestion() {
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public Builder setLinkOutSuggestion(
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion value) {
- if (linkOutSuggestionBuilder_ == null) {
+ public Builder setBrowseCarouselCard(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard value) {
+ if (browseCarouselCardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- linkOutSuggestionBuilder_.setMessage(value);
+ browseCarouselCardBuilder_.setMessage(value);
}
- messageCase_ = 10;
+ messageCase_ = 22;
return this;
}
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public Builder setLinkOutSuggestion(
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder builderForValue) {
- if (linkOutSuggestionBuilder_ == null) {
+ public Builder setBrowseCarouselCard(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder
+ builderForValue) {
+ if (browseCarouselCardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- linkOutSuggestionBuilder_.setMessage(builderForValue.build());
+ browseCarouselCardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 10;
+ messageCase_ = 22;
return this;
}
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public Builder mergeLinkOutSuggestion(
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion value) {
- if (linkOutSuggestionBuilder_ == null) {
- if (messageCase_ == 10
+ public Builder mergeBrowseCarouselCard(
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard value) {
+ if (browseCarouselCardBuilder_ == null) {
+ if (messageCase_ == 22
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ != com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -29355,38 +43900,38 @@ public Builder mergeLinkOutSuggestion(
}
onChanged();
} else {
- if (messageCase_ == 10) {
- linkOutSuggestionBuilder_.mergeFrom(value);
+ if (messageCase_ == 22) {
+ browseCarouselCardBuilder_.mergeFrom(value);
}
- linkOutSuggestionBuilder_.setMessage(value);
+ browseCarouselCardBuilder_.setMessage(value);
}
- messageCase_ = 10;
+ messageCase_ = 22;
return this;
}
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public Builder clearLinkOutSuggestion() {
- if (linkOutSuggestionBuilder_ == null) {
- if (messageCase_ == 10) {
+ public Builder clearBrowseCarouselCard() {
+ if (browseCarouselCardBuilder_ == null) {
+ if (messageCase_ == 22) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 10) {
+ if (messageCase_ == 22) {
messageCase_ = 0;
message_ = null;
}
- linkOutSuggestionBuilder_.clear();
+ browseCarouselCardBuilder_.clear();
}
return this;
}
@@ -29394,37 +43939,37 @@ public Builder clearLinkOutSuggestion() {
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder
- getLinkOutSuggestionBuilder() {
- return getLinkOutSuggestionFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder
+ getBrowseCarouselCardBuilder() {
+ return getBrowseCarouselCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder
- getLinkOutSuggestionOrBuilder() {
- if ((messageCase_ == 10) && (linkOutSuggestionBuilder_ != null)) {
- return linkOutSuggestionBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder
+ getBrowseCarouselCardOrBuilder() {
+ if ((messageCase_ == 22) && (browseCarouselCardBuilder_ != null)) {
+ return browseCarouselCardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 10) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_;
+ if (messageCase_ == 22) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ return com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
.getDefaultInstance();
}
}
@@ -29432,140 +43977,138 @@ public Builder clearLinkOutSuggestion() {
*
*
*
- * The link out suggestion chip for Actions on Google.
+ * Browse carousel card for Actions on Google.
*
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion,
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder>
- getLinkOutSuggestionFieldBuilder() {
- if (linkOutSuggestionBuilder_ == null) {
- if (!(messageCase_ == 10)) {
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder>
+ getBrowseCarouselCardFieldBuilder() {
+ if (browseCarouselCardBuilder_ == null) {
+ if (!(messageCase_ == 22)) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard
.getDefaultInstance();
}
- linkOutSuggestionBuilder_ =
+ browseCarouselCardBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion,
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 10;
+ messageCase_ = 22;
onChanged();
;
- return linkOutSuggestionBuilder_;
+ return browseCarouselCardBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect,
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder>
- listSelectBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardOrBuilder>
+ tableCardBuilder_;
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public boolean hasListSelect() {
- return messageCase_ == 11;
+ public boolean hasTableCard() {
+ return messageCase_ == 23;
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect getListSelect() {
- if (listSelectBuilder_ == null) {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCard getTableCard() {
+ if (tableCardBuilder_ == null) {
+ if (messageCase_ == 23) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.TableCard.getDefaultInstance();
} else {
- if (messageCase_ == 11) {
- return listSelectBuilder_.getMessage();
+ if (messageCase_ == 23) {
+ return tableCardBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.TableCard.getDefaultInstance();
}
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public Builder setListSelect(com.google.cloud.dialogflow.v2.Intent.Message.ListSelect value) {
- if (listSelectBuilder_ == null) {
+ public Builder setTableCard(com.google.cloud.dialogflow.v2.Intent.Message.TableCard value) {
+ if (tableCardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- listSelectBuilder_.setMessage(value);
+ tableCardBuilder_.setMessage(value);
}
- messageCase_ = 11;
+ messageCase_ = 23;
return this;
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public Builder setListSelect(
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder builderForValue) {
- if (listSelectBuilder_ == null) {
+ public Builder setTableCard(
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder builderForValue) {
+ if (tableCardBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- listSelectBuilder_.setMessage(builderForValue.build());
+ tableCardBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 11;
+ messageCase_ = 23;
return this;
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public Builder mergeListSelect(
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect value) {
- if (listSelectBuilder_ == null) {
- if (messageCase_ == 11
+ public Builder mergeTableCard(com.google.cloud.dialogflow.v2.Intent.Message.TableCard value) {
+ if (tableCardBuilder_ == null) {
+ if (messageCase_ == 23
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.ListSelect
- .getDefaultInstance()) {
+ != com.google.cloud.dialogflow.v2.Intent.Message.TableCard.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -29573,36 +44116,36 @@ public Builder mergeListSelect(
}
onChanged();
} else {
- if (messageCase_ == 11) {
- listSelectBuilder_.mergeFrom(value);
+ if (messageCase_ == 23) {
+ tableCardBuilder_.mergeFrom(value);
}
- listSelectBuilder_.setMessage(value);
+ tableCardBuilder_.setMessage(value);
}
- messageCase_ = 11;
+ messageCase_ = 23;
return this;
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public Builder clearListSelect() {
- if (listSelectBuilder_ == null) {
- if (messageCase_ == 11) {
+ public Builder clearTableCard() {
+ if (tableCardBuilder_ == null) {
+ if (messageCase_ == 23) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 11) {
+ if (messageCase_ == 23) {
messageCase_ = 0;
message_ = null;
}
- listSelectBuilder_.clear();
+ tableCardBuilder_.clear();
}
return this;
}
@@ -29610,176 +44153,169 @@ public Builder clearListSelect() {
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder
- getListSelectBuilder() {
- return getListSelectFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder getTableCardBuilder() {
+ return getTableCardFieldBuilder().getBuilder();
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder
- getListSelectOrBuilder() {
- if ((messageCase_ == 11) && (listSelectBuilder_ != null)) {
- return listSelectBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.TableCardOrBuilder
+ getTableCardOrBuilder() {
+ if ((messageCase_ == 23) && (tableCardBuilder_ != null)) {
+ return tableCardBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 11) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_;
+ if (messageCase_ == 23) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.TableCard.getDefaultInstance();
}
}
/**
*
*
*
- * The list card response for Actions on Google.
+ * Table card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
+ * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect,
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder>
- getListSelectFieldBuilder() {
- if (listSelectBuilder_ == null) {
- if (!(messageCase_ == 11)) {
- message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.getDefaultInstance();
- }
- listSelectBuilder_ =
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardOrBuilder>
+ getTableCardFieldBuilder() {
+ if (tableCardBuilder_ == null) {
+ if (!(messageCase_ == 23)) {
+ message_ = com.google.cloud.dialogflow.v2.Intent.Message.TableCard.getDefaultInstance();
+ }
+ tableCardBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect,
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.TableCardOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 11;
+ messageCase_ = 23;
onChanged();
;
- return listSelectBuilder_;
+ return tableCardBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect,
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder>
- carouselSelectBuilder_;
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContentOrBuilder>
+ mediaContentBuilder_;
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public boolean hasCarouselSelect() {
- return messageCase_ == 12;
+ public boolean hasMediaContent() {
+ return messageCase_ == 24;
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect getCarouselSelect() {
- if (carouselSelectBuilder_ == null) {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent getMediaContent() {
+ if (mediaContentBuilder_ == null) {
+ if (messageCase_ == 24) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.getDefaultInstance();
} else {
- if (messageCase_ == 12) {
- return carouselSelectBuilder_.getMessage();
+ if (messageCase_ == 24) {
+ return mediaContentBuilder_.getMessage();
}
- return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.getDefaultInstance();
}
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public Builder setCarouselSelect(
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect value) {
- if (carouselSelectBuilder_ == null) {
+ public Builder setMediaContent(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent value) {
+ if (mediaContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
- carouselSelectBuilder_.setMessage(value);
+ mediaContentBuilder_.setMessage(value);
}
- messageCase_ = 12;
+ messageCase_ = 24;
return this;
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public Builder setCarouselSelect(
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder builderForValue) {
- if (carouselSelectBuilder_ == null) {
+ public Builder setMediaContent(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder builderForValue) {
+ if (mediaContentBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
- carouselSelectBuilder_.setMessage(builderForValue.build());
+ mediaContentBuilder_.setMessage(builderForValue.build());
}
- messageCase_ = 12;
+ messageCase_ = 24;
return this;
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public Builder mergeCarouselSelect(
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect value) {
- if (carouselSelectBuilder_ == null) {
- if (messageCase_ == 12
+ public Builder mergeMediaContent(
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent value) {
+ if (mediaContentBuilder_ == null) {
+ if (messageCase_ == 24
&& message_
- != com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect
+ != com.google.cloud.dialogflow.v2.Intent.Message.MediaContent
.getDefaultInstance()) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.newBuilder(
- (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_)
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.newBuilder(
+ (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -29787,37 +44323,36 @@ public Builder mergeCarouselSelect(
}
onChanged();
} else {
- if (messageCase_ == 12) {
- carouselSelectBuilder_.mergeFrom(value);
+ if (messageCase_ == 24) {
+ mediaContentBuilder_.mergeFrom(value);
}
- carouselSelectBuilder_.setMessage(value);
+ mediaContentBuilder_.setMessage(value);
}
- messageCase_ = 12;
+ messageCase_ = 24;
return this;
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public Builder clearCarouselSelect() {
- if (carouselSelectBuilder_ == null) {
- if (messageCase_ == 12) {
+ public Builder clearMediaContent() {
+ if (mediaContentBuilder_ == null) {
+ if (messageCase_ == 24) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
- if (messageCase_ == 12) {
+ if (messageCase_ == 24) {
messageCase_ = 0;
message_ = null;
}
- carouselSelectBuilder_.clear();
+ mediaContentBuilder_.clear();
}
return this;
}
@@ -29825,71 +44360,68 @@ public Builder clearCarouselSelect() {
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder
- getCarouselSelectBuilder() {
- return getCarouselSelectFieldBuilder().getBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder
+ getMediaContentBuilder() {
+ return getMediaContentFieldBuilder().getBuilder();
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
- public com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder
- getCarouselSelectOrBuilder() {
- if ((messageCase_ == 12) && (carouselSelectBuilder_ != null)) {
- return carouselSelectBuilder_.getMessageOrBuilder();
+ public com.google.cloud.dialogflow.v2.Intent.Message.MediaContentOrBuilder
+ getMediaContentOrBuilder() {
+ if ((messageCase_ == 24) && (mediaContentBuilder_ != null)) {
+ return mediaContentBuilder_.getMessageOrBuilder();
} else {
- if (messageCase_ == 12) {
- return (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_;
+ if (messageCase_ == 24) {
+ return (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_;
}
- return com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
+ return com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.getDefaultInstance();
}
}
/**
*
*
*
- * The carousel card response for Actions on Google.
+ * The media content card for Actions on Google.
*
*
- * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
- *
+ * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect,
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder>
- getCarouselSelectFieldBuilder() {
- if (carouselSelectBuilder_ == null) {
- if (!(messageCase_ == 12)) {
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContentOrBuilder>
+ getMediaContentFieldBuilder() {
+ if (mediaContentBuilder_ == null) {
+ if (!(messageCase_ == 24)) {
message_ =
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.getDefaultInstance();
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.getDefaultInstance();
}
- carouselSelectBuilder_ =
+ mediaContentBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect,
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder,
- com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder>(
- (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder,
+ com.google.cloud.dialogflow.v2.Intent.Message.MediaContentOrBuilder>(
+ (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_,
getParentForChildren(),
isClean());
message_ = null;
}
- messageCase_ = 12;
+ messageCase_ = 24;
onChanged();
;
- return carouselSelectBuilder_;
+ return mediaContentBuilder_;
}
private int platform_ = 0;
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java
index 0e88f6ae3..41b9119d4 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java
+++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java
@@ -119,6 +119,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dialogflow_v2_Intent_Message_SelectItemInfo_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_v2_Intent_Message_SelectItemInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_ResponseMediaObject_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCard_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCard_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_ColumnProperties_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_ColumnProperties_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardRow_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardRow_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardCell_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardCell_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dialogflow_v2_Intent_FollowupIntentInfo_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -182,7 +218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e/longrunning/operations.proto\032\036google/p"
+ "rotobuf/duration.proto\032\033google/protobuf/"
+ "empty.proto\032 google/protobuf/field_mask."
- + "proto\032\034google/protobuf/struct.proto\"\247$\n\006"
+ + "proto\032\034google/protobuf/struct.proto\"\3037\n\006"
+ "Intent\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001"
+ "(\tB\003\340A\002\022K\n\rwebhook_state\030\006 \001(\0162/.google."
+ "cloud.dialogflow.v2.Intent.WebhookStateB"
@@ -218,7 +254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003\340A\001\022\032\n\rdefault_value\030\004 \001(\tB\003\340A\001\022%\n\030enti"
+ "ty_type_display_name\030\005 \001(\tB\003\340A\001\022\026\n\tmanda"
+ "tory\030\006 \001(\010B\003\340A\001\022\024\n\007prompts\030\007 \003(\tB\003\340A\001\022\024\n"
- + "\007is_list\030\010 \001(\010B\003\340A\001\032\372\026\n\007Message\022?\n\004text\030"
+ + "\007is_list\030\010 \001(\010B\003\340A\001\032\226*\n\007Message\022?\n\004text\030"
+ "\001 \001(\0132/.google.cloud.dialogflow.v2.Inten"
+ "t.Message.TextH\000\022A\n\005image\030\002 \001(\01320.google"
+ ".cloud.dialogflow.v2.Intent.Message.Imag"
@@ -239,153 +275,215 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".cloud.dialogflow.v2.Intent.Message.List"
+ "SelectH\000\022T\n\017carousel_select\030\014 \001(\01329.goog"
+ "le.cloud.dialogflow.v2.Intent.Message.Ca"
- + "rouselSelectH\000\022J\n\010platform\030\006 \001(\01623.googl"
- + "e.cloud.dialogflow.v2.Intent.Message.Pla"
- + "tformB\003\340A\001\032\031\n\004Text\022\021\n\004text\030\001 \003(\tB\003\340A\001\032@\n"
- + "\005Image\022\026\n\timage_uri\030\001 \001(\tB\003\340A\001\022\037\n\022access"
- + "ibility_text\030\002 \001(\tB\003\340A\001\032>\n\014QuickReplies\022"
- + "\022\n\005title\030\001 \001(\tB\003\340A\001\022\032\n\rquick_replies\030\002 \003"
- + "(\tB\003\340A\001\032\313\001\n\004Card\022\022\n\005title\030\001 \001(\tB\003\340A\001\022\025\n\010"
- + "subtitle\030\002 \001(\tB\003\340A\001\022\026\n\timage_uri\030\003 \001(\tB\003"
- + "\340A\001\022L\n\007buttons\030\004 \003(\01326.google.cloud.dial"
- + "ogflow.v2.Intent.Message.Card.ButtonB\003\340A"
- + "\001\0322\n\006Button\022\021\n\004text\030\001 \001(\tB\003\340A\001\022\025\n\010postba"
- + "ck\030\002 \001(\tB\003\340A\001\032Q\n\016SimpleResponse\022\026\n\016text_"
- + "to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\031\n\014display"
- + "_text\030\003 \001(\tB\003\340A\001\032k\n\017SimpleResponses\022X\n\020s"
- + "imple_responses\030\001 \003(\01329.google.cloud.dia"
- + "logflow.v2.Intent.Message.SimpleResponse"
- + "B\003\340A\002\032\210\003\n\tBasicCard\022\022\n\005title\030\001 \001(\tB\003\340A\001\022"
- + "\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022\026\n\016formatted_text"
- + "\030\003 \001(\t\022D\n\005image\030\004 \001(\01320.google.cloud.dia"
- + "logflow.v2.Intent.Message.ImageB\003\340A\001\022Q\n\007"
- + "buttons\030\005 \003(\0132;.google.cloud.dialogflow."
- + "v2.Intent.Message.BasicCard.ButtonB\003\340A\001\032"
- + "\236\001\n\006Button\022\r\n\005title\030\001 \001(\t\022g\n\017open_uri_ac"
- + "tion\030\002 \001(\0132I.google.cloud.dialogflow.v2."
- + "Intent.Message.BasicCard.Button.OpenUriA"
- + "ctionB\003\340A\002\032\034\n\rOpenUriAction\022\013\n\003uri\030\001 \001(\t"
- + "\032 \n\nSuggestion\022\022\n\005title\030\001 \001(\tB\003\340A\002\032^\n\013Su"
- + "ggestions\022O\n\013suggestions\030\001 \003(\01325.google."
- + "cloud.dialogflow.v2.Intent.Message.Sugge"
- + "stionB\003\340A\002\032D\n\021LinkOutSuggestion\022\035\n\020desti"
- + "nation_name\030\001 \001(\tB\003\340A\002\022\020\n\003uri\030\002 \001(\tB\003\340A\002"
- + "\032\322\002\n\nListSelect\022\022\n\005title\030\001 \001(\tB\003\340A\001\022N\n\005i"
- + "tems\030\002 \003(\0132:.google.cloud.dialogflow.v2."
- + "Intent.Message.ListSelect.ItemB\003\340A\002\022\025\n\010s"
- + "ubtitle\030\003 \001(\tB\003\340A\001\032\310\001\n\004Item\022L\n\004info\030\001 \001("
- + "\01329.google.cloud.dialogflow.v2.Intent.Me"
- + "ssage.SelectItemInfoB\003\340A\002\022\022\n\005title\030\002 \001(\t"
- + "B\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022D\n\005image"
- + "\030\004 \001(\01320.google.cloud.dialogflow.v2.Inte"
- + "nt.Message.ImageB\003\340A\001\032\257\002\n\016CarouselSelect"
- + "\022R\n\005items\030\001 \003(\0132>.google.cloud.dialogflo"
- + "w.v2.Intent.Message.CarouselSelect.ItemB"
- + "\003\340A\002\032\310\001\n\004Item\022L\n\004info\030\001 \001(\01329.google.clo"
- + "ud.dialogflow.v2.Intent.Message.SelectIt"
- + "emInfoB\003\340A\002\022\022\n\005title\030\002 \001(\tB\003\340A\002\022\030\n\013descr"
- + "iption\030\003 \001(\tB\003\340A\001\022D\n\005image\030\004 \001(\01320.googl"
- + "e.cloud.dialogflow.v2.Intent.Message.Ima"
- + "geB\003\340A\001\0329\n\016SelectItemInfo\022\020\n\003key\030\001 \001(\tB\003"
- + "\340A\002\022\025\n\010synonyms\030\002 \003(\tB\003\340A\001\"\240\001\n\010Platform\022"
- + "\030\n\024PLATFORM_UNSPECIFIED\020\000\022\014\n\010FACEBOOK\020\001\022"
- + "\t\n\005SLACK\020\002\022\014\n\010TELEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKY"
- + "PE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIBER\020\007\022\025\n\021ACTIONS_ON_"
- + "GOOGLE\020\010\022\023\n\017GOOGLE_HANGOUTS\020\013B\t\n\007message"
- + "\032W\n\022FollowupIntentInfo\022\034\n\024followup_inten"
- + "t_name\030\001 \001(\t\022#\n\033parent_followup_intent_n"
- + "ame\030\002 \001(\t\"t\n\014WebhookState\022\035\n\031WEBHOOK_STA"
- + "TE_UNSPECIFIED\020\000\022\031\n\025WEBHOOK_STATE_ENABLE"
- + "D\020\001\022*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FI"
- + "LLING\020\002:L\352AI\n\034pubsub.googleapis.com/Inte"
- + "nt\022)projects/{project}/agent/intents/{in"
- + "tent}\"\334\001\n\022ListIntentsRequest\0227\n\006parent\030\001"
- + " \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.com/"
- + "Agent\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\001\022@\n\013int"
- + "ent_view\030\003 \001(\0162&.google.cloud.dialogflow"
- + ".v2.IntentViewB\003\340A\001\022\026\n\tpage_size\030\004 \001(\005B\003"
- + "\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\"c\n\023ListInte"
- + "ntsResponse\0223\n\007intents\030\001 \003(\0132\".google.cl"
- + "oud.dialogflow.v2.Intent\022\027\n\017next_page_to"
- + "ken\030\002 \001(\t\"\250\001\n\020GetIntentRequest\0226\n\004name\030\001"
- + " \001(\tB(\340A\002\372A\"\n dialogflow.googleapis.com/"
- + "Intent\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\001\022@\n\013in"
- + "tent_view\030\003 \001(\0162&.google.cloud.dialogflo"
- + "w.v2.IntentViewB\003\340A\001\"\345\001\n\023CreateIntentReq"
- + "uest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow"
- + ".googleapis.com/Agent\0227\n\006intent\030\002 \001(\0132\"."
- + "google.cloud.dialogflow.v2.IntentB\003\340A\002\022\032"
- + "\n\rlanguage_code\030\003 \001(\tB\003\340A\001\022@\n\013intent_vie"
- + "w\030\004 \001(\0162&.google.cloud.dialogflow.v2.Int"
- + "entViewB\003\340A\001\"\342\001\n\023UpdateIntentRequest\0227\n\006"
- + "intent\030\001 \001(\0132\".google.cloud.dialogflow.v"
- + "2.IntentB\003\340A\002\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A"
- + "\001\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf"
- + ".FieldMaskB\003\340A\001\022@\n\013intent_view\030\004 \001(\0162&.g"
- + "oogle.cloud.dialogflow.v2.IntentViewB\003\340A"
- + "\001\"M\n\023DeleteIntentRequest\0226\n\004name\030\001 \001(\tB("
- + "\340A\002\372A\"\n dialogflow.googleapis.com/Intent"
- + "\"\334\002\n\031BatchUpdateIntentsRequest\0227\n\006parent"
- + "\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.co"
- + "m/Agent\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022F\n\023i"
- + "ntent_batch_inline\030\003 \001(\0132\'.google.cloud."
- + "dialogflow.v2.IntentBatchH\000\022\032\n\rlanguage_"
- + "code\030\004 \001(\tB\003\340A\001\0224\n\013update_mask\030\005 \001(\0132\032.g"
- + "oogle.protobuf.FieldMaskB\003\340A\001\022@\n\013intent_"
- + "view\030\006 \001(\0162&.google.cloud.dialogflow.v2."
- + "IntentViewB\003\340A\001B\016\n\014intent_batch\"Q\n\032Batch"
- + "UpdateIntentsResponse\0223\n\007intents\030\001 \003(\0132\""
- + ".google.cloud.dialogflow.v2.Intent\"\216\001\n\031B"
- + "atchDeleteIntentsRequest\0227\n\006parent\030\001 \001(\t"
+ + "rouselSelectH\000\022]\n\024browse_carousel_card\030\026"
+ + " \001(\0132=.google.cloud.dialogflow.v2.Intent"
+ + ".Message.BrowseCarouselCardH\000\022J\n\ntable_c"
+ + "ard\030\027 \001(\01324.google.cloud.dialogflow.v2.I"
+ + "ntent.Message.TableCardH\000\022P\n\rmedia_conte"
+ + "nt\030\030 \001(\01327.google.cloud.dialogflow.v2.In"
+ + "tent.Message.MediaContentH\000\022J\n\010platform\030"
+ + "\006 \001(\01623.google.cloud.dialogflow.v2.Inten"
+ + "t.Message.PlatformB\003\340A\001\032\031\n\004Text\022\021\n\004text\030"
+ + "\001 \003(\tB\003\340A\001\032@\n\005Image\022\026\n\timage_uri\030\001 \001(\tB\003"
+ + "\340A\001\022\037\n\022accessibility_text\030\002 \001(\tB\003\340A\001\032>\n\014"
+ + "QuickReplies\022\022\n\005title\030\001 \001(\tB\003\340A\001\022\032\n\rquic"
+ + "k_replies\030\002 \003(\tB\003\340A\001\032\313\001\n\004Card\022\022\n\005title\030\001"
+ + " \001(\tB\003\340A\001\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022\026\n\timag"
+ + "e_uri\030\003 \001(\tB\003\340A\001\022L\n\007buttons\030\004 \003(\01326.goog"
+ + "le.cloud.dialogflow.v2.Intent.Message.Ca"
+ + "rd.ButtonB\003\340A\001\0322\n\006Button\022\021\n\004text\030\001 \001(\tB\003"
+ + "\340A\001\022\025\n\010postback\030\002 \001(\tB\003\340A\001\032Q\n\016SimpleResp"
+ + "onse\022\026\n\016text_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001"
+ + "(\t\022\031\n\014display_text\030\003 \001(\tB\003\340A\001\032k\n\017SimpleR"
+ + "esponses\022X\n\020simple_responses\030\001 \003(\01329.goo"
+ + "gle.cloud.dialogflow.v2.Intent.Message.S"
+ + "impleResponseB\003\340A\002\032\210\003\n\tBasicCard\022\022\n\005titl"
+ + "e\030\001 \001(\tB\003\340A\001\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022\026\n\016f"
+ + "ormatted_text\030\003 \001(\t\022D\n\005image\030\004 \001(\01320.goo"
+ + "gle.cloud.dialogflow.v2.Intent.Message.I"
+ + "mageB\003\340A\001\022Q\n\007buttons\030\005 \003(\0132;.google.clou"
+ + "d.dialogflow.v2.Intent.Message.BasicCard"
+ + ".ButtonB\003\340A\001\032\236\001\n\006Button\022\r\n\005title\030\001 \001(\t\022g"
+ + "\n\017open_uri_action\030\002 \001(\0132I.google.cloud.d"
+ + "ialogflow.v2.Intent.Message.BasicCard.Bu"
+ + "tton.OpenUriActionB\003\340A\002\032\034\n\rOpenUriAction"
+ + "\022\013\n\003uri\030\001 \001(\t\032 \n\nSuggestion\022\022\n\005title\030\001 \001"
+ + "(\tB\003\340A\002\032^\n\013Suggestions\022O\n\013suggestions\030\001 "
+ + "\003(\01325.google.cloud.dialogflow.v2.Intent."
+ + "Message.SuggestionB\003\340A\002\032D\n\021LinkOutSugges"
+ + "tion\022\035\n\020destination_name\030\001 \001(\tB\003\340A\002\022\020\n\003u"
+ + "ri\030\002 \001(\tB\003\340A\002\032\322\002\n\nListSelect\022\022\n\005title\030\001 "
+ + "\001(\tB\003\340A\001\022N\n\005items\030\002 \003(\0132:.google.cloud.d"
+ + "ialogflow.v2.Intent.Message.ListSelect.I"
+ + "temB\003\340A\002\022\025\n\010subtitle\030\003 \001(\tB\003\340A\001\032\310\001\n\004Item"
+ + "\022L\n\004info\030\001 \001(\01329.google.cloud.dialogflow"
+ + ".v2.Intent.Message.SelectItemInfoB\003\340A\002\022\022"
+ + "\n\005title\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB"
+ + "\003\340A\001\022D\n\005image\030\004 \001(\01320.google.cloud.dialo"
+ + "gflow.v2.Intent.Message.ImageB\003\340A\001\032\257\002\n\016C"
+ + "arouselSelect\022R\n\005items\030\001 \003(\0132>.google.cl"
+ + "oud.dialogflow.v2.Intent.Message.Carouse"
+ + "lSelect.ItemB\003\340A\002\032\310\001\n\004Item\022L\n\004info\030\001 \001(\013"
+ + "29.google.cloud.dialogflow.v2.Intent.Mes"
+ + "sage.SelectItemInfoB\003\340A\002\022\022\n\005title\030\002 \001(\tB"
+ + "\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022D\n\005image\030"
+ + "\004 \001(\01320.google.cloud.dialogflow.v2.Inten"
+ + "t.Message.ImageB\003\340A\001\0329\n\016SelectItemInfo\022\020"
+ + "\n\003key\030\001 \001(\tB\003\340A\002\022\025\n\010synonyms\030\002 \003(\tB\003\340A\001\032"
+ + "\216\004\n\014MediaContent\022b\n\nmedia_type\030\001 \001(\0162I.g"
+ + "oogle.cloud.dialogflow.v2.Intent.Message"
+ + ".MediaContent.ResponseMediaTypeB\003\340A\001\022b\n\r"
+ + "media_objects\030\002 \003(\0132K.google.cloud.dialo"
+ + "gflow.v2.Intent.Message.MediaContent.Res"
+ + "ponseMediaObject\032\360\001\n\023ResponseMediaObject"
+ + "\022\014\n\004name\030\001 \001(\t\022\030\n\013description\030\002 \001(\tB\003\340A\001"
+ + "\022L\n\013large_image\030\003 \001(\01320.google.cloud.dia"
+ + "logflow.v2.Intent.Message.ImageB\003\340A\001H\000\022E"
+ + "\n\004icon\030\004 \001(\01320.google.cloud.dialogflow.v"
+ + "2.Intent.Message.ImageB\003\340A\001H\000\022\023\n\013content"
+ + "_url\030\005 \001(\tB\007\n\005image\"C\n\021ResponseMediaType"
+ + "\022#\n\037RESPONSE_MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n"
+ + "\005AUDIO\020\001\032\377\006\n\022BrowseCarouselCard\022c\n\005items"
+ + "\030\001 \003(\0132T.google.cloud.dialogflow.v2.Inte"
+ + "nt.Message.BrowseCarouselCard.BrowseCaro"
+ + "uselCardItem\022u\n\025image_display_options\030\002 "
+ + "\001(\0162Q.google.cloud.dialogflow.v2.Intent."
+ + "Message.BrowseCarouselCard.ImageDisplayO"
+ + "ptionsB\003\340A\001\032\224\004\n\026BrowseCarouselCardItem\022{"
+ + "\n\017open_uri_action\030\001 \001(\0132b.google.cloud.d"
+ + "ialogflow.v2.Intent.Message.BrowseCarous"
+ + "elCard.BrowseCarouselCardItem.OpenUrlAct"
+ + "ion\022\r\n\005title\030\002 \001(\t\022\030\n\013description\030\003 \001(\tB"
+ + "\003\340A\001\022D\n\005image\030\004 \001(\01320.google.cloud.dialo"
+ + "gflow.v2.Intent.Message.ImageB\003\340A\001\022\023\n\006fo"
+ + "oter\030\005 \001(\tB\003\340A\001\032\370\001\n\rOpenUrlAction\022\013\n\003url"
+ + "\030\001 \001(\t\022\212\001\n\rurl_type_hint\030\003 \001(\0162n.google."
+ + "cloud.dialogflow.v2.Intent.Message.Brows"
+ + "eCarouselCard.BrowseCarouselCardItem.Ope"
+ + "nUrlAction.UrlTypeHintB\003\340A\001\"M\n\013UrlTypeHi"
+ + "nt\022\035\n\031URL_TYPE_HINT_UNSPECIFIED\020\000\022\016\n\nAMP"
+ + "_ACTION\020\001\022\017\n\013AMP_CONTENT\020\002\"v\n\023ImageDispl"
+ + "ayOptions\022%\n!IMAGE_DISPLAY_OPTIONS_UNSPE"
+ + "CIFIED\020\000\022\010\n\004GRAY\020\001\022\t\n\005WHITE\020\002\022\013\n\007CROPPED"
+ + "\020\003\022\026\n\022BLURRED_BACKGROUND\020\004\032\363\002\n\tTableCard"
+ + "\022\r\n\005title\030\001 \001(\t\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022D"
+ + "\n\005image\030\003 \001(\01320.google.cloud.dialogflow."
+ + "v2.Intent.Message.ImageB\003\340A\001\022[\n\021column_p"
+ + "roperties\030\004 \003(\0132;.google.cloud.dialogflo"
+ + "w.v2.Intent.Message.ColumnPropertiesB\003\340A"
+ + "\001\022J\n\004rows\030\005 \003(\01327.google.cloud.dialogflo"
+ + "w.v2.Intent.Message.TableCardRowB\003\340A\001\022Q\n"
+ + "\007buttons\030\006 \003(\0132;.google.cloud.dialogflow"
+ + ".v2.Intent.Message.BasicCard.ButtonB\003\340A\001"
+ + "\032\372\001\n\020ColumnProperties\022\016\n\006header\030\001 \001(\t\022r\n"
+ + "\024horizontal_alignment\030\002 \001(\0162O.google.clo"
+ + "ud.dialogflow.v2.Intent.Message.ColumnPr"
+ + "operties.HorizontalAlignmentB\003\340A\001\"b\n\023Hor"
+ + "izontalAlignment\022$\n HORIZONTAL_ALIGNMENT"
+ + "_UNSPECIFIED\020\000\022\013\n\007LEADING\020\001\022\n\n\006CENTER\020\002\022"
+ + "\014\n\010TRAILING\020\003\032x\n\014TableCardRow\022L\n\005cells\030\001"
+ + " \003(\01328.google.cloud.dialogflow.v2.Intent"
+ + ".Message.TableCardCellB\003\340A\001\022\032\n\rdivider_a"
+ + "fter\030\002 \001(\010B\003\340A\001\032\035\n\rTableCardCell\022\014\n\004text"
+ + "\030\001 \001(\t\"\240\001\n\010Platform\022\030\n\024PLATFORM_UNSPECIF"
+ + "IED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGR"
+ + "AM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VI"
+ + "BER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\023\n\017GOOGLE_H"
+ + "ANGOUTS\020\013B\t\n\007message\032W\n\022FollowupIntentIn"
+ + "fo\022\034\n\024followup_intent_name\030\001 \001(\t\022#\n\033pare"
+ + "nt_followup_intent_name\030\002 \001(\t\"t\n\014Webhook"
+ + "State\022\035\n\031WEBHOOK_STATE_UNSPECIFIED\020\000\022\031\n\025"
+ + "WEBHOOK_STATE_ENABLED\020\001\022*\n&WEBHOOK_STATE"
+ + "_ENABLED_FOR_SLOT_FILLING\020\002:L\352AI\n\034pubsub"
+ + ".googleapis.com/Intent\022)projects/{projec"
+ + "t}/agent/intents/{intent}\"\334\001\n\022ListIntent"
+ + "sRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037dialog"
+ + "flow.googleapis.com/Agent\022\032\n\rlanguage_co"
+ + "de\030\002 \001(\tB\003\340A\001\022@\n\013intent_view\030\003 \001(\0162&.goo"
+ + "gle.cloud.dialogflow.v2.IntentViewB\003\340A\001\022"
+ + "\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 "
+ + "\001(\tB\003\340A\001\"c\n\023ListIntentsResponse\0223\n\007inten"
+ + "ts\030\001 \003(\0132\".google.cloud.dialogflow.v2.In"
+ + "tent\022\027\n\017next_page_token\030\002 \001(\t\"\250\001\n\020GetInt"
+ + "entRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dialog"
+ + "flow.googleapis.com/Intent\022\032\n\rlanguage_c"
+ + "ode\030\002 \001(\tB\003\340A\001\022@\n\013intent_view\030\003 \001(\0162&.go"
+ + "ogle.cloud.dialogflow.v2.IntentViewB\003\340A\001"
+ + "\"\345\001\n\023CreateIntentRequest\0227\n\006parent\030\001 \001(\t"
+ "B\'\340A\002\372A!\n\037dialogflow.googleapis.com/Agen"
- + "t\0228\n\007intents\030\002 \003(\0132\".google.cloud.dialog"
- + "flow.v2.IntentB\003\340A\002\"B\n\013IntentBatch\0223\n\007in"
- + "tents\030\001 \003(\0132\".google.cloud.dialogflow.v2"
- + ".Intent*?\n\nIntentView\022\033\n\027INTENT_VIEW_UNS"
- + "PECIFIED\020\000\022\024\n\020INTENT_VIEW_FULL\020\0012\223\014\n\007Int"
- + "ents\022\275\001\n\013ListIntents\022..google.cloud.dial"
- + "ogflow.v2.ListIntentsRequest\032/.google.cl"
- + "oud.dialogflow.v2.ListIntentsResponse\"M\202"
- + "\323\344\223\002\'\022%/v2/{parent=projects/*/agent}/int"
- + "ents\332A\006parent\332A\024parent,language_code\022\250\001\n"
- + "\tGetIntent\022,.google.cloud.dialogflow.v2."
- + "GetIntentRequest\032\".google.cloud.dialogfl"
- + "ow.v2.Intent\"I\202\323\344\223\002\'\022%/v2/{name=projects"
- + "/*/agent/intents/*}\332A\004name\332A\022name,langua"
- + "ge_code\022\310\001\n\014CreateIntent\022/.google.cloud."
- + "dialogflow.v2.CreateIntentRequest\032\".goog"
- + "le.cloud.dialogflow.v2.Intent\"c\202\323\344\223\002/\"%/"
- + "v2/{parent=projects/*/agent}/intents:\006in"
- + "tent\332A\rparent,intent\332A\033parent,intent,lan"
- + "guage_code\022\333\001\n\014UpdateIntent\022/.google.clo"
- + "ud.dialogflow.v2.UpdateIntentRequest\032\".g"
- + "oogle.cloud.dialogflow.v2.Intent\"v\202\323\344\223\0026"
- + "2,/v2/{intent.name=projects/*/agent/inte"
- + "nts/*}:\006intent\332A\024intent,language_code\332A "
- + "intent,language_code,update_mask\022\215\001\n\014Del"
- + "eteIntent\022/.google.cloud.dialogflow.v2.D"
- + "eleteIntentRequest\032\026.google.protobuf.Emp"
- + "ty\"4\202\323\344\223\002\'*%/v2/{name=projects/*/agent/i"
- + "ntents/*}\332A\004name\022\373\001\n\022BatchUpdateIntents\022"
- + "5.google.cloud.dialogflow.v2.BatchUpdate"
- + "IntentsRequest\032\035.google.longrunning.Oper"
- + "ation\"\216\001\202\323\344\223\0026\"1/v2/{parent=projects/*/a"
- + "gent}/intents:batchUpdate:\001*\312AO\n5google."
- + "cloud.dialogflow.v2.BatchUpdateIntentsRe"
- + "sponse\022\026google.protobuf.Struct\022\353\001\n\022Batch"
- + "DeleteIntents\0225.google.cloud.dialogflow."
- + "v2.BatchDeleteIntentsRequest\032\035.google.lo"
- + "ngrunning.Operation\"\177\202\323\344\223\0026\"1/v2/{parent"
- + "=projects/*/agent}/intents:batchDelete:\001"
- + "*\332A\016parent,intents\312A/\n\025google.protobuf.E"
- + "mpty\022\026google.protobuf.Struct\032x\312A\031dialogf"
- + "low.googleapis.com\322AYhttps://www.googlea"
- + "pis.com/auth/cloud-platform,https://www."
- + "googleapis.com/auth/dialogflowB\232\001\n\036com.g"
- + "oogle.cloud.dialogflow.v2B\013IntentProtoP\001"
- + "ZDgoogle.golang.org/genproto/googleapis/"
- + "cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002"
- + "\032Google.Cloud.Dialogflow.V2b\006proto3"
+ + "t\0227\n\006intent\030\002 \001(\0132\".google.cloud.dialogf"
+ + "low.v2.IntentB\003\340A\002\022\032\n\rlanguage_code\030\003 \001("
+ + "\tB\003\340A\001\022@\n\013intent_view\030\004 \001(\0162&.google.clo"
+ + "ud.dialogflow.v2.IntentViewB\003\340A\001\"\342\001\n\023Upd"
+ + "ateIntentRequest\0227\n\006intent\030\001 \001(\0132\".googl"
+ + "e.cloud.dialogflow.v2.IntentB\003\340A\002\022\032\n\rlan"
+ + "guage_code\030\002 \001(\tB\003\340A\001\0224\n\013update_mask\030\003 \001"
+ + "(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022@\n\013i"
+ + "ntent_view\030\004 \001(\0162&.google.cloud.dialogfl"
+ + "ow.v2.IntentViewB\003\340A\001\"M\n\023DeleteIntentReq"
+ + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.g"
+ + "oogleapis.com/Intent\"\334\002\n\031BatchUpdateInte"
+ + "ntsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037dial"
+ + "ogflow.googleapis.com/Agent\022\032\n\020intent_ba"
+ + "tch_uri\030\002 \001(\tH\000\022F\n\023intent_batch_inline\030\003"
+ + " \001(\0132\'.google.cloud.dialogflow.v2.Intent"
+ + "BatchH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\001\0224\n\013u"
+ + "pdate_mask\030\005 \001(\0132\032.google.protobuf.Field"
+ + "MaskB\003\340A\001\022@\n\013intent_view\030\006 \001(\0162&.google."
+ + "cloud.dialogflow.v2.IntentViewB\003\340A\001B\016\n\014i"
+ + "ntent_batch\"Q\n\032BatchUpdateIntentsRespons"
+ + "e\0223\n\007intents\030\001 \003(\0132\".google.cloud.dialog"
+ + "flow.v2.Intent\"\216\001\n\031BatchDeleteIntentsReq"
+ + "uest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow"
+ + ".googleapis.com/Agent\0228\n\007intents\030\002 \003(\0132\""
+ + ".google.cloud.dialogflow.v2.IntentB\003\340A\002\""
+ + "B\n\013IntentBatch\0223\n\007intents\030\001 \003(\0132\".google"
+ + ".cloud.dialogflow.v2.Intent*?\n\nIntentVie"
+ + "w\022\033\n\027INTENT_VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT"
+ + "_VIEW_FULL\020\0012\223\014\n\007Intents\022\275\001\n\013ListIntents"
+ + "\022..google.cloud.dialogflow.v2.ListIntent"
+ + "sRequest\032/.google.cloud.dialogflow.v2.Li"
+ + "stIntentsResponse\"M\202\323\344\223\002\'\022%/v2/{parent=p"
+ + "rojects/*/agent}/intents\332A\006parent\332A\024pare"
+ + "nt,language_code\022\250\001\n\tGetIntent\022,.google."
+ + "cloud.dialogflow.v2.GetIntentRequest\032\".g"
+ + "oogle.cloud.dialogflow.v2.Intent\"I\202\323\344\223\002\'"
+ + "\022%/v2/{name=projects/*/agent/intents/*}\332"
+ + "A\004name\332A\022name,language_code\022\310\001\n\014CreateIn"
+ + "tent\022/.google.cloud.dialogflow.v2.Create"
+ + "IntentRequest\032\".google.cloud.dialogflow."
+ + "v2.Intent\"c\202\323\344\223\002/\"%/v2/{parent=projects/"
+ + "*/agent}/intents:\006intent\332A\rparent,intent"
+ + "\332A\033parent,intent,language_code\022\333\001\n\014Updat"
+ + "eIntent\022/.google.cloud.dialogflow.v2.Upd"
+ + "ateIntentRequest\032\".google.cloud.dialogfl"
+ + "ow.v2.Intent\"v\202\323\344\223\00262,/v2/{intent.name=p"
+ + "rojects/*/agent/intents/*}:\006intent\332A\024int"
+ + "ent,language_code\332A intent,language_code"
+ + ",update_mask\022\215\001\n\014DeleteIntent\022/.google.c"
+ + "loud.dialogflow.v2.DeleteIntentRequest\032\026"
+ + ".google.protobuf.Empty\"4\202\323\344\223\002\'*%/v2/{nam"
+ + "e=projects/*/agent/intents/*}\332A\004name\022\373\001\n"
+ + "\022BatchUpdateIntents\0225.google.cloud.dialo"
+ + "gflow.v2.BatchUpdateIntentsRequest\032\035.goo"
+ + "gle.longrunning.Operation\"\216\001\202\323\344\223\0026\"1/v2/"
+ + "{parent=projects/*/agent}/intents:batchU"
+ + "pdate:\001*\312AO\n5google.cloud.dialogflow.v2."
+ + "BatchUpdateIntentsResponse\022\026google.proto"
+ + "buf.Struct\022\353\001\n\022BatchDeleteIntents\0225.goog"
+ + "le.cloud.dialogflow.v2.BatchDeleteIntent"
+ + "sRequest\032\035.google.longrunning.Operation\""
+ + "\177\202\323\344\223\0026\"1/v2/{parent=projects/*/agent}/i"
+ + "ntents:batchDelete:\001*\332A\016parent,intents\312A"
+ + "/\n\025google.protobuf.Empty\022\026google.protobu"
+ + "f.Struct\032x\312A\031dialogflow.googleapis.com\322A"
+ + "Yhttps://www.googleapis.com/auth/cloud-p"
+ + "latform,https://www.googleapis.com/auth/"
+ + "dialogflowB\232\001\n\036com.google.cloud.dialogfl"
+ + "ow.v2B\013IntentProtoP\001ZDgoogle.golang.org/"
+ + "genproto/googleapis/cloud/dialogflow/v2;"
+ + "dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialog"
+ + "flow.V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -486,6 +584,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"LinkOutSuggestion",
"ListSelect",
"CarouselSelect",
+ "BrowseCarouselCard",
+ "TableCard",
+ "MediaContent",
"Platform",
"Message",
});
@@ -669,6 +770,96 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new java.lang.String[] {
"Key", "Synonyms",
});
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(13);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_descriptor,
+ new java.lang.String[] {
+ "MediaType", "MediaObjects",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_ResponseMediaObject_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_MediaContent_ResponseMediaObject_descriptor,
+ new java.lang.String[] {
+ "Name", "Description", "LargeImage", "Icon", "ContentUrl", "Image",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(14);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_descriptor,
+ new java.lang.String[] {
+ "Items", "ImageDisplayOptions",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor,
+ new java.lang.String[] {
+ "OpenUriAction", "Title", "Description", "Image", "Footer",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor,
+ new java.lang.String[] {
+ "Url", "UrlTypeHint",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCard_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(15);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCard_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCard_descriptor,
+ new java.lang.String[] {
+ "Title", "Subtitle", "Image", "ColumnProperties", "Rows", "Buttons",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_ColumnProperties_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(16);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_ColumnProperties_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_ColumnProperties_descriptor,
+ new java.lang.String[] {
+ "Header", "HorizontalAlignment",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardRow_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(17);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardRow_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardRow_descriptor,
+ new java.lang.String[] {
+ "Cells", "DividerAfter",
+ });
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardCell_descriptor =
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor
+ .getNestedTypes()
+ .get(18);
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardCell_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_Intent_Message_TableCardCell_descriptor,
+ new java.lang.String[] {
+ "Text",
+ });
internal_static_google_cloud_dialogflow_v2_Intent_FollowupIntentInfo_descriptor =
internal_static_google_cloud_dialogflow_v2_Intent_descriptor.getNestedTypes().get(3);
internal_static_google_cloud_dialogflow_v2_Intent_FollowupIntentInfo_fieldAccessorTable =
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java
index d438b2152..a20242034 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java
+++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java
@@ -121,7 +121,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -142,7 +143,8 @@ public java.lang.String getName() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -167,7 +169,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -183,7 +185,7 @@ public int getSsmlGenderValue() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -540,7 +542,8 @@ public Builder mergeFrom(
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -561,7 +564,8 @@ public java.lang.String getName() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -582,7 +586,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -601,7 +606,8 @@ public Builder setName(java.lang.String value) {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -617,7 +623,8 @@ public Builder clearName() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -640,7 +647,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -656,7 +663,7 @@ public int getSsmlGenderValue() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -674,7 +681,7 @@ public Builder setSsmlGenderValue(int value) {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -693,7 +700,7 @@ public com.google.cloud.dialogflow.v2.SsmlVoiceGender getSsmlGender() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -715,7 +722,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.v2.SsmlVoiceGender valu
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java
index 6bb7f0c34..ca28d4643 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java
+++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java
@@ -28,7 +28,8 @@ public interface VoiceSelectionParamsOrBuilder
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -39,7 +40,8 @@ public interface VoiceSelectionParamsOrBuilder
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -52,7 +54,7 @@ public interface VoiceSelectionParamsOrBuilder
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -66,7 +68,7 @@ public interface VoiceSelectionParamsOrBuilder
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
index 9e9023958..340898c1f 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
+++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
@@ -18,6 +18,7 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;
import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
import "google/protobuf/duration.proto";
import "google/api/annotations.proto";
@@ -167,12 +168,13 @@ enum SpeechModelVariant {
// Description of which voice to use for speech synthesis.
message VoiceSelectionParams {
// Optional. The name of the voice. If not set, the service will choose a
- // voice based on the other parameters such as language_code and gender.
+ // voice based on the other parameters such as language_code and
+ // [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
string name = 1;
// Optional. The preferred gender of the voice. If not set, the service will
// choose a voice based on the other parameters such as language_code and
- // name. Note that this is only a preference, not requirement. If a
+ // [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
// voice of the appropriate gender is not available, the synthesizer should
// substitute a voice with a different gender rather than failing the request.
SsmlVoiceGender ssml_gender = 2;
diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto
index a4919dbfb..e4b7a61bb 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto
+++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto
@@ -467,6 +467,189 @@ message Intent {
repeated string synonyms = 2 [(google.api.field_behavior) = OPTIONAL];
}
+ // The media content card for Actions on Google.
+ message MediaContent {
+ // Response media object for media content card.
+ message ResponseMediaObject {
+ // Required. Name of media card.
+ string name = 1;
+
+ // Optional. Description of media card.
+ string description = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Image to show with the media card.
+ oneof image {
+ // Optional. Image to display above media content.
+ Image large_image = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Icon to display above media content.
+ Image icon = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. Url where the media is stored.
+ string content_url = 5;
+ }
+
+ // Format of response media type.
+ enum ResponseMediaType {
+ // Unspecified.
+ RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0;
+
+ // Response media type is audio.
+ AUDIO = 1;
+ }
+
+ // Optional. What type of media is the content (ie "audio").
+ ResponseMediaType media_type = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. List of media objects.
+ repeated ResponseMediaObject media_objects = 2;
+ }
+
+ // Browse Carousel Card for Actions on Google.
+ // https://developers.google.com/actions/assistant/responses#browsing_carousel
+ message BrowseCarouselCard {
+ // Browsing carousel tile
+ message BrowseCarouselCardItem {
+ // Actions on Google action to open a given url.
+ message OpenUrlAction {
+ // Type of the URI.
+ enum UrlTypeHint {
+ // Unspecified
+ URL_TYPE_HINT_UNSPECIFIED = 0;
+
+ // Url would be an amp action
+ AMP_ACTION = 1;
+
+ // URL that points directly to AMP content, or to a canonical URL
+ // which refers to AMP content via .
+ AMP_CONTENT = 2;
+ }
+
+ // Required. URL
+ string url = 1;
+
+ // Optional. Specifies the type of viewer that is used when opening
+ // the URL. Defaults to opening via web browser.
+ UrlTypeHint url_type_hint = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. Action to present to the user.
+ OpenUrlAction open_uri_action = 1;
+
+ // Required. Title of the carousel item. Maximum of two lines of text.
+ string title = 2;
+
+ // Optional. Description of the carousel item. Maximum of four lines of
+ // text.
+ string description = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Hero image for the carousel item.
+ Image image = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Text that appears at the bottom of the Browse Carousel
+ // Card. Maximum of one line of text.
+ string footer = 5 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Image display options for Actions on Google. This should be used for
+ // when the image's aspect ratio does not match the image container's
+ // aspect ratio.
+ enum ImageDisplayOptions {
+ // Fill the gaps between the image and the image container with gray
+ // bars.
+ IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;
+
+ // Fill the gaps between the image and the image container with gray
+ // bars.
+ GRAY = 1;
+
+ // Fill the gaps between the image and the image container with white
+ // bars.
+ WHITE = 2;
+
+ // Image is scaled such that the image width and height match or exceed
+ // the container dimensions. This may crop the top and bottom of the
+ // image if the scaled image height is greater than the container
+ // height, or crop the left and right of the image if the scaled image
+ // width is greater than the container width. This is similar to "Zoom
+ // Mode" on a widescreen TV when playing a 4:3 video.
+ CROPPED = 3;
+
+ // Pad the gaps between image and image frame with a blurred copy of the
+ // same image.
+ BLURRED_BACKGROUND = 4;
+ }
+
+ // Required. List of items in the Browse Carousel Card. Minimum of two
+ // items, maximum of ten.
+ repeated BrowseCarouselCardItem items = 1;
+
+ // Optional. Settings for displaying the image. Applies to every image in
+ // [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items].
+ ImageDisplayOptions image_display_options = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Table card for Actions on Google.
+ message TableCard {
+ // Required. Title of the card.
+ string title = 1;
+
+ // Optional. Subtitle to the title.
+ string subtitle = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Image which should be displayed on the card.
+ Image image = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Display properties for the columns in this table.
+ repeated ColumnProperties column_properties = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Rows in this table of data.
+ repeated TableCardRow rows = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. List of buttons for the card.
+ repeated BasicCard.Button buttons = 6 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Column properties for [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].
+ message ColumnProperties {
+ // Text alignments within a cell.
+ enum HorizontalAlignment {
+ // Text is aligned to the leading edge of the column.
+ HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0;
+
+ // Text is aligned to the leading edge of the column.
+ LEADING = 1;
+
+ // Text is centered in the column.
+ CENTER = 2;
+
+ // Text is aligned to the trailing edge of the column.
+ TRAILING = 3;
+ }
+
+ // Required. Column heading.
+ string header = 1;
+
+ // Optional. Defines text alignment for all cells in this column.
+ HorizontalAlignment horizontal_alignment = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Row of [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].
+ message TableCardRow {
+ // Optional. List of cells that make up this row.
+ repeated TableCardCell cells = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether to add a visual divider after this row.
+ bool divider_after = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Cell of [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow].
+ message TableCardCell {
+ // Required. Text in this cell.
+ string text = 1;
+ }
+
// Represents different platforms that a rich message can be intended for.
enum Platform {
// Not specified.
@@ -596,6 +779,15 @@ message Intent {
// The carousel card response for Actions on Google.
CarouselSelect carousel_select = 12;
+
+ // Browse carousel card for Actions on Google.
+ BrowseCarouselCard browse_carousel_card = 22;
+
+ // Table card for Actions on Google.
+ TableCard table_card = 23;
+
+ // The media content card for Actions on Google.
+ MediaContent media_content = 24;
}
// Optional. The platform that this message is intended for.
diff --git a/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml b/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml
index c4119c156..03c372b14 100644
--- a/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml
+++ b/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml
@@ -3,12 +3,17 @@
7012
- com/google/cloud/dialogflow/**/*OrBuilder
+ com/google/cloud/dialogflow/v2beta1/*OrBuilder
* get*(*)
7012
- com/google/cloud/dialogflow/**/*OrBuilder
- * has*(*)
+ com/google/cloud/dialogflow/v2beta1/*OrBuilder
+ boolean contains*(*)
-
\ No newline at end of file
+
+ 7012
+ com/google/cloud/dialogflow/v2beta1/*OrBuilder
+ boolean has*(*)
+
+
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
index fba8b1d82..879f7076b 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
@@ -62,58 +62,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n2google/cloud/dialogflow/v2beta1/audio_"
+ "config.proto\022\037google.cloud.dialogflow.v2"
- + "beta1\032\037google/api/field_behavior.proto\032\036"
- + "google/protobuf/duration.proto\032\034google/a"
- + "pi/annotations.proto\"/\n\rSpeechContext\022\017\n"
- + "\007phrases\030\001 \003(\t\022\r\n\005boost\030\002 \001(\002\"\222\001\n\016Speech"
- + "WordInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start_offset\030\001"
- + " \001(\0132\031.google.protobuf.Duration\022-\n\nend_o"
- + "ffset\030\002 \001(\0132\031.google.protobuf.Duration\022\022"
- + "\n\nconfidence\030\004 \001(\002\"\372\002\n\020InputAudioConfig\022"
- + "F\n\016audio_encoding\030\001 \001(\0162..google.cloud.d"
- + "ialogflow.v2beta1.AudioEncoding\022\031\n\021sampl"
- + "e_rate_hertz\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001("
- + "\t\022\030\n\020enable_word_info\030\r \001(\010\022\024\n\014phrase_hi"
- + "nts\030\004 \003(\t\022G\n\017speech_contexts\030\013 \003(\0132..goo"
- + "gle.cloud.dialogflow.v2beta1.SpeechConte"
- + "xt\022\r\n\005model\030\007 \001(\t\022J\n\rmodel_variant\030\n \001(\016"
- + "23.google.cloud.dialogflow.v2beta1.Speec"
- + "hModelVariant\022\030\n\020single_utterance\030\010 \001(\010\""
- + "k\n\024VoiceSelectionParams\022\014\n\004name\030\001 \001(\t\022E\n"
- + "\013ssml_gender\030\002 \001(\01620.google.cloud.dialog"
- + "flow.v2beta1.SsmlVoiceGender\"\270\001\n\026Synthes"
- + "izeSpeechConfig\022\025\n\rspeaking_rate\030\001 \001(\001\022\r"
- + "\n\005pitch\030\002 \001(\001\022\026\n\016volume_gain_db\030\003 \001(\001\022\032\n"
- + "\022effects_profile_id\030\005 \003(\t\022D\n\005voice\030\004 \001(\013"
- + "25.google.cloud.dialogflow.v2beta1.Voice"
- + "SelectionParams\"\327\001\n\021OutputAudioConfig\022L\n"
- + "\016audio_encoding\030\001 \001(\01624.google.cloud.dia"
- + "logflow.v2beta1.OutputAudioEncoding\022\031\n\021s"
- + "ample_rate_hertz\030\002 \001(\005\022Y\n\030synthesize_spe"
- + "ech_config\030\003 \001(\01327.google.cloud.dialogfl"
- + "ow.v2beta1.SynthesizeSpeechConfig*\373\001\n\rAu"
- + "dioEncoding\022\036\n\032AUDIO_ENCODING_UNSPECIFIE"
- + "D\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n\023AUD"
- + "IO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MUL"
- + "AW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDIO_EN"
- + "CODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_OP"
- + "US\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER"
- + "_BYTE\020\007*v\n\022SpeechModelVariant\022$\n SPEECH_"
- + "MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n\022USE_BEST_"
- + "AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014USE_ENH"
- + "ANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SSML_VOIC"
- + "E_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML_VOICE_GEN"
- + "DER_MALE\020\001\022\034\n\030SSML_VOICE_GENDER_FEMALE\020\002"
- + "\022\035\n\031SSML_VOICE_GENDER_NEUTRAL\020\003*\244\001\n\023Outp"
- + "utAudioEncoding\022%\n!OUTPUT_AUDIO_ENCODING"
- + "_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_ENCODING_"
- + "LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODING_MP3"
- + "\020\002\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003B\256"
- + "\001\n#com.google.cloud.dialogflow.v2beta1B\020"
- + "AudioConfigProtoP\001ZIgoogle.golang.org/ge"
- + "nproto/googleapis/cloud/dialogflow/v2bet"
- + "a1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dia"
- + "logflow.V2beta1b\006proto3"
+ + "beta1\032\037google/api/field_behavior.proto\032\031"
+ + "google/api/resource.proto\032\036google/protob"
+ + "uf/duration.proto\032\034google/api/annotation"
+ + "s.proto\"/\n\rSpeechContext\022\017\n\007phrases\030\001 \003("
+ + "\t\022\r\n\005boost\030\002 \001(\002\"\222\001\n\016SpeechWordInfo\022\014\n\004w"
+ + "ord\030\003 \001(\t\022/\n\014start_offset\030\001 \001(\0132\031.google"
+ + ".protobuf.Duration\022-\n\nend_offset\030\002 \001(\0132\031"
+ + ".google.protobuf.Duration\022\022\n\nconfidence\030"
+ + "\004 \001(\002\"\372\002\n\020InputAudioConfig\022F\n\016audio_enco"
+ + "ding\030\001 \001(\0162..google.cloud.dialogflow.v2b"
+ + "eta1.AudioEncoding\022\031\n\021sample_rate_hertz\030"
+ + "\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\030\n\020enable_w"
+ + "ord_info\030\r \001(\010\022\024\n\014phrase_hints\030\004 \003(\t\022G\n\017"
+ + "speech_contexts\030\013 \003(\0132..google.cloud.dia"
+ + "logflow.v2beta1.SpeechContext\022\r\n\005model\030\007"
+ + " \001(\t\022J\n\rmodel_variant\030\n \001(\01623.google.clo"
+ + "ud.dialogflow.v2beta1.SpeechModelVariant"
+ + "\022\030\n\020single_utterance\030\010 \001(\010\"k\n\024VoiceSelec"
+ + "tionParams\022\014\n\004name\030\001 \001(\t\022E\n\013ssml_gender\030"
+ + "\002 \001(\01620.google.cloud.dialogflow.v2beta1."
+ + "SsmlVoiceGender\"\270\001\n\026SynthesizeSpeechConf"
+ + "ig\022\025\n\rspeaking_rate\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001"
+ + "\022\026\n\016volume_gain_db\030\003 \001(\001\022\032\n\022effects_prof"
+ + "ile_id\030\005 \003(\t\022D\n\005voice\030\004 \001(\01325.google.clo"
+ + "ud.dialogflow.v2beta1.VoiceSelectionPara"
+ + "ms\"\327\001\n\021OutputAudioConfig\022L\n\016audio_encodi"
+ + "ng\030\001 \001(\01624.google.cloud.dialogflow.v2bet"
+ + "a1.OutputAudioEncoding\022\031\n\021sample_rate_he"
+ + "rtz\030\002 \001(\005\022Y\n\030synthesize_speech_config\030\003 "
+ + "\001(\01327.google.cloud.dialogflow.v2beta1.Sy"
+ + "nthesizeSpeechConfig*\373\001\n\rAudioEncoding\022\036"
+ + "\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\034\n\030AUDIO_"
+ + "ENCODING_LINEAR_16\020\001\022\027\n\023AUDIO_ENCODING_F"
+ + "LAC\020\002\022\030\n\024AUDIO_ENCODING_MULAW\020\003\022\026\n\022AUDIO"
+ + "_ENCODING_AMR\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB"
+ + "\020\005\022\033\n\027AUDIO_ENCODING_OGG_OPUS\020\006\022)\n%AUDIO"
+ + "_ENCODING_SPEEX_WITH_HEADER_BYTE\020\007*v\n\022Sp"
+ + "eechModelVariant\022$\n SPEECH_MODEL_VARIANT"
+ + "_UNSPECIFIED\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001\022\020"
+ + "\n\014USE_STANDARD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n\017S"
+ + "smlVoiceGender\022!\n\035SSML_VOICE_GENDER_UNSP"
+ + "ECIFIED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n"
+ + "\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOIC"
+ + "E_GENDER_NEUTRAL\020\003*\244\001\n\023OutputAudioEncodi"
+ + "ng\022%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020"
+ + "\000\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035"
+ + "\n\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022\"\n\036OUTPUT_"
+ + "AUDIO_ENCODING_OGG_OPUS\020\003B\256\001\n#com.google"
+ + ".cloud.dialogflow.v2beta1B\020AudioConfigPr"
+ + "otoP\001ZIgoogle.golang.org/genproto/google"
+ + "apis/cloud/dialogflow/v2beta1;dialogflow"
+ + "\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2bet"
+ + "a1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -127,6 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
},
@@ -188,6 +190,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"AudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfig",
});
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
}
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java
index 819e484fb..149506546 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java
@@ -161,6 +161,23 @@ private QueryParameters(
knowledgeBaseNames_.add(s);
break;
}
+ case 114:
+ {
+ if (!((mutable_bitField0_ & 0x00000100) != 0)) {
+ webhookHeaders_ =
+ com.google.protobuf.MapField.newMapField(
+ WebhookHeadersDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000100;
+ }
+ com.google.protobuf.MapEntry webhookHeaders__ =
+ input.readMessage(
+ WebhookHeadersDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ webhookHeaders_
+ .getMutableMap()
+ .put(webhookHeaders__.getKey(), webhookHeaders__.getValue());
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -194,6 +211,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 14:
+ return internalGetWebhookHeaders();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -619,6 +647,130 @@ public boolean hasSentimentAnalysisRequestConfig() {
return getSentimentAnalysisRequestConfig();
}
+ public static final int WEBHOOK_HEADERS_FIELD_NUMBER = 14;
+
+ private static final class WebhookHeadersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry =
+ com.google.protobuf.MapEntry.newDefaultInstance(
+ com.google.cloud.dialogflow.v2beta1.SessionProto
+ .internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_WebhookHeadersEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "");
+ }
+
+ private com.google.protobuf.MapField webhookHeaders_;
+
+ private com.google.protobuf.MapField
+ internalGetWebhookHeaders() {
+ if (webhookHeaders_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ WebhookHeadersDefaultEntryHolder.defaultEntry);
+ }
+ return webhookHeaders_;
+ }
+
+ public int getWebhookHeadersCount() {
+ return internalGetWebhookHeaders().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public boolean containsWebhookHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetWebhookHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getWebhookHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getWebhookHeaders() {
+ return getWebhookHeadersMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public java.util.Map getWebhookHeadersMap() {
+ return internalGetWebhookHeaders().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public java.lang.String getWebhookHeadersOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetWebhookHeaders().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetWebhookHeaders().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -657,6 +809,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < knowledgeBaseNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, knowledgeBaseNames_.getRaw(i));
}
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetWebhookHeaders(), WebhookHeadersDefaultEntryHolder.defaultEntry, 14);
unknownFields.writeTo(output);
}
@@ -698,6 +852,16 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getKnowledgeBaseNamesList().size();
}
+ for (java.util.Map.Entry entry :
+ internalGetWebhookHeaders().getMap().entrySet()) {
+ com.google.protobuf.MapEntry webhookHeaders__ =
+ WebhookHeadersDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, webhookHeaders__);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -733,6 +897,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSentimentAnalysisRequestConfig().equals(other.getSentimentAnalysisRequestConfig()))
return false;
}
+ if (!internalGetWebhookHeaders().equals(other.internalGetWebhookHeaders())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -772,6 +937,10 @@ public int hashCode() {
hash = (37 * hash) + SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSentimentAnalysisRequestConfig().hashCode();
}
+ if (!internalGetWebhookHeaders().getMap().isEmpty()) {
+ hash = (37 * hash) + WEBHOOK_HEADERS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetWebhookHeaders().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -890,6 +1059,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 14:
+ return internalGetWebhookHeaders();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 14:
+ return internalGetMutableWebhookHeaders();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -956,6 +1145,7 @@ public Builder clear() {
sentimentAnalysisRequestConfig_ = null;
sentimentAnalysisRequestConfigBuilder_ = null;
}
+ internalGetMutableWebhookHeaders().clear();
return this;
}
@@ -1025,6 +1215,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryParameters buildPartial() {
} else {
result.sentimentAnalysisRequestConfig_ = sentimentAnalysisRequestConfigBuilder_.build();
}
+ result.webhookHeaders_ = internalGetWebhookHeaders();
+ result.webhookHeaders_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -1156,6 +1348,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.QueryParameters oth
if (other.hasSentimentAnalysisRequestConfig()) {
mergeSentimentAnalysisRequestConfig(other.getSentimentAnalysisRequestConfig());
}
+ internalGetMutableWebhookHeaders().mergeFrom(other.internalGetWebhookHeaders());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -2885,6 +3078,210 @@ public Builder clearSentimentAnalysisRequestConfig() {
return sentimentAnalysisRequestConfigBuilder_;
}
+ private com.google.protobuf.MapField webhookHeaders_;
+
+ private com.google.protobuf.MapField
+ internalGetWebhookHeaders() {
+ if (webhookHeaders_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ WebhookHeadersDefaultEntryHolder.defaultEntry);
+ }
+ return webhookHeaders_;
+ }
+
+ private com.google.protobuf.MapField
+ internalGetMutableWebhookHeaders() {
+ onChanged();
+ ;
+ if (webhookHeaders_ == null) {
+ webhookHeaders_ =
+ com.google.protobuf.MapField.newMapField(WebhookHeadersDefaultEntryHolder.defaultEntry);
+ }
+ if (!webhookHeaders_.isMutable()) {
+ webhookHeaders_ = webhookHeaders_.copy();
+ }
+ return webhookHeaders_;
+ }
+
+ public int getWebhookHeadersCount() {
+ return internalGetWebhookHeaders().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public boolean containsWebhookHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetWebhookHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getWebhookHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getWebhookHeaders() {
+ return getWebhookHeadersMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public java.util.Map getWebhookHeadersMap() {
+ return internalGetWebhookHeaders().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public java.lang.String getWebhookHeadersOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetWebhookHeaders().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetWebhookHeaders().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearWebhookHeaders() {
+ internalGetMutableWebhookHeaders().getMutableMap().clear();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public Builder removeWebhookHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableWebhookHeaders().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableWebhookHeaders() {
+ return internalGetMutableWebhookHeaders().getMutableMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableWebhookHeaders().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ public Builder putAllWebhookHeaders(java.util.Map values) {
+ internalGetMutableWebhookHeaders().getMutableMap().putAll(values);
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java
index d0a91d971..e9224d385 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java
@@ -348,4 +348,93 @@ com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSessionEntityT
*/
com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfigOrBuilder
getSentimentAnalysisRequestConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ int getWebhookHeadersCount();
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ boolean containsWebhookHeaders(java.lang.String key);
+ /** Use {@link #getWebhookHeadersMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map getWebhookHeaders();
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ java.util.Map getWebhookHeadersMap();
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ java.lang.String getWebhookHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ *
+ * Optional. This field can be used to pass HTTP headers for a webhook
+ * call. These headers will be sent to webhook alone with the headers that
+ * have been configured through Dialogflow web console. The headers defined
+ * within this field will overwrite the headers configured through Dialogflow
+ * console if there is a conflict. Header names are case-insensitive.
+ * Google's specified headers are not allowed. Including: "Host",
+ * "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ * "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ *
+ *
+ * map<string, string> webhook_headers = 14;
+ */
+ java.lang.String getWebhookHeadersOrThrow(java.lang.String key);
}
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java
index 0cacba3d2..3eee33f25 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java
@@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_WebhookHeadersEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_WebhookHeadersEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dialogflow_v2beta1_QueryInput_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -126,7 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "hook_status\030\003 \001(\0132\022.google.rpc.Status\022\024\n"
+ "\014output_audio\030\004 \001(\014\022O\n\023output_audio_conf"
+ "ig\030\006 \001(\01322.google.cloud.dialogflow.v2bet"
- + "a1.OutputAudioConfig\"\251\003\n\017QueryParameters"
+ + "a1.OutputAudioConfig\"\277\004\n\017QueryParameters"
+ "\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030\002 \001("
+ "\0132\023.google.type.LatLng\022:\n\010contexts\030\003 \003(\013"
+ "2(.google.cloud.dialogflow.v2beta1.Conte"
@@ -137,104 +141,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "dge_base_names\030\014 \003(\t\022j\n!sentiment_analys"
+ "is_request_config\030\n \001(\0132?.google.cloud.d"
+ "ialogflow.v2beta1.SentimentAnalysisReque"
- + "stConfig\"\332\001\n\nQueryInput\022I\n\014audio_config\030"
- + "\001 \001(\01321.google.cloud.dialogflow.v2beta1."
- + "InputAudioConfigH\000\022:\n\004text\030\002 \001(\0132*.googl"
- + "e.cloud.dialogflow.v2beta1.TextInputH\000\022<"
- + "\n\005event\030\003 \001(\0132+.google.cloud.dialogflow."
- + "v2beta1.EventInputH\000B\007\n\005input\"\362\005\n\013QueryR"
- + "esult\022\022\n\nquery_text\030\001 \001(\t\022\025\n\rlanguage_co"
- + "de\030\017 \001(\t\022%\n\035speech_recognition_confidenc"
- + "e\030\002 \001(\002\022\016\n\006action\030\003 \001(\t\022+\n\nparameters\030\004 "
- + "\001(\0132\027.google.protobuf.Struct\022#\n\033all_requ"
- + "ired_params_present\030\005 \001(\010\022\030\n\020fulfillment"
- + "_text\030\006 \001(\t\022M\n\024fulfillment_messages\030\007 \003("
- + "\0132/.google.cloud.dialogflow.v2beta1.Inte"
- + "nt.Message\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017we"
- + "bhook_payload\030\t \001(\0132\027.google.protobuf.St"
- + "ruct\022A\n\017output_contexts\030\n \003(\0132(.google.c"
- + "loud.dialogflow.v2beta1.Context\0227\n\006inten"
- + "t\030\013 \001(\0132\'.google.cloud.dialogflow.v2beta"
- + "1.Intent\022#\n\033intent_detection_confidence\030"
- + "\014 \001(\002\0220\n\017diagnostic_info\030\016 \001(\0132\027.google."
- + "protobuf.Struct\022[\n\031sentiment_analysis_re"
- + "sult\030\021 \001(\01328.google.cloud.dialogflow.v2b"
- + "eta1.SentimentAnalysisResult\022L\n\021knowledg"
- + "e_answers\030\022 \001(\01321.google.cloud.dialogflo"
- + "w.v2beta1.KnowledgeAnswers\"\257\003\n\020Knowledge"
- + "Answers\022I\n\007answers\030\001 \003(\01328.google.cloud."
- + "dialogflow.v2beta1.KnowledgeAnswers.Answ"
- + "er\032\317\002\n\006Answer\0227\n\006source\030\001 \001(\tB\'\372A$\n\"dial"
- + "ogflow.googleapis.com/Document\022\024\n\014faq_qu"
- + "estion\030\002 \001(\t\022\016\n\006answer\030\003 \001(\t\022m\n\026match_co"
- + "nfidence_level\030\004 \001(\0162M.google.cloud.dial"
- + "ogflow.v2beta1.KnowledgeAnswers.Answer.M"
- + "atchConfidenceLevel\022\030\n\020match_confidence\030"
- + "\005 \001(\002\"]\n\024MatchConfidenceLevel\022&\n\"MATCH_C"
- + "ONFIDENCE_LEVEL_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n"
- + "\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003\"\271\002\n\034StreamingDetect"
- + "IntentRequest\022\017\n\007session\030\001 \001(\t\022F\n\014query_"
- + "params\030\002 \001(\01320.google.cloud.dialogflow.v"
- + "2beta1.QueryParameters\022@\n\013query_input\030\003 "
- + "\001(\0132+.google.cloud.dialogflow.v2beta1.Qu"
- + "eryInput\022\030\n\020single_utterance\030\004 \001(\010\022O\n\023ou"
- + "tput_audio_config\030\005 \001(\01322.google.cloud.d"
- + "ialogflow.v2beta1.OutputAudioConfig\022\023\n\013i"
- + "nput_audio\030\006 \001(\014\"\265\003\n\035StreamingDetectInte"
- + "ntResponse\022\023\n\013response_id\030\001 \001(\t\022W\n\022recog"
- + "nition_result\030\002 \001(\0132;.google.cloud.dialo"
+ + "stConfig\022]\n\017webhook_headers\030\016 \003(\0132D.goog"
+ + "le.cloud.dialogflow.v2beta1.QueryParamet"
+ + "ers.WebhookHeadersEntry\0325\n\023WebhookHeader"
+ + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\332"
+ + "\001\n\nQueryInput\022I\n\014audio_config\030\001 \001(\01321.go"
+ + "ogle.cloud.dialogflow.v2beta1.InputAudio"
+ + "ConfigH\000\022:\n\004text\030\002 \001(\0132*.google.cloud.di"
+ + "alogflow.v2beta1.TextInputH\000\022<\n\005event\030\003 "
+ + "\001(\0132+.google.cloud.dialogflow.v2beta1.Ev"
+ + "entInputH\000B\007\n\005input\"\362\005\n\013QueryResult\022\022\n\nq"
+ + "uery_text\030\001 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\022%"
+ + "\n\035speech_recognition_confidence\030\002 \001(\002\022\016\n"
+ + "\006action\030\003 \001(\t\022+\n\nparameters\030\004 \001(\0132\027.goog"
+ + "le.protobuf.Struct\022#\n\033all_required_param"
+ + "s_present\030\005 \001(\010\022\030\n\020fulfillment_text\030\006 \001("
+ + "\t\022M\n\024fulfillment_messages\030\007 \003(\0132/.google"
+ + ".cloud.dialogflow.v2beta1.Intent.Message"
+ + "\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017webhook_payl"
+ + "oad\030\t \001(\0132\027.google.protobuf.Struct\022A\n\017ou"
+ + "tput_contexts\030\n \003(\0132(.google.cloud.dialo"
+ + "gflow.v2beta1.Context\0227\n\006intent\030\013 \001(\0132\'."
+ + "google.cloud.dialogflow.v2beta1.Intent\022#"
+ + "\n\033intent_detection_confidence\030\014 \001(\002\0220\n\017d"
+ + "iagnostic_info\030\016 \001(\0132\027.google.protobuf.S"
+ + "truct\022[\n\031sentiment_analysis_result\030\021 \001(\013"
+ + "28.google.cloud.dialogflow.v2beta1.Senti"
+ + "mentAnalysisResult\022L\n\021knowledge_answers\030"
+ + "\022 \001(\01321.google.cloud.dialogflow.v2beta1."
+ + "KnowledgeAnswers\"\257\003\n\020KnowledgeAnswers\022I\n"
+ + "\007answers\030\001 \003(\01328.google.cloud.dialogflow"
+ + ".v2beta1.KnowledgeAnswers.Answer\032\317\002\n\006Ans"
+ + "wer\0227\n\006source\030\001 \001(\tB\'\372A$\n\"dialogflow.goo"
+ + "gleapis.com/Document\022\024\n\014faq_question\030\002 \001"
+ + "(\t\022\016\n\006answer\030\003 \001(\t\022m\n\026match_confidence_l"
+ + "evel\030\004 \001(\0162M.google.cloud.dialogflow.v2b"
+ + "eta1.KnowledgeAnswers.Answer.MatchConfid"
+ + "enceLevel\022\030\n\020match_confidence\030\005 \001(\002\"]\n\024M"
+ + "atchConfidenceLevel\022&\n\"MATCH_CONFIDENCE_"
+ + "LEVEL_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002"
+ + "\022\010\n\004HIGH\020\003\"\271\002\n\034StreamingDetectIntentRequ"
+ + "est\022\017\n\007session\030\001 \001(\t\022F\n\014query_params\030\002 \001"
+ + "(\01320.google.cloud.dialogflow.v2beta1.Que"
+ + "ryParameters\022@\n\013query_input\030\003 \001(\0132+.goog"
+ + "le.cloud.dialogflow.v2beta1.QueryInput\022\030"
+ + "\n\020single_utterance\030\004 \001(\010\022O\n\023output_audio"
+ + "_config\030\005 \001(\01322.google.cloud.dialogflow."
+ + "v2beta1.OutputAudioConfig\022\023\n\013input_audio"
+ + "\030\006 \001(\014\"\265\003\n\035StreamingDetectIntentResponse"
+ + "\022\023\n\013response_id\030\001 \001(\t\022W\n\022recognition_res"
+ + "ult\030\002 \001(\0132;.google.cloud.dialogflow.v2be"
+ + "ta1.StreamingRecognitionResult\022B\n\014query_"
+ + "result\030\003 \001(\0132,.google.cloud.dialogflow.v"
+ + "2beta1.QueryResult\022O\n\031alternative_query_"
+ + "results\030\007 \003(\0132,.google.cloud.dialogflow."
+ + "v2beta1.QueryResult\022*\n\016webhook_status\030\004 "
+ + "\001(\0132\022.google.rpc.Status\022\024\n\014output_audio\030"
+ + "\005 \001(\014\022O\n\023output_audio_config\030\006 \001(\01322.goo"
+ + "gle.cloud.dialogflow.v2beta1.OutputAudio"
+ + "Config\"\243\003\n\032StreamingRecognitionResult\022]\n"
+ + "\014message_type\030\001 \001(\0162G.google.cloud.dialo"
+ "gflow.v2beta1.StreamingRecognitionResult"
- + "\022B\n\014query_result\030\003 \001(\0132,.google.cloud.di"
- + "alogflow.v2beta1.QueryResult\022O\n\031alternat"
- + "ive_query_results\030\007 \003(\0132,.google.cloud.d"
- + "ialogflow.v2beta1.QueryResult\022*\n\016webhook"
- + "_status\030\004 \001(\0132\022.google.rpc.Status\022\024\n\014out"
- + "put_audio\030\005 \001(\014\022O\n\023output_audio_config\030\006"
- + " \001(\01322.google.cloud.dialogflow.v2beta1.O"
- + "utputAudioConfig\"\243\003\n\032StreamingRecognitio"
- + "nResult\022]\n\014message_type\030\001 \001(\0162G.google.c"
- + "loud.dialogflow.v2beta1.StreamingRecogni"
- + "tionResult.MessageType\022\022\n\ntranscript\030\002 \001"
- + "(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002"
- + "\022\021\n\tstability\030\006 \001(\002\022I\n\020speech_word_info\030"
- + "\007 \003(\0132/.google.cloud.dialogflow.v2beta1."
- + "SpeechWordInfo\0224\n\021speech_end_offset\030\010 \001("
- + "\0132\031.google.protobuf.Duration\"X\n\013MessageT"
- + "ype\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRA"
- + "NSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\"0"
- + "\n\tTextInput\022\014\n\004text\030\001 \001(\t\022\025\n\rlanguage_co"
- + "de\030\002 \001(\t\"^\n\nEventInput\022\014\n\004name\030\001 \001(\t\022+\n\n"
- + "parameters\030\002 \001(\0132\027.google.protobuf.Struc"
- + "t\022\025\n\rlanguage_code\030\003 \001(\t\"F\n\036SentimentAna"
- + "lysisRequestConfig\022$\n\034analyze_query_text"
- + "_sentiment\030\001 \001(\010\"c\n\027SentimentAnalysisRes"
- + "ult\022H\n\024query_text_sentiment\030\001 \001(\0132*.goog"
- + "le.cloud.dialogflow.v2beta1.Sentiment\"-\n"
- + "\tSentiment\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002"
- + " \001(\0022\367\005\n\010Sessions\022\321\003\n\014DetectIntent\0224.goo"
- + "gle.cloud.dialogflow.v2beta1.DetectInten"
- + "tRequest\0325.google.cloud.dialogflow.v2bet"
- + "a1.DetectIntentResponse\"\323\002\202\323\344\223\002\314\002\";/v2be"
- + "ta1/{session=projects/*/agent/sessions/*"
- + "}:detectIntent:\001*ZW\"R/v2beta1/{session=p"
- + "rojects/*/agent/environments/*/users/*/s"
- + "essions/*}:detectIntent:\001*ZL\"G/v2beta1/{"
- + "session=projects/*/locations/*/agent/ses"
- + "sions/*}:detectIntent:\001*Zc\"^/v2beta1/{se"
- + "ssion=projects/*/locations/*/agent/envir"
- + "onments/*/users/*/sessions/*}:detectInte"
- + "nt:\001*\022\234\001\n\025StreamingDetectIntent\022=.google"
- + ".cloud.dialogflow.v2beta1.StreamingDetec"
- + "tIntentRequest\032>.google.cloud.dialogflow"
- + ".v2beta1.StreamingDetectIntentResponse\"\000"
- + "(\0010\001\032x\312A\031dialogflow.googleapis.com\322AYhtt"
- + "ps://www.googleapis.com/auth/cloud-platf"
- + "orm,https://www.googleapis.com/auth/dial"
- + "ogflowB\252\001\n#com.google.cloud.dialogflow.v"
- + "2beta1B\014SessionProtoP\001ZIgoogle.golang.or"
- + "g/genproto/googleapis/cloud/dialogflow/v"
- + "2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud"
- + ".Dialogflow.V2beta1b\006proto3"
+ + ".MessageType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010is_f"
+ + "inal\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\022\021\n\tstabil"
+ + "ity\030\006 \001(\002\022I\n\020speech_word_info\030\007 \003(\0132/.go"
+ + "ogle.cloud.dialogflow.v2beta1.SpeechWord"
+ + "Info\0224\n\021speech_end_offset\030\010 \001(\0132\031.google"
+ + ".protobuf.Duration\"X\n\013MessageType\022\034\n\030MES"
+ + "SAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022"
+ + "\033\n\027END_OF_SINGLE_UTTERANCE\020\002\"0\n\tTextInpu"
+ + "t\022\014\n\004text\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"^"
+ + "\n\nEventInput\022\014\n\004name\030\001 \001(\t\022+\n\nparameters"
+ + "\030\002 \001(\0132\027.google.protobuf.Struct\022\025\n\rlangu"
+ + "age_code\030\003 \001(\t\"F\n\036SentimentAnalysisReque"
+ + "stConfig\022$\n\034analyze_query_text_sentiment"
+ + "\030\001 \001(\010\"c\n\027SentimentAnalysisResult\022H\n\024que"
+ + "ry_text_sentiment\030\001 \001(\0132*.google.cloud.d"
+ + "ialogflow.v2beta1.Sentiment\"-\n\tSentiment"
+ + "\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\367\005\n\010S"
+ + "essions\022\321\003\n\014DetectIntent\0224.google.cloud."
+ + "dialogflow.v2beta1.DetectIntentRequest\0325"
+ + ".google.cloud.dialogflow.v2beta1.DetectI"
+ + "ntentResponse\"\323\002\202\323\344\223\002\314\002\";/v2beta1/{sessi"
+ + "on=projects/*/agent/sessions/*}:detectIn"
+ + "tent:\001*ZW\"R/v2beta1/{session=projects/*/"
+ + "agent/environments/*/users/*/sessions/*}"
+ + ":detectIntent:\001*ZL\"G/v2beta1/{session=pr"
+ + "ojects/*/locations/*/agent/sessions/*}:d"
+ + "etectIntent:\001*Zc\"^/v2beta1/{session=proj"
+ + "ects/*/locations/*/agent/environments/*/"
+ + "users/*/sessions/*}:detectIntent:\001*\022\234\001\n\025"
+ + "StreamingDetectIntent\022=.google.cloud.dia"
+ + "logflow.v2beta1.StreamingDetectIntentReq"
+ + "uest\032>.google.cloud.dialogflow.v2beta1.S"
+ + "treamingDetectIntentResponse\"\000(\0010\001\032x\312A\031d"
+ + "ialogflow.googleapis.com\322AYhttps://www.g"
+ + "oogleapis.com/auth/cloud-platform,https:"
+ + "//www.googleapis.com/auth/dialogflowB\252\001\n"
+ + "#com.google.cloud.dialogflow.v2beta1B\014Se"
+ + "ssionProtoP\001ZIgoogle.golang.org/genproto"
+ + "/googleapis/cloud/dialogflow/v2beta1;dia"
+ + "logflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflo"
+ + "w.V2beta1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -297,6 +305,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Payload",
"KnowledgeBaseNames",
"SentimentAnalysisRequestConfig",
+ "WebhookHeaders",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_WebhookHeadersEntry_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_WebhookHeadersEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_WebhookHeadersEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
});
internal_static_google_cloud_dialogflow_v2beta1_QueryInput_descriptor =
getDescriptor().getMessageTypes().get(3);
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java
index 616ff3fa7..cd979bb7c 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java
@@ -121,7 +121,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -142,7 +143,8 @@ public java.lang.String getName() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -167,7 +169,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -183,7 +185,7 @@ public int getSsmlGenderValue() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -543,7 +545,8 @@ public Builder mergeFrom(
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -564,7 +567,8 @@ public java.lang.String getName() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -585,7 +589,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -604,7 +609,8 @@ public Builder setName(java.lang.String value) {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -620,7 +626,8 @@ public Builder clearName() {
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -643,7 +650,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -659,7 +666,7 @@ public int getSsmlGenderValue() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -677,7 +684,7 @@ public Builder setSsmlGenderValue(int value) {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -698,7 +705,7 @@ public com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender getSsmlGender() {
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -720,7 +727,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java
index ecb782d92..fc0c43218 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java
@@ -28,7 +28,8 @@ public interface VoiceSelectionParamsOrBuilder
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -39,7 +40,8 @@ public interface VoiceSelectionParamsOrBuilder
*
*
* Optional. The name of the voice. If not set, the service will choose a
- * voice based on the other parameters such as language_code and gender.
+ * voice based on the other parameters such as language_code and
+ * [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
*
*
* string name = 1;
@@ -52,7 +54,7 @@ public interface VoiceSelectionParamsOrBuilder
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
@@ -66,7 +68,7 @@ public interface VoiceSelectionParamsOrBuilder
*
* Optional. The preferred gender of the voice. If not set, the service will
* choose a voice based on the other parameters such as language_code and
- * name. Note that this is only a preference, not requirement. If a
+ * [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
* voice of the appropriate gender is not available, the synthesizer should
* substitute a voice with a different gender rather than failing the request.
*
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto
index df33c8d89..d81a97681 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto
@@ -18,6 +18,7 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;
import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
import "google/protobuf/duration.proto";
import "google/api/annotations.proto";
@@ -263,12 +264,13 @@ enum SsmlVoiceGender {
// Description of which voice to use for speech synthesis.
message VoiceSelectionParams {
// Optional. The name of the voice. If not set, the service will choose a
- // voice based on the other parameters such as language_code and gender.
+ // voice based on the other parameters such as language_code and
+ // [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender].
string name = 1;
// Optional. The preferred gender of the voice. If not set, the service will
// choose a voice based on the other parameters such as language_code and
- // name. Note that this is only a preference, not requirement. If a
+ // [name][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
// voice of the appropriate gender is not available, the synthesizer should
// substitute a voice with a different gender rather than failing the request.
SsmlVoiceGender ssml_gender = 2;
diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto
index 3acc26072..0896ed09a 100644
--- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto
+++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto
@@ -191,6 +191,16 @@ message QueryParameters {
// Note: Sentiment Analysis is only currently available for Enterprise Edition
// agents.
SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+
+ // Optional. This field can be used to pass HTTP headers for a webhook
+ // call. These headers will be sent to webhook alone with the headers that
+ // have been configured through Dialogflow web console. The headers defined
+ // within this field will overwrite the headers configured through Dialogflow
+ // console if there is a conflict. Header names are case-insensitive.
+ // Google's specified headers are not allowed. Including: "Host",
+ // "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
+ // "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
+ map webhook_headers = 14;
}
// Represents the query input. It can contain either:
diff --git a/synth.metadata b/synth.metadata
index 8cf5dcab7..fa0f57af8 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,19 +1,19 @@
{
- "updateTime": "2019-11-02T07:46:14.753909Z",
+ "updateTime": "2019-11-11T21:15:41.552703Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.41.0",
- "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9"
+ "version": "0.41.1",
+ "dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "aac770126e2def40dcc387f50e8007b21c869e58",
- "internalRef": "278016738"
+ "sha": "f69562be0608904932bdcfbc5ad8b9a22d9dceb8",
+ "internalRef": "279774957"
}
},
{