Package com.google.cloud.compute.v1
Class LicenseResourceCommitment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
- com.google.cloud.compute.v1.LicenseResourceCommitment.Builder
-
- All Implemented Interfaces:
LicenseResourceCommitmentOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LicenseResourceCommitment
public static final class LicenseResourceCommitment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder> implements LicenseResourceCommitmentOrBuilder
Commitment for a particular license resource.
Protobuf typegoogle.cloud.compute.v1.LicenseResourceCommitment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseResourceCommitment.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LicenseResourceCommitment
build()
LicenseResourceCommitment
buildPartial()
LicenseResourceCommitment.Builder
clear()
LicenseResourceCommitment.Builder
clearAmount()
The number of licenses purchased.LicenseResourceCommitment.Builder
clearCoresPerLicense()
Specifies the core range of the instance for which this license applies.LicenseResourceCommitment.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LicenseResourceCommitment.Builder
clearLicense()
Any applicable license URI.LicenseResourceCommitment.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LicenseResourceCommitment.Builder
clone()
long
getAmount()
The number of licenses purchased.String
getCoresPerLicense()
Specifies the core range of the instance for which this license applies.com.google.protobuf.ByteString
getCoresPerLicenseBytes()
Specifies the core range of the instance for which this license applies.LicenseResourceCommitment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getLicense()
Any applicable license URI.com.google.protobuf.ByteString
getLicenseBytes()
Any applicable license URI.boolean
hasAmount()
The number of licenses purchased.boolean
hasCoresPerLicense()
Specifies the core range of the instance for which this license applies.boolean
hasLicense()
Any applicable license URI.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LicenseResourceCommitment.Builder
mergeFrom(LicenseResourceCommitment other)
LicenseResourceCommitment.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LicenseResourceCommitment.Builder
mergeFrom(com.google.protobuf.Message other)
LicenseResourceCommitment.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LicenseResourceCommitment.Builder
setAmount(long value)
The number of licenses purchased.LicenseResourceCommitment.Builder
setCoresPerLicense(String value)
Specifies the core range of the instance for which this license applies.LicenseResourceCommitment.Builder
setCoresPerLicenseBytes(com.google.protobuf.ByteString value)
Specifies the core range of the instance for which this license applies.LicenseResourceCommitment.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LicenseResourceCommitment.Builder
setLicense(String value)
Any applicable license URI.LicenseResourceCommitment.Builder
setLicenseBytes(com.google.protobuf.ByteString value)
Any applicable license URI.LicenseResourceCommitment.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LicenseResourceCommitment.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
clear
public LicenseResourceCommitment.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
getDefaultInstanceForType
public LicenseResourceCommitment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LicenseResourceCommitment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LicenseResourceCommitment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LicenseResourceCommitment.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
setField
public LicenseResourceCommitment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
clearField
public LicenseResourceCommitment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
clearOneof
public LicenseResourceCommitment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
setRepeatedField
public LicenseResourceCommitment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
addRepeatedField
public LicenseResourceCommitment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
mergeFrom
public LicenseResourceCommitment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LicenseResourceCommitment.Builder>
-
mergeFrom
public LicenseResourceCommitment.Builder mergeFrom(LicenseResourceCommitment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
mergeFrom
public LicenseResourceCommitment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LicenseResourceCommitment.Builder>
- Throws:
IOException
-
hasAmount
public boolean hasAmount()
The number of licenses purchased.
optional int64 amount = 196759640;
- Specified by:
hasAmount
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- Whether the amount field is set.
-
getAmount
public long getAmount()
The number of licenses purchased.
optional int64 amount = 196759640;
- Specified by:
getAmount
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- The amount.
-
setAmount
public LicenseResourceCommitment.Builder setAmount(long value)
The number of licenses purchased.
optional int64 amount = 196759640;
- Parameters:
value
- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
public LicenseResourceCommitment.Builder clearAmount()
The number of licenses purchased.
optional int64 amount = 196759640;
- Returns:
- This builder for chaining.
-
hasCoresPerLicense
public boolean hasCoresPerLicense()
Specifies the core range of the instance for which this license applies.
optional string cores_per_license = 32482324;
- Specified by:
hasCoresPerLicense
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- Whether the coresPerLicense field is set.
-
getCoresPerLicense
public String getCoresPerLicense()
Specifies the core range of the instance for which this license applies.
optional string cores_per_license = 32482324;
- Specified by:
getCoresPerLicense
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- The coresPerLicense.
-
getCoresPerLicenseBytes
public com.google.protobuf.ByteString getCoresPerLicenseBytes()
Specifies the core range of the instance for which this license applies.
optional string cores_per_license = 32482324;
- Specified by:
getCoresPerLicenseBytes
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- The bytes for coresPerLicense.
-
setCoresPerLicense
public LicenseResourceCommitment.Builder setCoresPerLicense(String value)
Specifies the core range of the instance for which this license applies.
optional string cores_per_license = 32482324;
- Parameters:
value
- The coresPerLicense to set.- Returns:
- This builder for chaining.
-
clearCoresPerLicense
public LicenseResourceCommitment.Builder clearCoresPerLicense()
Specifies the core range of the instance for which this license applies.
optional string cores_per_license = 32482324;
- Returns:
- This builder for chaining.
-
setCoresPerLicenseBytes
public LicenseResourceCommitment.Builder setCoresPerLicenseBytes(com.google.protobuf.ByteString value)
Specifies the core range of the instance for which this license applies.
optional string cores_per_license = 32482324;
- Parameters:
value
- The bytes for coresPerLicense to set.- Returns:
- This builder for chaining.
-
hasLicense
public boolean hasLicense()
Any applicable license URI.
optional string license = 166757441;
- Specified by:
hasLicense
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- Whether the license field is set.
-
getLicense
public String getLicense()
Any applicable license URI.
optional string license = 166757441;
- Specified by:
getLicense
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- The license.
-
getLicenseBytes
public com.google.protobuf.ByteString getLicenseBytes()
Any applicable license URI.
optional string license = 166757441;
- Specified by:
getLicenseBytes
in interfaceLicenseResourceCommitmentOrBuilder
- Returns:
- The bytes for license.
-
setLicense
public LicenseResourceCommitment.Builder setLicense(String value)
Any applicable license URI.
optional string license = 166757441;
- Parameters:
value
- The license to set.- Returns:
- This builder for chaining.
-
clearLicense
public LicenseResourceCommitment.Builder clearLicense()
Any applicable license URI.
optional string license = 166757441;
- Returns:
- This builder for chaining.
-
setLicenseBytes
public LicenseResourceCommitment.Builder setLicenseBytes(com.google.protobuf.ByteString value)
Any applicable license URI.
optional string license = 166757441;
- Parameters:
value
- The bytes for license to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final LicenseResourceCommitment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
mergeUnknownFields
public final LicenseResourceCommitment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
-
-