Class Instance.Builder

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

public static final class Instance.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.Builder> implements InstanceOrBuilder
 Message describing Instance object
 
Protobuf type google.cloud.licensemanager.v1.Instance
  • 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<Instance.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public Instance.Builder mergeFrom(Instance other)
    • isInitialized

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

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

      public String getName()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface InstanceOrBuilder
      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 InstanceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Instance.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 Instance.Builder clearName()
       Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Instance.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.
    • 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 InstanceOrBuilder
      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 InstanceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Instance.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 Instance.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 Instance.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 Instance.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 InstanceOrBuilder
    • 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 InstanceOrBuilder
      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 InstanceOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Instance.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 Instance.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 Instance.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 Instance.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 InstanceOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: InstanceOrBuilder
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface InstanceOrBuilder
    • 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 InstanceOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface InstanceOrBuilder
    • 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 InstanceOrBuilder
    • 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 InstanceOrBuilder
    • 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 InstanceOrBuilder
    • clearLabels

      public Instance.Builder clearLabels()
    • removeLabels

      public Instance.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 Instance.Builder putLabels(String key, String value)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Instance.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. The state of the VM.
       
      .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface InstanceOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

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

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

      public Instance.Builder clearState()
       Output only. The state of the VM.
       
      .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       Output only. The location of the VM.
       
      string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRegion in interface InstanceOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. The location of the VM.
       
      string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRegionBytes in interface InstanceOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public Instance.Builder setRegion(String value)
       Output only. The location of the VM.
       
      string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public Instance.Builder clearRegion()
       Output only. The location of the VM.
       
      string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRegionBytes

      public Instance.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Output only. The location of the VM.
       
      string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getProductActivationCount

      public int getProductActivationCount()
      Description copied from interface: InstanceOrBuilder
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductActivationCount in interface InstanceOrBuilder
    • containsProductActivation

      public boolean containsProductActivation(String key)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsProductActivation in interface InstanceOrBuilder
    • getProductActivation

      @Deprecated public Map<String,ActivationState> getProductActivation()
      Deprecated.
      Specified by:
      getProductActivation in interface InstanceOrBuilder
    • getProductActivationMap

      public Map<String,ActivationState> getProductActivationMap()
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductActivationMap in interface InstanceOrBuilder
    • getProductActivationOrDefault

      public ActivationState getProductActivationOrDefault(String key, ActivationState defaultValue)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductActivationOrDefault in interface InstanceOrBuilder
    • getProductActivationOrThrow

      public ActivationState getProductActivationOrThrow(String key)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductActivationOrThrow in interface InstanceOrBuilder
    • getProductActivationValue

      @Deprecated public Map<String,Integer> getProductActivationValue()
      Deprecated.
      Specified by:
      getProductActivationValue in interface InstanceOrBuilder
    • getProductActivationValueMap

      public Map<String,Integer> getProductActivationValueMap()
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductActivationValueMap in interface InstanceOrBuilder
    • getProductActivationValueOrDefault

      public int getProductActivationValueOrDefault(String key, int defaultValue)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductActivationValueOrDefault in interface InstanceOrBuilder
    • getProductActivationValueOrThrow

      public int getProductActivationValueOrThrow(String key)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProductActivationValueOrThrow in interface InstanceOrBuilder
    • clearProductActivation

      public Instance.Builder clearProductActivation()
    • removeProductActivation

      public Instance.Builder removeProductActivation(String key)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableProductActivation

      @Deprecated public Map<String,ActivationState> getMutableProductActivation()
      Deprecated.
      Use alternate mutation accessors instead.
    • putProductActivation

      public Instance.Builder putProductActivation(String key, ActivationState value)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllProductActivation

      public Instance.Builder putAllProductActivation(Map<String,ActivationState> values)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableProductActivationValue

      @Deprecated public Map<String,Integer> getMutableProductActivationValue()
      Deprecated.
      Use alternate mutation accessors instead.
    • putProductActivationValue

      public Instance.Builder putProductActivationValue(String key, int value)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllProductActivationValue

      public Instance.Builder putAllProductActivationValue(Map<String,Integer> values)
       Output only. Map with Product_Name and Activation State of the VM.
       
      map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLicenseVersionId

      public String getLicenseVersionId()
       Output only. license version id.
       
      string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLicenseVersionId in interface InstanceOrBuilder
      Returns:
      The licenseVersionId.
    • getLicenseVersionIdBytes

      public com.google.protobuf.ByteString getLicenseVersionIdBytes()
       Output only. license version id.
       
      string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLicenseVersionIdBytes in interface InstanceOrBuilder
      Returns:
      The bytes for licenseVersionId.
    • setLicenseVersionId

      public Instance.Builder setLicenseVersionId(String value)
       Output only. license version id.
       
      string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The licenseVersionId to set.
      Returns:
      This builder for chaining.
    • clearLicenseVersionId

      public Instance.Builder clearLicenseVersionId()
       Output only. license version id.
       
      string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLicenseVersionIdBytes

      public Instance.Builder setLicenseVersionIdBytes(com.google.protobuf.ByteString value)
       Output only. license version id.
       
      string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for licenseVersionId to set.
      Returns:
      This builder for chaining.
    • getComputeInstance

      public String getComputeInstance()
       Required. Compute Instance resource name, i.e.
       projects/{project}/zones/{zone}/instances/{instance}
       
      string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getComputeInstance in interface InstanceOrBuilder
      Returns:
      The computeInstance.
    • getComputeInstanceBytes

      public com.google.protobuf.ByteString getComputeInstanceBytes()
       Required. Compute Instance resource name, i.e.
       projects/{project}/zones/{zone}/instances/{instance}
       
      string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getComputeInstanceBytes in interface InstanceOrBuilder
      Returns:
      The bytes for computeInstance.
    • setComputeInstance

      public Instance.Builder setComputeInstance(String value)
       Required. Compute Instance resource name, i.e.
       projects/{project}/zones/{zone}/instances/{instance}
       
      string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The computeInstance to set.
      Returns:
      This builder for chaining.
    • clearComputeInstance

      public Instance.Builder clearComputeInstance()
       Required. Compute Instance resource name, i.e.
       projects/{project}/zones/{zone}/instances/{instance}
       
      string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setComputeInstanceBytes

      public Instance.Builder setComputeInstanceBytes(com.google.protobuf.ByteString value)
       Required. Compute Instance resource name, i.e.
       projects/{project}/zones/{zone}/instances/{instance}
       
      string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for computeInstance to set.
      Returns:
      This builder for chaining.