Class ErrorDetails.Builder (2.56.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ErrorDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ErrorDetails.Builder
Overrides

build()

public ErrorDetails build()
Returns
Type Description
ErrorDetails

buildPartial()

public ErrorDetails buildPartial()
Returns
Type Description
ErrorDetails

clear()

public ErrorDetails.Builder clear()
Returns
Type Description
ErrorDetails.Builder
Overrides

clearDetails()

public ErrorDetails.Builder clearDetails()
Returns
Type Description
ErrorDetails.Builder

clearField(Descriptors.FieldDescriptor field)

public ErrorDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ErrorDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ErrorDetails.Builder
Overrides

clone()

public ErrorDetails.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ErrorDetails getDefaultInstanceForType()
Returns
Type Description
ErrorDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetails() (deprecated)

public Map<String,String> getDetails()

Use #getDetailsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableDetails() (deprecated)

public Map<String,String> getMutableDetails()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorDetails other)

public ErrorDetails.Builder mergeFrom(ErrorDetails other)
Parameter
Name Description
other ErrorDetails
Returns
Type Description
ErrorDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ErrorDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ErrorDetails.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
ErrorDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ErrorDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ErrorDetails.Builder
Overrides

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

public ErrorDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ErrorDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorDetails.Builder
Overrides