Class AllocateQuotaRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocateQuotaRequest.Builder>
com.google.api.servicecontrol.v1.AllocateQuotaRequest.Builder
All Implemented Interfaces:
AllocateQuotaRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AllocateQuotaRequest

public static final class AllocateQuotaRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AllocateQuotaRequest.Builder> implements AllocateQuotaRequestOrBuilder
 Request message for the AllocateQuota method.
 
Protobuf type google.api.servicecontrol.v1.AllocateQuotaRequest
  • 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<AllocateQuotaRequest.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<AllocateQuotaRequest.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<AllocateQuotaRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public AllocateQuotaRequest.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<AllocateQuotaRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public AllocateQuotaRequest.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<AllocateQuotaRequest.Builder>
      Throws:
      IOException
    • getServiceName

      public String getServiceName()
       Name of the service as specified in the service configuration. For example,
       `"pubsub.googleapis.com"`.
      
       See [google.api.Service][google.api.Service] for the definition of a service name.
       
      string service_name = 1;
      Specified by:
      getServiceName in interface AllocateQuotaRequestOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       Name of the service as specified in the service configuration. For example,
       `"pubsub.googleapis.com"`.
      
       See [google.api.Service][google.api.Service] for the definition of a service name.
       
      string service_name = 1;
      Specified by:
      getServiceNameBytes in interface AllocateQuotaRequestOrBuilder
      Returns:
      The bytes for serviceName.
    • setServiceName

      public AllocateQuotaRequest.Builder setServiceName(String value)
       Name of the service as specified in the service configuration. For example,
       `"pubsub.googleapis.com"`.
      
       See [google.api.Service][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 AllocateQuotaRequest.Builder clearServiceName()
       Name of the service as specified in the service configuration. For example,
       `"pubsub.googleapis.com"`.
      
       See [google.api.Service][google.api.Service] for the definition of a service name.
       
      string service_name = 1;
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public AllocateQuotaRequest.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       Name of the service as specified in the service configuration. For example,
       `"pubsub.googleapis.com"`.
      
       See [google.api.Service][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.
    • hasAllocateOperation

      public boolean hasAllocateOperation()
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
      Specified by:
      hasAllocateOperation in interface AllocateQuotaRequestOrBuilder
      Returns:
      Whether the allocateOperation field is set.
    • getAllocateOperation

      public QuotaOperation getAllocateOperation()
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
      Specified by:
      getAllocateOperation in interface AllocateQuotaRequestOrBuilder
      Returns:
      The allocateOperation.
    • setAllocateOperation

      public AllocateQuotaRequest.Builder setAllocateOperation(QuotaOperation value)
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
    • setAllocateOperation

      public AllocateQuotaRequest.Builder setAllocateOperation(QuotaOperation.Builder builderForValue)
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
    • mergeAllocateOperation

      public AllocateQuotaRequest.Builder mergeAllocateOperation(QuotaOperation value)
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
    • clearAllocateOperation

      public AllocateQuotaRequest.Builder clearAllocateOperation()
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
    • getAllocateOperationBuilder

      public QuotaOperation.Builder getAllocateOperationBuilder()
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
    • getAllocateOperationOrBuilder

      public QuotaOperationOrBuilder getAllocateOperationOrBuilder()
       Operation that describes the quota allocation.
       
      .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2;
      Specified by:
      getAllocateOperationOrBuilder in interface AllocateQuotaRequestOrBuilder
    • getServiceConfigId

      public String getServiceConfigId()
       Specifies which version of service configuration should be used to process
       the request. If unspecified or no matching version can be found, the latest
       one will be used.
       
      string service_config_id = 4;
      Specified by:
      getServiceConfigId in interface AllocateQuotaRequestOrBuilder
      Returns:
      The serviceConfigId.
    • getServiceConfigIdBytes

      public com.google.protobuf.ByteString getServiceConfigIdBytes()
       Specifies which version of service configuration should be used to process
       the request. If unspecified or no matching version can be found, the latest
       one will be used.
       
      string service_config_id = 4;
      Specified by:
      getServiceConfigIdBytes in interface AllocateQuotaRequestOrBuilder
      Returns:
      The bytes for serviceConfigId.
    • setServiceConfigId

      public AllocateQuotaRequest.Builder setServiceConfigId(String value)
       Specifies which version of service configuration should be used to process
       the request. If unspecified or no matching version can be found, the latest
       one will be used.
       
      string service_config_id = 4;
      Parameters:
      value - The serviceConfigId to set.
      Returns:
      This builder for chaining.
    • clearServiceConfigId

      public AllocateQuotaRequest.Builder clearServiceConfigId()
       Specifies which version of service configuration should be used to process
       the request. If unspecified or no matching version can be found, the latest
       one will be used.
       
      string service_config_id = 4;
      Returns:
      This builder for chaining.
    • setServiceConfigIdBytes

      public AllocateQuotaRequest.Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value)
       Specifies which version of service configuration should be used to process
       the request. If unspecified or no matching version can be found, the latest
       one will be used.
       
      string service_config_id = 4;
      Parameters:
      value - The bytes for serviceConfigId to set.
      Returns:
      This builder for chaining.