Class ErrorDetails.Builder (2.35.0)

public static final class ErrorDetails.Builder extends GeneratedMessageV3.Builder<ErrorDetails.Builder> implements ErrorDetailsOrBuilder

Error details in public error message for DataprocMetastore.QueryMetadata.

Protobuf type google.cloud.metastore.v1beta.ErrorDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ErrorDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ErrorDetails.Builder
Overrides

build()

public ErrorDetails build()
Returns
TypeDescription
ErrorDetails

buildPartial()

public ErrorDetails buildPartial()
Returns
TypeDescription
ErrorDetails

clear()

public ErrorDetails.Builder clear()
Returns
TypeDescription
ErrorDetails.Builder
Overrides

clearDetails()

public ErrorDetails.Builder clearDetails()
Returns
TypeDescription
ErrorDetails.Builder

clearField(Descriptors.FieldDescriptor field)

public ErrorDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ErrorDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ErrorDetails.Builder
Overrides

clone()

public ErrorDetails.Builder clone()
Returns
TypeDescription
ErrorDetails.Builder
Overrides

containsDetails(String key)

public boolean containsDetails(String key)

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public ErrorDetails getDefaultInstanceForType()
Returns
TypeDescription
ErrorDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetails() (deprecated)

public Map<String,String> getDetails()

Use #getDetailsMap() instead.

Returns
TypeDescription
Map<String,String>

getDetailsCount()

public int getDetailsCount()

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Returns
TypeDescription
int

getDetailsMap()

public Map<String,String> getDetailsMap()

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Returns
TypeDescription
Map<String,String>

getDetailsOrDefault(String key, String defaultValue)

public String getDetailsOrDefault(String key, String defaultValue)

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDetailsOrThrow(String key)

public String getDetailsOrThrow(String key)

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableDetails() (deprecated)

public Map<String,String> getMutableDetails()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ErrorDetails other)

public ErrorDetails.Builder mergeFrom(ErrorDetails other)
Parameter
NameDescription
otherErrorDetails
Returns
TypeDescription
ErrorDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ErrorDetails.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ErrorDetails.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ErrorDetails.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ErrorDetails.Builder
Overrides

putAllDetails(Map<String,String> values)

public ErrorDetails.Builder putAllDetails(Map<String,String> values)

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ErrorDetails.Builder

putDetails(String key, String value)

public ErrorDetails.Builder putDetails(String key, String value)

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ErrorDetails.Builder

removeDetails(String key)

public ErrorDetails.Builder removeDetails(String key)

Additional structured details about this error.

Keys define the failure items. Value describes the exception or details of the item.

map<string, string> details = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
ErrorDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ErrorDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ErrorDetails.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ErrorDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ErrorDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ErrorDetails.Builder
Overrides