org.tensorflow.util.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of systemml Show documentation
Show all versions of systemml Show documentation
Declarative Machine Learning
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: event.proto
package org.tensorflow.util;
/**
* Protobuf type {@code tensorflow.Event}
*
*
* Protocol buffer representing an event that happened during
* the execution of a Brain model.
*
*/
public final class Event extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:tensorflow.Event)
EventOrBuilder {
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
}
private Event() {
wallTime_ = 0D;
step_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Event(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 9: {
wallTime_ = input.readDouble();
break;
}
case 16: {
step_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
whatCase_ = 3;
what_ = s;
break;
}
case 34: {
whatCase_ = 4;
what_ = input.readBytes();
break;
}
case 42: {
org.tensorflow.framework.Summary.Builder subBuilder = null;
if (whatCase_ == 5) {
subBuilder = ((org.tensorflow.framework.Summary) what_).toBuilder();
}
what_ =
input.readMessage(org.tensorflow.framework.Summary.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.framework.Summary) what_);
what_ = subBuilder.buildPartial();
}
whatCase_ = 5;
break;
}
case 50: {
org.tensorflow.util.LogMessage.Builder subBuilder = null;
if (whatCase_ == 6) {
subBuilder = ((org.tensorflow.util.LogMessage) what_).toBuilder();
}
what_ =
input.readMessage(org.tensorflow.util.LogMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.util.LogMessage) what_);
what_ = subBuilder.buildPartial();
}
whatCase_ = 6;
break;
}
case 58: {
org.tensorflow.util.SessionLog.Builder subBuilder = null;
if (whatCase_ == 7) {
subBuilder = ((org.tensorflow.util.SessionLog) what_).toBuilder();
}
what_ =
input.readMessage(org.tensorflow.util.SessionLog.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.util.SessionLog) what_);
what_ = subBuilder.buildPartial();
}
whatCase_ = 7;
break;
}
case 66: {
org.tensorflow.util.TaggedRunMetadata.Builder subBuilder = null;
if (whatCase_ == 8) {
subBuilder = ((org.tensorflow.util.TaggedRunMetadata) what_).toBuilder();
}
what_ =
input.readMessage(org.tensorflow.util.TaggedRunMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.util.TaggedRunMetadata) what_);
what_ = subBuilder.buildPartial();
}
whatCase_ = 8;
break;
}
case 74: {
whatCase_ = 9;
what_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.EventProtos.internal_static_tensorflow_Event_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.EventProtos.internal_static_tensorflow_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.Event.class, org.tensorflow.util.Event.Builder.class);
}
private int whatCase_ = 0;
private java.lang.Object what_;
public enum WhatCase
implements com.google.protobuf.Internal.EnumLite {
FILE_VERSION(3),
GRAPH_DEF(4),
SUMMARY(5),
LOG_MESSAGE(6),
SESSION_LOG(7),
TAGGED_RUN_METADATA(8),
META_GRAPH_DEF(9),
WHAT_NOT_SET(0);
private int value = 0;
private WhatCase(int value) {
this.value = value;
}
public static WhatCase valueOf(int value) {
switch (value) {
case 3: return FILE_VERSION;
case 4: return GRAPH_DEF;
case 5: return SUMMARY;
case 6: return LOG_MESSAGE;
case 7: return SESSION_LOG;
case 8: return TAGGED_RUN_METADATA;
case 9: return META_GRAPH_DEF;
case 0: return WHAT_NOT_SET;
default: throw new java.lang.IllegalArgumentException(
"Value is undefined for this oneof enum.");
}
}
public int getNumber() {
return this.value;
}
};
public WhatCase
getWhatCase() {
return WhatCase.valueOf(
whatCase_);
}
public static final int WALL_TIME_FIELD_NUMBER = 1;
private double wallTime_;
/**
* optional double wall_time = 1;
*
*
* Timestamp of the event.
*
*/
public double getWallTime() {
return wallTime_;
}
public static final int STEP_FIELD_NUMBER = 2;
private long step_;
/**
* optional int64 step = 2;
*
*
* Global step of the event.
*
*/
public long getStep() {
return step_;
}
public static final int FILE_VERSION_FIELD_NUMBER = 3;
/**
* optional string file_version = 3;
*
*
* 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:".
*
*/
public java.lang.String getFileVersion() {
java.lang.Object ref = "";
if (whatCase_ == 3) {
ref = what_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (whatCase_ == 3) {
what_ = s;
}
return s;
}
}
/**
* optional string file_version = 3;
*
*
* 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:".
*
*/
public com.google.protobuf.ByteString
getFileVersionBytes() {
java.lang.Object ref = "";
if (whatCase_ == 3) {
ref = what_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (whatCase_ == 3) {
what_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRAPH_DEF_FIELD_NUMBER = 4;
/**
* optional bytes graph_def = 4;
*
*
* An encoded version of a GraphDef.
*
*/
public com.google.protobuf.ByteString getGraphDef() {
if (whatCase_ == 4) {
return (com.google.protobuf.ByteString) what_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int SUMMARY_FIELD_NUMBER = 5;
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public org.tensorflow.framework.Summary getSummary() {
if (whatCase_ == 5) {
return (org.tensorflow.framework.Summary) what_;
}
return org.tensorflow.framework.Summary.getDefaultInstance();
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public org.tensorflow.framework.SummaryOrBuilder getSummaryOrBuilder() {
if (whatCase_ == 5) {
return (org.tensorflow.framework.Summary) what_;
}
return org.tensorflow.framework.Summary.getDefaultInstance();
}
public static final int LOG_MESSAGE_FIELD_NUMBER = 6;
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public org.tensorflow.util.LogMessage getLogMessage() {
if (whatCase_ == 6) {
return (org.tensorflow.util.LogMessage) what_;
}
return org.tensorflow.util.LogMessage.getDefaultInstance();
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public org.tensorflow.util.LogMessageOrBuilder getLogMessageOrBuilder() {
if (whatCase_ == 6) {
return (org.tensorflow.util.LogMessage) what_;
}
return org.tensorflow.util.LogMessage.getDefaultInstance();
}
public static final int SESSION_LOG_FIELD_NUMBER = 7;
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public org.tensorflow.util.SessionLog getSessionLog() {
if (whatCase_ == 7) {
return (org.tensorflow.util.SessionLog) what_;
}
return org.tensorflow.util.SessionLog.getDefaultInstance();
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public org.tensorflow.util.SessionLogOrBuilder getSessionLogOrBuilder() {
if (whatCase_ == 7) {
return (org.tensorflow.util.SessionLog) what_;
}
return org.tensorflow.util.SessionLog.getDefaultInstance();
}
public static final int TAGGED_RUN_METADATA_FIELD_NUMBER = 8;
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public org.tensorflow.util.TaggedRunMetadata getTaggedRunMetadata() {
if (whatCase_ == 8) {
return (org.tensorflow.util.TaggedRunMetadata) what_;
}
return org.tensorflow.util.TaggedRunMetadata.getDefaultInstance();
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public org.tensorflow.util.TaggedRunMetadataOrBuilder getTaggedRunMetadataOrBuilder() {
if (whatCase_ == 8) {
return (org.tensorflow.util.TaggedRunMetadata) what_;
}
return org.tensorflow.util.TaggedRunMetadata.getDefaultInstance();
}
public static final int META_GRAPH_DEF_FIELD_NUMBER = 9;
/**
* optional bytes meta_graph_def = 9;
*
*
* An encoded version of a MetaGraphDef.
*
*/
public com.google.protobuf.ByteString getMetaGraphDef() {
if (whatCase_ == 9) {
return (com.google.protobuf.ByteString) what_;
}
return com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (wallTime_ != 0D) {
output.writeDouble(1, wallTime_);
}
if (step_ != 0L) {
output.writeInt64(2, step_);
}
if (whatCase_ == 3) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, what_);
}
if (whatCase_ == 4) {
output.writeBytes(
4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) what_));
}
if (whatCase_ == 5) {
output.writeMessage(5, (org.tensorflow.framework.Summary) what_);
}
if (whatCase_ == 6) {
output.writeMessage(6, (org.tensorflow.util.LogMessage) what_);
}
if (whatCase_ == 7) {
output.writeMessage(7, (org.tensorflow.util.SessionLog) what_);
}
if (whatCase_ == 8) {
output.writeMessage(8, (org.tensorflow.util.TaggedRunMetadata) what_);
}
if (whatCase_ == 9) {
output.writeBytes(
9, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) what_));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (wallTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, wallTime_);
}
if (step_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, step_);
}
if (whatCase_ == 3) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, what_);
}
if (whatCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) what_));
}
if (whatCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (org.tensorflow.framework.Summary) what_);
}
if (whatCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (org.tensorflow.util.LogMessage) what_);
}
if (whatCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (org.tensorflow.util.SessionLog) what_);
}
if (whatCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (org.tensorflow.util.TaggedRunMetadata) what_);
}
if (whatCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
9, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) what_));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.tensorflow.util.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.Event parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.tensorflow.util.Event parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.tensorflow.util.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.tensorflow.util.Event parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.tensorflow.util.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.tensorflow.util.Event parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.util.Event prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.Event}
*
*
* Protocol buffer representing an event that happened during
* the execution of a Brain model.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Event)
org.tensorflow.util.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.EventProtos.internal_static_tensorflow_Event_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.EventProtos.internal_static_tensorflow_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.Event.class, org.tensorflow.util.Event.Builder.class);
}
// Construct using org.tensorflow.util.Event.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
wallTime_ = 0D;
step_ = 0L;
whatCase_ = 0;
what_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.util.EventProtos.internal_static_tensorflow_Event_descriptor;
}
public org.tensorflow.util.Event getDefaultInstanceForType() {
return org.tensorflow.util.Event.getDefaultInstance();
}
public org.tensorflow.util.Event build() {
org.tensorflow.util.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.util.Event buildPartial() {
org.tensorflow.util.Event result = new org.tensorflow.util.Event(this);
result.wallTime_ = wallTime_;
result.step_ = step_;
if (whatCase_ == 3) {
result.what_ = what_;
}
if (whatCase_ == 4) {
result.what_ = what_;
}
if (whatCase_ == 5) {
if (summaryBuilder_ == null) {
result.what_ = what_;
} else {
result.what_ = summaryBuilder_.build();
}
}
if (whatCase_ == 6) {
if (logMessageBuilder_ == null) {
result.what_ = what_;
} else {
result.what_ = logMessageBuilder_.build();
}
}
if (whatCase_ == 7) {
if (sessionLogBuilder_ == null) {
result.what_ = what_;
} else {
result.what_ = sessionLogBuilder_.build();
}
}
if (whatCase_ == 8) {
if (taggedRunMetadataBuilder_ == null) {
result.what_ = what_;
} else {
result.what_ = taggedRunMetadataBuilder_.build();
}
}
if (whatCase_ == 9) {
result.what_ = what_;
}
result.whatCase_ = whatCase_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.util.Event) {
return mergeFrom((org.tensorflow.util.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.util.Event other) {
if (other == org.tensorflow.util.Event.getDefaultInstance()) return this;
if (other.getWallTime() != 0D) {
setWallTime(other.getWallTime());
}
if (other.getStep() != 0L) {
setStep(other.getStep());
}
switch (other.getWhatCase()) {
case FILE_VERSION: {
whatCase_ = 3;
what_ = other.what_;
onChanged();
break;
}
case GRAPH_DEF: {
setGraphDef(other.getGraphDef());
break;
}
case SUMMARY: {
mergeSummary(other.getSummary());
break;
}
case LOG_MESSAGE: {
mergeLogMessage(other.getLogMessage());
break;
}
case SESSION_LOG: {
mergeSessionLog(other.getSessionLog());
break;
}
case TAGGED_RUN_METADATA: {
mergeTaggedRunMetadata(other.getTaggedRunMetadata());
break;
}
case META_GRAPH_DEF: {
setMetaGraphDef(other.getMetaGraphDef());
break;
}
case WHAT_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.util.Event parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.util.Event) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int whatCase_ = 0;
private java.lang.Object what_;
public WhatCase
getWhatCase() {
return WhatCase.valueOf(
whatCase_);
}
public Builder clearWhat() {
whatCase_ = 0;
what_ = null;
onChanged();
return this;
}
private double wallTime_ ;
/**
* optional double wall_time = 1;
*
*
* Timestamp of the event.
*
*/
public double getWallTime() {
return wallTime_;
}
/**
* optional double wall_time = 1;
*
*
* Timestamp of the event.
*
*/
public Builder setWallTime(double value) {
wallTime_ = value;
onChanged();
return this;
}
/**
* optional double wall_time = 1;
*
*
* Timestamp of the event.
*
*/
public Builder clearWallTime() {
wallTime_ = 0D;
onChanged();
return this;
}
private long step_ ;
/**
* optional int64 step = 2;
*
*
* Global step of the event.
*
*/
public long getStep() {
return step_;
}
/**
* optional int64 step = 2;
*
*
* Global step of the event.
*
*/
public Builder setStep(long value) {
step_ = value;
onChanged();
return this;
}
/**
* optional int64 step = 2;
*
*
* Global step of the event.
*
*/
public Builder clearStep() {
step_ = 0L;
onChanged();
return this;
}
/**
* optional string file_version = 3;
*
*
* 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:".
*
*/
public java.lang.String getFileVersion() {
java.lang.Object ref = "";
if (whatCase_ == 3) {
ref = what_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (whatCase_ == 3) {
what_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string file_version = 3;
*
*
* 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:".
*
*/
public com.google.protobuf.ByteString
getFileVersionBytes() {
java.lang.Object ref = "";
if (whatCase_ == 3) {
ref = what_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (whatCase_ == 3) {
what_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string file_version = 3;
*
*
* 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:".
*
*/
public Builder setFileVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
whatCase_ = 3;
what_ = value;
onChanged();
return this;
}
/**
* optional string file_version = 3;
*
*
* 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:".
*
*/
public Builder clearFileVersion() {
if (whatCase_ == 3) {
whatCase_ = 0;
what_ = null;
onChanged();
}
return this;
}
/**
* optional string file_version = 3;
*
*
* 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:".
*
*/
public Builder setFileVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
whatCase_ = 3;
what_ = value;
onChanged();
return this;
}
/**
* optional bytes graph_def = 4;
*
*
* An encoded version of a GraphDef.
*
*/
public com.google.protobuf.ByteString getGraphDef() {
if (whatCase_ == 4) {
return (com.google.protobuf.ByteString) what_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* optional bytes graph_def = 4;
*
*
* An encoded version of a GraphDef.
*
*/
public Builder setGraphDef(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
whatCase_ = 4;
what_ = value;
onChanged();
return this;
}
/**
* optional bytes graph_def = 4;
*
*
* An encoded version of a GraphDef.
*
*/
public Builder clearGraphDef() {
if (whatCase_ == 4) {
whatCase_ = 0;
what_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.framework.Summary, org.tensorflow.framework.Summary.Builder, org.tensorflow.framework.SummaryOrBuilder> summaryBuilder_;
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public org.tensorflow.framework.Summary getSummary() {
if (summaryBuilder_ == null) {
if (whatCase_ == 5) {
return (org.tensorflow.framework.Summary) what_;
}
return org.tensorflow.framework.Summary.getDefaultInstance();
} else {
if (whatCase_ == 5) {
return summaryBuilder_.getMessage();
}
return org.tensorflow.framework.Summary.getDefaultInstance();
}
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public Builder setSummary(org.tensorflow.framework.Summary value) {
if (summaryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
what_ = value;
onChanged();
} else {
summaryBuilder_.setMessage(value);
}
whatCase_ = 5;
return this;
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public Builder setSummary(
org.tensorflow.framework.Summary.Builder builderForValue) {
if (summaryBuilder_ == null) {
what_ = builderForValue.build();
onChanged();
} else {
summaryBuilder_.setMessage(builderForValue.build());
}
whatCase_ = 5;
return this;
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public Builder mergeSummary(org.tensorflow.framework.Summary value) {
if (summaryBuilder_ == null) {
if (whatCase_ == 5 &&
what_ != org.tensorflow.framework.Summary.getDefaultInstance()) {
what_ = org.tensorflow.framework.Summary.newBuilder((org.tensorflow.framework.Summary) what_)
.mergeFrom(value).buildPartial();
} else {
what_ = value;
}
onChanged();
} else {
if (whatCase_ == 5) {
summaryBuilder_.mergeFrom(value);
}
summaryBuilder_.setMessage(value);
}
whatCase_ = 5;
return this;
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public Builder clearSummary() {
if (summaryBuilder_ == null) {
if (whatCase_ == 5) {
whatCase_ = 0;
what_ = null;
onChanged();
}
} else {
if (whatCase_ == 5) {
whatCase_ = 0;
what_ = null;
}
summaryBuilder_.clear();
}
return this;
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public org.tensorflow.framework.Summary.Builder getSummaryBuilder() {
return getSummaryFieldBuilder().getBuilder();
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
public org.tensorflow.framework.SummaryOrBuilder getSummaryOrBuilder() {
if ((whatCase_ == 5) && (summaryBuilder_ != null)) {
return summaryBuilder_.getMessageOrBuilder();
} else {
if (whatCase_ == 5) {
return (org.tensorflow.framework.Summary) what_;
}
return org.tensorflow.framework.Summary.getDefaultInstance();
}
}
/**
* optional .tensorflow.Summary summary = 5;
*
*
* A summary was generated.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.framework.Summary, org.tensorflow.framework.Summary.Builder, org.tensorflow.framework.SummaryOrBuilder>
getSummaryFieldBuilder() {
if (summaryBuilder_ == null) {
if (!(whatCase_ == 5)) {
what_ = org.tensorflow.framework.Summary.getDefaultInstance();
}
summaryBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.tensorflow.framework.Summary, org.tensorflow.framework.Summary.Builder, org.tensorflow.framework.SummaryOrBuilder>(
(org.tensorflow.framework.Summary) what_,
getParentForChildren(),
isClean());
what_ = null;
}
whatCase_ = 5;
onChanged();;
return summaryBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.LogMessage, org.tensorflow.util.LogMessage.Builder, org.tensorflow.util.LogMessageOrBuilder> logMessageBuilder_;
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public org.tensorflow.util.LogMessage getLogMessage() {
if (logMessageBuilder_ == null) {
if (whatCase_ == 6) {
return (org.tensorflow.util.LogMessage) what_;
}
return org.tensorflow.util.LogMessage.getDefaultInstance();
} else {
if (whatCase_ == 6) {
return logMessageBuilder_.getMessage();
}
return org.tensorflow.util.LogMessage.getDefaultInstance();
}
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public Builder setLogMessage(org.tensorflow.util.LogMessage value) {
if (logMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
what_ = value;
onChanged();
} else {
logMessageBuilder_.setMessage(value);
}
whatCase_ = 6;
return this;
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public Builder setLogMessage(
org.tensorflow.util.LogMessage.Builder builderForValue) {
if (logMessageBuilder_ == null) {
what_ = builderForValue.build();
onChanged();
} else {
logMessageBuilder_.setMessage(builderForValue.build());
}
whatCase_ = 6;
return this;
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public Builder mergeLogMessage(org.tensorflow.util.LogMessage value) {
if (logMessageBuilder_ == null) {
if (whatCase_ == 6 &&
what_ != org.tensorflow.util.LogMessage.getDefaultInstance()) {
what_ = org.tensorflow.util.LogMessage.newBuilder((org.tensorflow.util.LogMessage) what_)
.mergeFrom(value).buildPartial();
} else {
what_ = value;
}
onChanged();
} else {
if (whatCase_ == 6) {
logMessageBuilder_.mergeFrom(value);
}
logMessageBuilder_.setMessage(value);
}
whatCase_ = 6;
return this;
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public Builder clearLogMessage() {
if (logMessageBuilder_ == null) {
if (whatCase_ == 6) {
whatCase_ = 0;
what_ = null;
onChanged();
}
} else {
if (whatCase_ == 6) {
whatCase_ = 0;
what_ = null;
}
logMessageBuilder_.clear();
}
return this;
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public org.tensorflow.util.LogMessage.Builder getLogMessageBuilder() {
return getLogMessageFieldBuilder().getBuilder();
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
public org.tensorflow.util.LogMessageOrBuilder getLogMessageOrBuilder() {
if ((whatCase_ == 6) && (logMessageBuilder_ != null)) {
return logMessageBuilder_.getMessageOrBuilder();
} else {
if (whatCase_ == 6) {
return (org.tensorflow.util.LogMessage) what_;
}
return org.tensorflow.util.LogMessage.getDefaultInstance();
}
}
/**
* optional .tensorflow.LogMessage log_message = 6;
*
*
* The user output a log message. Not all messages are logged, only ones
* generated via the Python tensorboard_logging module.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.LogMessage, org.tensorflow.util.LogMessage.Builder, org.tensorflow.util.LogMessageOrBuilder>
getLogMessageFieldBuilder() {
if (logMessageBuilder_ == null) {
if (!(whatCase_ == 6)) {
what_ = org.tensorflow.util.LogMessage.getDefaultInstance();
}
logMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.LogMessage, org.tensorflow.util.LogMessage.Builder, org.tensorflow.util.LogMessageOrBuilder>(
(org.tensorflow.util.LogMessage) what_,
getParentForChildren(),
isClean());
what_ = null;
}
whatCase_ = 6;
onChanged();;
return logMessageBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.SessionLog, org.tensorflow.util.SessionLog.Builder, org.tensorflow.util.SessionLogOrBuilder> sessionLogBuilder_;
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public org.tensorflow.util.SessionLog getSessionLog() {
if (sessionLogBuilder_ == null) {
if (whatCase_ == 7) {
return (org.tensorflow.util.SessionLog) what_;
}
return org.tensorflow.util.SessionLog.getDefaultInstance();
} else {
if (whatCase_ == 7) {
return sessionLogBuilder_.getMessage();
}
return org.tensorflow.util.SessionLog.getDefaultInstance();
}
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public Builder setSessionLog(org.tensorflow.util.SessionLog value) {
if (sessionLogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
what_ = value;
onChanged();
} else {
sessionLogBuilder_.setMessage(value);
}
whatCase_ = 7;
return this;
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public Builder setSessionLog(
org.tensorflow.util.SessionLog.Builder builderForValue) {
if (sessionLogBuilder_ == null) {
what_ = builderForValue.build();
onChanged();
} else {
sessionLogBuilder_.setMessage(builderForValue.build());
}
whatCase_ = 7;
return this;
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public Builder mergeSessionLog(org.tensorflow.util.SessionLog value) {
if (sessionLogBuilder_ == null) {
if (whatCase_ == 7 &&
what_ != org.tensorflow.util.SessionLog.getDefaultInstance()) {
what_ = org.tensorflow.util.SessionLog.newBuilder((org.tensorflow.util.SessionLog) what_)
.mergeFrom(value).buildPartial();
} else {
what_ = value;
}
onChanged();
} else {
if (whatCase_ == 7) {
sessionLogBuilder_.mergeFrom(value);
}
sessionLogBuilder_.setMessage(value);
}
whatCase_ = 7;
return this;
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public Builder clearSessionLog() {
if (sessionLogBuilder_ == null) {
if (whatCase_ == 7) {
whatCase_ = 0;
what_ = null;
onChanged();
}
} else {
if (whatCase_ == 7) {
whatCase_ = 0;
what_ = null;
}
sessionLogBuilder_.clear();
}
return this;
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public org.tensorflow.util.SessionLog.Builder getSessionLogBuilder() {
return getSessionLogFieldBuilder().getBuilder();
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
public org.tensorflow.util.SessionLogOrBuilder getSessionLogOrBuilder() {
if ((whatCase_ == 7) && (sessionLogBuilder_ != null)) {
return sessionLogBuilder_.getMessageOrBuilder();
} else {
if (whatCase_ == 7) {
return (org.tensorflow.util.SessionLog) what_;
}
return org.tensorflow.util.SessionLog.getDefaultInstance();
}
}
/**
* optional .tensorflow.SessionLog session_log = 7;
*
*
* The state of the session which can be used for restarting after crashes.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.SessionLog, org.tensorflow.util.SessionLog.Builder, org.tensorflow.util.SessionLogOrBuilder>
getSessionLogFieldBuilder() {
if (sessionLogBuilder_ == null) {
if (!(whatCase_ == 7)) {
what_ = org.tensorflow.util.SessionLog.getDefaultInstance();
}
sessionLogBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.SessionLog, org.tensorflow.util.SessionLog.Builder, org.tensorflow.util.SessionLogOrBuilder>(
(org.tensorflow.util.SessionLog) what_,
getParentForChildren(),
isClean());
what_ = null;
}
whatCase_ = 7;
onChanged();;
return sessionLogBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.TaggedRunMetadata, org.tensorflow.util.TaggedRunMetadata.Builder, org.tensorflow.util.TaggedRunMetadataOrBuilder> taggedRunMetadataBuilder_;
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public org.tensorflow.util.TaggedRunMetadata getTaggedRunMetadata() {
if (taggedRunMetadataBuilder_ == null) {
if (whatCase_ == 8) {
return (org.tensorflow.util.TaggedRunMetadata) what_;
}
return org.tensorflow.util.TaggedRunMetadata.getDefaultInstance();
} else {
if (whatCase_ == 8) {
return taggedRunMetadataBuilder_.getMessage();
}
return org.tensorflow.util.TaggedRunMetadata.getDefaultInstance();
}
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public Builder setTaggedRunMetadata(org.tensorflow.util.TaggedRunMetadata value) {
if (taggedRunMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
what_ = value;
onChanged();
} else {
taggedRunMetadataBuilder_.setMessage(value);
}
whatCase_ = 8;
return this;
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public Builder setTaggedRunMetadata(
org.tensorflow.util.TaggedRunMetadata.Builder builderForValue) {
if (taggedRunMetadataBuilder_ == null) {
what_ = builderForValue.build();
onChanged();
} else {
taggedRunMetadataBuilder_.setMessage(builderForValue.build());
}
whatCase_ = 8;
return this;
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public Builder mergeTaggedRunMetadata(org.tensorflow.util.TaggedRunMetadata value) {
if (taggedRunMetadataBuilder_ == null) {
if (whatCase_ == 8 &&
what_ != org.tensorflow.util.TaggedRunMetadata.getDefaultInstance()) {
what_ = org.tensorflow.util.TaggedRunMetadata.newBuilder((org.tensorflow.util.TaggedRunMetadata) what_)
.mergeFrom(value).buildPartial();
} else {
what_ = value;
}
onChanged();
} else {
if (whatCase_ == 8) {
taggedRunMetadataBuilder_.mergeFrom(value);
}
taggedRunMetadataBuilder_.setMessage(value);
}
whatCase_ = 8;
return this;
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public Builder clearTaggedRunMetadata() {
if (taggedRunMetadataBuilder_ == null) {
if (whatCase_ == 8) {
whatCase_ = 0;
what_ = null;
onChanged();
}
} else {
if (whatCase_ == 8) {
whatCase_ = 0;
what_ = null;
}
taggedRunMetadataBuilder_.clear();
}
return this;
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public org.tensorflow.util.TaggedRunMetadata.Builder getTaggedRunMetadataBuilder() {
return getTaggedRunMetadataFieldBuilder().getBuilder();
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
public org.tensorflow.util.TaggedRunMetadataOrBuilder getTaggedRunMetadataOrBuilder() {
if ((whatCase_ == 8) && (taggedRunMetadataBuilder_ != null)) {
return taggedRunMetadataBuilder_.getMessageOrBuilder();
} else {
if (whatCase_ == 8) {
return (org.tensorflow.util.TaggedRunMetadata) what_;
}
return org.tensorflow.util.TaggedRunMetadata.getDefaultInstance();
}
}
/**
* optional .tensorflow.TaggedRunMetadata tagged_run_metadata = 8;
*
*
* The metadata returned by running a session.run() call.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.TaggedRunMetadata, org.tensorflow.util.TaggedRunMetadata.Builder, org.tensorflow.util.TaggedRunMetadataOrBuilder>
getTaggedRunMetadataFieldBuilder() {
if (taggedRunMetadataBuilder_ == null) {
if (!(whatCase_ == 8)) {
what_ = org.tensorflow.util.TaggedRunMetadata.getDefaultInstance();
}
taggedRunMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.tensorflow.util.TaggedRunMetadata, org.tensorflow.util.TaggedRunMetadata.Builder, org.tensorflow.util.TaggedRunMetadataOrBuilder>(
(org.tensorflow.util.TaggedRunMetadata) what_,
getParentForChildren(),
isClean());
what_ = null;
}
whatCase_ = 8;
onChanged();;
return taggedRunMetadataBuilder_;
}
/**
* optional bytes meta_graph_def = 9;
*
*
* An encoded version of a MetaGraphDef.
*
*/
public com.google.protobuf.ByteString getMetaGraphDef() {
if (whatCase_ == 9) {
return (com.google.protobuf.ByteString) what_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* optional bytes meta_graph_def = 9;
*
*
* An encoded version of a MetaGraphDef.
*
*/
public Builder setMetaGraphDef(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
whatCase_ = 9;
what_ = value;
onChanged();
return this;
}
/**
* optional bytes meta_graph_def = 9;
*
*
* An encoded version of a MetaGraphDef.
*
*/
public Builder clearMetaGraphDef() {
if (whatCase_ == 9) {
whatCase_ = 0;
what_ = null;
onChanged();
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:tensorflow.Event)
}
// @@protoc_insertion_point(class_scope:tensorflow.Event)
private static final org.tensorflow.util.Event DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.util.Event();
}
public static org.tensorflow.util.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Event parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Event(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.util.Event getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}