Class Configuration.Builder

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

public static final class Configuration.Builder extends com.google.protobuf.GeneratedMessage.Builder<Configuration.Builder> implements ConfigurationOrBuilder
 Configuration for a Google SPLA product
 
Protobuf type google.cloud.licensemanager.v1.Configuration
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Configuration.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Configuration.Builder>
    • internalGetFieldAccessorTable

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

      public Configuration.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<Configuration.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<Configuration.Builder>
    • getDefaultInstanceForType

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

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

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

      public Configuration.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<Configuration.Builder>
    • mergeFrom

      public Configuration.Builder mergeFrom(Configuration other)
    • isInitialized

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

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

      public String getName()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ConfigurationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ConfigurationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Configuration.Builder setName(String value)
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Configuration.Builder clearName()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Configuration.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. User given name.
       
      string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface ConfigurationOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. User given name.
       
      string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface ConfigurationOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Configuration.Builder setDisplayName(String value)
       Required. User given name.
       
      string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Configuration.Builder clearDisplayName()
       Required. User given name.
       
      string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Configuration.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. User given name.
       
      string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getProduct

      public String getProduct()
       Required. Name field (with URL) of the Product offered for SPLA.
       
      string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getProduct in interface ConfigurationOrBuilder
      Returns:
      The product.
    • getProductBytes

      public com.google.protobuf.ByteString getProductBytes()
       Required. Name field (with URL) of the Product offered for SPLA.
       
      string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getProductBytes in interface ConfigurationOrBuilder
      Returns:
      The bytes for product.
    • setProduct

      public Configuration.Builder setProduct(String value)
       Required. Name field (with URL) of the Product offered for SPLA.
       
      string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The product to set.
      Returns:
      This builder for chaining.
    • clearProduct

      public Configuration.Builder clearProduct()
       Required. Name field (with URL) of the Product offered for SPLA.
       
      string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setProductBytes

      public Configuration.Builder setProductBytes(com.google.protobuf.ByteString value)
       Required. Name field (with URL) of the Product offered for SPLA.
       
      string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for product to set.
      Returns:
      This builder for chaining.
    • getLicenseTypeValue

      public int getLicenseTypeValue()
       Required. LicenseType to be applied for billing
       
      .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLicenseTypeValue in interface ConfigurationOrBuilder
      Returns:
      The enum numeric value on the wire for licenseType.
    • setLicenseTypeValue

      public Configuration.Builder setLicenseTypeValue(int value)
       Required. LicenseType to be applied for billing
       
      .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for licenseType to set.
      Returns:
      This builder for chaining.
    • getLicenseType

      public LicenseType getLicenseType()
       Required. LicenseType to be applied for billing
       
      .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLicenseType in interface ConfigurationOrBuilder
      Returns:
      The licenseType.
    • setLicenseType

      public Configuration.Builder setLicenseType(LicenseType value)
       Required. LicenseType to be applied for billing
       
      .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The licenseType to set.
      Returns:
      This builder for chaining.
    • clearLicenseType

      public Configuration.Builder clearLicenseType()
       Required. LicenseType to be applied for billing
       
      .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasCurrentBillingInfo

      public boolean hasCurrentBillingInfo()
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCurrentBillingInfo in interface ConfigurationOrBuilder
      Returns:
      Whether the currentBillingInfo field is set.
    • getCurrentBillingInfo

      public BillingInfo getCurrentBillingInfo()
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCurrentBillingInfo in interface ConfigurationOrBuilder
      Returns:
      The currentBillingInfo.
    • setCurrentBillingInfo

      public Configuration.Builder setCurrentBillingInfo(BillingInfo value)
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
    • setCurrentBillingInfo

      public Configuration.Builder setCurrentBillingInfo(BillingInfo.Builder builderForValue)
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
    • mergeCurrentBillingInfo

      public Configuration.Builder mergeCurrentBillingInfo(BillingInfo value)
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
    • clearCurrentBillingInfo

      public Configuration.Builder clearCurrentBillingInfo()
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
    • getCurrentBillingInfoBuilder

      public BillingInfo.Builder getCurrentBillingInfoBuilder()
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
    • getCurrentBillingInfoOrBuilder

      public BillingInfoOrBuilder getCurrentBillingInfoOrBuilder()
       Required. Billing information applicable till end of the current month.
       
      .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCurrentBillingInfoOrBuilder in interface ConfigurationOrBuilder
    • hasNextBillingInfo

      public boolean hasNextBillingInfo()
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasNextBillingInfo in interface ConfigurationOrBuilder
      Returns:
      Whether the nextBillingInfo field is set.
    • getNextBillingInfo

      public BillingInfo getNextBillingInfo()
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNextBillingInfo in interface ConfigurationOrBuilder
      Returns:
      The nextBillingInfo.
    • setNextBillingInfo

      public Configuration.Builder setNextBillingInfo(BillingInfo value)
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
    • setNextBillingInfo

      public Configuration.Builder setNextBillingInfo(BillingInfo.Builder builderForValue)
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
    • mergeNextBillingInfo

      public Configuration.Builder mergeNextBillingInfo(BillingInfo value)
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
    • clearNextBillingInfo

      public Configuration.Builder clearNextBillingInfo()
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
    • getNextBillingInfoBuilder

      public BillingInfo.Builder getNextBillingInfoBuilder()
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
    • getNextBillingInfoOrBuilder

      public BillingInfoOrBuilder getNextBillingInfoOrBuilder()
       Required. Billing information applicable for next month.
       
      .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNextBillingInfoOrBuilder in interface ConfigurationOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ConfigurationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ConfigurationOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Configuration.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Configuration.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Configuration.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Configuration.Builder clearCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ConfigurationOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ConfigurationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ConfigurationOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Configuration.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Configuration.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Configuration.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Configuration.Builder clearUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ConfigurationOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ConfigurationOrBuilder
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ConfigurationOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ConfigurationOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ConfigurationOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ConfigurationOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ConfigurationOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ConfigurationOrBuilder
    • clearLabels

      public Configuration.Builder clearLabels()
    • removeLabels

      public Configuration.Builder removeLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Configuration.Builder putLabels(String key, String value)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Configuration.Builder putAllLabels(Map<String,String> values)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getStateValue

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

      public Configuration.Builder setStateValue(int value)
       Output only. State of the configuration.
       
      .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.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 Configuration.State getState()
       Output only. State of the configuration.
       
      .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ConfigurationOrBuilder
      Returns:
      The state.
    • setState

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

      public Configuration.Builder clearState()
       Output only. State of the configuration.
       
      .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.