Package com.google.api.servicecontrol.v2
Class CheckRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
- com.google.api.servicecontrol.v2.CheckRequest.Builder
-
- All Implemented Interfaces:
CheckRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CheckRequest
public static final class CheckRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder> implements CheckRequestOrBuilder
Request message for the Check method.
Protobuf typegoogle.api.servicecontrol.v2.CheckRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckRequest.Builder
addAllResources(Iterable<? extends ResourceInfo> values)
Describes the resources and the policies applied to each resource.CheckRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CheckRequest.Builder
addResources(int index, ResourceInfo value)
Describes the resources and the policies applied to each resource.CheckRequest.Builder
addResources(int index, ResourceInfo.Builder builderForValue)
Describes the resources and the policies applied to each resource.CheckRequest.Builder
addResources(ResourceInfo value)
Describes the resources and the policies applied to each resource.CheckRequest.Builder
addResources(ResourceInfo.Builder builderForValue)
Describes the resources and the policies applied to each resource.ResourceInfo.Builder
addResourcesBuilder()
Describes the resources and the policies applied to each resource.ResourceInfo.Builder
addResourcesBuilder(int index)
Describes the resources and the policies applied to each resource.CheckRequest
build()
CheckRequest
buildPartial()
CheckRequest.Builder
clear()
CheckRequest.Builder
clearAttributes()
Describes attributes about the operation being executed by the service.CheckRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CheckRequest.Builder
clearFlags()
Optional.CheckRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CheckRequest.Builder
clearResources()
Describes the resources and the policies applied to each resource.CheckRequest.Builder
clearServiceConfigId()
Specifies the version of the service configuration that should be used to process the request.CheckRequest.Builder
clearServiceName()
The service name as specified in its service configuration.CheckRequest.Builder
clone()
com.google.rpc.context.AttributeContext
getAttributes()
Describes attributes about the operation being executed by the service.com.google.rpc.context.AttributeContext.Builder
getAttributesBuilder()
Describes attributes about the operation being executed by the service.com.google.rpc.context.AttributeContextOrBuilder
getAttributesOrBuilder()
Describes attributes about the operation being executed by the service.CheckRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFlags()
Optional.com.google.protobuf.ByteString
getFlagsBytes()
Optional.ResourceInfo
getResources(int index)
Describes the resources and the policies applied to each resource.ResourceInfo.Builder
getResourcesBuilder(int index)
Describes the resources and the policies applied to each resource.List<ResourceInfo.Builder>
getResourcesBuilderList()
Describes the resources and the policies applied to each resource.int
getResourcesCount()
Describes the resources and the policies applied to each resource.List<ResourceInfo>
getResourcesList()
Describes the resources and the policies applied to each resource.ResourceInfoOrBuilder
getResourcesOrBuilder(int index)
Describes the resources and the policies applied to each resource.List<? extends ResourceInfoOrBuilder>
getResourcesOrBuilderList()
Describes the resources and the policies applied to each resource.String
getServiceConfigId()
Specifies the version of the service configuration that should be used to process the request.com.google.protobuf.ByteString
getServiceConfigIdBytes()
Specifies the version of the service configuration that should be used to process the request.String
getServiceName()
The service name as specified in its service configuration.com.google.protobuf.ByteString
getServiceNameBytes()
The service name as specified in its service configuration.boolean
hasAttributes()
Describes attributes about the operation being executed by the service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CheckRequest.Builder
mergeAttributes(com.google.rpc.context.AttributeContext value)
Describes attributes about the operation being executed by the service.CheckRequest.Builder
mergeFrom(CheckRequest other)
CheckRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CheckRequest.Builder
mergeFrom(com.google.protobuf.Message other)
CheckRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CheckRequest.Builder
removeResources(int index)
Describes the resources and the policies applied to each resource.CheckRequest.Builder
setAttributes(com.google.rpc.context.AttributeContext value)
Describes attributes about the operation being executed by the service.CheckRequest.Builder
setAttributes(com.google.rpc.context.AttributeContext.Builder builderForValue)
Describes attributes about the operation being executed by the service.CheckRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CheckRequest.Builder
setFlags(String value)
Optional.CheckRequest.Builder
setFlagsBytes(com.google.protobuf.ByteString value)
Optional.CheckRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CheckRequest.Builder
setResources(int index, ResourceInfo value)
Describes the resources and the policies applied to each resource.CheckRequest.Builder
setResources(int index, ResourceInfo.Builder builderForValue)
Describes the resources and the policies applied to each resource.CheckRequest.Builder
setServiceConfigId(String value)
Specifies the version of the service configuration that should be used to process the request.CheckRequest.Builder
setServiceConfigIdBytes(com.google.protobuf.ByteString value)
Specifies the version of the service configuration that should be used to process the request.CheckRequest.Builder
setServiceName(String value)
The service name as specified in its service configuration.CheckRequest.Builder
setServiceNameBytes(com.google.protobuf.ByteString value)
The service name as specified in its service configuration.CheckRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
clear
public CheckRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
getDefaultInstanceForType
public CheckRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CheckRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CheckRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CheckRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
setField
public CheckRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
clearField
public CheckRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
clearOneof
public CheckRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
setRepeatedField
public CheckRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
addRepeatedField
public CheckRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
mergeFrom
public CheckRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CheckRequest.Builder>
-
mergeFrom
public CheckRequest.Builder mergeFrom(CheckRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
mergeFrom
public CheckRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CheckRequest.Builder>
- Throws:
IOException
-
getServiceName
public String getServiceName()
The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
string service_name = 1;
- Specified by:
getServiceName
in interfaceCheckRequestOrBuilder
- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()
The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
string service_name = 1;
- Specified by:
getServiceNameBytes
in interfaceCheckRequestOrBuilder
- Returns:
- The bytes for serviceName.
-
setServiceName
public CheckRequest.Builder setServiceName(String value)
The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
string service_name = 1;
- Parameters:
value
- The serviceName to set.- Returns:
- 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](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
string service_name = 1;
- Returns:
- This builder for chaining.
-
setServiceNameBytes
public CheckRequest.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
string service_name = 1;
- Parameters:
value
- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getServiceConfigId
in interfaceCheckRequestOrBuilder
- Returns:
- The serviceConfigId.
-
getServiceConfigIdBytes
public com.google.protobuf.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;
- Specified by:
getServiceConfigIdBytes
in interfaceCheckRequestOrBuilder
- Returns:
- The bytes for serviceConfigId.
-
setServiceConfigId
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;
- Parameters:
value
- The serviceConfigId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setServiceConfigIdBytes
public CheckRequest.Builder setServiceConfigIdBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for serviceConfigId to set.- Returns:
- This builder for chaining.
-
hasAttributes
public boolean hasAttributes()
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
- Specified by:
hasAttributes
in interfaceCheckRequestOrBuilder
- Returns:
- Whether the attributes field is set.
-
getAttributes
public com.google.rpc.context.AttributeContext getAttributes()
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
- Specified by:
getAttributes
in interfaceCheckRequestOrBuilder
- Returns:
- The attributes.
-
setAttributes
public CheckRequest.Builder setAttributes(com.google.rpc.context.AttributeContext value)
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
-
setAttributes
public CheckRequest.Builder setAttributes(com.google.rpc.context.AttributeContext.Builder builderForValue)
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
-
mergeAttributes
public CheckRequest.Builder mergeAttributes(com.google.rpc.context.AttributeContext value)
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
-
clearAttributes
public CheckRequest.Builder clearAttributes()
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
-
getAttributesBuilder
public com.google.rpc.context.AttributeContext.Builder getAttributesBuilder()
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
-
getAttributesOrBuilder
public com.google.rpc.context.AttributeContextOrBuilder getAttributesOrBuilder()
Describes attributes about the operation being executed by the service.
.google.rpc.context.AttributeContext attributes = 3;
- Specified by:
getAttributesOrBuilder
in interfaceCheckRequestOrBuilder
-
getResourcesList
public List<ResourceInfo> getResourcesList()
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
- Specified by:
getResourcesList
in interfaceCheckRequestOrBuilder
-
getResourcesCount
public int getResourcesCount()
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
- Specified by:
getResourcesCount
in interfaceCheckRequestOrBuilder
-
getResources
public ResourceInfo getResources(int index)
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
- Specified by:
getResources
in interfaceCheckRequestOrBuilder
-
setResources
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;
-
setResources
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;
-
addResources
public CheckRequest.Builder addResources(ResourceInfo value)
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
-
addResources
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;
-
addResources
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;
-
addResources
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;
-
addAllResources
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;
-
clearResources
public CheckRequest.Builder clearResources()
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
-
removeResources
public CheckRequest.Builder removeResources(int index)
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
-
getResourcesBuilder
public ResourceInfo.Builder getResourcesBuilder(int index)
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
-
getResourcesOrBuilder
public ResourceInfoOrBuilder getResourcesOrBuilder(int index)
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
- Specified by:
getResourcesOrBuilder
in interfaceCheckRequestOrBuilder
-
getResourcesOrBuilderList
public List<? extends ResourceInfoOrBuilder> getResourcesOrBuilderList()
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
- Specified by:
getResourcesOrBuilderList
in interfaceCheckRequestOrBuilder
-
addResourcesBuilder
public ResourceInfo.Builder addResourcesBuilder()
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
-
addResourcesBuilder
public ResourceInfo.Builder addResourcesBuilder(int index)
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
-
getResourcesBuilderList
public List<ResourceInfo.Builder> getResourcesBuilderList()
Describes the resources and the policies applied to each resource.
repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
-
getFlags
public String getFlags()
Optional. Contains a comma-separated list of flags.
string flags = 5;
- Specified by:
getFlags
in interfaceCheckRequestOrBuilder
- Returns:
- The flags.
-
getFlagsBytes
public com.google.protobuf.ByteString getFlagsBytes()
Optional. Contains a comma-separated list of flags.
string flags = 5;
- Specified by:
getFlagsBytes
in interfaceCheckRequestOrBuilder
- Returns:
- The bytes for flags.
-
setFlags
public CheckRequest.Builder setFlags(String value)
Optional. Contains a comma-separated list of flags.
string flags = 5;
- Parameters:
value
- The flags to set.- Returns:
- This builder for chaining.
-
clearFlags
public CheckRequest.Builder clearFlags()
Optional. Contains a comma-separated list of flags.
string flags = 5;
- Returns:
- This builder for chaining.
-
setFlagsBytes
public CheckRequest.Builder setFlagsBytes(com.google.protobuf.ByteString value)
Optional. Contains a comma-separated list of flags.
string flags = 5;
- Parameters:
value
- The bytes for flags to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CheckRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
mergeUnknownFields
public final CheckRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
-
-