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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
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
Returns
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
Returns
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
Returns
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
Returns
addFieldViolationsBuilder()
public BadRequest.FieldViolation.Builder addFieldViolationsBuilder()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BadRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BadRequest build()
Returns
buildPartial()
public BadRequest buildPartial()
Returns
clear()
public BadRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public BadRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFieldViolations()
public BadRequest.Builder clearFieldViolations()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public BadRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public BadRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BadRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
getFieldViolationsBuilderList()
public List<BadRequest.FieldViolation.Builder> getFieldViolationsBuilderList()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
Returns
getFieldViolationsCount()
public int getFieldViolationsCount()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
Returns
getFieldViolationsList()
public List<BadRequest.FieldViolation> getFieldViolationsList()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
Returns
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public BadRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BadRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(BadRequest other)
public BadRequest.Builder mergeFrom(BadRequest other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BadRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BadRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BadRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BadRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides