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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
addFieldViolationsBuilder()
public BadRequest.FieldViolation.Builder addFieldViolationsBuilder()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BadRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BadRequest build()
buildPartial()
public BadRequest buildPartial()
clear()
public BadRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BadRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFieldViolations()
public BadRequest.Builder clearFieldViolations()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public BadRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public BadRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public BadRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
getFieldViolationsBuilderList()
public List<BadRequest.FieldViolation.Builder> getFieldViolationsBuilderList()
Describes all violations in a client request.
repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public BadRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BadRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(BadRequest other)
public BadRequest.Builder mergeFrom(BadRequest other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BadRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public BadRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BadRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BadRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides