Class CheckResponse.Builder (1.46.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CheckResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CheckResponse.Builder
Overrides

build()

public CheckResponse build()
Returns
Type Description
CheckResponse

buildPartial()

public CheckResponse buildPartial()
Returns
Type Description
CheckResponse

clear()

public CheckResponse.Builder clear()
Returns
Type Description
CheckResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CheckResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CheckResponse.Builder
Overrides

clearHeaders()

public CheckResponse.Builder clearHeaders()
Returns
Type Description
CheckResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CheckResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
CheckResponse.Builder

clone()

public CheckResponse.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public CheckResponse getDefaultInstanceForType()
Returns
Type Description
CheckResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeaders() (deprecated)

public Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
Type Description
Map<String,String>

getHeadersCount()

public int getHeadersCount()

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Returns
Type Description
int

getHeadersMap()

public Map<String,String> getHeadersMap()

Returns a set of request contexts generated from the CheckRequest.

map<string, string> headers = 2;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableHeaders() (deprecated)

public Map<String,String> getMutableHeaders()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CheckResponse other)

public CheckResponse.Builder mergeFrom(CheckResponse other)
Parameter
Name Description
other CheckResponse
Returns
Type Description
CheckResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CheckResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CheckResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value com.google.rpc.Status
Returns
Type Description
CheckResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CheckResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
CheckResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CheckResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CheckResponse.Builder
Overrides

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

public CheckResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value com.google.rpc.Status
Returns
Type Description
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
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
CheckResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CheckResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CheckResponse.Builder
Overrides