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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocalizedMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LocalizedMessage build()
Returns
buildPartial()
public LocalizedMessage buildPartial()
Returns
clear()
public LocalizedMessage.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LocalizedMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLocale()
public LocalizedMessage.Builder clearLocale()
Returns
clearMessage()
public LocalizedMessage.Builder clearMessage()
The localized error message in the above locale.
optional string message = 418054151;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public LocalizedMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public LocalizedMessage.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LocalizedMessage getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLocale()
public String getLocale()
Returns
Type | Description |
String | The locale.
|
getLocaleBytes()
public ByteString getLocaleBytes()
Returns
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
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LocalizedMessage other)
public LocalizedMessage.Builder mergeFrom(LocalizedMessage other)
Parameter
Returns
public LocalizedMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LocalizedMessage.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LocalizedMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLocale(String value)
public LocalizedMessage.Builder setLocale(String value)
Parameter
Name | Description |
value | String
The locale to set.
|
Returns
setLocaleBytes(ByteString value)
public LocalizedMessage.Builder setLocaleBytes(ByteString value)
Parameter
Name | Description |
value | ByteString
The bytes for locale to set.
|
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocalizedMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides