Class LicenseResourceCommitment.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
      • getDefaultInstanceForType

        public LicenseResourceCommitment getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public LicenseResourceCommitment build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public LicenseResourceCommitment buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public LicenseResourceCommitment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface LicenseResourceCommitmentOrBuilder
        Returns:
        Whether the amount field is set.
      • 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 interface LicenseResourceCommitmentOrBuilder
        Returns:
        Whether the coresPerLicense field is set.
      • 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 interface LicenseResourceCommitmentOrBuilder
        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 interface LicenseResourceCommitmentOrBuilder
        Returns:
        Whether the license field is set.
      • getLicenseBytes

        public com.google.protobuf.ByteString getLicenseBytes()
         Any applicable license URI.
         
        optional string license = 166757441;
        Specified by:
        getLicenseBytes in interface LicenseResourceCommitmentOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>
      • mergeUnknownFields

        public final LicenseResourceCommitment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LicenseResourceCommitment.Builder>