Class Event.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, EventOrBuilder
    Enclosing class:
    Event

    public static final class Event.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    implements EventOrBuilder
     Protocol buffer representing an event that happened during
     the execution of a Brain model.
     
    Protobuf type org.platanios.tensorflow.proto.Event
    • 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<Event.Builder>
      • clear

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

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

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

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

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

        public Event.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<Event.Builder>
      • clearField

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

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

        public Event.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<Event.Builder>
      • addRepeatedField

        public Event.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<Event.Builder>
      • mergeFrom

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

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

        public Event.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<Event.Builder>
        Throws:
        java.io.IOException
      • getWallTime

        public double getWallTime()
         Timestamp of the event.
         
        double wall_time = 1;
        Specified by:
        getWallTime in interface EventOrBuilder
        Returns:
        The wallTime.
      • setWallTime

        public Event.Builder setWallTime​(double value)
         Timestamp of the event.
         
        double wall_time = 1;
        Parameters:
        value - The wallTime to set.
        Returns:
        This builder for chaining.
      • clearWallTime

        public Event.Builder clearWallTime()
         Timestamp of the event.
         
        double wall_time = 1;
        Returns:
        This builder for chaining.
      • getStep

        public long getStep()
         Global step of the event.
         
        int64 step = 2;
        Specified by:
        getStep in interface EventOrBuilder
        Returns:
        The step.
      • setStep

        public Event.Builder setStep​(long value)
         Global step of the event.
         
        int64 step = 2;
        Parameters:
        value - The step to set.
        Returns:
        This builder for chaining.
      • clearStep

        public Event.Builder clearStep()
         Global step of the event.
         
        int64 step = 2;
        Returns:
        This builder for chaining.
      • getFileVersion

        public java.lang.String getFileVersion()
         An event file was started, with the specified version.
         This is use to identify the contents of the record IO files
         easily.  Current version is "brain.Event:2".  All versions
         start with "brain.Event:".
         
        string file_version = 3;
        Specified by:
        getFileVersion in interface EventOrBuilder
        Returns:
        The fileVersion.
      • getFileVersionBytes

        public com.google.protobuf.ByteString getFileVersionBytes()
         An event file was started, with the specified version.
         This is use to identify the contents of the record IO files
         easily.  Current version is "brain.Event:2".  All versions
         start with "brain.Event:".
         
        string file_version = 3;
        Specified by:
        getFileVersionBytes in interface EventOrBuilder
        Returns:
        The bytes for fileVersion.
      • setFileVersion

        public Event.Builder setFileVersion​(java.lang.String value)
         An event file was started, with the specified version.
         This is use to identify the contents of the record IO files
         easily.  Current version is "brain.Event:2".  All versions
         start with "brain.Event:".
         
        string file_version = 3;
        Parameters:
        value - The fileVersion to set.
        Returns:
        This builder for chaining.
      • clearFileVersion

        public Event.Builder clearFileVersion()
         An event file was started, with the specified version.
         This is use to identify the contents of the record IO files
         easily.  Current version is "brain.Event:2".  All versions
         start with "brain.Event:".
         
        string file_version = 3;
        Returns:
        This builder for chaining.
      • setFileVersionBytes

        public Event.Builder setFileVersionBytes​(com.google.protobuf.ByteString value)
         An event file was started, with the specified version.
         This is use to identify the contents of the record IO files
         easily.  Current version is "brain.Event:2".  All versions
         start with "brain.Event:".
         
        string file_version = 3;
        Parameters:
        value - The bytes for fileVersion to set.
        Returns:
        This builder for chaining.
      • getGraphDef

        public com.google.protobuf.ByteString getGraphDef()
         An encoded version of a GraphDef.
         
        bytes graph_def = 4;
        Specified by:
        getGraphDef in interface EventOrBuilder
        Returns:
        The graphDef.
      • setGraphDef

        public Event.Builder setGraphDef​(com.google.protobuf.ByteString value)
         An encoded version of a GraphDef.
         
        bytes graph_def = 4;
        Parameters:
        value - The graphDef to set.
        Returns:
        This builder for chaining.
      • clearGraphDef

        public Event.Builder clearGraphDef()
         An encoded version of a GraphDef.
         
        bytes graph_def = 4;
        Returns:
        This builder for chaining.
      • hasSummary

        public boolean hasSummary()
         A summary was generated.
         
        .org.platanios.tensorflow.proto.Summary summary = 5;
        Specified by:
        hasSummary in interface EventOrBuilder
        Returns:
        Whether the summary field is set.
      • getSummary

        public Summary getSummary()
         A summary was generated.
         
        .org.platanios.tensorflow.proto.Summary summary = 5;
        Specified by:
        getSummary in interface EventOrBuilder
        Returns:
        The summary.
      • setSummary

        public Event.Builder setSummary​(Summary value)
         A summary was generated.
         
        .org.platanios.tensorflow.proto.Summary summary = 5;
      • setSummary

        public Event.Builder setSummary​(Summary.Builder builderForValue)
         A summary was generated.
         
        .org.platanios.tensorflow.proto.Summary summary = 5;
      • mergeSummary

        public Event.Builder mergeSummary​(Summary value)
         A summary was generated.
         
        .org.platanios.tensorflow.proto.Summary summary = 5;
      • clearSummary

        public Event.Builder clearSummary()
         A summary was generated.
         
        .org.platanios.tensorflow.proto.Summary summary = 5;
      • getSummaryBuilder

        public Summary.Builder getSummaryBuilder()
         A summary was generated.
         
        .org.platanios.tensorflow.proto.Summary summary = 5;
      • hasLogMessage

        public boolean hasLogMessage()
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
        Specified by:
        hasLogMessage in interface EventOrBuilder
        Returns:
        Whether the logMessage field is set.
      • getLogMessage

        public LogMessage getLogMessage()
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
        Specified by:
        getLogMessage in interface EventOrBuilder
        Returns:
        The logMessage.
      • setLogMessage

        public Event.Builder setLogMessage​(LogMessage value)
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
      • setLogMessage

        public Event.Builder setLogMessage​(LogMessage.Builder builderForValue)
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
      • mergeLogMessage

        public Event.Builder mergeLogMessage​(LogMessage value)
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
      • clearLogMessage

        public Event.Builder clearLogMessage()
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
      • getLogMessageBuilder

        public LogMessage.Builder getLogMessageBuilder()
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
      • getLogMessageOrBuilder

        public LogMessageOrBuilder getLogMessageOrBuilder()
         The user output a log message. Not all messages are logged, only ones
         generated via the Python tensorboard_logging module.
         
        .org.platanios.tensorflow.proto.LogMessage log_message = 6;
        Specified by:
        getLogMessageOrBuilder in interface EventOrBuilder
      • hasSessionLog

        public boolean hasSessionLog()
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
        Specified by:
        hasSessionLog in interface EventOrBuilder
        Returns:
        Whether the sessionLog field is set.
      • getSessionLog

        public SessionLog getSessionLog()
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
        Specified by:
        getSessionLog in interface EventOrBuilder
        Returns:
        The sessionLog.
      • setSessionLog

        public Event.Builder setSessionLog​(SessionLog value)
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
      • setSessionLog

        public Event.Builder setSessionLog​(SessionLog.Builder builderForValue)
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
      • mergeSessionLog

        public Event.Builder mergeSessionLog​(SessionLog value)
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
      • clearSessionLog

        public Event.Builder clearSessionLog()
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
      • getSessionLogBuilder

        public SessionLog.Builder getSessionLogBuilder()
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
      • getSessionLogOrBuilder

        public SessionLogOrBuilder getSessionLogOrBuilder()
         The state of the session which can be used for restarting after crashes.
         
        .org.platanios.tensorflow.proto.SessionLog session_log = 7;
        Specified by:
        getSessionLogOrBuilder in interface EventOrBuilder
      • hasTaggedRunMetadata

        public boolean hasTaggedRunMetadata()
         The metadata returned by running a session.run() call.
         
        .org.platanios.tensorflow.proto.TaggedRunMetadata tagged_run_metadata = 8;
        Specified by:
        hasTaggedRunMetadata in interface EventOrBuilder
        Returns:
        Whether the taggedRunMetadata field is set.
      • getTaggedRunMetadata

        public TaggedRunMetadata getTaggedRunMetadata()
         The metadata returned by running a session.run() call.
         
        .org.platanios.tensorflow.proto.TaggedRunMetadata tagged_run_metadata = 8;
        Specified by:
        getTaggedRunMetadata in interface EventOrBuilder
        Returns:
        The taggedRunMetadata.
      • setTaggedRunMetadata

        public Event.Builder setTaggedRunMetadata​(TaggedRunMetadata value)
         The metadata returned by running a session.run() call.
         
        .org.platanios.tensorflow.proto.TaggedRunMetadata tagged_run_metadata = 8;
      • setTaggedRunMetadata

        public Event.Builder setTaggedRunMetadata​(TaggedRunMetadata.Builder builderForValue)
         The metadata returned by running a session.run() call.
         
        .org.platanios.tensorflow.proto.TaggedRunMetadata tagged_run_metadata = 8;
      • mergeTaggedRunMetadata

        public Event.Builder mergeTaggedRunMetadata​(TaggedRunMetadata value)
         The metadata returned by running a session.run() call.
         
        .org.platanios.tensorflow.proto.TaggedRunMetadata tagged_run_metadata = 8;
      • clearTaggedRunMetadata

        public Event.Builder clearTaggedRunMetadata()
         The metadata returned by running a session.run() call.
         
        .org.platanios.tensorflow.proto.TaggedRunMetadata tagged_run_metadata = 8;
      • getTaggedRunMetadataBuilder

        public TaggedRunMetadata.Builder getTaggedRunMetadataBuilder()
         The metadata returned by running a session.run() call.
         
        .org.platanios.tensorflow.proto.TaggedRunMetadata tagged_run_metadata = 8;
      • getMetaGraphDef

        public com.google.protobuf.ByteString getMetaGraphDef()
         An encoded version of a MetaGraphDef.
         
        bytes meta_graph_def = 9;
        Specified by:
        getMetaGraphDef in interface EventOrBuilder
        Returns:
        The metaGraphDef.
      • setMetaGraphDef

        public Event.Builder setMetaGraphDef​(com.google.protobuf.ByteString value)
         An encoded version of a MetaGraphDef.
         
        bytes meta_graph_def = 9;
        Parameters:
        value - The metaGraphDef to set.
        Returns:
        This builder for chaining.
      • clearMetaGraphDef

        public Event.Builder clearMetaGraphDef()
         An encoded version of a MetaGraphDef.
         
        bytes meta_graph_def = 9;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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