Class CheckRequest.Builder (1.16.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.servicecontrol.v2.ResourceInfo>
Returns
TypeDescription
CheckRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CheckRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueResourceInfo
Returns
TypeDescription
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
NameDescription
builderForValueResourceInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResourceInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceInfo.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourceInfo.Builder

build()

public CheckRequest build()
Returns
TypeDescription
CheckRequest

buildPartial()

public CheckRequest buildPartial()
Returns
TypeDescription
CheckRequest

clear()

public CheckRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CheckRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFlags()

public CheckRequest.Builder clearFlags()

Optional. Contains a comma-separated list of flags.

string flags = 5;

Returns
TypeDescription
CheckRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CheckRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CheckRequest.Builder

This builder for chaining.

clone()

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

getAttributes()

public AttributeContext getAttributes()

Describes attributes about the operation being executed by the service.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.rpc.context.AttributeContextOrBuilder

getDefaultInstanceForType()

public CheckRequest getDefaultInstanceForType()
Returns
TypeDescription
CheckRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFlags()

public String getFlags()

Optional. Contains a comma-separated list of flags.

string flags = 5;

Returns
TypeDescription
String

The flags.

getFlagsBytes()

public ByteString getFlagsBytes()

Optional. Contains a comma-separated list of flags.

string flags = 5;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the attributes field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.context.AttributeContext
Returns
TypeDescription
CheckRequest.Builder

mergeFrom(CheckRequest other)

public CheckRequest.Builder mergeFrom(CheckRequest other)
Parameter
NameDescription
otherCheckRequest
Returns
TypeDescription
CheckRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CheckRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.context.AttributeContext
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.context.AttributeContext.Builder
Returns
TypeDescription
CheckRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlags(String value)

public CheckRequest.Builder setFlags(String value)

Optional. Contains a comma-separated list of flags.

string flags = 5;

Parameter
NameDescription
valueString

The flags to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for flags to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueResourceInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceInfo.Builder
Returns
TypeDescription
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
NameDescription
valueString

The serviceConfigId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceConfigId to set.

Returns
TypeDescription
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
NameDescription
valueString

The serviceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceName to set.

Returns
TypeDescription
CheckRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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