Class 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 type opencensus.proto.agent.common.v1.Node
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Node.Builder
      Identifier 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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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:
        hasIdentifier in interface NodeOrBuilder
        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:
        getIdentifier in interface NodeOrBuilder
        Returns:
        The identifier.
      • hasLibraryInfo

        public boolean hasLibraryInfo()
         Information on the OpenCensus Library that initiates the stream.
         
        .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2;
        Specified by:
        hasLibraryInfo in interface NodeOrBuilder
        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:
        getLibraryInfo in interface NodeOrBuilder
        Returns:
        The libraryInfo.
      • hasServiceInfo

        public boolean hasServiceInfo()
         Additional information on service.
         
        .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3;
        Specified by:
        hasServiceInfo in interface NodeOrBuilder
        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:
        getServiceInfo in interface NodeOrBuilder
        Returns:
        The serviceInfo.
      • getAttributesCount

        public int getAttributesCount()
        Description copied from interface: NodeOrBuilder
         Additional attributes.
         
        map<string, string> attributes = 4;
        Specified by:
        getAttributesCount in interface NodeOrBuilder
      • containsAttributes

        public boolean containsAttributes​(String key)
         Additional attributes.
         
        map<string, string> attributes = 4;
        Specified by:
        containsAttributes in interface NodeOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 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​(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Node.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Node.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Node.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Node getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder