com.google.apps.card.v1.Suggestions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-common-protos Show documentation
Show all versions of proto-google-common-protos Show documentation
PROTO library for proto-google-common-protos
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/apps/card/v1/card.proto
// Protobuf Java Version: 3.25.5
package com.google.apps.card.v1;
/**
*
*
*
* Suggested values that users can enter. These values appear when users click
* inside the text input field. As users type, the suggested values
* dynamically filter to match what the users have typed.
*
* For example, a text input field for programming language might suggest
* Java, JavaScript, Python, and C++. When users start typing `Jav`, the list
* of suggestions filters to show `Java` and `JavaScript`.
*
* Suggested values help guide users to enter values that your app can make
* sense of. When referring to JavaScript, some users might enter `javascript`
* and others `java script`. Suggesting `JavaScript` can standardize how users
* interact with your app.
*
* When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set
* to `MULTIPLE_LINE`.
*
* [Google Workspace
* Add-ons and Chat apps](https://developers.google.com/workspace/extend):
*
*
* Protobuf type {@code google.apps.card.v1.Suggestions}
*/
public final class Suggestions extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.apps.card.v1.Suggestions)
SuggestionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Suggestions.newBuilder() to construct.
private Suggestions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Suggestions() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Suggestions();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apps.card.v1.Suggestions.class,
com.google.apps.card.v1.Suggestions.Builder.class);
}
public interface SuggestionItemOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.apps.card.v1.Suggestions.SuggestionItem)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return Whether the text field is set.
*/
boolean hasText();
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return The text.
*/
java.lang.String getText();
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return The bytes for text.
*/
com.google.protobuf.ByteString getTextBytes();
com.google.apps.card.v1.Suggestions.SuggestionItem.ContentCase getContentCase();
}
/**
*
*
*
* One suggested value that users can enter in a text input field.
*
* [Google Workspace Add-ons and Chat
* apps](https://developers.google.com/workspace/extend):
*
*
* Protobuf type {@code google.apps.card.v1.Suggestions.SuggestionItem}
*/
public static final class SuggestionItem extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.apps.card.v1.Suggestions.SuggestionItem)
SuggestionItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use SuggestionItem.newBuilder() to construct.
private SuggestionItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SuggestionItem() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SuggestionItem();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_SuggestionItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_SuggestionItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apps.card.v1.Suggestions.SuggestionItem.class,
com.google.apps.card.v1.Suggestions.SuggestionItem.Builder.class);
}
private int contentCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object content_;
public enum ContentCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TEXT(1),
CONTENT_NOT_SET(0);
private final int value;
private ContentCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContentCase valueOf(int value) {
return forNumber(value);
}
public static ContentCase forNumber(int value) {
switch (value) {
case 1:
return TEXT;
case 0:
return CONTENT_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public ContentCase getContentCase() {
return ContentCase.forNumber(contentCase_);
}
public static final int TEXT_FIELD_NUMBER = 1;
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return Whether the text field is set.
*/
public boolean hasText() {
return contentCase_ == 1;
}
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = "";
if (contentCase_ == 1) {
ref = content_;
}
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();
if (contentCase_ == 1) {
content_ = s;
}
return s;
}
}
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return The bytes for text.
*/
public com.google.protobuf.ByteString getTextBytes() {
java.lang.Object ref = "";
if (contentCase_ == 1) {
ref = content_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (contentCase_ == 1) {
content_ = 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 (contentCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contentCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_);
}
size += getUnknownFields().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.apps.card.v1.Suggestions.SuggestionItem)) {
return super.equals(obj);
}
com.google.apps.card.v1.Suggestions.SuggestionItem other =
(com.google.apps.card.v1.Suggestions.SuggestionItem) obj;
if (!getContentCase().equals(other.getContentCase())) return false;
switch (contentCase_) {
case 1:
if (!getText().equals(other.getText())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (contentCase_) {
case 1:
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem 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.apps.card.v1.Suggestions.SuggestionItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem 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.apps.card.v1.Suggestions.SuggestionItem parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem 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.apps.card.v1.Suggestions.SuggestionItem parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem 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.apps.card.v1.Suggestions.SuggestionItem 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;
}
/**
*
*
*
* One suggested value that users can enter in a text input field.
*
* [Google Workspace Add-ons and Chat
* apps](https://developers.google.com/workspace/extend):
*
*
* Protobuf type {@code google.apps.card.v1.Suggestions.SuggestionItem}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.apps.card.v1.Suggestions.SuggestionItem)
com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_SuggestionItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_SuggestionItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apps.card.v1.Suggestions.SuggestionItem.class,
com.google.apps.card.v1.Suggestions.SuggestionItem.Builder.class);
}
// Construct using com.google.apps.card.v1.Suggestions.SuggestionItem.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
contentCase_ = 0;
content_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_SuggestionItem_descriptor;
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions.SuggestionItem getDefaultInstanceForType() {
return com.google.apps.card.v1.Suggestions.SuggestionItem.getDefaultInstance();
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions.SuggestionItem build() {
com.google.apps.card.v1.Suggestions.SuggestionItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions.SuggestionItem buildPartial() {
com.google.apps.card.v1.Suggestions.SuggestionItem result =
new com.google.apps.card.v1.Suggestions.SuggestionItem(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.apps.card.v1.Suggestions.SuggestionItem result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.google.apps.card.v1.Suggestions.SuggestionItem result) {
result.contentCase_ = contentCase_;
result.content_ = this.content_;
}
@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);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@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 Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apps.card.v1.Suggestions.SuggestionItem) {
return mergeFrom((com.google.apps.card.v1.Suggestions.SuggestionItem) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apps.card.v1.Suggestions.SuggestionItem other) {
if (other == com.google.apps.card.v1.Suggestions.SuggestionItem.getDefaultInstance())
return this;
switch (other.getContentCase()) {
case TEXT:
{
contentCase_ = 1;
content_ = other.content_;
onChanged();
break;
}
case CONTENT_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
contentCase_ = 1;
content_ = s;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int contentCase_ = 0;
private java.lang.Object content_;
public ContentCase getContentCase() {
return ContentCase.forNumber(contentCase_);
}
public Builder clearContent() {
contentCase_ = 0;
content_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return Whether the text field is set.
*/
@java.lang.Override
public boolean hasText() {
return contentCase_ == 1;
}
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = "";
if (contentCase_ == 1) {
ref = content_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (contentCase_ == 1) {
content_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTextBytes() {
java.lang.Object ref = "";
if (contentCase_ == 1) {
ref = content_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (contentCase_ == 1) {
content_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contentCase_ = 1;
content_ = value;
onChanged();
return this;
}
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @return This builder for chaining.
*/
public Builder clearText() {
if (contentCase_ == 1) {
contentCase_ = 0;
content_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* The value of a suggested input to a text input field. This is
* equivalent to what users enter themselves.
*
*
* string text = 1;
*
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contentCase_ = 1;
content_ = 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.apps.card.v1.Suggestions.SuggestionItem)
}
// @@protoc_insertion_point(class_scope:google.apps.card.v1.Suggestions.SuggestionItem)
private static final com.google.apps.card.v1.Suggestions.SuggestionItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apps.card.v1.Suggestions.SuggestionItem();
}
public static com.google.apps.card.v1.Suggestions.SuggestionItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SuggestionItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions.SuggestionItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ITEMS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List items_;
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
@java.lang.Override
public java.util.List extends com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
@java.lang.Override
public com.google.apps.card.v1.Suggestions.SuggestionItem getItems(int index) {
return items_.get(index);
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
@java.lang.Override
public com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder getItemsOrBuilder(int index) {
return items_.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 {
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(1, items_.get(i));
}
getUnknownFields().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));
}
size += getUnknownFields().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.apps.card.v1.Suggestions)) {
return super.equals(obj);
}
com.google.apps.card.v1.Suggestions other = (com.google.apps.card.v1.Suggestions) obj;
if (!getItemsList().equals(other.getItemsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apps.card.v1.Suggestions parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apps.card.v1.Suggestions parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apps.card.v1.Suggestions parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apps.card.v1.Suggestions 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.apps.card.v1.Suggestions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apps.card.v1.Suggestions parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apps.card.v1.Suggestions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.apps.card.v1.Suggestions 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.apps.card.v1.Suggestions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apps.card.v1.Suggestions 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.apps.card.v1.Suggestions parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.apps.card.v1.Suggestions 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.apps.card.v1.Suggestions 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;
}
/**
*
*
*
* Suggested values that users can enter. These values appear when users click
* inside the text input field. As users type, the suggested values
* dynamically filter to match what the users have typed.
*
* For example, a text input field for programming language might suggest
* Java, JavaScript, Python, and C++. When users start typing `Jav`, the list
* of suggestions filters to show `Java` and `JavaScript`.
*
* Suggested values help guide users to enter values that your app can make
* sense of. When referring to JavaScript, some users might enter `javascript`
* and others `java script`. Suggesting `JavaScript` can standardize how users
* interact with your app.
*
* When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set
* to `MULTIPLE_LINE`.
*
* [Google Workspace
* Add-ons and Chat apps](https://developers.google.com/workspace/extend):
*
*
* Protobuf type {@code google.apps.card.v1.Suggestions}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.apps.card.v1.Suggestions)
com.google.apps.card.v1.SuggestionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apps.card.v1.Suggestions.class,
com.google.apps.card.v1.Suggestions.Builder.class);
}
// Construct using com.google.apps.card.v1.Suggestions.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
} else {
items_ = null;
itemsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_Suggestions_descriptor;
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions getDefaultInstanceForType() {
return com.google.apps.card.v1.Suggestions.getDefaultInstance();
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions build() {
com.google.apps.card.v1.Suggestions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions buildPartial() {
com.google.apps.card.v1.Suggestions result = new com.google.apps.card.v1.Suggestions(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apps.card.v1.Suggestions result) {
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
}
private void buildPartial0(com.google.apps.card.v1.Suggestions result) {
int from_bitField0_ = bitField0_;
}
@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);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@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 Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apps.card.v1.Suggestions) {
return mergeFrom((com.google.apps.card.v1.Suggestions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apps.card.v1.Suggestions other) {
if (other == com.google.apps.card.v1.Suggestions.getDefaultInstance()) return this;
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getItemsFieldBuilder()
: null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.apps.card.v1.Suggestions.SuggestionItem m =
input.readMessage(
com.google.apps.card.v1.Suggestions.SuggestionItem.parser(),
extensionRegistry);
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(m);
} else {
itemsBuilder_.addMessage(m);
}
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
items_ =
new java.util.ArrayList(items_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apps.card.v1.Suggestions.SuggestionItem,
com.google.apps.card.v1.Suggestions.SuggestionItem.Builder,
com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder>
itemsBuilder_;
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public com.google.apps.card.v1.Suggestions.SuggestionItem getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder setItems(int index, com.google.apps.card.v1.Suggestions.SuggestionItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder setItems(
int index, com.google.apps.card.v1.Suggestions.SuggestionItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder addItems(com.google.apps.card.v1.Suggestions.SuggestionItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder addItems(int index, com.google.apps.card.v1.Suggestions.SuggestionItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder addItems(
com.google.apps.card.v1.Suggestions.SuggestionItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder addItems(
int index, com.google.apps.card.v1.Suggestions.SuggestionItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder addAllItems(
java.lang.Iterable extends com.google.apps.card.v1.Suggestions.SuggestionItem> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public com.google.apps.card.v1.Suggestions.SuggestionItem.Builder getItemsBuilder(int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public java.util.List extends com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public com.google.apps.card.v1.Suggestions.SuggestionItem.Builder addItemsBuilder() {
return getItemsFieldBuilder()
.addBuilder(com.google.apps.card.v1.Suggestions.SuggestionItem.getDefaultInstance());
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public com.google.apps.card.v1.Suggestions.SuggestionItem.Builder addItemsBuilder(int index) {
return getItemsFieldBuilder()
.addBuilder(
index, com.google.apps.card.v1.Suggestions.SuggestionItem.getDefaultInstance());
}
/**
*
*
*
* A list of suggestions used for autocomplete recommendations in text input
* fields.
*
*
* repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apps.card.v1.Suggestions.SuggestionItem,
com.google.apps.card.v1.Suggestions.SuggestionItem.Builder,
com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apps.card.v1.Suggestions.SuggestionItem,
com.google.apps.card.v1.Suggestions.SuggestionItem.Builder,
com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder>(
items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
items_ = null;
}
return itemsBuilder_;
}
@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.apps.card.v1.Suggestions)
}
// @@protoc_insertion_point(class_scope:google.apps.card.v1.Suggestions)
private static final com.google.apps.card.v1.Suggestions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apps.card.v1.Suggestions();
}
public static com.google.apps.card.v1.Suggestions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Suggestions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apps.card.v1.Suggestions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}