Class BadRequest.Builder (2.42.0)

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
Type Description
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
Name Description
values Iterable<? extends com.google.rpc.BadRequest.FieldViolation>
Returns
Type Description
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
Name Description
value BadRequest.FieldViolation
Returns
Type Description
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
Name Description
builderForValue BadRequest.FieldViolation.Builder
Returns
Type Description
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
Name Description
index int
value BadRequest.FieldViolation
Returns
Type Description
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
Name Description
index int
builderForValue BadRequest.FieldViolation.Builder
Returns
Type Description
BadRequest.Builder

addFieldViolationsBuilder()

public BadRequest.FieldViolation.Builder addFieldViolationsBuilder()

Describes all violations in a client request.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
BadRequest.FieldViolation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BadRequest build()
Returns
Type Description
BadRequest

buildPartial()

public BadRequest buildPartial()
Returns
Type Description
BadRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFieldViolations()

public BadRequest.Builder clearFieldViolations()

Describes all violations in a client request.

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

Returns
Type Description
BadRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public BadRequest.Builder clone()
Returns
Type Description
BadRequest.Builder
Overrides

getDefaultInstanceForType()

public BadRequest getDefaultInstanceForType()
Returns
Type Description
BadRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<Builder>

getFieldViolationsCount()

public int getFieldViolationsCount()

Describes all violations in a client request.

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

Returns
Type Description
int

getFieldViolationsList()

public List<BadRequest.FieldViolation> getFieldViolationsList()

Describes all violations in a client request.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.rpc.BadRequest.FieldViolationOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(BadRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BadRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
BadRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BadRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value BadRequest.FieldViolation
Returns
Type Description
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
Name Description
index int
builderForValue BadRequest.FieldViolation.Builder
Returns
Type Description
BadRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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