public final class ResourceAllowance extends GeneratedMessageV3 implements ResourceAllowanceOrBuilder
The Resource Allowance description for Cloud Batch.
Protobuf type google.cloud.batch.v1alpha.ResourceAllowance
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NOTIFICATIONS_FIELD_NUMBER
public static final int NOTIFICATIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
USAGE_RESOURCE_ALLOWANCE_FIELD_NUMBER
public static final int USAGE_RESOURCE_ALLOWANCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ResourceAllowance getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ResourceAllowance.Builder newBuilder()
newBuilder(ResourceAllowance prototype)
public static ResourceAllowance.Builder newBuilder(ResourceAllowance prototype)
public static ResourceAllowance parseDelimitedFrom(InputStream input)
public static ResourceAllowance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ResourceAllowance parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResourceAllowance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ResourceAllowance parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResourceAllowance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResourceAllowance parseFrom(CodedInputStream input)
public static ResourceAllowance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourceAllowance parseFrom(InputStream input)
public static ResourceAllowance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ResourceAllowance parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResourceAllowance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ResourceAllowance> parser()
Methods
containsLabels(String key)
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:
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public ResourceAllowance getDefaultInstanceForType()
getLabels() (deprecated)
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Optional. Labels are attributes that can be set and used by both the
user and by Batch. Labels must meet the following constraints:
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
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:
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault(String key, String defaultValue)
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:
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
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:
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getName()
Identifier. ResourceAllowance name.
For example:
"projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. ResourceAllowance name.
For example:
"projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getNotifications(int index)
public Notification getNotifications(int index)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getNotificationsCount()
public int getNotificationsCount()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getNotificationsList()
public List<Notification> getNotificationsList()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
getNotificationsOrBuilder(int index)
public NotificationOrBuilder getNotificationsOrBuilder(int index)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getNotificationsOrBuilderList()
public List<? extends NotificationOrBuilder> getNotificationsOrBuilderList()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.batch.v1alpha.NotificationOrBuilder> |
|
getParserForType()
public Parser<ResourceAllowance> getParserForType()
Overrides
getResourceAllowanceCase()
public ResourceAllowance.ResourceAllowanceCase getResourceAllowanceCase()
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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) = { ... }
Returns |
Type |
Description |
String |
The uid.
|
getUidBytes()
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for uid.
|
getUsageResourceAllowance()
public UsageResourceAllowance getUsageResourceAllowance()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
getUsageResourceAllowanceOrBuilder()
public UsageResourceAllowanceOrBuilder getUsageResourceAllowanceOrBuilder()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
hasUsageResourceAllowance()
public boolean hasUsageResourceAllowance()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Returns |
Type |
Description |
boolean |
Whether the usageResourceAllowance field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ResourceAllowance.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResourceAllowance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ResourceAllowance.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides