public final class Node extends com.google.protobuf.GeneratedMessageV3 implements NodeOrBuilder
Identifies a specific Envoy instance. The node identifier is presented to the management server, which may use this identifier to distinguish per Envoy configuration for serving.Protobuf type
envoy.api.v2.core.Node| Modifier and Type | Class and Description |
|---|---|
static class |
Node.Builder
Identifies a specific Envoy instance.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
BUILD_VERSION_FIELD_NUMBER |
static int |
CLUSTER_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LOCALITY_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBuildVersion()
This is motivated by informing a management server during canary which
version of Envoy is being tested in a heterogeneous fleet.
|
com.google.protobuf.ByteString |
getBuildVersionBytes()
This is motivated by informing a management server during canary which
version of Envoy is being tested in a heterogeneous fleet.
|
String |
getCluster()
Defines the local service cluster name where Envoy is running.
|
com.google.protobuf.ByteString |
getClusterBytes()
Defines the local service cluster name where Envoy is running.
|
static Node |
getDefaultInstance() |
Node |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
An opaque node identifier for the Envoy node.
|
com.google.protobuf.ByteString |
getIdBytes()
An opaque node identifier for the Envoy node.
|
Locality |
getLocality()
Locality specifying where the Envoy instance is running.
|
LocalityOrBuilder |
getLocalityOrBuilder()
Locality specifying where the Envoy instance is running.
|
com.google.protobuf.Struct |
getMetadata()
Opaque metadata extending the node identifier.
|
com.google.protobuf.StructOrBuilder |
getMetadataOrBuilder()
Opaque metadata extending the node identifier.
|
com.google.protobuf.Parser<Node> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLocality()
Locality specifying where the Envoy instance is running.
|
boolean |
hasMetadata()
Opaque metadata extending the node identifier.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Node.Builder |
newBuilder() |
static Node.Builder |
newBuilder(Node prototype) |
Node.Builder |
newBuilderForType() |
protected Node.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Node |
parseDelimitedFrom(InputStream input) |
static Node |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Node |
parseFrom(byte[] data) |
static Node |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Node |
parseFrom(ByteBuffer data) |
static Node |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Node |
parseFrom(com.google.protobuf.ByteString data) |
static Node |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Node |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Node |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Node |
parseFrom(InputStream input) |
static Node |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Node> |
parser() |
Node.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int LOCALITY_FIELD_NUMBER
public static final int BUILD_VERSION_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getId()
An opaque node identifier for the Envoy node. This also provides the local service node name. It should be set if any of the following features are used: :ref:`statsd <arch_overview_statistics>`, :ref:`CDS <config_cluster_manager_cds>`, and :ref:`HTTP tracing <arch_overview_tracing>`, either in this message or via :option:`--service-node`.
string id = 1;getId in interface NodeOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
An opaque node identifier for the Envoy node. This also provides the local service node name. It should be set if any of the following features are used: :ref:`statsd <arch_overview_statistics>`, :ref:`CDS <config_cluster_manager_cds>`, and :ref:`HTTP tracing <arch_overview_tracing>`, either in this message or via :option:`--service-node`.
string id = 1;getIdBytes in interface NodeOrBuilderpublic String getCluster()
Defines the local service cluster name where Envoy is running. Though optional, it should be set if any of the following features are used: :ref:`statsd <arch_overview_statistics>`, :ref:`health check cluster verification <envoy_api_field_core.HealthCheck.HttpHealthCheck.service_name>`, :ref:`runtime override directory <envoy_api_msg_config.bootstrap.v2.Runtime>`, :ref:`user agent addition <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.add_user_agent>`, :ref:`HTTP global rate limiting <config_http_filters_rate_limit>`, :ref:`CDS <config_cluster_manager_cds>`, and :ref:`HTTP tracing <arch_overview_tracing>`, either in this message or via :option:`--service-cluster`.
string cluster = 2;getCluster in interface NodeOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
Defines the local service cluster name where Envoy is running. Though optional, it should be set if any of the following features are used: :ref:`statsd <arch_overview_statistics>`, :ref:`health check cluster verification <envoy_api_field_core.HealthCheck.HttpHealthCheck.service_name>`, :ref:`runtime override directory <envoy_api_msg_config.bootstrap.v2.Runtime>`, :ref:`user agent addition <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.add_user_agent>`, :ref:`HTTP global rate limiting <config_http_filters_rate_limit>`, :ref:`CDS <config_cluster_manager_cds>`, and :ref:`HTTP tracing <arch_overview_tracing>`, either in this message or via :option:`--service-cluster`.
string cluster = 2;getClusterBytes in interface NodeOrBuilderpublic boolean hasMetadata()
Opaque metadata extending the node identifier. Envoy will pass this directly to the management server.
.google.protobuf.Struct metadata = 3;hasMetadata in interface NodeOrBuilderpublic com.google.protobuf.Struct getMetadata()
Opaque metadata extending the node identifier. Envoy will pass this directly to the management server.
.google.protobuf.Struct metadata = 3;getMetadata in interface NodeOrBuilderpublic com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
Opaque metadata extending the node identifier. Envoy will pass this directly to the management server.
.google.protobuf.Struct metadata = 3;getMetadataOrBuilder in interface NodeOrBuilderpublic boolean hasLocality()
Locality specifying where the Envoy instance is running.
.envoy.api.v2.core.Locality locality = 4;hasLocality in interface NodeOrBuilderpublic Locality getLocality()
Locality specifying where the Envoy instance is running.
.envoy.api.v2.core.Locality locality = 4;getLocality in interface NodeOrBuilderpublic LocalityOrBuilder getLocalityOrBuilder()
Locality specifying where the Envoy instance is running.
.envoy.api.v2.core.Locality locality = 4;getLocalityOrBuilder in interface NodeOrBuilderpublic String getBuildVersion()
This is motivated by informing a management server during canary which version of Envoy is being tested in a heterogeneous fleet. This will be set by Envoy in management server RPCs.
string build_version = 5;getBuildVersion in interface NodeOrBuilderpublic com.google.protobuf.ByteString getBuildVersionBytes()
This is motivated by informing a management server during canary which version of Envoy is being tested in a heterogeneous fleet. This will be set by Envoy in management server RPCs.
string build_version = 5;getBuildVersionBytes in interface NodeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Node parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Node parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Node parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Node parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Node parseFrom(InputStream input) throws IOException
IOExceptionpublic static Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Node parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Node parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Node.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Node.Builder newBuilder()
public static Node.Builder newBuilder(Node prototype)
public Node.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Node.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Node getDefaultInstance()
public static com.google.protobuf.Parser<Node> parser()
public com.google.protobuf.Parser<Node> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Node getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2019 The Envoy Project. All rights reserved.