Class ProcessIdentifier.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProcessIdentifierOrBuilder, Cloneable
    Enclosing class:
    ProcessIdentifier

    public static final class ProcessIdentifier.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
    implements ProcessIdentifierOrBuilder
     Identifier that uniquely identifies a process within a VM/container.
     
    Protobuf type opencensus.proto.agent.common.v1.ProcessIdentifier
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • clear

        public ProcessIdentifier.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.GeneratedMessageV3.Builder<ProcessIdentifier.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.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • getDefaultInstanceForType

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

        public ProcessIdentifier build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ProcessIdentifier buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ProcessIdentifier.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • setField

        public ProcessIdentifier.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • clearField

        public ProcessIdentifier.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • clearOneof

        public ProcessIdentifier.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • setRepeatedField

        public ProcessIdentifier.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • addRepeatedField

        public ProcessIdentifier.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • mergeFrom

        public ProcessIdentifier.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<ProcessIdentifier.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • mergeFrom

        public ProcessIdentifier.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<ProcessIdentifier.Builder>
        Throws:
        IOException
      • getHostName

        public String getHostName()
         The host name. Usually refers to the machine/container name.
         For example: os.Hostname() in Go, socket.gethostname() in Python.
         
        string host_name = 1;
        Specified by:
        getHostName in interface ProcessIdentifierOrBuilder
        Returns:
        The hostName.
      • getHostNameBytes

        public com.google.protobuf.ByteString getHostNameBytes()
         The host name. Usually refers to the machine/container name.
         For example: os.Hostname() in Go, socket.gethostname() in Python.
         
        string host_name = 1;
        Specified by:
        getHostNameBytes in interface ProcessIdentifierOrBuilder
        Returns:
        The bytes for hostName.
      • setHostName

        public ProcessIdentifier.Builder setHostName​(String value)
         The host name. Usually refers to the machine/container name.
         For example: os.Hostname() in Go, socket.gethostname() in Python.
         
        string host_name = 1;
        Parameters:
        value - The hostName to set.
        Returns:
        This builder for chaining.
      • clearHostName

        public ProcessIdentifier.Builder clearHostName()
         The host name. Usually refers to the machine/container name.
         For example: os.Hostname() in Go, socket.gethostname() in Python.
         
        string host_name = 1;
        Returns:
        This builder for chaining.
      • setHostNameBytes

        public ProcessIdentifier.Builder setHostNameBytes​(com.google.protobuf.ByteString value)
         The host name. Usually refers to the machine/container name.
         For example: os.Hostname() in Go, socket.gethostname() in Python.
         
        string host_name = 1;
        Parameters:
        value - The bytes for hostName to set.
        Returns:
        This builder for chaining.
      • setPid

        public ProcessIdentifier.Builder setPid​(int value)
         Process id.
         
        uint32 pid = 2;
        Parameters:
        value - The pid to set.
        Returns:
        This builder for chaining.
      • hasStartTimestamp

        public boolean hasStartTimestamp()
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
        Specified by:
        hasStartTimestamp in interface ProcessIdentifierOrBuilder
        Returns:
        Whether the startTimestamp field is set.
      • getStartTimestamp

        public com.google.protobuf.Timestamp getStartTimestamp()
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
        Specified by:
        getStartTimestamp in interface ProcessIdentifierOrBuilder
        Returns:
        The startTimestamp.
      • setStartTimestamp

        public ProcessIdentifier.Builder setStartTimestamp​(com.google.protobuf.Timestamp value)
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
      • setStartTimestamp

        public ProcessIdentifier.Builder setStartTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
      • mergeStartTimestamp

        public ProcessIdentifier.Builder mergeStartTimestamp​(com.google.protobuf.Timestamp value)
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
      • clearStartTimestamp

        public ProcessIdentifier.Builder clearStartTimestamp()
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
      • getStartTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimestampBuilder()
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
      • getStartTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder()
         Start time of this ProcessIdentifier. Represented in epoch time.
         
        .google.protobuf.Timestamp start_timestamp = 3;
        Specified by:
        getStartTimestampOrBuilder in interface ProcessIdentifierOrBuilder
      • setUnknownFields

        public final ProcessIdentifier.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>
      • mergeUnknownFields

        public final ProcessIdentifier.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessIdentifier.Builder>