Class CheckRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<CheckRequest.Builder> implements CheckRequestOrBuilder
 Request message for the Check method.
 
Protobuf type google.api.servicecontrol.v2.CheckRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CheckRequest.Builder>
    • clear

      public CheckRequest.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CheckRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CheckRequest.Builder>
    • getDefaultInstanceForType

      public CheckRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CheckRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CheckRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CheckRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckRequest.Builder>
    • mergeFrom

      public CheckRequest.Builder mergeFrom(CheckRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CheckRequest.Builder>
    • mergeFrom

      public CheckRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface CheckRequestOrBuilder
      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 interface CheckRequestOrBuilder
      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 interface CheckRequestOrBuilder
      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 interface CheckRequestOrBuilder
      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 interface CheckRequestOrBuilder
      Returns:
      Whether the attributes field is set.
    • getAttributes

      public AttributeContext getAttributes()
       Describes attributes about the operation being executed by the service.
       
      .google.rpc.context.AttributeContext attributes = 3;
      Specified by:
      getAttributes in interface CheckRequestOrBuilder
      Returns:
      The attributes.
    • setAttributes

      public CheckRequest.Builder setAttributes(AttributeContext value)
       Describes attributes about the operation being executed by the service.
       
      .google.rpc.context.AttributeContext attributes = 3;
    • setAttributes

      public CheckRequest.Builder setAttributes(AttributeContext.Builder builderForValue)
       Describes attributes about the operation being executed by the service.
       
      .google.rpc.context.AttributeContext attributes = 3;
    • mergeAttributes

      public CheckRequest.Builder mergeAttributes(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 AttributeContext.Builder getAttributesBuilder()
       Describes attributes about the operation being executed by the service.
       
      .google.rpc.context.AttributeContext attributes = 3;
    • getAttributesOrBuilder

      public AttributeContextOrBuilder getAttributesOrBuilder()
       Describes attributes about the operation being executed by the service.
       
      .google.rpc.context.AttributeContext attributes = 3;
      Specified by:
      getAttributesOrBuilder in interface CheckRequestOrBuilder
    • 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 interface CheckRequestOrBuilder
    • 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 interface CheckRequestOrBuilder
    • 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 interface CheckRequestOrBuilder
    • 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 interface CheckRequestOrBuilder
    • 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 interface CheckRequestOrBuilder
    • 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 interface CheckRequestOrBuilder
      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 interface CheckRequestOrBuilder
      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.