Send feedback
Class BadRequest.Builder (2.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.9.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]