public static final class UsageResourceAllowanceStatus.ConsumptionReport extends GeneratedMessageV3 implements UsageResourceAllowanceStatus.ConsumptionReportOrBuilder
ConsumptionReport is the report of ResourceAllowance consumptions in a time
period.
Protobuf type google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport
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
LATEST_PERIOD_CONSUMPTIONS_FIELD_NUMBER
public static final int LATEST_PERIOD_CONSUMPTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static UsageResourceAllowanceStatus.ConsumptionReport getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static UsageResourceAllowanceStatus.ConsumptionReport.Builder newBuilder()
newBuilder(UsageResourceAllowanceStatus.ConsumptionReport prototype)
public static UsageResourceAllowanceStatus.ConsumptionReport.Builder newBuilder(UsageResourceAllowanceStatus.ConsumptionReport prototype)
public static UsageResourceAllowanceStatus.ConsumptionReport parseDelimitedFrom(InputStream input)
public static UsageResourceAllowanceStatus.ConsumptionReport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(CodedInputStream input)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(InputStream input)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceStatus.ConsumptionReport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<UsageResourceAllowanceStatus.ConsumptionReport> parser()
Methods
containsLatestPeriodConsumptions(String key)
public boolean containsLatestPeriodConsumptions(String key)
Output only. ResourceAllowance consumptions in the latest calendar
period. Key is the calendar period in string format. Batch currently
supports HOUR, DAY, MONTH and YEAR.
map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public UsageResourceAllowanceStatus.ConsumptionReport getDefaultInstanceForType()
getLatestPeriodConsumptions() (deprecated)
public Map<String,UsageResourceAllowanceStatus.PeriodConsumption> getLatestPeriodConsumptions()
getLatestPeriodConsumptionsCount()
public int getLatestPeriodConsumptionsCount()
Output only. ResourceAllowance consumptions in the latest calendar
period. Key is the calendar period in string format. Batch currently
supports HOUR, DAY, MONTH and YEAR.
map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
|
getLatestPeriodConsumptionsMap()
public Map<String,UsageResourceAllowanceStatus.PeriodConsumption> getLatestPeriodConsumptionsMap()
Output only. ResourceAllowance consumptions in the latest calendar
period. Key is the calendar period in string format. Batch currently
supports HOUR, DAY, MONTH and YEAR.
map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLatestPeriodConsumptionsOrDefault(String key, UsageResourceAllowanceStatus.PeriodConsumption defaultValue)
public UsageResourceAllowanceStatus.PeriodConsumption getLatestPeriodConsumptionsOrDefault(String key, UsageResourceAllowanceStatus.PeriodConsumption defaultValue)
Output only. ResourceAllowance consumptions in the latest calendar
period. Key is the calendar period in string format. Batch currently
supports HOUR, DAY, MONTH and YEAR.
map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLatestPeriodConsumptionsOrThrow(String key)
public UsageResourceAllowanceStatus.PeriodConsumption getLatestPeriodConsumptionsOrThrow(String key)
Output only. ResourceAllowance consumptions in the latest calendar
period. Key is the calendar period in string format. Batch currently
supports HOUR, DAY, MONTH and YEAR.
map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
key |
String
|
getParserForType()
public Parser<UsageResourceAllowanceStatus.ConsumptionReport> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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 UsageResourceAllowanceStatus.ConsumptionReport.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UsageResourceAllowanceStatus.ConsumptionReport.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public UsageResourceAllowanceStatus.ConsumptionReport.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides