public final class LocalizedMessage extends GeneratedMessageV3 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
Static Fields
LOCALE_FIELD_NUMBER
public static final int LOCALE_FIELD_NUMBER
Field Value
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LocalizedMessage getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LocalizedMessage.Builder newBuilder()
Returns
newBuilder(LocalizedMessage prototype)
public static LocalizedMessage.Builder newBuilder(LocalizedMessage prototype)
Parameter
Returns
public static LocalizedMessage parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LocalizedMessage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LocalizedMessage parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LocalizedMessage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LocalizedMessage parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LocalizedMessage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LocalizedMessage parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LocalizedMessage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LocalizedMessage parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LocalizedMessage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LocalizedMessage parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LocalizedMessage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LocalizedMessage> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public LocalizedMessage getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<LocalizedMessage> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LocalizedMessage.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LocalizedMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LocalizedMessage.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions