Class ResourceAllowance

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.batch.v1alpha.ResourceAllowance
All Implemented Interfaces:
ResourceAllowanceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ResourceAllowance extends com.google.protobuf.GeneratedMessage implements ResourceAllowanceOrBuilder
 The Resource Allowance description for Cloud Batch.
 Only one Resource Allowance is supported now under a specific location and
 project.
 
Protobuf type google.cloud.batch.v1alpha.ResourceAllowance
See Also:
  • Field Details

    • USAGE_RESOURCE_ALLOWANCE_FIELD_NUMBER

      public static final int USAGE_RESOURCE_ALLOWANCE_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • NOTIFICATIONS_FIELD_NUMBER

      public static final int NOTIFICATIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getResourceAllowanceCase

      public ResourceAllowance.ResourceAllowanceCase getResourceAllowanceCase()
      Specified by:
      getResourceAllowanceCase in interface ResourceAllowanceOrBuilder
    • hasUsageResourceAllowance

      public boolean hasUsageResourceAllowance()
       The detail of usage resource allowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
      Specified by:
      hasUsageResourceAllowance in interface ResourceAllowanceOrBuilder
      Returns:
      Whether the usageResourceAllowance field is set.
    • getUsageResourceAllowance

      public UsageResourceAllowance getUsageResourceAllowance()
       The detail of usage resource allowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
      Specified by:
      getUsageResourceAllowance in interface ResourceAllowanceOrBuilder
      Returns:
      The usageResourceAllowance.
    • getUsageResourceAllowanceOrBuilder

      public UsageResourceAllowanceOrBuilder getUsageResourceAllowanceOrBuilder()
       The detail of usage resource allowance.
       
      .google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
      Specified by:
      getUsageResourceAllowanceOrBuilder in interface ResourceAllowanceOrBuilder
    • getName

      public String getName()
       Identifier. ResourceAllowance name.
       For example:
       "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ResourceAllowanceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. ResourceAllowance name.
       For example:
       "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ResourceAllowanceOrBuilder
      Returns:
      The bytes for name.
    • getUid

      public String getUid()
       Output only. A system generated unique ID (in UUID4 format) for the
       ResourceAllowance.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface ResourceAllowanceOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. A system generated unique ID (in UUID4 format) for the
       ResourceAllowance.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface ResourceAllowanceOrBuilder
      Returns:
      The bytes for uid.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when the ResourceAllowance was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ResourceAllowanceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when the ResourceAllowance was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ResourceAllowanceOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when the ResourceAllowance was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ResourceAllowanceOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ResourceAllowanceOrBuilder
       Optional. Labels are attributes that can be set and used by both the
       user and by Batch. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ResourceAllowanceOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels are attributes that can be set and used by both the
       user and by Batch. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ResourceAllowanceOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ResourceAllowanceOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels are attributes that can be set and used by both the
       user and by Batch. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ResourceAllowanceOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels are attributes that can be set and used by both the
       user and by Batch. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ResourceAllowanceOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels are attributes that can be set and used by both the
       user and by Batch. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ResourceAllowanceOrBuilder
    • getNotificationsList

      public List<Notification> getNotificationsList()
       Optional. Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotificationsList in interface ResourceAllowanceOrBuilder
    • getNotificationsOrBuilderList

      public List<? extends NotificationOrBuilder> getNotificationsOrBuilderList()
       Optional. Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotificationsOrBuilderList in interface ResourceAllowanceOrBuilder
    • getNotificationsCount

      public int getNotificationsCount()
       Optional. Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotificationsCount in interface ResourceAllowanceOrBuilder
    • getNotifications

      public Notification getNotifications(int index)
       Optional. Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotifications in interface ResourceAllowanceOrBuilder
    • getNotificationsOrBuilder

      public NotificationOrBuilder getNotificationsOrBuilder(int index)
       Optional. Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotificationsOrBuilder in interface ResourceAllowanceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ResourceAllowance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceAllowance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceAllowance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceAllowance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceAllowance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceAllowance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceAllowance parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourceAllowance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResourceAllowance parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResourceAllowance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourceAllowance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourceAllowance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ResourceAllowance.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ResourceAllowance.Builder newBuilder()
    • newBuilder

      public static ResourceAllowance.Builder newBuilder(ResourceAllowance prototype)
    • toBuilder

      public ResourceAllowance.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ResourceAllowance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ResourceAllowance getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ResourceAllowance> parser()
    • getParserForType

      public com.google.protobuf.Parser<ResourceAllowance> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ResourceAllowance getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder