Class CheckRequest.Builder (1.55.0)

public static final class CheckRequest.Builder extends GeneratedMessageV3.Builder<CheckRequest.Builder> implements CheckRequestOrBuilder

Request message for the Check method.

Protobuf type google.api.servicecontrol.v2.CheckRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllResources(Iterable<? extends ResourceInfo> values)

public CheckRequest.Builder addAllResources(Iterable<? extends ResourceInfo> values)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
values Iterable<? extends com.google.api.servicecontrol.v2.ResourceInfo>
Returns
Type Description
CheckRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(ResourceInfo value)

public CheckRequest.Builder addResources(ResourceInfo value)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
value ResourceInfo
Returns
Type Description
CheckRequest.Builder

addResources(ResourceInfo.Builder builderForValue)

public CheckRequest.Builder addResources(ResourceInfo.Builder builderForValue)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
builderForValue ResourceInfo.Builder
Returns
Type Description
CheckRequest.Builder

addResources(int index, ResourceInfo value)

public CheckRequest.Builder addResources(int index, ResourceInfo value)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameters
Name Description
index int
value ResourceInfo
Returns
Type Description
CheckRequest.Builder

addResources(int index, ResourceInfo.Builder builderForValue)

public CheckRequest.Builder addResources(int index, ResourceInfo.Builder builderForValue)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameters
Name Description
index int
builderForValue ResourceInfo.Builder
Returns
Type Description
CheckRequest.Builder

addResourcesBuilder()

public ResourceInfo.Builder addResourcesBuilder()

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Returns
Type Description
ResourceInfo.Builder

addResourcesBuilder(int index)

public ResourceInfo.Builder addResourcesBuilder(int index)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
index int
Returns
Type Description
ResourceInfo.Builder

build()

public CheckRequest build()
Returns
Type Description
CheckRequest

buildPartial()

public CheckRequest buildPartial()
Returns
Type Description
CheckRequest

clear()

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

clearAttributes()

public CheckRequest.Builder clearAttributes()

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Returns
Type Description
CheckRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFlags()

public CheckRequest.Builder clearFlags()

Optional. Contains a comma-separated list of flags.

string flags = 5;

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CheckRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CheckRequest.Builder
Overrides

clearResources()

public CheckRequest.Builder clearResources()

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Returns
Type Description
CheckRequest.Builder

clearServiceConfigId()

public CheckRequest.Builder clearServiceConfigId()

Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest configuration.

string service_config_id = 2;

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

clearServiceName()

public CheckRequest.Builder clearServiceName()

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

clone()

public CheckRequest.Builder clone()
Returns
Type Description
CheckRequest.Builder
Overrides

getAttributes()

public AttributeContext getAttributes()

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Returns
Type Description
com.google.rpc.context.AttributeContext

The attributes.

getAttributesBuilder()

public AttributeContext.Builder getAttributesBuilder()

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Returns
Type Description
com.google.rpc.context.AttributeContext.Builder

getAttributesOrBuilder()

public AttributeContextOrBuilder getAttributesOrBuilder()

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Returns
Type Description
com.google.rpc.context.AttributeContextOrBuilder

getDefaultInstanceForType()

public CheckRequest getDefaultInstanceForType()
Returns
Type Description
CheckRequest

getDescriptorForType()

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

getFlags()

public String getFlags()

Optional. Contains a comma-separated list of flags.

string flags = 5;

Returns
Type Description
String

The flags.

getFlagsBytes()

public ByteString getFlagsBytes()

Optional. Contains a comma-separated list of flags.

string flags = 5;

Returns
Type Description
ByteString

The bytes for flags.

getResources(int index)

public ResourceInfo getResources(int index)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
index int
Returns
Type Description
ResourceInfo

getResourcesBuilder(int index)

public ResourceInfo.Builder getResourcesBuilder(int index)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
index int
Returns
Type Description
ResourceInfo.Builder

getResourcesBuilderList()

public List<ResourceInfo.Builder> getResourcesBuilderList()

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Returns
Type Description
List<Builder>

getResourcesCount()

public int getResourcesCount()

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Returns
Type Description
int

getResourcesList()

public List<ResourceInfo> getResourcesList()

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Returns
Type Description
List<ResourceInfo>

getResourcesOrBuilder(int index)

public ResourceInfoOrBuilder getResourcesOrBuilder(int index)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
index int
Returns
Type Description
ResourceInfoOrBuilder

getResourcesOrBuilderList()

public List<? extends ResourceInfoOrBuilder> getResourcesOrBuilderList()

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Returns
Type Description
List<? extends com.google.api.servicecontrol.v2.ResourceInfoOrBuilder>

getServiceConfigId()

public String getServiceConfigId()

Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest configuration.

string service_config_id = 2;

Returns
Type Description
String

The serviceConfigId.

getServiceConfigIdBytes()

public ByteString getServiceConfigIdBytes()

Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest configuration.

string service_config_id = 2;

Returns
Type Description
ByteString

The bytes for serviceConfigId.

getServiceName()

public String getServiceName()

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Returns
Type Description
ByteString

The bytes for serviceName.

hasAttributes()

public boolean hasAttributes()

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Returns
Type Description
boolean

Whether the attributes field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttributes(AttributeContext value)

public CheckRequest.Builder mergeAttributes(AttributeContext value)

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Parameter
Name Description
value com.google.rpc.context.AttributeContext
Returns
Type Description
CheckRequest.Builder

mergeFrom(CheckRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CheckRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CheckRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CheckRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CheckRequest.Builder
Overrides

removeResources(int index)

public CheckRequest.Builder removeResources(int index)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameter
Name Description
index int
Returns
Type Description
CheckRequest.Builder

setAttributes(AttributeContext value)

public CheckRequest.Builder setAttributes(AttributeContext value)

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Parameter
Name Description
value com.google.rpc.context.AttributeContext
Returns
Type Description
CheckRequest.Builder

setAttributes(AttributeContext.Builder builderForValue)

public CheckRequest.Builder setAttributes(AttributeContext.Builder builderForValue)

Describes attributes about the operation being executed by the service.

.google.rpc.context.AttributeContext attributes = 3;

Parameter
Name Description
builderForValue com.google.rpc.context.AttributeContext.Builder
Returns
Type Description
CheckRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlags(String value)

public CheckRequest.Builder setFlags(String value)

Optional. Contains a comma-separated list of flags.

string flags = 5;

Parameter
Name Description
value String

The flags to set.

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

setFlagsBytes(ByteString value)

public CheckRequest.Builder setFlagsBytes(ByteString value)

Optional. Contains a comma-separated list of flags.

string flags = 5;

Parameter
Name Description
value ByteString

The bytes for flags to set.

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

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

public CheckRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CheckRequest.Builder
Overrides

setResources(int index, ResourceInfo value)

public CheckRequest.Builder setResources(int index, ResourceInfo value)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameters
Name Description
index int
value ResourceInfo
Returns
Type Description
CheckRequest.Builder

setResources(int index, ResourceInfo.Builder builderForValue)

public CheckRequest.Builder setResources(int index, ResourceInfo.Builder builderForValue)

Describes the resources and the policies applied to each resource.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;

Parameters
Name Description
index int
builderForValue ResourceInfo.Builder
Returns
Type Description
CheckRequest.Builder

setServiceConfigId(String value)

public CheckRequest.Builder setServiceConfigId(String value)

Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest configuration.

string service_config_id = 2;

Parameter
Name Description
value String

The serviceConfigId to set.

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

setServiceConfigIdBytes(ByteString value)

public CheckRequest.Builder setServiceConfigIdBytes(ByteString value)

Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest configuration.

string service_config_id = 2;

Parameter
Name Description
value ByteString

The bytes for serviceConfigId to set.

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

setServiceName(String value)

public CheckRequest.Builder setServiceName(String value)

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public CheckRequest.Builder setServiceNameBytes(ByteString value)

The service name as specified in its service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

string service_name = 1;

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
CheckRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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