Class Node
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opencensus.proto.agent.common.v1.Node
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,NodeOrBuilder,Serializable
public final class Node extends com.google.protobuf.GeneratedMessageV3 implements NodeOrBuilder
Identifier metadata of the Node that produces the span or tracing data. Note, this is not the metadata about the Node or service that is described by associated spans. In the future we plan to extend the identifier proto definition to support additional information (e.g cloud id, etc.)
Protobuf typeopencensus.proto.agent.common.v1.Node- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNode.BuilderIdentifier metadata of the Node that produces the span or tracing data.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTES_FIELD_NUMBERstatic intIDENTIFIER_FIELD_NUMBERstatic intLIBRARY_INFO_FIELD_NUMBERstatic intSERVICE_INFO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsAttributes(String key)Additional attributes.booleanequals(Object obj)Map<String,String>getAttributes()Deprecated.intgetAttributesCount()Additional attributes.Map<String,String>getAttributesMap()Additional attributes.StringgetAttributesOrDefault(String key, String defaultValue)Additional attributes.StringgetAttributesOrThrow(String key)Additional attributes.static NodegetDefaultInstance()NodegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()ProcessIdentifiergetIdentifier()Identifier that uniquely identifies a process within a VM/container.ProcessIdentifierOrBuildergetIdentifierOrBuilder()Identifier that uniquely identifies a process within a VM/container.LibraryInfogetLibraryInfo()Information on the OpenCensus Library that initiates the stream.LibraryInfoOrBuildergetLibraryInfoOrBuilder()Information on the OpenCensus Library that initiates the stream.com.google.protobuf.Parser<Node>getParserForType()intgetSerializedSize()ServiceInfogetServiceInfo()Additional information on service.ServiceInfoOrBuildergetServiceInfoOrBuilder()Additional information on service.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasIdentifier()Identifier that uniquely identifies a process within a VM/container.booleanhasLibraryInfo()Information on the OpenCensus Library that initiates the stream.booleanhasServiceInfo()Additional information on service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Node.BuildernewBuilder()static Node.BuildernewBuilder(Node prototype)Node.BuildernewBuilderForType()protected Node.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static NodeparseDelimitedFrom(InputStream input)static NodeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(byte[] data)static NodeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(com.google.protobuf.ByteString data)static NodeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(com.google.protobuf.CodedInputStream input)static NodeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(InputStream input)static NodeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(ByteBuffer data)static NodeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Node>parser()Node.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
IDENTIFIER_FIELD_NUMBER
public static final int IDENTIFIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIBRARY_INFO_FIELD_NUMBER
public static final int LIBRARY_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_INFO_FIELD_NUMBER
public static final int SERVICE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasIdentifier
public boolean hasIdentifier()
Identifier that uniquely identifies a process within a VM/container.
.opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1;- Specified by:
hasIdentifierin interfaceNodeOrBuilder- Returns:
- Whether the identifier field is set.
-
getIdentifier
public ProcessIdentifier getIdentifier()
Identifier that uniquely identifies a process within a VM/container.
.opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1;- Specified by:
getIdentifierin interfaceNodeOrBuilder- Returns:
- The identifier.
-
getIdentifierOrBuilder
public ProcessIdentifierOrBuilder getIdentifierOrBuilder()
Identifier that uniquely identifies a process within a VM/container.
.opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1;- Specified by:
getIdentifierOrBuilderin interfaceNodeOrBuilder
-
hasLibraryInfo
public boolean hasLibraryInfo()
Information on the OpenCensus Library that initiates the stream.
.opencensus.proto.agent.common.v1.LibraryInfo library_info = 2;- Specified by:
hasLibraryInfoin interfaceNodeOrBuilder- Returns:
- Whether the libraryInfo field is set.
-
getLibraryInfo
public LibraryInfo getLibraryInfo()
Information on the OpenCensus Library that initiates the stream.
.opencensus.proto.agent.common.v1.LibraryInfo library_info = 2;- Specified by:
getLibraryInfoin interfaceNodeOrBuilder- Returns:
- The libraryInfo.
-
getLibraryInfoOrBuilder
public LibraryInfoOrBuilder getLibraryInfoOrBuilder()
Information on the OpenCensus Library that initiates the stream.
.opencensus.proto.agent.common.v1.LibraryInfo library_info = 2;- Specified by:
getLibraryInfoOrBuilderin interfaceNodeOrBuilder
-
hasServiceInfo
public boolean hasServiceInfo()
Additional information on service.
.opencensus.proto.agent.common.v1.ServiceInfo service_info = 3;- Specified by:
hasServiceInfoin interfaceNodeOrBuilder- Returns:
- Whether the serviceInfo field is set.
-
getServiceInfo
public ServiceInfo getServiceInfo()
Additional information on service.
.opencensus.proto.agent.common.v1.ServiceInfo service_info = 3;- Specified by:
getServiceInfoin interfaceNodeOrBuilder- Returns:
- The serviceInfo.
-
getServiceInfoOrBuilder
public ServiceInfoOrBuilder getServiceInfoOrBuilder()
Additional information on service.
.opencensus.proto.agent.common.v1.ServiceInfo service_info = 3;- Specified by:
getServiceInfoOrBuilderin interfaceNodeOrBuilder
-
getAttributesCount
public int getAttributesCount()
Description copied from interface:NodeOrBuilderAdditional attributes.
map<string, string> attributes = 4;- Specified by:
getAttributesCountin interfaceNodeOrBuilder
-
containsAttributes
public boolean containsAttributes(String key)
Additional attributes.
map<string, string> attributes = 4;- Specified by:
containsAttributesin interfaceNodeOrBuilder
-
getAttributes
@Deprecated public Map<String,String> getAttributes()
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceNodeOrBuilder
-
getAttributesMap
public Map<String,String> getAttributesMap()
Additional attributes.
map<string, string> attributes = 4;- Specified by:
getAttributesMapin interfaceNodeOrBuilder
-
getAttributesOrDefault
public String getAttributesOrDefault(String key, String defaultValue)
Additional attributes.
map<string, string> attributes = 4;- Specified by:
getAttributesOrDefaultin interfaceNodeOrBuilder
-
getAttributesOrThrow
public String getAttributesOrThrow(String key)
Additional attributes.
map<string, string> attributes = 4;- Specified by:
getAttributesOrThrowin interfaceNodeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Node parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Node parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Node.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Node.Builder newBuilder()
-
newBuilder
public static Node.Builder newBuilder(Node prototype)
-
toBuilder
public Node.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Node.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Node getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Node> parser()
-
getParserForType
public com.google.protobuf.Parser<Node> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Node getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-