Class CheckResponse.Builder (1.41.0)

public static final class CheckResponse.Builder extends GeneratedMessageV3.Builder<CheckResponse.Builder> implements CheckResponseOrBuilder

Response message for the Check method.

Protobuf type google.api.servicecontrol.v2.CheckResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CheckResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CheckResponse.Builder
Overrides

build()

public CheckResponse build()
Returns
TypeDescription
CheckResponse

buildPartial()

public CheckResponse buildPartial()
Returns
TypeDescription
CheckResponse

clear()

public CheckResponse.Builder clear()
Returns
TypeDescription
CheckResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CheckResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CheckResponse.Builder
Overrides

clearHeaders()

public CheckResponse.Builder clearHeaders()
Returns
TypeDescription
CheckResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CheckResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CheckResponse.Builder
Overrides

clearStatus()

public CheckResponse.Builder clearStatus()

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Returns
TypeDescription
CheckResponse.Builder

clone()

public CheckResponse.Builder clone()
Returns
TypeDescription
CheckResponse.Builder
Overrides

containsHeaders(String key)

public boolean containsHeaders(String key)

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public CheckResponse getDefaultInstanceForType()
Returns
TypeDescription
CheckResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeaders() (deprecated)

public Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
TypeDescription
Map<String,String>

getHeadersCount()

public int getHeadersCount()

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Returns
TypeDescription
int

getHeadersMap()

public Map<String,String> getHeadersMap()

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Returns
TypeDescription
Map<String,String>

getHeadersOrDefault(String key, String defaultValue)

public String getHeadersOrDefault(String key, String defaultValue)

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getHeadersOrThrow(String key)

public String getHeadersOrThrow(String key)

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableHeaders() (deprecated)

public Map<String,String> getMutableHeaders()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getStatus()

public Status getStatus()

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Returns
TypeDescription
com.google.rpc.Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Returns
TypeDescription
com.google.rpc.Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

hasStatus()

public boolean hasStatus()

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Returns
TypeDescription
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CheckResponse other)

public CheckResponse.Builder mergeFrom(CheckResponse other)
Parameter
NameDescription
otherCheckResponse
Returns
TypeDescription
CheckResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CheckResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CheckResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CheckResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CheckResponse.Builder
Overrides

mergeStatus(Status value)

public CheckResponse.Builder mergeStatus(Status value)

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
CheckResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CheckResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CheckResponse.Builder
Overrides

putAllHeaders(Map<String,String> values)

public CheckResponse.Builder putAllHeaders(Map<String,String> values)

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
CheckResponse.Builder

putHeaders(String key, String value)

public CheckResponse.Builder putHeaders(String key, String value)

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
CheckResponse.Builder

removeHeaders(String key)

public CheckResponse.Builder removeHeaders(String key)

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
CheckResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CheckResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CheckResponse.Builder
Overrides

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

public CheckResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CheckResponse.Builder
Overrides

setStatus(Status value)

public CheckResponse.Builder setStatus(Status value)

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
CheckResponse.Builder

setStatus(Status.Builder builderForValue)

public CheckResponse.Builder setStatus(Status.Builder builderForValue)

Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.

.google.rpc.Status status = 1;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
CheckResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CheckResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CheckResponse.Builder
Overrides