Send feedback
Class LocalizedMessage.Builder (1.59.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.59.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]