Class Compute.InstanceMetadata.Service.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.InstanceMetadata.Service.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.InstanceMetadata.Service.Builder>
namespace.cloud.compute.v1beta.Compute.InstanceMetadata.Service.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.InstanceMetadata.ServiceOrBuilder
Enclosing class:
Compute.InstanceMetadata.Service

public static final class Compute.InstanceMetadata.Service.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.InstanceMetadata.Service.Builder> implements Compute.InstanceMetadata.ServiceOrBuilder
 A service represents an internal service that is proxiable when an
 authenticated request is performed that proves that the caller has access
 to the instance.

 Access to services does not follow the gRPC service model, and goes over
 Namespace's programmable ingress directly, being a mix of either
 WebSocket- or HTTP-backed implementations.
 
Protobuf type namespace.cloud.compute.v1beta.InstanceMetadata.Service
  • 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<Compute.InstanceMetadata.Service.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<Compute.InstanceMetadata.Service.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<Compute.InstanceMetadata.Service.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Compute.InstanceMetadata.Service.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<Compute.InstanceMetadata.Service.Builder>
    • mergeFrom

    • isInitialized

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

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

      public String getName()
       The name of the service, e.g. "ssh", "docker" or "containerd".
       
      string name = 1;
      Specified by:
      getName in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the service, e.g. "ssh", "docker" or "containerd".
       
      string name = 1;
      Specified by:
      getNameBytes in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name of the service, e.g. "ssh", "docker" or "containerd".
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of the service, e.g. "ssh", "docker" or "containerd".
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Compute.InstanceMetadata.Service.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the service, e.g. "ssh", "docker" or "containerd".
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       It's current status, one of PENDING or READY.
      
       Note: It's not guaranteed that all services emit a PENDING state
       before becoming READY. The fact that they're starting can sometimes
       result in a lack of a ServiceState entry for that service.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.Status status = 2;
      Specified by:
      getStatusValue in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public Compute.InstanceMetadata.Service.Builder setStatusValue(int value)
       It's current status, one of PENDING or READY.
      
       Note: It's not guaranteed that all services emit a PENDING state
       before becoming READY. The fact that they're starting can sometimes
       result in a lack of a ServiceState entry for that service.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.Status status = 2;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       It's current status, one of PENDING or READY.
      
       Note: It's not guaranteed that all services emit a PENDING state
       before becoming READY. The fact that they're starting can sometimes
       result in a lack of a ServiceState entry for that service.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.Status status = 2;
      Specified by:
      getStatus in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The status.
    • setStatus

       It's current status, one of PENDING or READY.
      
       Note: It's not guaranteed that all services emit a PENDING state
       before becoming READY. The fact that they're starting can sometimes
       result in a lack of a ServiceState entry for that service.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.Status status = 2;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

       It's current status, one of PENDING or READY.
      
       Note: It's not guaranteed that all services emit a PENDING state
       before becoming READY. The fact that they're starting can sometimes
       result in a lack of a ServiceState entry for that service.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.Status status = 2;
      Returns:
      This builder for chaining.
    • getEndpointKindValue

      public int getEndpointKindValue()
       Identifies what application transport this endpoint implements.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.EndpointKind endpoint_kind = 3;
      Specified by:
      getEndpointKindValue in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The enum numeric value on the wire for endpointKind.
    • setEndpointKindValue

      public Compute.InstanceMetadata.Service.Builder setEndpointKindValue(int value)
       Identifies what application transport this endpoint implements.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.EndpointKind endpoint_kind = 3;
      Parameters:
      value - The enum numeric value on the wire for endpointKind to set.
      Returns:
      This builder for chaining.
    • getEndpointKind

       Identifies what application transport this endpoint implements.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.EndpointKind endpoint_kind = 3;
      Specified by:
      getEndpointKind in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The endpointKind.
    • setEndpointKind

       Identifies what application transport this endpoint implements.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.EndpointKind endpoint_kind = 3;
      Parameters:
      value - The endpointKind to set.
      Returns:
      This builder for chaining.
    • clearEndpointKind

      public Compute.InstanceMetadata.Service.Builder clearEndpointKind()
       Identifies what application transport this endpoint implements.
       
      .namespace.cloud.compute.v1beta.InstanceMetadata.Service.EndpointKind endpoint_kind = 3;
      Returns:
      This builder for chaining.
    • getEndpoint

      public String getEndpoint()
       The application-specific endpoint. Typically a URL.
      
       Example: `wss://gate.fra1.nscluster.cloud/ui3e3e3g7cfrg/22`
       
      string endpoint = 4;
      Specified by:
      getEndpoint in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       The application-specific endpoint. Typically a URL.
      
       Example: `wss://gate.fra1.nscluster.cloud/ui3e3e3g7cfrg/22`
       
      string endpoint = 4;
      Specified by:
      getEndpointBytes in interface Compute.InstanceMetadata.ServiceOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

       The application-specific endpoint. Typically a URL.
      
       Example: `wss://gate.fra1.nscluster.cloud/ui3e3e3g7cfrg/22`
       
      string endpoint = 4;
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

       The application-specific endpoint. Typically a URL.
      
       Example: `wss://gate.fra1.nscluster.cloud/ui3e3e3g7cfrg/22`
       
      string endpoint = 4;
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public Compute.InstanceMetadata.Service.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       The application-specific endpoint. Typically a URL.
      
       Example: `wss://gate.fra1.nscluster.cloud/ui3e3e3g7cfrg/22`
       
      string endpoint = 4;
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.