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.GeneratedMessage.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.GeneratedMessage.Builder<LicenseResourceCommitment.Builder>
implements LicenseResourceCommitmentOrBuilder
Commitment for a particular license resource.Protobuf type
google.cloud.compute.v1.LicenseResourceCommitment-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of licenses you plan to purchase.The number of cores per license.The applicable license URI.longThe number of licenses you plan to purchase.The number of cores per license.com.google.protobuf.ByteStringThe number of cores per license.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe applicable license URI.com.google.protobuf.ByteStringThe applicable license URI.booleanThe number of licenses you plan to purchase.booleanThe number of cores per license.booleanThe applicable license URI.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAmount(long value) The number of licenses you plan to purchase.setCoresPerLicense(String value) The number of cores per license.setCoresPerLicenseBytes(com.google.protobuf.ByteString value) The number of cores per license.setLicense(String value) The applicable license URI.setLicenseBytes(com.google.protobuf.ByteString value) The applicable license URI.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LicenseResourceCommitment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LicenseResourceCommitment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LicenseResourceCommitment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LicenseResourceCommitment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LicenseResourceCommitment.Builder>
-
mergeFrom
public LicenseResourceCommitment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LicenseResourceCommitment.Builder>- Throws:
IOException
-
hasAmount
public boolean hasAmount()The number of licenses you plan to purchase.
optional int64 amount = 196759640;- Specified by:
hasAmountin interfaceLicenseResourceCommitmentOrBuilder- Returns:
- Whether the amount field is set.
-
getAmount
public long getAmount()The number of licenses you plan to purchase.
optional int64 amount = 196759640;- Specified by:
getAmountin interfaceLicenseResourceCommitmentOrBuilder- Returns:
- The amount.
-
setAmount
The number of licenses you plan to purchase.
optional int64 amount = 196759640;- Parameters:
value- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
The number of licenses you plan to purchase.
optional int64 amount = 196759640;- Returns:
- This builder for chaining.
-
hasCoresPerLicense
public boolean hasCoresPerLicense()The number of cores per license.
optional string cores_per_license = 32482324;- Specified by:
hasCoresPerLicensein interfaceLicenseResourceCommitmentOrBuilder- Returns:
- Whether the coresPerLicense field is set.
-
getCoresPerLicense
The number of cores per license.
optional string cores_per_license = 32482324;- Specified by:
getCoresPerLicensein interfaceLicenseResourceCommitmentOrBuilder- Returns:
- The coresPerLicense.
-
getCoresPerLicenseBytes
public com.google.protobuf.ByteString getCoresPerLicenseBytes()The number of cores per license.
optional string cores_per_license = 32482324;- Specified by:
getCoresPerLicenseBytesin interfaceLicenseResourceCommitmentOrBuilder- Returns:
- The bytes for coresPerLicense.
-
setCoresPerLicense
The number of cores per license.
optional string cores_per_license = 32482324;- Parameters:
value- The coresPerLicense to set.- Returns:
- This builder for chaining.
-
clearCoresPerLicense
The number of cores per license.
optional string cores_per_license = 32482324;- Returns:
- This builder for chaining.
-
setCoresPerLicenseBytes
public LicenseResourceCommitment.Builder setCoresPerLicenseBytes(com.google.protobuf.ByteString value) The number of cores per license.
optional string cores_per_license = 32482324;- Parameters:
value- The bytes for coresPerLicense to set.- Returns:
- This builder for chaining.
-
hasLicense
public boolean hasLicense()The applicable license URI.
optional string license = 166757441;- Specified by:
hasLicensein interfaceLicenseResourceCommitmentOrBuilder- Returns:
- Whether the license field is set.
-
getLicense
The applicable license URI.
optional string license = 166757441;- Specified by:
getLicensein interfaceLicenseResourceCommitmentOrBuilder- Returns:
- The license.
-
getLicenseBytes
public com.google.protobuf.ByteString getLicenseBytes()The applicable license URI.
optional string license = 166757441;- Specified by:
getLicenseBytesin interfaceLicenseResourceCommitmentOrBuilder- Returns:
- The bytes for license.
-
setLicense
The applicable license URI.
optional string license = 166757441;- Parameters:
value- The license to set.- Returns:
- This builder for chaining.
-
clearLicense
The applicable license URI.
optional string license = 166757441;- Returns:
- This builder for chaining.
-
setLicenseBytes
The applicable license URI.
optional string license = 166757441;- Parameters:
value- The bytes for license to set.- Returns:
- This builder for chaining.
-