Class Compute.InstanceMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.cloud.compute.v1beta.Compute.InstanceMetadata
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Compute.InstanceMetadataOrBuilder
Enclosing class:
Compute

public static final class Compute.InstanceMetadata extends com.google.protobuf.GeneratedMessage implements Compute.InstanceMetadataOrBuilder
Protobuf type namespace.cloud.compute.v1beta.InstanceMetadata
See Also:
  • Field Details

    • INSTANCE_ID_FIELD_NUMBER

      public static final int INSTANCE_ID_FIELD_NUMBER
      See Also:
    • CREATED_AT_FIELD_NUMBER

      public static final int CREATED_AT_FIELD_NUMBER
      See Also:
    • READY_AT_FIELD_NUMBER

      public static final int READY_AT_FIELD_NUMBER
      See Also:
    • DESTROYED_AT_FIELD_NUMBER

      public static final int DESTROYED_AT_FIELD_NUMBER
      See Also:
    • DEADLINE_FIELD_NUMBER

      public static final int DEADLINE_FIELD_NUMBER
      See Also:
    • DOCUMENTED_PURPOSE_FIELD_NUMBER

      public static final int DOCUMENTED_PURPOSE_FIELD_NUMBER
      See Also:
    • SHAPE_FIELD_NUMBER

      public static final int SHAPE_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • INGRESS_DOMAIN_FIELD_NUMBER

      public static final int INGRESS_DOMAIN_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • CREATOR_ID_FIELD_NUMBER

      public static final int CREATOR_ID_FIELD_NUMBER
      See Also:
    • SERVICES_FIELD_NUMBER

      public static final int SERVICES_FIELD_NUMBER
      See Also:
    • HW_DEPLOYMENT_FIELD_NUMBER

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

      public String getInstanceId()
       The ID of the instance created.
       
      string instance_id = 1;
      Specified by:
      getInstanceId in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       The ID of the instance created.
       
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The bytes for instanceId.
    • hasCreatedAt

      public boolean hasCreatedAt()
       The timestamp of when the instance was created (in UTC).
       
      .google.protobuf.Timestamp created_at = 2;
      Specified by:
      hasCreatedAt in interface Compute.InstanceMetadataOrBuilder
      Returns:
      Whether the createdAt field is set.
    • getCreatedAt

      public com.google.protobuf.Timestamp getCreatedAt()
       The timestamp of when the instance was created (in UTC).
       
      .google.protobuf.Timestamp created_at = 2;
      Specified by:
      getCreatedAt in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The createdAt.
    • getCreatedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder()
       The timestamp of when the instance was created (in UTC).
       
      .google.protobuf.Timestamp created_at = 2;
      Specified by:
      getCreatedAtOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • hasReadyAt

      public boolean hasReadyAt()
       The timestamp of when the instance became ready/running (in UTC). Not set
       if the instance is one of PENDING or CREATING states.
       
      .google.protobuf.Timestamp ready_at = 13;
      Specified by:
      hasReadyAt in interface Compute.InstanceMetadataOrBuilder
      Returns:
      Whether the readyAt field is set.
    • getReadyAt

      public com.google.protobuf.Timestamp getReadyAt()
       The timestamp of when the instance became ready/running (in UTC). Not set
       if the instance is one of PENDING or CREATING states.
       
      .google.protobuf.Timestamp ready_at = 13;
      Specified by:
      getReadyAt in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The readyAt.
    • getReadyAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getReadyAtOrBuilder()
       The timestamp of when the instance became ready/running (in UTC). Not set
       if the instance is one of PENDING or CREATING states.
       
      .google.protobuf.Timestamp ready_at = 13;
      Specified by:
      getReadyAtOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • hasDestroyedAt

      public boolean hasDestroyedAt()
       The timestamp of when the instance was destroyed (in UTC). Not set if the
       instance is one of PENDING, CREATING or RUNNING states.
       
      .google.protobuf.Timestamp destroyed_at = 3;
      Specified by:
      hasDestroyedAt in interface Compute.InstanceMetadataOrBuilder
      Returns:
      Whether the destroyedAt field is set.
    • getDestroyedAt

      public com.google.protobuf.Timestamp getDestroyedAt()
       The timestamp of when the instance was destroyed (in UTC). Not set if the
       instance is one of PENDING, CREATING or RUNNING states.
       
      .google.protobuf.Timestamp destroyed_at = 3;
      Specified by:
      getDestroyedAt in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The destroyedAt.
    • getDestroyedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDestroyedAtOrBuilder()
       The timestamp of when the instance was destroyed (in UTC). Not set if the
       instance is one of PENDING, CREATING or RUNNING states.
       
      .google.protobuf.Timestamp destroyed_at = 3;
      Specified by:
      getDestroyedAtOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • hasDeadline

      public boolean hasDeadline()
       The computed deadline of the instance (in UTC). The instance will be
       destroyed when it hits its deadline.
       
      .google.protobuf.Timestamp deadline = 4;
      Specified by:
      hasDeadline in interface Compute.InstanceMetadataOrBuilder
      Returns:
      Whether the deadline field is set.
    • getDeadline

      public com.google.protobuf.Timestamp getDeadline()
       The computed deadline of the instance (in UTC). The instance will be
       destroyed when it hits its deadline.
       
      .google.protobuf.Timestamp deadline = 4;
      Specified by:
      getDeadline in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The deadline.
    • getDeadlineOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeadlineOrBuilder()
       The computed deadline of the instance (in UTC). The instance will be
       destroyed when it hits its deadline.
       
      .google.protobuf.Timestamp deadline = 4;
      Specified by:
      getDeadlineOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • getDocumentedPurpose

      public String getDocumentedPurpose()
       The user specified documented purpose.
       
      string documented_purpose = 5;
      Specified by:
      getDocumentedPurpose in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The documentedPurpose.
    • getDocumentedPurposeBytes

      public com.google.protobuf.ByteString getDocumentedPurposeBytes()
       The user specified documented purpose.
       
      string documented_purpose = 5;
      Specified by:
      getDocumentedPurposeBytes in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The bytes for documentedPurpose.
    • hasShape

      public boolean hasShape()
       The user specified instance shape (cpu, memory, disk).
       
      .namespace.cloud.compute.v1beta.InstanceShape shape = 6;
      Specified by:
      hasShape in interface Compute.InstanceMetadataOrBuilder
      Returns:
      Whether the shape field is set.
    • getShape

      public Compute.InstanceShape getShape()
       The user specified instance shape (cpu, memory, disk).
       
      .namespace.cloud.compute.v1beta.InstanceShape shape = 6;
      Specified by:
      getShape in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The shape.
    • getShapeOrBuilder

      public Compute.InstanceShapeOrBuilder getShapeOrBuilder()
       The user specified instance shape (cpu, memory, disk).
       
      .namespace.cloud.compute.v1beta.InstanceShape shape = 6;
      Specified by:
      getShapeOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • getStatusValue

      public int getStatusValue()
       The status the instance is in.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Status status = 7;
      Specified by:
      getStatusValue in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public Compute.InstanceMetadata.Status getStatus()
       The status the instance is in.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Status status = 7;
      Specified by:
      getStatus in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The status.
    • getIngressDomain

      public String getIngressDomain()
       The region-specific base ingress domain used to back created ingresses.
      
       Example: `fra1.nscluster.cloud`.
       
      string ingress_domain = 8;
      Specified by:
      getIngressDomain in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The ingressDomain.
    • getIngressDomainBytes

      public com.google.protobuf.ByteString getIngressDomainBytes()
       The region-specific base ingress domain used to back created ingresses.
      
       Example: `fra1.nscluster.cloud`.
       
      string ingress_domain = 8;
      Specified by:
      getIngressDomainBytes in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The bytes for ingressDomain.
    • getLabelsList

      public List<Labels.Label> getLabelsList()
       The user specified instance labels.
       
      repeated .namespace.stdlib.Label labels = 9;
      Specified by:
      getLabelsList in interface Compute.InstanceMetadataOrBuilder
    • getLabelsOrBuilderList

      public List<? extends Labels.LabelOrBuilder> getLabelsOrBuilderList()
       The user specified instance labels.
       
      repeated .namespace.stdlib.Label labels = 9;
      Specified by:
      getLabelsOrBuilderList in interface Compute.InstanceMetadataOrBuilder
    • getLabelsCount

      public int getLabelsCount()
       The user specified instance labels.
       
      repeated .namespace.stdlib.Label labels = 9;
      Specified by:
      getLabelsCount in interface Compute.InstanceMetadataOrBuilder
    • getLabels

      public Labels.Label getLabels(int index)
       The user specified instance labels.
       
      repeated .namespace.stdlib.Label labels = 9;
      Specified by:
      getLabels in interface Compute.InstanceMetadataOrBuilder
    • getLabelsOrBuilder

      public Labels.LabelOrBuilder getLabelsOrBuilder(int index)
       The user specified instance labels.
       
      repeated .namespace.stdlib.Label labels = 9;
      Specified by:
      getLabelsOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • getCreatorId

      public String getCreatorId()
       If the used authorization token has a `creator_id`, it is retained for
       debugging purposes.
       
      string creator_id = 10;
      Specified by:
      getCreatorId in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The creatorId.
    • getCreatorIdBytes

      public com.google.protobuf.ByteString getCreatorIdBytes()
       If the used authorization token has a `creator_id`, it is retained for
       debugging purposes.
       
      string creator_id = 10;
      Specified by:
      getCreatorIdBytes in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The bytes for creatorId.
    • getServicesList

      public List<Compute.InstanceMetadata.Service> getServicesList()
       Maintain state of each of the exported system services in this instance.
       Examples of system services are `buildkit`, `kubernetes`, etc.
       
      repeated .namespace.cloud.compute.v1beta.InstanceMetadata.Service services = 11;
      Specified by:
      getServicesList in interface Compute.InstanceMetadataOrBuilder
    • getServicesOrBuilderList

      public List<? extends Compute.InstanceMetadata.ServiceOrBuilder> getServicesOrBuilderList()
       Maintain state of each of the exported system services in this instance.
       Examples of system services are `buildkit`, `kubernetes`, etc.
       
      repeated .namespace.cloud.compute.v1beta.InstanceMetadata.Service services = 11;
      Specified by:
      getServicesOrBuilderList in interface Compute.InstanceMetadataOrBuilder
    • getServicesCount

      public int getServicesCount()
       Maintain state of each of the exported system services in this instance.
       Examples of system services are `buildkit`, `kubernetes`, etc.
       
      repeated .namespace.cloud.compute.v1beta.InstanceMetadata.Service services = 11;
      Specified by:
      getServicesCount in interface Compute.InstanceMetadataOrBuilder
    • getServices

      public Compute.InstanceMetadata.Service getServices(int index)
       Maintain state of each of the exported system services in this instance.
       Examples of system services are `buildkit`, `kubernetes`, etc.
       
      repeated .namespace.cloud.compute.v1beta.InstanceMetadata.Service services = 11;
      Specified by:
      getServices in interface Compute.InstanceMetadataOrBuilder
    • getServicesOrBuilder

      public Compute.InstanceMetadata.ServiceOrBuilder getServicesOrBuilder(int index)
       Maintain state of each of the exported system services in this instance.
       Examples of system services are `buildkit`, `kubernetes`, etc.
       
      repeated .namespace.cloud.compute.v1beta.InstanceMetadata.Service services = 11;
      Specified by:
      getServicesOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • hasHwDeployment

      public boolean hasHwDeployment()
       Information related to where the instance is running, or ran, including
       geography, and hw platform.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.HWDeployment hw_deployment = 12;
      Specified by:
      hasHwDeployment in interface Compute.InstanceMetadataOrBuilder
      Returns:
      Whether the hwDeployment field is set.
    • getHwDeployment

      public Compute.InstanceMetadata.HWDeployment getHwDeployment()
       Information related to where the instance is running, or ran, including
       geography, and hw platform.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.HWDeployment hw_deployment = 12;
      Specified by:
      getHwDeployment in interface Compute.InstanceMetadataOrBuilder
      Returns:
      The hwDeployment.
    • getHwDeploymentOrBuilder

      public Compute.InstanceMetadata.HWDeploymentOrBuilder getHwDeploymentOrBuilder()
       Information related to where the instance is running, or ran, including
       geography, and hw platform.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.HWDeployment hw_deployment = 12;
      Specified by:
      getHwDeploymentOrBuilder in interface Compute.InstanceMetadataOrBuilder
    • 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 Compute.InstanceMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Compute.InstanceMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Compute.InstanceMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Compute.InstanceMetadata.Builder newBuilder()
    • newBuilder

      public static Compute.InstanceMetadata.Builder newBuilder(Compute.InstanceMetadata prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Compute.InstanceMetadata getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Compute.InstanceMetadata> 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 Compute.InstanceMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder