Class Product.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
com.google.cloud.licensemanager.v1.Product.Builder
All Implemented Interfaces:
ProductOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Product

public static final class Product.Builder extends com.google.protobuf.GeneratedMessage.Builder<Product.Builder> implements ProductOrBuilder
 Products for Google SPLA.
 
Protobuf type google.cloud.licensemanager.v1.Product
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
    • clear

      public Product.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Product.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.GeneratedMessage.Builder<Product.Builder>
    • getDefaultInstanceForType

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

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

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

      public Product.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.Builder>
    • mergeFrom

      public Product.Builder mergeFrom(Product other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Product.Builder>
    • mergeFrom

      public Product.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<Product.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Full name of the product resource.
       ex "projects/1/locations/us-central1/products/office-2021"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ProductOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Full name of the product resource.
       ex "projects/1/locations/us-central1/products/office-2021"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ProductOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Product.Builder setName(String value)
       Identifier. Full name of the product resource.
       ex "projects/1/locations/us-central1/products/office-2021"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Product.Builder clearName()
       Identifier. Full name of the product resource.
       ex "projects/1/locations/us-central1/products/office-2021"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Product.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Full name of the product resource.
       ex "projects/1/locations/us-central1/products/office-2021"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Required. Version of the product.
       
      string version = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVersion in interface ProductOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Required. Version of the product.
       
      string version = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVersionBytes in interface ProductOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public Product.Builder setVersion(String value)
       Required. Version of the product.
       
      string version = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Product.Builder clearVersion()
       Required. Version of the product.
       
      string version = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public Product.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Required. Version of the product.
       
      string version = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getProductCompany

      public String getProductCompany()
       Required. Company that released the product.
       
      string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProductCompany in interface ProductOrBuilder
      Returns:
      The productCompany.
    • getProductCompanyBytes

      public com.google.protobuf.ByteString getProductCompanyBytes()
       Required. Company that released the product.
       
      string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProductCompanyBytes in interface ProductOrBuilder
      Returns:
      The bytes for productCompany.
    • setProductCompany

      public Product.Builder setProductCompany(String value)
       Required. Company that released the product.
       
      string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The productCompany to set.
      Returns:
      This builder for chaining.
    • clearProductCompany

      public Product.Builder clearProductCompany()
       Required. Company that released the product.
       
      string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProductCompanyBytes

      public Product.Builder setProductCompanyBytes(com.google.protobuf.ByteString value)
       Required. Company that released the product.
       
      string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for productCompany to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the product.
       
      .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ProductOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Product.Builder setStateValue(int value)
       Output only. State of the product.
       
      .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Product.State getState()
       Output only. State of the product.
       
      .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ProductOrBuilder
      Returns:
      The state.
    • setState

      public Product.Builder setState(Product.State value)
       Output only. State of the product.
       
      .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Product.Builder clearState()
       Output only. State of the product.
       
      .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getSku

      public String getSku()
       Required. SKU for mapping to the Billing/Subscription resource.
       
      string sku = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSku in interface ProductOrBuilder
      Returns:
      The sku.
    • getSkuBytes

      public com.google.protobuf.ByteString getSkuBytes()
       Required. SKU for mapping to the Billing/Subscription resource.
       
      string sku = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSkuBytes in interface ProductOrBuilder
      Returns:
      The bytes for sku.
    • setSku

      public Product.Builder setSku(String value)
       Required. SKU for mapping to the Billing/Subscription resource.
       
      string sku = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sku to set.
      Returns:
      This builder for chaining.
    • clearSku

      public Product.Builder clearSku()
       Required. SKU for mapping to the Billing/Subscription resource.
       
      string sku = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSkuBytes

      public Product.Builder setSkuBytes(com.google.protobuf.ByteString value)
       Required. SKU for mapping to the Billing/Subscription resource.
       
      string sku = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for sku to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Required. Human-readable, detailed description of the Product
       
      string description = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescription in interface ProductOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Required. Human-readable, detailed description of the Product
       
      string description = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescriptionBytes in interface ProductOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Product.Builder setDescription(String value)
       Required. Human-readable, detailed description of the Product
       
      string description = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Product.Builder clearDescription()
       Required. Human-readable, detailed description of the Product
       
      string description = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Product.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Required. Human-readable, detailed description of the Product
       
      string description = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. Human-readable name of the Product
       
      string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface ProductOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. Human-readable name of the Product
       
      string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface ProductOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Product.Builder setDisplayName(String value)
       Required. Human-readable name of the Product
       
      string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Product.Builder clearDisplayName()
       Required. Human-readable name of the Product
       
      string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Product.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. Human-readable name of the Product
       
      string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.