Class Event.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, EventOrBuilder
Enclosing class:
Event

public static final class Event.Builder extends GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder
Protocol buffer representing an event that happened during
the execution of a Brain model.
Protobuf type tensorflow.Event
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Event.Builder>
    • clear

      public Event.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessageV3.Builder<Event.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessageV3.Builder<Event.Builder>
    • getDefaultInstanceForType

      public Event getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

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

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

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

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

      public Event.Builder clearField(Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface Message.Builder
      Overrides:
      clearField in class GeneratedMessageV3.Builder<Event.Builder>
    • clearOneof

      public Event.Builder clearOneof(Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface Message.Builder
      Overrides:
      clearOneof in class GeneratedMessageV3.Builder<Event.Builder>
    • setRepeatedField

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

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

      public Event.Builder mergeFrom(Message other)
      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(Event other)
    • isInitialized

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

      public Event.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<Event.Builder>
      Throws:
      IOException
    • getWhatCase

      public Event.WhatCase getWhatCase()
      Specified by:
      getWhatCase in interface EventOrBuilder
    • clearWhat

      public Event.Builder clearWhat()
    • 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.
    • hasFileVersion

      public boolean hasFileVersion()
      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:
      hasFileVersion in interface EventOrBuilder
      Returns:
      Whether the fileVersion field is set.
    • getFileVersion

      public 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 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(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(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.
    • hasGraphDef

      public boolean hasGraphDef()
      An encoded version of a GraphDef.
      
      bytes graph_def = 4;
      Specified by:
      hasGraphDef in interface EventOrBuilder
      Returns:
      Whether the graphDef field is set.
    • getGraphDef

      public 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(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.
      
      .tensorflow.Summary summary = 5;
      Specified by:
      hasSummary in interface EventOrBuilder
      Returns:
      Whether the summary field is set.
    • getSummary

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

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

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

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

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

      public Summary.Builder getSummaryBuilder()
      A summary was generated.
      
      .tensorflow.Summary summary = 5;
    • getSummaryOrBuilder

      public SummaryOrBuilder getSummaryOrBuilder()
      A summary was generated.
      
      .tensorflow.Summary summary = 5;
      Specified by:
      getSummaryOrBuilder in interface EventOrBuilder
    • hasLogMessage

      @Deprecated public boolean hasLogMessage()
      Deprecated.
      tensorflow.Event.log_message is deprecated. See tensorflow/core/util/event.proto;l=34
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
      Specified by:
      hasLogMessage in interface EventOrBuilder
      Returns:
      Whether the logMessage field is set.
    • getLogMessage

      @Deprecated public LogMessage getLogMessage()
      Deprecated.
      tensorflow.Event.log_message is deprecated. See tensorflow/core/util/event.proto;l=34
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
      Specified by:
      getLogMessage in interface EventOrBuilder
      Returns:
      The logMessage.
    • setLogMessage

      @Deprecated public Event.Builder setLogMessage(LogMessage value)
      Deprecated.
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
    • setLogMessage

      @Deprecated public Event.Builder setLogMessage(LogMessage.Builder builderForValue)
      Deprecated.
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
    • mergeLogMessage

      @Deprecated public Event.Builder mergeLogMessage(LogMessage value)
      Deprecated.
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
    • clearLogMessage

      @Deprecated public Event.Builder clearLogMessage()
      Deprecated.
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
    • getLogMessageBuilder

      @Deprecated public LogMessage.Builder getLogMessageBuilder()
      Deprecated.
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
    • getLogMessageOrBuilder

      @Deprecated public LogMessageOrBuilder getLogMessageOrBuilder()
      Deprecated.
      The user output a log message. This was theoretically used by the defunct
      tensorboard_logging module, which has since been removed; this field is
      now deprecated and should not be used.
      
      .tensorflow.LogMessage log_message = 6 [deprecated = true];
      Specified by:
      getLogMessageOrBuilder in interface EventOrBuilder
    • hasSessionLog

      public boolean hasSessionLog()
      The state of the session which can be used for restarting after crashes.
      
      .tensorflow.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.
      
      .tensorflow.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.
      
      .tensorflow.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.
      
      .tensorflow.SessionLog session_log = 7;
    • mergeSessionLog

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

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

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

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

      public boolean hasTaggedRunMetadata()
      The metadata returned by running a session.run() call.
      
      .tensorflow.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.
      
      .tensorflow.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.
      
      .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
    • setTaggedRunMetadata

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

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

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

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

      public TaggedRunMetadataOrBuilder getTaggedRunMetadataOrBuilder()
      The metadata returned by running a session.run() call.
      
      .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
      Specified by:
      getTaggedRunMetadataOrBuilder in interface EventOrBuilder
    • hasMetaGraphDef

      public boolean hasMetaGraphDef()
      An encoded version of a MetaGraphDef.
      
      bytes meta_graph_def = 9;
      Specified by:
      hasMetaGraphDef in interface EventOrBuilder
      Returns:
      Whether the metaGraphDef field is set.
    • getMetaGraphDef

      public 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(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.
    • hasSourceMetadata

      public boolean hasSourceMetadata()
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
      Specified by:
      hasSourceMetadata in interface EventOrBuilder
      Returns:
      Whether the sourceMetadata field is set.
    • getSourceMetadata

      public SourceMetadata getSourceMetadata()
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
      Specified by:
      getSourceMetadata in interface EventOrBuilder
      Returns:
      The sourceMetadata.
    • setSourceMetadata

      public Event.Builder setSourceMetadata(SourceMetadata value)
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
    • setSourceMetadata

      public Event.Builder setSourceMetadata(SourceMetadata.Builder builderForValue)
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
    • mergeSourceMetadata

      public Event.Builder mergeSourceMetadata(SourceMetadata value)
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
    • clearSourceMetadata

      public Event.Builder clearSourceMetadata()
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
    • getSourceMetadataBuilder

      public SourceMetadata.Builder getSourceMetadataBuilder()
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
    • getSourceMetadataOrBuilder

      public SourceMetadataOrBuilder getSourceMetadataOrBuilder()
      Information of the source that writes the events, this is only logged in
      the very first event along with the `file_version` field.
      
      .tensorflow.SourceMetadata source_metadata = 10;
      Specified by:
      getSourceMetadataOrBuilder in interface EventOrBuilder
    • setUnknownFields

      public final Event.Builder setUnknownFields(UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface Message.Builder
      Overrides:
      setUnknownFields in class GeneratedMessageV3.Builder<Event.Builder>
    • mergeUnknownFields

      public final Event.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface Message.Builder
      Overrides:
      mergeUnknownFields in class GeneratedMessageV3.Builder<Event.Builder>