Class BadRequest.Builder (2.8.3)

public static final class BadRequest.Builder extends GeneratedMessageV3.Builder<BadRequest.Builder> implements BadRequestOrBuilder

Describes violations in a client request. This error type focuses on the syntactic aspects of the request.

Protobuf type google.rpc.BadRequest

Implements

BadRequestOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllFieldViolations(Iterable<? extends BadRequest.FieldViolation> values)

public BadRequest.Builder addAllFieldViolations(Iterable<? extends BadRequest.FieldViolation> values)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.rpc.BadRequest.FieldViolation>
Returns
TypeDescription
BadRequest.Builder

addFieldViolations(BadRequest.FieldViolation value)

public BadRequest.Builder addFieldViolations(BadRequest.FieldViolation value)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
valueBadRequest.FieldViolation
Returns
TypeDescription
BadRequest.Builder

addFieldViolations(BadRequest.FieldViolation.Builder builderForValue)

public BadRequest.Builder addFieldViolations(BadRequest.FieldViolation.Builder builderForValue)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
builderForValueBadRequest.FieldViolation.Builder
Returns
TypeDescription
BadRequest.Builder

addFieldViolations(int index, BadRequest.FieldViolation value)

public BadRequest.Builder addFieldViolations(int index, BadRequest.FieldViolation value)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameters
NameDescription
indexint
valueBadRequest.FieldViolation
Returns
TypeDescription
BadRequest.Builder

addFieldViolations(int index, BadRequest.FieldViolation.Builder builderForValue)

public BadRequest.Builder addFieldViolations(int index, BadRequest.FieldViolation.Builder builderForValue)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameters
NameDescription
indexint
builderForValueBadRequest.FieldViolation.Builder
Returns
TypeDescription
BadRequest.Builder

addFieldViolationsBuilder()

public BadRequest.FieldViolation.Builder addFieldViolationsBuilder()

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Returns
TypeDescription
BadRequest.FieldViolation.Builder

addFieldViolationsBuilder(int index)

public BadRequest.FieldViolation.Builder addFieldViolationsBuilder(int index)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BadRequest.FieldViolation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BadRequest build()
Returns
TypeDescription
BadRequest

buildPartial()

public BadRequest buildPartial()
Returns
TypeDescription
BadRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFieldViolations()

public BadRequest.Builder clearFieldViolations()

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Returns
TypeDescription
BadRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BadRequest getDefaultInstanceForType()
Returns
TypeDescription
BadRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFieldViolations(int index)

public BadRequest.FieldViolation getFieldViolations(int index)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BadRequest.FieldViolation

getFieldViolationsBuilder(int index)

public BadRequest.FieldViolation.Builder getFieldViolationsBuilder(int index)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BadRequest.FieldViolation.Builder

getFieldViolationsBuilderList()

public List<BadRequest.FieldViolation.Builder> getFieldViolationsBuilderList()

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Returns
TypeDescription
List<Builder>

getFieldViolationsCount()

public int getFieldViolationsCount()

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Returns
TypeDescription
int

getFieldViolationsList()

public List<BadRequest.FieldViolation> getFieldViolationsList()

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Returns
TypeDescription
List<FieldViolation>

getFieldViolationsOrBuilder(int index)

public BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder(int index)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BadRequest.FieldViolationOrBuilder

getFieldViolationsOrBuilderList()

public List<? extends BadRequest.FieldViolationOrBuilder> getFieldViolationsOrBuilderList()

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Returns
TypeDescription
List<? extends com.google.rpc.BadRequest.FieldViolationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(BadRequest other)

public BadRequest.Builder mergeFrom(BadRequest other)
Parameter
NameDescription
otherBadRequest
Returns
TypeDescription
BadRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFieldViolations(int index)

public BadRequest.Builder removeFieldViolations(int index)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BadRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFieldViolations(int index, BadRequest.FieldViolation value)

public BadRequest.Builder setFieldViolations(int index, BadRequest.FieldViolation value)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameters
NameDescription
indexint
valueBadRequest.FieldViolation
Returns
TypeDescription
BadRequest.Builder

setFieldViolations(int index, BadRequest.FieldViolation.Builder builderForValue)

public BadRequest.Builder setFieldViolations(int index, BadRequest.FieldViolation.Builder builderForValue)

Describes all violations in a client request.

repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;

Parameters
NameDescription
indexint
builderForValueBadRequest.FieldViolation.Builder
Returns
TypeDescription
BadRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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