implements
// @@protoc_insertion_point(builder_implements:google.apps.card.v1.TextInput)
com.google.apps.card.v1.TextInputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_TextInput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apps.card.v1.CardProto
.internal_static_google_apps_card_v1_TextInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apps.card.v1.TextInput.class,
com.google.apps.card.v1.TextInput.Builder.class);
}
// Construct using com.google.apps.card.v1.TextInput.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getOnChangeActionFieldBuilder();
getInitialSuggestionsFieldBuilder();
getAutoCompleteActionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
label_ = "";
hintText_ = "";
value_ = "";
type_ = 0;
onChangeAction_ = null;
if (onChangeActionBuilder_ != null) {
onChangeActionBuilder_.dispose();
onChangeActionBuilder_ = null;
}
initialSuggestions_ = null;
if (initialSuggestionsBuilder_ != null) {
initialSuggestionsBuilder_.dispose();
initialSuggestionsBuilder_ = null;
}
autoCompleteAction_ = null;
if (autoCompleteActionBuilder_ != null) {
autoCompleteActionBuilder_.dispose();
autoCompleteActionBuilder_ = null;
}
placeholderText_ = "";
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_TextInput_descriptor;
}
@java.lang.Override
public com.google.apps.card.v1.TextInput getDefaultInstanceForType() {
return com.google.apps.card.v1.TextInput.getDefaultInstance();
}
@java.lang.Override
public com.google.apps.card.v1.TextInput build() {
com.google.apps.card.v1.TextInput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apps.card.v1.TextInput buildPartial() {
com.google.apps.card.v1.TextInput result = new com.google.apps.card.v1.TextInput(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.apps.card.v1.TextInput result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.label_ = label_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.hintText_ = hintText_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.type_ = type_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.onChangeAction_ =
onChangeActionBuilder_ == null ? onChangeAction_ : onChangeActionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.initialSuggestions_ =
initialSuggestionsBuilder_ == null
? initialSuggestions_
: initialSuggestionsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.autoCompleteAction_ =
autoCompleteActionBuilder_ == null
? autoCompleteAction_
: autoCompleteActionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.placeholderText_ = placeholderText_;
}
result.bitField0_ |= to_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.TextInput) {
return mergeFrom((com.google.apps.card.v1.TextInput) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apps.card.v1.TextInput other) {
if (other == com.google.apps.card.v1.TextInput.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getHintText().isEmpty()) {
hintText_ = other.hintText_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasOnChangeAction()) {
mergeOnChangeAction(other.getOnChangeAction());
}
if (other.hasInitialSuggestions()) {
mergeInitialSuggestions(other.getInitialSuggestions());
}
if (other.hasAutoCompleteAction()) {
mergeAutoCompleteAction(other.getAutoCompleteAction());
}
if (!other.getPlaceholderText().isEmpty()) {
placeholderText_ = other.placeholderText_;
bitField0_ |= 0x00000100;
onChanged();
}
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
label_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
hintText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
type_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50:
{
input.readMessage(getOnChangeActionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(
getInitialSuggestionsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
input.readMessage(
getAutoCompleteActionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 98:
{
placeholderText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 98
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.lang.Object name_ = "";
/**
*
*
*
* The name by which the text input is identified in a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string name = 1;
*
* @return The name.
*/
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;
}
}
/**
*
*
*
* The name by which the text input is identified in a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string name = 1;
*
* @return The bytes for name.
*/
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;
}
}
/**
*
*
*
* The name by which the text input is identified in a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The name by which the text input is identified in a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name by which the text input is identified in a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
*
*
*
* The text that appears above the text input field in the user interface.
*
* Specify text that helps the user enter the information your app needs.
* For example, if you are asking someone's name, but specifically need their
* surname, write `surname` instead of `name`.
*
* Required if `hintText` is unspecified. Otherwise, optional.
*
*
* string label = 2;
*
* @return The label.
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The text that appears above the text input field in the user interface.
*
* Specify text that helps the user enter the information your app needs.
* For example, if you are asking someone's name, but specifically need their
* surname, write `surname` instead of `name`.
*
* Required if `hintText` is unspecified. Otherwise, optional.
*
*
* string label = 2;
*
* @return The bytes for label.
*/
public com.google.protobuf.ByteString getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The text that appears above the text input field in the user interface.
*
* Specify text that helps the user enter the information your app needs.
* For example, if you are asking someone's name, but specifically need their
* surname, write `surname` instead of `name`.
*
* Required if `hintText` is unspecified. Otherwise, optional.
*
*
* string label = 2;
*
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The text that appears above the text input field in the user interface.
*
* Specify text that helps the user enter the information your app needs.
* For example, if you are asking someone's name, but specifically need their
* surname, write `surname` instead of `name`.
*
* Required if `hintText` is unspecified. Otherwise, optional.
*
*
* string label = 2;
*
* @return This builder for chaining.
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The text that appears above the text input field in the user interface.
*
* Specify text that helps the user enter the information your app needs.
* For example, if you are asking someone's name, but specifically need their
* surname, write `surname` instead of `name`.
*
* Required if `hintText` is unspecified. Otherwise, optional.
*
*
* string label = 2;
*
* @param value The bytes for label to set.
* @return This builder for chaining.
*/
public Builder setLabelBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object hintText_ = "";
/**
*
*
*
* Text that appears below the text input field meant to assist users by
* prompting them to enter a certain value. This text is always visible.
*
* Required if `label` is unspecified. Otherwise, optional.
*
*
* string hint_text = 3;
*
* @return The hintText.
*/
public java.lang.String getHintText() {
java.lang.Object ref = hintText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hintText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Text that appears below the text input field meant to assist users by
* prompting them to enter a certain value. This text is always visible.
*
* Required if `label` is unspecified. Otherwise, optional.
*
*
* string hint_text = 3;
*
* @return The bytes for hintText.
*/
public com.google.protobuf.ByteString getHintTextBytes() {
java.lang.Object ref = hintText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
hintText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Text that appears below the text input field meant to assist users by
* prompting them to enter a certain value. This text is always visible.
*
* Required if `label` is unspecified. Otherwise, optional.
*
*
* string hint_text = 3;
*
* @param value The hintText to set.
* @return This builder for chaining.
*/
public Builder setHintText(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hintText_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Text that appears below the text input field meant to assist users by
* prompting them to enter a certain value. This text is always visible.
*
* Required if `label` is unspecified. Otherwise, optional.
*
*
* string hint_text = 3;
*
* @return This builder for chaining.
*/
public Builder clearHintText() {
hintText_ = getDefaultInstance().getHintText();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Text that appears below the text input field meant to assist users by
* prompting them to enter a certain value. This text is always visible.
*
* Required if `label` is unspecified. Otherwise, optional.
*
*
* string hint_text = 3;
*
* @param value The bytes for hintText to set.
* @return This builder for chaining.
*/
public Builder setHintTextBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hintText_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
*
*
*
* The value entered by a user, returned as part of a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string value = 4;
*
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The value entered by a user, returned as part of a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string value = 4;
*
* @return The bytes for value.
*/
public com.google.protobuf.ByteString getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The value entered by a user, returned as part of a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string value = 4;
*
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The value entered by a user, returned as part of a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string value = 4;
*
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* The value entered by a user, returned as part of a form input event.
*
* For details about working with form inputs, see [Receive form
* data](https://developers.google.com/workspace/chat/read-form-data).
*
*
* string value = 4;
*
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*
*
* How a text input field appears in the user interface.
* For example, whether the field is single or multi-line.
*
*
* .google.apps.card.v1.TextInput.Type type = 5;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* How a text input field appears in the user interface.
* For example, whether the field is single or multi-line.
*
*
* .google.apps.card.v1.TextInput.Type type = 5;
*
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* How a text input field appears in the user interface.
* For example, whether the field is single or multi-line.
*
*
* .google.apps.card.v1.TextInput.Type type = 5;
*
* @return The type.
*/
@java.lang.Override
public com.google.apps.card.v1.TextInput.Type getType() {
com.google.apps.card.v1.TextInput.Type result =
com.google.apps.card.v1.TextInput.Type.forNumber(type_);
return result == null ? com.google.apps.card.v1.TextInput.Type.UNRECOGNIZED : result;
}
/**
*
*
*
* How a text input field appears in the user interface.
* For example, whether the field is single or multi-line.
*
*
* .google.apps.card.v1.TextInput.Type type = 5;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.apps.card.v1.TextInput.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* How a text input field appears in the user interface.
* For example, whether the field is single or multi-line.
*
*
* .google.apps.card.v1.TextInput.Type type = 5;
*
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000010);
type_ = 0;
onChanged();
return this;
}
private com.google.apps.card.v1.Action onChangeAction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Action,
com.google.apps.card.v1.Action.Builder,
com.google.apps.card.v1.ActionOrBuilder>
onChangeActionBuilder_;
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*
* @return Whether the onChangeAction field is set.
*/
public boolean hasOnChangeAction() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*
* @return The onChangeAction.
*/
public com.google.apps.card.v1.Action getOnChangeAction() {
if (onChangeActionBuilder_ == null) {
return onChangeAction_ == null
? com.google.apps.card.v1.Action.getDefaultInstance()
: onChangeAction_;
} else {
return onChangeActionBuilder_.getMessage();
}
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*/
public Builder setOnChangeAction(com.google.apps.card.v1.Action value) {
if (onChangeActionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
onChangeAction_ = value;
} else {
onChangeActionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*/
public Builder setOnChangeAction(com.google.apps.card.v1.Action.Builder builderForValue) {
if (onChangeActionBuilder_ == null) {
onChangeAction_ = builderForValue.build();
} else {
onChangeActionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*/
public Builder mergeOnChangeAction(com.google.apps.card.v1.Action value) {
if (onChangeActionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& onChangeAction_ != null
&& onChangeAction_ != com.google.apps.card.v1.Action.getDefaultInstance()) {
getOnChangeActionBuilder().mergeFrom(value);
} else {
onChangeAction_ = value;
}
} else {
onChangeActionBuilder_.mergeFrom(value);
}
if (onChangeAction_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*/
public Builder clearOnChangeAction() {
bitField0_ = (bitField0_ & ~0x00000020);
onChangeAction_ = null;
if (onChangeActionBuilder_ != null) {
onChangeActionBuilder_.dispose();
onChangeActionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*/
public com.google.apps.card.v1.Action.Builder getOnChangeActionBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getOnChangeActionFieldBuilder().getBuilder();
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*/
public com.google.apps.card.v1.ActionOrBuilder getOnChangeActionOrBuilder() {
if (onChangeActionBuilder_ != null) {
return onChangeActionBuilder_.getMessageOrBuilder();
} else {
return onChangeAction_ == null
? com.google.apps.card.v1.Action.getDefaultInstance()
: onChangeAction_;
}
}
/**
*
*
*
* What to do when a change occurs in the text input field. For example, a
* user adding to the field or deleting text.
*
* Examples of actions to take include running a custom function or opening
* a [dialog](https://developers.google.com/workspace/chat/dialogs)
* in Google Chat.
*
*
* .google.apps.card.v1.Action on_change_action = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Action,
com.google.apps.card.v1.Action.Builder,
com.google.apps.card.v1.ActionOrBuilder>
getOnChangeActionFieldBuilder() {
if (onChangeActionBuilder_ == null) {
onChangeActionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Action,
com.google.apps.card.v1.Action.Builder,
com.google.apps.card.v1.ActionOrBuilder>(
getOnChangeAction(), getParentForChildren(), isClean());
onChangeAction_ = null;
}
return onChangeActionBuilder_;
}
private com.google.apps.card.v1.Suggestions initialSuggestions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Suggestions,
com.google.apps.card.v1.Suggestions.Builder,
com.google.apps.card.v1.SuggestionsOrBuilder>
initialSuggestionsBuilder_;
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*
* @return Whether the initialSuggestions field is set.
*/
public boolean hasInitialSuggestions() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*
* @return The initialSuggestions.
*/
public com.google.apps.card.v1.Suggestions getInitialSuggestions() {
if (initialSuggestionsBuilder_ == null) {
return initialSuggestions_ == null
? com.google.apps.card.v1.Suggestions.getDefaultInstance()
: initialSuggestions_;
} else {
return initialSuggestionsBuilder_.getMessage();
}
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*/
public Builder setInitialSuggestions(com.google.apps.card.v1.Suggestions value) {
if (initialSuggestionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialSuggestions_ = value;
} else {
initialSuggestionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*/
public Builder setInitialSuggestions(
com.google.apps.card.v1.Suggestions.Builder builderForValue) {
if (initialSuggestionsBuilder_ == null) {
initialSuggestions_ = builderForValue.build();
} else {
initialSuggestionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*/
public Builder mergeInitialSuggestions(com.google.apps.card.v1.Suggestions value) {
if (initialSuggestionsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& initialSuggestions_ != null
&& initialSuggestions_ != com.google.apps.card.v1.Suggestions.getDefaultInstance()) {
getInitialSuggestionsBuilder().mergeFrom(value);
} else {
initialSuggestions_ = value;
}
} else {
initialSuggestionsBuilder_.mergeFrom(value);
}
if (initialSuggestions_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*/
public Builder clearInitialSuggestions() {
bitField0_ = (bitField0_ & ~0x00000040);
initialSuggestions_ = null;
if (initialSuggestionsBuilder_ != null) {
initialSuggestionsBuilder_.dispose();
initialSuggestionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*/
public com.google.apps.card.v1.Suggestions.Builder getInitialSuggestionsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getInitialSuggestionsFieldBuilder().getBuilder();
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*/
public com.google.apps.card.v1.SuggestionsOrBuilder getInitialSuggestionsOrBuilder() {
if (initialSuggestionsBuilder_ != null) {
return initialSuggestionsBuilder_.getMessageOrBuilder();
} else {
return initialSuggestions_ == null
? com.google.apps.card.v1.Suggestions.getDefaultInstance()
: initialSuggestions_;
}
}
/**
*
*
*
* 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 just `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):
*
*
* .google.apps.card.v1.Suggestions initial_suggestions = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Suggestions,
com.google.apps.card.v1.Suggestions.Builder,
com.google.apps.card.v1.SuggestionsOrBuilder>
getInitialSuggestionsFieldBuilder() {
if (initialSuggestionsBuilder_ == null) {
initialSuggestionsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Suggestions,
com.google.apps.card.v1.Suggestions.Builder,
com.google.apps.card.v1.SuggestionsOrBuilder>(
getInitialSuggestions(), getParentForChildren(), isClean());
initialSuggestions_ = null;
}
return initialSuggestionsBuilder_;
}
private com.google.apps.card.v1.Action autoCompleteAction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Action,
com.google.apps.card.v1.Action.Builder,
com.google.apps.card.v1.ActionOrBuilder>
autoCompleteActionBuilder_;
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*
* @return Whether the autoCompleteAction field is set.
*/
public boolean hasAutoCompleteAction() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*
* @return The autoCompleteAction.
*/
public com.google.apps.card.v1.Action getAutoCompleteAction() {
if (autoCompleteActionBuilder_ == null) {
return autoCompleteAction_ == null
? com.google.apps.card.v1.Action.getDefaultInstance()
: autoCompleteAction_;
} else {
return autoCompleteActionBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*/
public Builder setAutoCompleteAction(com.google.apps.card.v1.Action value) {
if (autoCompleteActionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoCompleteAction_ = value;
} else {
autoCompleteActionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*/
public Builder setAutoCompleteAction(com.google.apps.card.v1.Action.Builder builderForValue) {
if (autoCompleteActionBuilder_ == null) {
autoCompleteAction_ = builderForValue.build();
} else {
autoCompleteActionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*/
public Builder mergeAutoCompleteAction(com.google.apps.card.v1.Action value) {
if (autoCompleteActionBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& autoCompleteAction_ != null
&& autoCompleteAction_ != com.google.apps.card.v1.Action.getDefaultInstance()) {
getAutoCompleteActionBuilder().mergeFrom(value);
} else {
autoCompleteAction_ = value;
}
} else {
autoCompleteActionBuilder_.mergeFrom(value);
}
if (autoCompleteAction_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*/
public Builder clearAutoCompleteAction() {
bitField0_ = (bitField0_ & ~0x00000080);
autoCompleteAction_ = null;
if (autoCompleteActionBuilder_ != null) {
autoCompleteActionBuilder_.dispose();
autoCompleteActionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*/
public com.google.apps.card.v1.Action.Builder getAutoCompleteActionBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getAutoCompleteActionFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*/
public com.google.apps.card.v1.ActionOrBuilder getAutoCompleteActionOrBuilder() {
if (autoCompleteActionBuilder_ != null) {
return autoCompleteActionBuilder_.getMessageOrBuilder();
} else {
return autoCompleteAction_ == null
? com.google.apps.card.v1.Action.getDefaultInstance()
: autoCompleteAction_;
}
}
/**
*
*
*
* Optional. Specify what action to take when the text input field provides
* suggestions to users who interact with it.
*
* If unspecified, the suggestions are set by `initialSuggestions` and
* are processed by the client.
*
* If specified, the app takes the action specified here, such as running
* a custom function.
*
* [Google Workspace
* Add-ons](https://developers.google.com/workspace/add-ons):
*
*
* .google.apps.card.v1.Action auto_complete_action = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Action,
com.google.apps.card.v1.Action.Builder,
com.google.apps.card.v1.ActionOrBuilder>
getAutoCompleteActionFieldBuilder() {
if (autoCompleteActionBuilder_ == null) {
autoCompleteActionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.apps.card.v1.Action,
com.google.apps.card.v1.Action.Builder,
com.google.apps.card.v1.ActionOrBuilder>(
getAutoCompleteAction(), getParentForChildren(), isClean());
autoCompleteAction_ = null;
}
return autoCompleteActionBuilder_;
}
private java.lang.Object placeholderText_ = "";
/**
*
*
*
* Text that appears in the text input field when the field is empty.
* Use this text to prompt users to enter a value. For example, `Enter a
* number from 0 to 100`.
*
* [Google Chat apps](https://developers.google.com/workspace/chat):
*
*
* string placeholder_text = 12;
*
* @return The placeholderText.
*/
public java.lang.String getPlaceholderText() {
java.lang.Object ref = placeholderText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
placeholderText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Text that appears in the text input field when the field is empty.
* Use this text to prompt users to enter a value. For example, `Enter a
* number from 0 to 100`.
*
* [Google Chat apps](https://developers.google.com/workspace/chat):
*
*
* string placeholder_text = 12;
*
* @return The bytes for placeholderText.
*/
public com.google.protobuf.ByteString getPlaceholderTextBytes() {
java.lang.Object ref = placeholderText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
placeholderText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Text that appears in the text input field when the field is empty.
* Use this text to prompt users to enter a value. For example, `Enter a
* number from 0 to 100`.
*
* [Google Chat apps](https://developers.google.com/workspace/chat):
*
*
* string placeholder_text = 12;
*
* @param value The placeholderText to set.
* @return This builder for chaining.
*/
public Builder setPlaceholderText(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
placeholderText_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Text that appears in the text input field when the field is empty.
* Use this text to prompt users to enter a value. For example, `Enter a
* number from 0 to 100`.
*
* [Google Chat apps](https://developers.google.com/workspace/chat):
*
*
* string placeholder_text = 12;
*
* @return This builder for chaining.
*/
public Builder clearPlaceholderText() {
placeholderText_ = getDefaultInstance().getPlaceholderText();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*
*
* Text that appears in the text input field when the field is empty.
* Use this text to prompt users to enter a value. For example, `Enter a
* number from 0 to 100`.
*
* [Google Chat apps](https://developers.google.com/workspace/chat):
*
*
* string placeholder_text = 12;
*
* @param value The bytes for placeholderText to set.
* @return This builder for chaining.
*/
public Builder setPlaceholderTextBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
placeholderText_ = value;
bitField0_ |= 0x00000100;
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.TextInput)
}
// @@protoc_insertion_point(class_scope:google.apps.card.v1.TextInput)
private static final com.google.apps.card.v1.TextInput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apps.card.v1.TextInput();
}
public static com.google.apps.card.v1.TextInput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TextInput 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.TextInput getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}