Class CodeLocation.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, CodeLocationOrBuilder
    Enclosing class:
    CodeLocation

    public static final class CodeLocation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CodeLocation.Builder>
    implements CodeLocationOrBuilder
     Code location information: A stack trace with host-name information.
     Instead of encoding the detailed stack trace, this proto refers to IDs of
     stack frames stored as `StackFrameWithId` protos.
     
    Protobuf type org.platanios.tensorflow.proto.CodeLocation
    • 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<CodeLocation.Builder>
      • clear

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

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

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

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

        public CodeLocation.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<CodeLocation.Builder>
      • setField

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

        public CodeLocation.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<CodeLocation.Builder>
      • clearOneof

        public CodeLocation.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<CodeLocation.Builder>
      • setRepeatedField

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

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

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

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

        public CodeLocation.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.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<CodeLocation.Builder>
        Throws:
        java.io.IOException
      • getHostName

        public java.lang.String getHostName()
         Host name on which the source files are located.
         
        string host_name = 1;
        Specified by:
        getHostName in interface CodeLocationOrBuilder
        Returns:
        The hostName.
      • getHostNameBytes

        public com.google.protobuf.ByteString getHostNameBytes()
         Host name on which the source files are located.
         
        string host_name = 1;
        Specified by:
        getHostNameBytes in interface CodeLocationOrBuilder
        Returns:
        The bytes for hostName.
      • setHostName

        public CodeLocation.Builder setHostName​(java.lang.String value)
         Host name on which the source files are located.
         
        string host_name = 1;
        Parameters:
        value - The hostName to set.
        Returns:
        This builder for chaining.
      • clearHostName

        public CodeLocation.Builder clearHostName()
         Host name on which the source files are located.
         
        string host_name = 1;
        Returns:
        This builder for chaining.
      • setHostNameBytes

        public CodeLocation.Builder setHostNameBytes​(com.google.protobuf.ByteString value)
         Host name on which the source files are located.
         
        string host_name = 1;
        Parameters:
        value - The bytes for hostName to set.
        Returns:
        This builder for chaining.
      • getStackFrameIdsList

        public com.google.protobuf.ProtocolStringList getStackFrameIdsList()
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Specified by:
        getStackFrameIdsList in interface CodeLocationOrBuilder
        Returns:
        A list containing the stackFrameIds.
      • getStackFrameIdsCount

        public int getStackFrameIdsCount()
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Specified by:
        getStackFrameIdsCount in interface CodeLocationOrBuilder
        Returns:
        The count of stackFrameIds.
      • getStackFrameIds

        public java.lang.String getStackFrameIds​(int index)
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Specified by:
        getStackFrameIds in interface CodeLocationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The stackFrameIds at the given index.
      • getStackFrameIdsBytes

        public com.google.protobuf.ByteString getStackFrameIdsBytes​(int index)
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Specified by:
        getStackFrameIdsBytes in interface CodeLocationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the stackFrameIds at the given index.
      • setStackFrameIds

        public CodeLocation.Builder setStackFrameIds​(int index,
                                                     java.lang.String value)
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Parameters:
        index - The index to set the value at.
        value - The stackFrameIds to set.
        Returns:
        This builder for chaining.
      • addStackFrameIds

        public CodeLocation.Builder addStackFrameIds​(java.lang.String value)
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Parameters:
        value - The stackFrameIds to add.
        Returns:
        This builder for chaining.
      • addAllStackFrameIds

        public CodeLocation.Builder addAllStackFrameIds​(java.lang.Iterable<java.lang.String> values)
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Parameters:
        values - The stackFrameIds to add.
        Returns:
        This builder for chaining.
      • clearStackFrameIds

        public CodeLocation.Builder clearStackFrameIds()
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Returns:
        This builder for chaining.
      • addStackFrameIdsBytes

        public CodeLocation.Builder addStackFrameIdsBytes​(com.google.protobuf.ByteString value)
         ID to a stack frame, each of which is pointed to
         by a unique ID. The ordering of the frames is consistent with Python's
         `traceback.extract_tb()`.
         
        repeated string stack_frame_ids = 2;
        Parameters:
        value - The bytes of the stackFrameIds to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CodeLocation.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<CodeLocation.Builder>
      • mergeUnknownFields

        public final CodeLocation.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<CodeLocation.Builder>