Class Text.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Text.Builder>
com.google.cloud.advisorynotifications.v1.Text.Builder
- All Implemented Interfaces:
TextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Text
public static final class Text.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Text.Builder>
implements TextOrBuilder
A text object containing the English text and its localized copies.Protobuf type
google.cloud.advisorynotifications.v1.Text-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The English copy.Status of the localization.The requested localized copy (if applicable).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe English copy.com.google.protobuf.ByteStringThe English copy.Status of the localization.intStatus of the localization.The requested localized copy (if applicable).com.google.protobuf.ByteStringThe requested localized copy (if applicable).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The English copy.setEnTextBytes(com.google.protobuf.ByteString value) The English copy.Status of the localization.setLocalizationStateValue(int value) Status of the localization.setLocalizedText(String value) The requested localized copy (if applicable).setLocalizedTextBytes(com.google.protobuf.ByteString value) The requested localized copy (if applicable).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Text.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Text.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Text.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Text.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Text.Builder>
-
mergeFrom
public Text.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Text.Builder>- Throws:
IOException
-
getEnText
The English copy.
string en_text = 1;- Specified by:
getEnTextin interfaceTextOrBuilder- Returns:
- The enText.
-
getEnTextBytes
public com.google.protobuf.ByteString getEnTextBytes()The English copy.
string en_text = 1;- Specified by:
getEnTextBytesin interfaceTextOrBuilder- Returns:
- The bytes for enText.
-
setEnText
The English copy.
string en_text = 1;- Parameters:
value- The enText to set.- Returns:
- This builder for chaining.
-
clearEnText
The English copy.
string en_text = 1;- Returns:
- This builder for chaining.
-
setEnTextBytes
The English copy.
string en_text = 1;- Parameters:
value- The bytes for enText to set.- Returns:
- This builder for chaining.
-
getLocalizedText
The requested localized copy (if applicable).
string localized_text = 2;- Specified by:
getLocalizedTextin interfaceTextOrBuilder- Returns:
- The localizedText.
-
getLocalizedTextBytes
public com.google.protobuf.ByteString getLocalizedTextBytes()The requested localized copy (if applicable).
string localized_text = 2;- Specified by:
getLocalizedTextBytesin interfaceTextOrBuilder- Returns:
- The bytes for localizedText.
-
setLocalizedText
The requested localized copy (if applicable).
string localized_text = 2;- Parameters:
value- The localizedText to set.- Returns:
- This builder for chaining.
-
clearLocalizedText
The requested localized copy (if applicable).
string localized_text = 2;- Returns:
- This builder for chaining.
-
setLocalizedTextBytes
The requested localized copy (if applicable).
string localized_text = 2;- Parameters:
value- The bytes for localizedText to set.- Returns:
- This builder for chaining.
-
getLocalizationStateValue
public int getLocalizationStateValue()Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;- Specified by:
getLocalizationStateValuein interfaceTextOrBuilder- Returns:
- The enum numeric value on the wire for localizationState.
-
setLocalizationStateValue
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;- Parameters:
value- The enum numeric value on the wire for localizationState to set.- Returns:
- This builder for chaining.
-
getLocalizationState
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;- Specified by:
getLocalizationStatein interfaceTextOrBuilder- Returns:
- The localizationState.
-
setLocalizationState
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;- Parameters:
value- The localizationState to set.- Returns:
- This builder for chaining.
-
clearLocalizationState
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;- Returns:
- This builder for chaining.
-