Package namespace.cloud.compute.v1beta
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The application-specific endpoint.Identifies what application transport this endpoint implements.The name of the service, e.g.It's current status, one of PENDING or READY.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe application-specific endpoint.com.google.protobuf.ByteStringThe application-specific endpoint.Identifies what application transport this endpoint implements.intIdentifies what application transport this endpoint implements.getName()The name of the service, e.g.com.google.protobuf.ByteStringThe name of the service, e.g.It's current status, one of PENDING or READY.intIt's current status, one of PENDING or READY.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEndpoint(String value) The application-specific endpoint.setEndpointBytes(com.google.protobuf.ByteString value) The application-specific endpoint.Identifies what application transport this endpoint implements.setEndpointKindValue(int value) Identifies what application transport this endpoint implements.The name of the service, e.g.setNameBytes(com.google.protobuf.ByteString value) The name of the service, e.g.It's current status, one of PENDING or READY.setStatusValue(int value) It's current status, one of PENDING or READY.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Compute.InstanceMetadata.Service.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Compute.InstanceMetadata.Service.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Compute.InstanceMetadata.Service.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.InstanceMetadata.Service.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.InstanceMetadata.Service.Builder>- Throws:
IOException
-
getName
The name of the service, e.g. "ssh", "docker" or "containerd".
string name = 1;- Specified by:
getNamein interfaceCompute.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:
getNameBytesin interfaceCompute.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
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:
getStatusValuein interfaceCompute.InstanceMetadata.ServiceOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
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:
getStatusin interfaceCompute.InstanceMetadata.ServiceOrBuilder- Returns:
- The status.
-
setStatus
public Compute.InstanceMetadata.Service.Builder setStatus(Compute.InstanceMetadata.Service.Status 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 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:
getEndpointKindValuein interfaceCompute.InstanceMetadata.ServiceOrBuilder- Returns:
- The enum numeric value on the wire for endpointKind.
-
setEndpointKindValue
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:
getEndpointKindin interfaceCompute.InstanceMetadata.ServiceOrBuilder- Returns:
- The endpointKind.
-
setEndpointKind
public Compute.InstanceMetadata.Service.Builder setEndpointKind(Compute.InstanceMetadata.Service.EndpointKind value) 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
Identifies what application transport this endpoint implements.
.namespace.cloud.compute.v1beta.InstanceMetadata.Service.EndpointKind endpoint_kind = 3;- Returns:
- This builder for chaining.
-
getEndpoint
The application-specific endpoint. Typically a URL. Example: `wss://gate.fra1.nscluster.cloud/ui3e3e3g7cfrg/22`
string endpoint = 4;- Specified by:
getEndpointin interfaceCompute.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:
getEndpointBytesin interfaceCompute.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.
-