public static final class LocalizedMessage.Builder extends GeneratedMessageV3.Builder<LocalizedMessage.Builder> implements LocalizedMessageOrBuilder
Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
Protobuf type google.cloud.compute.v1.LocalizedMessage
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocalizedMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LocalizedMessage build()
buildPartial()
public LocalizedMessage buildPartial()
clear()
public LocalizedMessage.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LocalizedMessage.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLocale()
public LocalizedMessage.Builder clearLocale()
clearMessage()
public LocalizedMessage.Builder clearMessage()
The localized error message in the above locale.
optional string message = 418054151;
clearOneof(Descriptors.OneofDescriptor oneof)
public LocalizedMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public LocalizedMessage.Builder clone()
Overrides
getDefaultInstanceForType()
public LocalizedMessage getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLocale()
public String getLocale()
Returns |
Type |
Description |
String |
The locale.
|
getLocaleBytes()
public ByteString getLocaleBytes()
Returns |
Type |
Description |
ByteString |
The bytes for locale.
|
getMessage()
public String getMessage()
The localized error message in the above locale.
optional string message = 418054151;
Returns |
Type |
Description |
String |
The message.
|
getMessageBytes()
public ByteString getMessageBytes()
The localized error message in the above locale.
optional string message = 418054151;
Returns |
Type |
Description |
ByteString |
The bytes for message.
|
hasLocale()
public boolean hasLocale()
Returns |
Type |
Description |
boolean |
Whether the locale field is set.
|
hasMessage()
public boolean hasMessage()
The localized error message in the above locale.
optional string message = 418054151;
Returns |
Type |
Description |
boolean |
Whether the message field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LocalizedMessage other)
public LocalizedMessage.Builder mergeFrom(LocalizedMessage other)
public LocalizedMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LocalizedMessage.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LocalizedMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLocale(String value)
public LocalizedMessage.Builder setLocale(String value)
Parameter |
Name |
Description |
value |
String
The locale to set.
|
setLocaleBytes(ByteString value)
public LocalizedMessage.Builder setLocaleBytes(ByteString value)
Parameter |
Name |
Description |
value |
ByteString
The bytes for locale to set.
|
setMessage(String value)
public LocalizedMessage.Builder setMessage(String value)
The localized error message in the above locale.
optional string message = 418054151;
Parameter |
Name |
Description |
value |
String
The message to set.
|
setMessageBytes(ByteString value)
public LocalizedMessage.Builder setMessageBytes(ByteString value)
The localized error message in the above locale.
optional string message = 418054151;
Parameter |
Name |
Description |
value |
ByteString
The bytes for message to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocalizedMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides