Class BadRequest (2.14.1)

public final class BadRequest extends GeneratedMessageV3 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 Fields

FIELD_VIOLATIONS_FIELD_NUMBER

public static final int FIELD_VIOLATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BadRequest getDefaultInstance()
Returns
TypeDescription
BadRequest

getDescriptor()

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

newBuilder()

public static BadRequest.Builder newBuilder()
Returns
TypeDescription
BadRequest.Builder

newBuilder(BadRequest prototype)

public static BadRequest.Builder newBuilder(BadRequest prototype)
Parameter
NameDescription
prototypeBadRequest
Returns
TypeDescription
BadRequest.Builder

parseDelimitedFrom(InputStream input)

public static BadRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BadRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BadRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BadRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BadRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BadRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BadRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BadRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BadRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BadRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BadRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BadRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BadRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BadRequest> parser()
Returns
TypeDescription
Parser<BadRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BadRequest getDefaultInstanceForType()
Returns
TypeDescription
BadRequest

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

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>

getParserForType()

public Parser<BadRequest> getParserForType()
Returns
TypeDescription
Parser<BadRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BadRequest.Builder newBuilderForType()
Returns
TypeDescription
BadRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BadRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BadRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BadRequest.Builder toBuilder()
Returns
TypeDescription
BadRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException