Class UsageResourceAllowance.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowance.Builder>
com.google.cloud.batch.v1alpha.UsageResourceAllowance.Builder
All Implemented Interfaces:
UsageResourceAllowanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UsageResourceAllowance

public static final class UsageResourceAllowance.Builder extends com.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowance.Builder> implements UsageResourceAllowanceOrBuilder
 UsageResourceAllowance describes the detail of usage resource allowance.
 
Protobuf type google.cloud.batch.v1alpha.UsageResourceAllowance
  • 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<UsageResourceAllowance.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<UsageResourceAllowance.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<UsageResourceAllowance.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UsageResourceAllowance.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<UsageResourceAllowance.Builder>
      Throws:
      IOException
    • hasSpec

      public boolean hasSpec()
       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSpec in interface UsageResourceAllowanceOrBuilder
      Returns:
      Whether the spec field is set.
    • getSpec

      public UsageResourceAllowanceSpec getSpec()
       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSpec in interface UsageResourceAllowanceOrBuilder
      Returns:
      The spec.
    • setSpec

       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • setSpec

       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeSpec

       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearSpec

      public UsageResourceAllowance.Builder clearSpec()
       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSpecBuilder

      public UsageResourceAllowanceSpec.Builder getSpecBuilder()
       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSpecOrBuilder

      public UsageResourceAllowanceSpecOrBuilder getSpecOrBuilder()
       Required. Spec of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSpecOrBuilder in interface UsageResourceAllowanceOrBuilder
    • hasStatus

      public boolean hasStatus()
       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStatus in interface UsageResourceAllowanceOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public UsageResourceAllowanceStatus getStatus()
       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface UsageResourceAllowanceOrBuilder
      Returns:
      The status.
    • setStatus

       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStatus

       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStatus

       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStatus

      public UsageResourceAllowance.Builder clearStatus()
       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStatusBuilder

      public UsageResourceAllowanceStatus.Builder getStatusBuilder()
       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStatusOrBuilder

      public UsageResourceAllowanceStatusOrBuilder getStatusOrBuilder()
       Output only. Status of a usage ResourceAllowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusOrBuilder in interface UsageResourceAllowanceOrBuilder