Class Instance

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.licensemanager.v1.Instance
All Implemented Interfaces:
InstanceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Instance extends com.google.protobuf.GeneratedMessage implements InstanceOrBuilder
 Message describing Instance object
 
Protobuf type google.cloud.licensemanager.v1.Instance
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • REGION_FIELD_NUMBER

      public static final int REGION_FIELD_NUMBER
      See Also:
    • PRODUCT_ACTIVATION_FIELD_NUMBER

      public static final int PRODUCT_ACTIVATION_FIELD_NUMBER
      See Also:
    • LICENSE_VERSION_ID_FIELD_NUMBER

      public static final int LICENSE_VERSION_ID_FIELD_NUMBER
      See Also:
    • COMPUTE_INSTANCE_FIELD_NUMBER

      public static final int COMPUTE_INSTANCE_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Instance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Instance.Builder newBuilder()
    • newBuilder

      public static Instance.Builder newBuilder(Instance prototype)
    • toBuilder

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

      protected Instance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Instance getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Instance> parser()
    • getParserForType

      public com.google.protobuf.Parser<Instance> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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