Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.tensorflow.framework.Summary Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/summary.proto
package org.tensorflow.framework;
/**
*
* A Summary is a set of named values to be displayed by the
* visualizer.
* Summaries are produced regularly during training, as controlled by
* the "summary_interval_secs" attribute of the training operation.
* Summaries are also produced at the end of an evaluation.
*
*
* Protobuf type {@code tensorflow.Summary}
*/
public final class Summary extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary)
SummaryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Summary.newBuilder() to construct.
private Summary(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Summary() {
value_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Summary(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
value_.add(
input.readMessage(org.tensorflow.framework.Summary.Value.parser(), extensionRegistry));
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
value_ = java.util.Collections.unmodifiableList(value_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.class, org.tensorflow.framework.Summary.Builder.class);
}
public interface ImageOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.Summary.Image)
com.github.os72.protobuf351.MessageOrBuilder {
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
*/
int getHeight();
/**
* int32 width = 2;
*/
int getWidth();
/**
*
* Valid colorspace values are
* 1 - grayscale
* 2 - grayscale + alpha
* 3 - RGB
* 4 - RGBA
* 5 - DIGITAL_YUV
* 6 - BGRA
*
*
* int32 colorspace = 3;
*/
int getColorspace();
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
*/
com.github.os72.protobuf351.ByteString getEncodedImageString();
}
/**
* Protobuf type {@code tensorflow.Summary.Image}
*/
public static final class Image extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary.Image)
ImageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Image.newBuilder() to construct.
private Image(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Image() {
height_ = 0;
width_ = 0;
colorspace_ = 0;
encodedImageString_ = com.github.os72.protobuf351.ByteString.EMPTY;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Image(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
height_ = input.readInt32();
break;
}
case 16: {
width_ = input.readInt32();
break;
}
case 24: {
colorspace_ = input.readInt32();
break;
}
case 34: {
encodedImageString_ = input.readBytes();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.Image.class, org.tensorflow.framework.Summary.Image.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private int height_;
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
*/
public int getHeight() {
return height_;
}
public static final int WIDTH_FIELD_NUMBER = 2;
private int width_;
/**
* int32 width = 2;
*/
public int getWidth() {
return width_;
}
public static final int COLORSPACE_FIELD_NUMBER = 3;
private int colorspace_;
/**
*
* Valid colorspace values are
* 1 - grayscale
* 2 - grayscale + alpha
* 3 - RGB
* 4 - RGBA
* 5 - DIGITAL_YUV
* 6 - BGRA
*
*
* int32 colorspace = 3;
*/
public int getColorspace() {
return colorspace_;
}
public static final int ENCODED_IMAGE_STRING_FIELD_NUMBER = 4;
private com.github.os72.protobuf351.ByteString encodedImageString_;
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
*/
public com.github.os72.protobuf351.ByteString getEncodedImageString() {
return encodedImageString_;
}
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.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (height_ != 0) {
output.writeInt32(1, height_);
}
if (width_ != 0) {
output.writeInt32(2, width_);
}
if (colorspace_ != 0) {
output.writeInt32(3, colorspace_);
}
if (!encodedImageString_.isEmpty()) {
output.writeBytes(4, encodedImageString_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(1, height_);
}
if (width_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(2, width_);
}
if (colorspace_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(3, colorspace_);
}
if (!encodedImageString_.isEmpty()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBytesSize(4, encodedImageString_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.Summary.Image)) {
return super.equals(obj);
}
org.tensorflow.framework.Summary.Image other = (org.tensorflow.framework.Summary.Image) obj;
boolean result = true;
result = result && (getHeight()
== other.getHeight());
result = result && (getWidth()
== other.getWidth());
result = result && (getColorspace()
== other.getColorspace());
result = result && getEncodedImageString()
.equals(other.getEncodedImageString());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight();
hash = (37 * hash) + WIDTH_FIELD_NUMBER;
hash = (53 * hash) + getWidth();
hash = (37 * hash) + COLORSPACE_FIELD_NUMBER;
hash = (53 * hash) + getColorspace();
hash = (37 * hash) + ENCODED_IMAGE_STRING_FIELD_NUMBER;
hash = (53 * hash) + getEncodedImageString().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.Summary.Image parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Image parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.Summary.Image 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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.Summary.Image}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary.Image)
org.tensorflow.framework.Summary.ImageOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.Image.class, org.tensorflow.framework.Summary.Image.Builder.class);
}
// Construct using org.tensorflow.framework.Summary.Image.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
height_ = 0;
width_ = 0;
colorspace_ = 0;
encodedImageString_ = com.github.os72.protobuf351.ByteString.EMPTY;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor;
}
public org.tensorflow.framework.Summary.Image getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.Image.getDefaultInstance();
}
public org.tensorflow.framework.Summary.Image build() {
org.tensorflow.framework.Summary.Image result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.Summary.Image buildPartial() {
org.tensorflow.framework.Summary.Image result = new org.tensorflow.framework.Summary.Image(this);
result.height_ = height_;
result.width_ = width_;
result.colorspace_ = colorspace_;
result.encodedImageString_ = encodedImageString_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.Summary.Image) {
return mergeFrom((org.tensorflow.framework.Summary.Image)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.Summary.Image other) {
if (other == org.tensorflow.framework.Summary.Image.getDefaultInstance()) return this;
if (other.getHeight() != 0) {
setHeight(other.getHeight());
}
if (other.getWidth() != 0) {
setWidth(other.getWidth());
}
if (other.getColorspace() != 0) {
setColorspace(other.getColorspace());
}
if (other.getEncodedImageString() != com.github.os72.protobuf351.ByteString.EMPTY) {
setEncodedImageString(other.getEncodedImageString());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary.Image parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.Summary.Image) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int height_ ;
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
*/
public int getHeight() {
return height_;
}
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
*/
public Builder setHeight(int value) {
height_ = value;
onChanged();
return this;
}
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
*/
public Builder clearHeight() {
height_ = 0;
onChanged();
return this;
}
private int width_ ;
/**
* int32 width = 2;
*/
public int getWidth() {
return width_;
}
/**
* int32 width = 2;
*/
public Builder setWidth(int value) {
width_ = value;
onChanged();
return this;
}
/**
* int32 width = 2;
*/
public Builder clearWidth() {
width_ = 0;
onChanged();
return this;
}
private int colorspace_ ;
/**
*
* Valid colorspace values are
* 1 - grayscale
* 2 - grayscale + alpha
* 3 - RGB
* 4 - RGBA
* 5 - DIGITAL_YUV
* 6 - BGRA
*
*
* int32 colorspace = 3;
*/
public int getColorspace() {
return colorspace_;
}
/**
*
* Valid colorspace values are
* 1 - grayscale
* 2 - grayscale + alpha
* 3 - RGB
* 4 - RGBA
* 5 - DIGITAL_YUV
* 6 - BGRA
*
*
* int32 colorspace = 3;
*/
public Builder setColorspace(int value) {
colorspace_ = value;
onChanged();
return this;
}
/**
*
* Valid colorspace values are
* 1 - grayscale
* 2 - grayscale + alpha
* 3 - RGB
* 4 - RGBA
* 5 - DIGITAL_YUV
* 6 - BGRA
*
*
* int32 colorspace = 3;
*/
public Builder clearColorspace() {
colorspace_ = 0;
onChanged();
return this;
}
private com.github.os72.protobuf351.ByteString encodedImageString_ = com.github.os72.protobuf351.ByteString.EMPTY;
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
*/
public com.github.os72.protobuf351.ByteString getEncodedImageString() {
return encodedImageString_;
}
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
*/
public Builder setEncodedImageString(com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
encodedImageString_ = value;
onChanged();
return this;
}
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
*/
public Builder clearEncodedImageString() {
encodedImageString_ = getDefaultInstance().getEncodedImageString();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.Summary.Image)
}
// @@protoc_insertion_point(class_scope:tensorflow.Summary.Image)
private static final org.tensorflow.framework.Summary.Image DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.Summary.Image();
}
public static org.tensorflow.framework.Summary.Image getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Image parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Image(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.Summary.Image getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AudioOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.Summary.Audio)
com.github.os72.protobuf351.MessageOrBuilder {
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
*/
float getSampleRate();
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
*/
long getNumChannels();
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
*/
long getLengthFrames();
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
*/
com.github.os72.protobuf351.ByteString getEncodedAudioString();
/**
* string content_type = 5;
*/
java.lang.String getContentType();
/**
* string content_type = 5;
*/
com.github.os72.protobuf351.ByteString
getContentTypeBytes();
}
/**
* Protobuf type {@code tensorflow.Summary.Audio}
*/
public static final class Audio extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary.Audio)
AudioOrBuilder {
private static final long serialVersionUID = 0L;
// Use Audio.newBuilder() to construct.
private Audio(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Audio() {
sampleRate_ = 0F;
numChannels_ = 0L;
lengthFrames_ = 0L;
encodedAudioString_ = com.github.os72.protobuf351.ByteString.EMPTY;
contentType_ = "";
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Audio(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
sampleRate_ = input.readFloat();
break;
}
case 16: {
numChannels_ = input.readInt64();
break;
}
case 24: {
lengthFrames_ = input.readInt64();
break;
}
case 34: {
encodedAudioString_ = input.readBytes();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
contentType_ = s;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.Audio.class, org.tensorflow.framework.Summary.Audio.Builder.class);
}
public static final int SAMPLE_RATE_FIELD_NUMBER = 1;
private float sampleRate_;
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
*/
public float getSampleRate() {
return sampleRate_;
}
public static final int NUM_CHANNELS_FIELD_NUMBER = 2;
private long numChannels_;
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
*/
public long getNumChannels() {
return numChannels_;
}
public static final int LENGTH_FRAMES_FIELD_NUMBER = 3;
private long lengthFrames_;
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
*/
public long getLengthFrames() {
return lengthFrames_;
}
public static final int ENCODED_AUDIO_STRING_FIELD_NUMBER = 4;
private com.github.os72.protobuf351.ByteString encodedAudioString_;
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
*/
public com.github.os72.protobuf351.ByteString getEncodedAudioString() {
return encodedAudioString_;
}
public static final int CONTENT_TYPE_FIELD_NUMBER = 5;
private volatile java.lang.Object contentType_;
/**
* string content_type = 5;
*/
public java.lang.String getContentType() {
java.lang.Object ref = contentType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contentType_ = s;
return s;
}
}
/**
* string content_type = 5;
*/
public com.github.os72.protobuf351.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
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.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (sampleRate_ != 0F) {
output.writeFloat(1, sampleRate_);
}
if (numChannels_ != 0L) {
output.writeInt64(2, numChannels_);
}
if (lengthFrames_ != 0L) {
output.writeInt64(3, lengthFrames_);
}
if (!encodedAudioString_.isEmpty()) {
output.writeBytes(4, encodedAudioString_);
}
if (!getContentTypeBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 5, contentType_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sampleRate_ != 0F) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeFloatSize(1, sampleRate_);
}
if (numChannels_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(2, numChannels_);
}
if (lengthFrames_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(3, lengthFrames_);
}
if (!encodedAudioString_.isEmpty()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBytesSize(4, encodedAudioString_);
}
if (!getContentTypeBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(5, contentType_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.Summary.Audio)) {
return super.equals(obj);
}
org.tensorflow.framework.Summary.Audio other = (org.tensorflow.framework.Summary.Audio) obj;
boolean result = true;
result = result && (
java.lang.Float.floatToIntBits(getSampleRate())
== java.lang.Float.floatToIntBits(
other.getSampleRate()));
result = result && (getNumChannels()
== other.getNumChannels());
result = result && (getLengthFrames()
== other.getLengthFrames());
result = result && getEncodedAudioString()
.equals(other.getEncodedAudioString());
result = result && getContentType()
.equals(other.getContentType());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SAMPLE_RATE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getSampleRate());
hash = (37 * hash) + NUM_CHANNELS_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getNumChannels());
hash = (37 * hash) + LENGTH_FRAMES_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getLengthFrames());
hash = (37 * hash) + ENCODED_AUDIO_STRING_FIELD_NUMBER;
hash = (53 * hash) + getEncodedAudioString().hashCode();
hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getContentType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Audio parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.Summary.Audio 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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.Summary.Audio}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary.Audio)
org.tensorflow.framework.Summary.AudioOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.Audio.class, org.tensorflow.framework.Summary.Audio.Builder.class);
}
// Construct using org.tensorflow.framework.Summary.Audio.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
sampleRate_ = 0F;
numChannels_ = 0L;
lengthFrames_ = 0L;
encodedAudioString_ = com.github.os72.protobuf351.ByteString.EMPTY;
contentType_ = "";
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor;
}
public org.tensorflow.framework.Summary.Audio getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.Audio.getDefaultInstance();
}
public org.tensorflow.framework.Summary.Audio build() {
org.tensorflow.framework.Summary.Audio result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.Summary.Audio buildPartial() {
org.tensorflow.framework.Summary.Audio result = new org.tensorflow.framework.Summary.Audio(this);
result.sampleRate_ = sampleRate_;
result.numChannels_ = numChannels_;
result.lengthFrames_ = lengthFrames_;
result.encodedAudioString_ = encodedAudioString_;
result.contentType_ = contentType_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.Summary.Audio) {
return mergeFrom((org.tensorflow.framework.Summary.Audio)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.Summary.Audio other) {
if (other == org.tensorflow.framework.Summary.Audio.getDefaultInstance()) return this;
if (other.getSampleRate() != 0F) {
setSampleRate(other.getSampleRate());
}
if (other.getNumChannels() != 0L) {
setNumChannels(other.getNumChannels());
}
if (other.getLengthFrames() != 0L) {
setLengthFrames(other.getLengthFrames());
}
if (other.getEncodedAudioString() != com.github.os72.protobuf351.ByteString.EMPTY) {
setEncodedAudioString(other.getEncodedAudioString());
}
if (!other.getContentType().isEmpty()) {
contentType_ = other.contentType_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary.Audio parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.Summary.Audio) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private float sampleRate_ ;
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
*/
public float getSampleRate() {
return sampleRate_;
}
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
*/
public Builder setSampleRate(float value) {
sampleRate_ = value;
onChanged();
return this;
}
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
*/
public Builder clearSampleRate() {
sampleRate_ = 0F;
onChanged();
return this;
}
private long numChannels_ ;
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
*/
public long getNumChannels() {
return numChannels_;
}
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
*/
public Builder setNumChannels(long value) {
numChannels_ = value;
onChanged();
return this;
}
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
*/
public Builder clearNumChannels() {
numChannels_ = 0L;
onChanged();
return this;
}
private long lengthFrames_ ;
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
*/
public long getLengthFrames() {
return lengthFrames_;
}
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
*/
public Builder setLengthFrames(long value) {
lengthFrames_ = value;
onChanged();
return this;
}
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
*/
public Builder clearLengthFrames() {
lengthFrames_ = 0L;
onChanged();
return this;
}
private com.github.os72.protobuf351.ByteString encodedAudioString_ = com.github.os72.protobuf351.ByteString.EMPTY;
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
*/
public com.github.os72.protobuf351.ByteString getEncodedAudioString() {
return encodedAudioString_;
}
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
*/
public Builder setEncodedAudioString(com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
encodedAudioString_ = value;
onChanged();
return this;
}
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
*/
public Builder clearEncodedAudioString() {
encodedAudioString_ = getDefaultInstance().getEncodedAudioString();
onChanged();
return this;
}
private java.lang.Object contentType_ = "";
/**
* string content_type = 5;
*/
public java.lang.String getContentType() {
java.lang.Object ref = contentType_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contentType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string content_type = 5;
*/
public com.github.os72.protobuf351.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string content_type = 5;
*/
public Builder setContentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contentType_ = value;
onChanged();
return this;
}
/**
* string content_type = 5;
*/
public Builder clearContentType() {
contentType_ = getDefaultInstance().getContentType();
onChanged();
return this;
}
/**
* string content_type = 5;
*/
public Builder setContentTypeBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contentType_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.Summary.Audio)
}
// @@protoc_insertion_point(class_scope:tensorflow.Summary.Audio)
private static final org.tensorflow.framework.Summary.Audio DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.Summary.Audio();
}
public static org.tensorflow.framework.Summary.Audio getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Audio parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Audio(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.Summary.Audio getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.Summary.Value)
com.github.os72.protobuf351.MessageOrBuilder {
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
java.lang.String getNodeName();
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
com.github.os72.protobuf351.ByteString
getNodeNameBytes();
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
java.lang.String getTag();
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
com.github.os72.protobuf351.ByteString
getTagBytes();
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
boolean hasMetadata();
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
org.tensorflow.framework.SummaryMetadata getMetadata();
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
org.tensorflow.framework.SummaryMetadataOrBuilder getMetadataOrBuilder();
/**
* float simple_value = 2;
*/
float getSimpleValue();
/**
* bytes obsolete_old_style_histogram = 3;
*/
com.github.os72.protobuf351.ByteString getObsoleteOldStyleHistogram();
/**
* .tensorflow.Summary.Image image = 4;
*/
boolean hasImage();
/**
* .tensorflow.Summary.Image image = 4;
*/
org.tensorflow.framework.Summary.Image getImage();
/**
* .tensorflow.Summary.Image image = 4;
*/
org.tensorflow.framework.Summary.ImageOrBuilder getImageOrBuilder();
/**
* .tensorflow.HistogramProto histo = 5;
*/
boolean hasHisto();
/**
* .tensorflow.HistogramProto histo = 5;
*/
org.tensorflow.framework.HistogramProto getHisto();
/**
* .tensorflow.HistogramProto histo = 5;
*/
org.tensorflow.framework.HistogramProtoOrBuilder getHistoOrBuilder();
/**
* .tensorflow.Summary.Audio audio = 6;
*/
boolean hasAudio();
/**
* .tensorflow.Summary.Audio audio = 6;
*/
org.tensorflow.framework.Summary.Audio getAudio();
/**
* .tensorflow.Summary.Audio audio = 6;
*/
org.tensorflow.framework.Summary.AudioOrBuilder getAudioOrBuilder();
/**
* .tensorflow.TensorProto tensor = 8;
*/
boolean hasTensor();
/**
* .tensorflow.TensorProto tensor = 8;
*/
org.tensorflow.framework.TensorProto getTensor();
/**
* .tensorflow.TensorProto tensor = 8;
*/
org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder();
public org.tensorflow.framework.Summary.Value.ValueCase getValueCase();
}
/**
* Protobuf type {@code tensorflow.Summary.Value}
*/
public static final class Value extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary.Value)
ValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use Value.newBuilder() to construct.
private Value(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Value() {
nodeName_ = "";
tag_ = "";
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Value(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
tag_ = s;
break;
}
case 21: {
valueCase_ = 2;
value_ = input.readFloat();
break;
}
case 26: {
valueCase_ = 3;
value_ = input.readBytes();
break;
}
case 34: {
org.tensorflow.framework.Summary.Image.Builder subBuilder = null;
if (valueCase_ == 4) {
subBuilder = ((org.tensorflow.framework.Summary.Image) value_).toBuilder();
}
value_ =
input.readMessage(org.tensorflow.framework.Summary.Image.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.framework.Summary.Image) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 4;
break;
}
case 42: {
org.tensorflow.framework.HistogramProto.Builder subBuilder = null;
if (valueCase_ == 5) {
subBuilder = ((org.tensorflow.framework.HistogramProto) value_).toBuilder();
}
value_ =
input.readMessage(org.tensorflow.framework.HistogramProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.framework.HistogramProto) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 5;
break;
}
case 50: {
org.tensorflow.framework.Summary.Audio.Builder subBuilder = null;
if (valueCase_ == 6) {
subBuilder = ((org.tensorflow.framework.Summary.Audio) value_).toBuilder();
}
value_ =
input.readMessage(org.tensorflow.framework.Summary.Audio.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.framework.Summary.Audio) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 6;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
nodeName_ = s;
break;
}
case 66: {
org.tensorflow.framework.TensorProto.Builder subBuilder = null;
if (valueCase_ == 8) {
subBuilder = ((org.tensorflow.framework.TensorProto) value_).toBuilder();
}
value_ =
input.readMessage(org.tensorflow.framework.TensorProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.framework.TensorProto) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 8;
break;
}
case 74: {
org.tensorflow.framework.SummaryMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.tensorflow.framework.SummaryMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.Value.class, org.tensorflow.framework.Summary.Value.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.github.os72.protobuf351.Internal.EnumLite {
SIMPLE_VALUE(2),
OBSOLETE_OLD_STYLE_HISTOGRAM(3),
IMAGE(4),
HISTO(5),
AUDIO(6),
TENSOR(8),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 2: return SIMPLE_VALUE;
case 3: return OBSOLETE_OLD_STYLE_HISTOGRAM;
case 4: return IMAGE;
case 5: return HISTO;
case 6: return AUDIO;
case 8: return TENSOR;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int NODE_NAME_FIELD_NUMBER = 7;
private volatile java.lang.Object nodeName_;
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
public java.lang.String getNodeName() {
java.lang.Object ref = nodeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeName_ = s;
return s;
}
}
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
public com.github.os72.protobuf351.ByteString
getNodeNameBytes() {
java.lang.Object ref = nodeName_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeName_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int TAG_FIELD_NUMBER = 1;
private volatile java.lang.Object tag_;
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tag_ = s;
return s;
}
}
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
public com.github.os72.protobuf351.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int METADATA_FIELD_NUMBER = 9;
private org.tensorflow.framework.SummaryMetadata metadata_;
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public org.tensorflow.framework.SummaryMetadata getMetadata() {
return metadata_ == null ? org.tensorflow.framework.SummaryMetadata.getDefaultInstance() : metadata_;
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public org.tensorflow.framework.SummaryMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int SIMPLE_VALUE_FIELD_NUMBER = 2;
/**
* float simple_value = 2;
*/
public float getSimpleValue() {
if (valueCase_ == 2) {
return (java.lang.Float) value_;
}
return 0F;
}
public static final int OBSOLETE_OLD_STYLE_HISTOGRAM_FIELD_NUMBER = 3;
/**
* bytes obsolete_old_style_histogram = 3;
*/
public com.github.os72.protobuf351.ByteString getObsoleteOldStyleHistogram() {
if (valueCase_ == 3) {
return (com.github.os72.protobuf351.ByteString) value_;
}
return com.github.os72.protobuf351.ByteString.EMPTY;
}
public static final int IMAGE_FIELD_NUMBER = 4;
/**
* .tensorflow.Summary.Image image = 4;
*/
public boolean hasImage() {
return valueCase_ == 4;
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public org.tensorflow.framework.Summary.Image getImage() {
if (valueCase_ == 4) {
return (org.tensorflow.framework.Summary.Image) value_;
}
return org.tensorflow.framework.Summary.Image.getDefaultInstance();
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public org.tensorflow.framework.Summary.ImageOrBuilder getImageOrBuilder() {
if (valueCase_ == 4) {
return (org.tensorflow.framework.Summary.Image) value_;
}
return org.tensorflow.framework.Summary.Image.getDefaultInstance();
}
public static final int HISTO_FIELD_NUMBER = 5;
/**
* .tensorflow.HistogramProto histo = 5;
*/
public boolean hasHisto() {
return valueCase_ == 5;
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public org.tensorflow.framework.HistogramProto getHisto() {
if (valueCase_ == 5) {
return (org.tensorflow.framework.HistogramProto) value_;
}
return org.tensorflow.framework.HistogramProto.getDefaultInstance();
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public org.tensorflow.framework.HistogramProtoOrBuilder getHistoOrBuilder() {
if (valueCase_ == 5) {
return (org.tensorflow.framework.HistogramProto) value_;
}
return org.tensorflow.framework.HistogramProto.getDefaultInstance();
}
public static final int AUDIO_FIELD_NUMBER = 6;
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public boolean hasAudio() {
return valueCase_ == 6;
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public org.tensorflow.framework.Summary.Audio getAudio() {
if (valueCase_ == 6) {
return (org.tensorflow.framework.Summary.Audio) value_;
}
return org.tensorflow.framework.Summary.Audio.getDefaultInstance();
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public org.tensorflow.framework.Summary.AudioOrBuilder getAudioOrBuilder() {
if (valueCase_ == 6) {
return (org.tensorflow.framework.Summary.Audio) value_;
}
return org.tensorflow.framework.Summary.Audio.getDefaultInstance();
}
public static final int TENSOR_FIELD_NUMBER = 8;
/**
* .tensorflow.TensorProto tensor = 8;
*/
public boolean hasTensor() {
return valueCase_ == 8;
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public org.tensorflow.framework.TensorProto getTensor() {
if (valueCase_ == 8) {
return (org.tensorflow.framework.TensorProto) value_;
}
return org.tensorflow.framework.TensorProto.getDefaultInstance();
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() {
if (valueCase_ == 8) {
return (org.tensorflow.framework.TensorProto) value_;
}
return org.tensorflow.framework.TensorProto.getDefaultInstance();
}
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.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (!getTagBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, tag_);
}
if (valueCase_ == 2) {
output.writeFloat(
2, (float)((java.lang.Float) value_));
}
if (valueCase_ == 3) {
output.writeBytes(
3, (com.github.os72.protobuf351.ByteString) value_);
}
if (valueCase_ == 4) {
output.writeMessage(4, (org.tensorflow.framework.Summary.Image) value_);
}
if (valueCase_ == 5) {
output.writeMessage(5, (org.tensorflow.framework.HistogramProto) value_);
}
if (valueCase_ == 6) {
output.writeMessage(6, (org.tensorflow.framework.Summary.Audio) value_);
}
if (!getNodeNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 7, nodeName_);
}
if (valueCase_ == 8) {
output.writeMessage(8, (org.tensorflow.framework.TensorProto) value_);
}
if (metadata_ != null) {
output.writeMessage(9, getMetadata());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTagBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, tag_);
}
if (valueCase_ == 2) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeFloatSize(
2, (float)((java.lang.Float) value_));
}
if (valueCase_ == 3) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBytesSize(
3, (com.github.os72.protobuf351.ByteString) value_);
}
if (valueCase_ == 4) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(4, (org.tensorflow.framework.Summary.Image) value_);
}
if (valueCase_ == 5) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(5, (org.tensorflow.framework.HistogramProto) value_);
}
if (valueCase_ == 6) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(6, (org.tensorflow.framework.Summary.Audio) value_);
}
if (!getNodeNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(7, nodeName_);
}
if (valueCase_ == 8) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(8, (org.tensorflow.framework.TensorProto) value_);
}
if (metadata_ != null) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(9, getMetadata());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.Summary.Value)) {
return super.equals(obj);
}
org.tensorflow.framework.Summary.Value other = (org.tensorflow.framework.Summary.Value) obj;
boolean result = true;
result = result && getNodeName()
.equals(other.getNodeName());
result = result && getTag()
.equals(other.getTag());
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && getValueCase().equals(
other.getValueCase());
if (!result) return false;
switch (valueCase_) {
case 2:
result = result && (
java.lang.Float.floatToIntBits(getSimpleValue())
== java.lang.Float.floatToIntBits(
other.getSimpleValue()));
break;
case 3:
result = result && getObsoleteOldStyleHistogram()
.equals(other.getObsoleteOldStyleHistogram());
break;
case 4:
result = result && getImage()
.equals(other.getImage());
break;
case 5:
result = result && getHisto()
.equals(other.getHisto());
break;
case 6:
result = result && getAudio()
.equals(other.getAudio());
break;
case 8:
result = result && getTensor()
.equals(other.getTensor());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NODE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getNodeName().hashCode();
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
switch (valueCase_) {
case 2:
hash = (37 * hash) + SIMPLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getSimpleValue());
break;
case 3:
hash = (37 * hash) + OBSOLETE_OLD_STYLE_HISTOGRAM_FIELD_NUMBER;
hash = (53 * hash) + getObsoleteOldStyleHistogram().hashCode();
break;
case 4:
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
break;
case 5:
hash = (37 * hash) + HISTO_FIELD_NUMBER;
hash = (53 * hash) + getHisto().hashCode();
break;
case 6:
hash = (37 * hash) + AUDIO_FIELD_NUMBER;
hash = (53 * hash) + getAudio().hashCode();
break;
case 8:
hash = (37 * hash) + TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getTensor().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.Summary.Value parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Value parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.Summary.Value 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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.Summary.Value}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary.Value)
org.tensorflow.framework.Summary.ValueOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.Value.class, org.tensorflow.framework.Summary.Value.Builder.class);
}
// Construct using org.tensorflow.framework.Summary.Value.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
nodeName_ = "";
tag_ = "";
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
valueCase_ = 0;
value_ = null;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_descriptor;
}
public org.tensorflow.framework.Summary.Value getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.Value.getDefaultInstance();
}
public org.tensorflow.framework.Summary.Value build() {
org.tensorflow.framework.Summary.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.Summary.Value buildPartial() {
org.tensorflow.framework.Summary.Value result = new org.tensorflow.framework.Summary.Value(this);
result.nodeName_ = nodeName_;
result.tag_ = tag_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (valueCase_ == 2) {
result.value_ = value_;
}
if (valueCase_ == 3) {
result.value_ = value_;
}
if (valueCase_ == 4) {
if (imageBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = imageBuilder_.build();
}
}
if (valueCase_ == 5) {
if (histoBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = histoBuilder_.build();
}
}
if (valueCase_ == 6) {
if (audioBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = audioBuilder_.build();
}
}
if (valueCase_ == 8) {
if (tensorBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = tensorBuilder_.build();
}
}
result.valueCase_ = valueCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.Summary.Value) {
return mergeFrom((org.tensorflow.framework.Summary.Value)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.Summary.Value other) {
if (other == org.tensorflow.framework.Summary.Value.getDefaultInstance()) return this;
if (!other.getNodeName().isEmpty()) {
nodeName_ = other.nodeName_;
onChanged();
}
if (!other.getTag().isEmpty()) {
tag_ = other.tag_;
onChanged();
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
switch (other.getValueCase()) {
case SIMPLE_VALUE: {
setSimpleValue(other.getSimpleValue());
break;
}
case OBSOLETE_OLD_STYLE_HISTOGRAM: {
setObsoleteOldStyleHistogram(other.getObsoleteOldStyleHistogram());
break;
}
case IMAGE: {
mergeImage(other.getImage());
break;
}
case HISTO: {
mergeHisto(other.getHisto());
break;
}
case AUDIO: {
mergeAudio(other.getAudio());
break;
}
case TENSOR: {
mergeTensor(other.getTensor());
break;
}
case VALUE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary.Value parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.Summary.Value) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private java.lang.Object nodeName_ = "";
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
public java.lang.String getNodeName() {
java.lang.Object ref = nodeName_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
public com.github.os72.protobuf351.ByteString
getNodeNameBytes() {
java.lang.Object ref = nodeName_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeName_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
public Builder setNodeName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nodeName_ = value;
onChanged();
return this;
}
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
public Builder clearNodeName() {
nodeName_ = getDefaultInstance().getNodeName();
onChanged();
return this;
}
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
*/
public Builder setNodeNameBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nodeName_ = value;
onChanged();
return this;
}
private java.lang.Object tag_ = "";
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
public com.github.os72.protobuf351.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
public Builder setTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
return this;
}
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
public Builder clearTag() {
tag_ = getDefaultInstance().getTag();
onChanged();
return this;
}
/**
*
* Tag name for the data. Used by TensorBoard plugins to organize data. Tags
* are often organized by scope (which contains slashes to convey
* hierarchy). For example: foo/bar/0
*
*
* string tag = 1;
*/
public Builder setTagBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tag_ = value;
onChanged();
return this;
}
private org.tensorflow.framework.SummaryMetadata metadata_ = null;
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.SummaryMetadata, org.tensorflow.framework.SummaryMetadata.Builder, org.tensorflow.framework.SummaryMetadataOrBuilder> metadataBuilder_;
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public org.tensorflow.framework.SummaryMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.tensorflow.framework.SummaryMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public Builder setMetadata(org.tensorflow.framework.SummaryMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public Builder setMetadata(
org.tensorflow.framework.SummaryMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public Builder mergeMetadata(org.tensorflow.framework.SummaryMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.tensorflow.framework.SummaryMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public org.tensorflow.framework.SummaryMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
public org.tensorflow.framework.SummaryMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.tensorflow.framework.SummaryMetadata.getDefaultInstance() : metadata_;
}
}
/**
*
* Contains metadata on the summary value such as which plugins may use it.
* Take note that many summary values may lack a metadata field. This is
* because the FileWriter only keeps a metadata object on the first summary
* value with a certain tag for each tag. TensorBoard then remembers which
* tags are associated with which plugins. This saves space.
*
*
* .tensorflow.SummaryMetadata metadata = 9;
*/
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.SummaryMetadata, org.tensorflow.framework.SummaryMetadata.Builder, org.tensorflow.framework.SummaryMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.SummaryMetadata, org.tensorflow.framework.SummaryMetadata.Builder, org.tensorflow.framework.SummaryMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
/**
* float simple_value = 2;
*/
public float getSimpleValue() {
if (valueCase_ == 2) {
return (java.lang.Float) value_;
}
return 0F;
}
/**
* float simple_value = 2;
*/
public Builder setSimpleValue(float value) {
valueCase_ = 2;
value_ = value;
onChanged();
return this;
}
/**
* float simple_value = 2;
*/
public Builder clearSimpleValue() {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* bytes obsolete_old_style_histogram = 3;
*/
public com.github.os72.protobuf351.ByteString getObsoleteOldStyleHistogram() {
if (valueCase_ == 3) {
return (com.github.os72.protobuf351.ByteString) value_;
}
return com.github.os72.protobuf351.ByteString.EMPTY;
}
/**
* bytes obsolete_old_style_histogram = 3;
*/
public Builder setObsoleteOldStyleHistogram(com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 3;
value_ = value;
onChanged();
return this;
}
/**
* bytes obsolete_old_style_histogram = 3;
*/
public Builder clearObsoleteOldStyleHistogram() {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Image, org.tensorflow.framework.Summary.Image.Builder, org.tensorflow.framework.Summary.ImageOrBuilder> imageBuilder_;
/**
* .tensorflow.Summary.Image image = 4;
*/
public boolean hasImage() {
return valueCase_ == 4;
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public org.tensorflow.framework.Summary.Image getImage() {
if (imageBuilder_ == null) {
if (valueCase_ == 4) {
return (org.tensorflow.framework.Summary.Image) value_;
}
return org.tensorflow.framework.Summary.Image.getDefaultInstance();
} else {
if (valueCase_ == 4) {
return imageBuilder_.getMessage();
}
return org.tensorflow.framework.Summary.Image.getDefaultInstance();
}
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public Builder setImage(org.tensorflow.framework.Summary.Image value) {
if (imageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
imageBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public Builder setImage(
org.tensorflow.framework.Summary.Image.Builder builderForValue) {
if (imageBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
imageBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 4;
return this;
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public Builder mergeImage(org.tensorflow.framework.Summary.Image value) {
if (imageBuilder_ == null) {
if (valueCase_ == 4 &&
value_ != org.tensorflow.framework.Summary.Image.getDefaultInstance()) {
value_ = org.tensorflow.framework.Summary.Image.newBuilder((org.tensorflow.framework.Summary.Image) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 4) {
imageBuilder_.mergeFrom(value);
}
imageBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public Builder clearImage() {
if (imageBuilder_ == null) {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
}
imageBuilder_.clear();
}
return this;
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public org.tensorflow.framework.Summary.Image.Builder getImageBuilder() {
return getImageFieldBuilder().getBuilder();
}
/**
* .tensorflow.Summary.Image image = 4;
*/
public org.tensorflow.framework.Summary.ImageOrBuilder getImageOrBuilder() {
if ((valueCase_ == 4) && (imageBuilder_ != null)) {
return imageBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 4) {
return (org.tensorflow.framework.Summary.Image) value_;
}
return org.tensorflow.framework.Summary.Image.getDefaultInstance();
}
}
/**
* .tensorflow.Summary.Image image = 4;
*/
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Image, org.tensorflow.framework.Summary.Image.Builder, org.tensorflow.framework.Summary.ImageOrBuilder>
getImageFieldBuilder() {
if (imageBuilder_ == null) {
if (!(valueCase_ == 4)) {
value_ = org.tensorflow.framework.Summary.Image.getDefaultInstance();
}
imageBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Image, org.tensorflow.framework.Summary.Image.Builder, org.tensorflow.framework.Summary.ImageOrBuilder>(
(org.tensorflow.framework.Summary.Image) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 4;
onChanged();;
return imageBuilder_;
}
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.HistogramProto, org.tensorflow.framework.HistogramProto.Builder, org.tensorflow.framework.HistogramProtoOrBuilder> histoBuilder_;
/**
* .tensorflow.HistogramProto histo = 5;
*/
public boolean hasHisto() {
return valueCase_ == 5;
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public org.tensorflow.framework.HistogramProto getHisto() {
if (histoBuilder_ == null) {
if (valueCase_ == 5) {
return (org.tensorflow.framework.HistogramProto) value_;
}
return org.tensorflow.framework.HistogramProto.getDefaultInstance();
} else {
if (valueCase_ == 5) {
return histoBuilder_.getMessage();
}
return org.tensorflow.framework.HistogramProto.getDefaultInstance();
}
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public Builder setHisto(org.tensorflow.framework.HistogramProto value) {
if (histoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
histoBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public Builder setHisto(
org.tensorflow.framework.HistogramProto.Builder builderForValue) {
if (histoBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
histoBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 5;
return this;
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public Builder mergeHisto(org.tensorflow.framework.HistogramProto value) {
if (histoBuilder_ == null) {
if (valueCase_ == 5 &&
value_ != org.tensorflow.framework.HistogramProto.getDefaultInstance()) {
value_ = org.tensorflow.framework.HistogramProto.newBuilder((org.tensorflow.framework.HistogramProto) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 5) {
histoBuilder_.mergeFrom(value);
}
histoBuilder_.setMessage(value);
}
valueCase_ = 5;
return this;
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public Builder clearHisto() {
if (histoBuilder_ == null) {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
}
histoBuilder_.clear();
}
return this;
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public org.tensorflow.framework.HistogramProto.Builder getHistoBuilder() {
return getHistoFieldBuilder().getBuilder();
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
public org.tensorflow.framework.HistogramProtoOrBuilder getHistoOrBuilder() {
if ((valueCase_ == 5) && (histoBuilder_ != null)) {
return histoBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 5) {
return (org.tensorflow.framework.HistogramProto) value_;
}
return org.tensorflow.framework.HistogramProto.getDefaultInstance();
}
}
/**
* .tensorflow.HistogramProto histo = 5;
*/
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.HistogramProto, org.tensorflow.framework.HistogramProto.Builder, org.tensorflow.framework.HistogramProtoOrBuilder>
getHistoFieldBuilder() {
if (histoBuilder_ == null) {
if (!(valueCase_ == 5)) {
value_ = org.tensorflow.framework.HistogramProto.getDefaultInstance();
}
histoBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.HistogramProto, org.tensorflow.framework.HistogramProto.Builder, org.tensorflow.framework.HistogramProtoOrBuilder>(
(org.tensorflow.framework.HistogramProto) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 5;
onChanged();;
return histoBuilder_;
}
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Audio, org.tensorflow.framework.Summary.Audio.Builder, org.tensorflow.framework.Summary.AudioOrBuilder> audioBuilder_;
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public boolean hasAudio() {
return valueCase_ == 6;
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public org.tensorflow.framework.Summary.Audio getAudio() {
if (audioBuilder_ == null) {
if (valueCase_ == 6) {
return (org.tensorflow.framework.Summary.Audio) value_;
}
return org.tensorflow.framework.Summary.Audio.getDefaultInstance();
} else {
if (valueCase_ == 6) {
return audioBuilder_.getMessage();
}
return org.tensorflow.framework.Summary.Audio.getDefaultInstance();
}
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public Builder setAudio(org.tensorflow.framework.Summary.Audio value) {
if (audioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
audioBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public Builder setAudio(
org.tensorflow.framework.Summary.Audio.Builder builderForValue) {
if (audioBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
audioBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 6;
return this;
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public Builder mergeAudio(org.tensorflow.framework.Summary.Audio value) {
if (audioBuilder_ == null) {
if (valueCase_ == 6 &&
value_ != org.tensorflow.framework.Summary.Audio.getDefaultInstance()) {
value_ = org.tensorflow.framework.Summary.Audio.newBuilder((org.tensorflow.framework.Summary.Audio) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 6) {
audioBuilder_.mergeFrom(value);
}
audioBuilder_.setMessage(value);
}
valueCase_ = 6;
return this;
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public Builder clearAudio() {
if (audioBuilder_ == null) {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
}
audioBuilder_.clear();
}
return this;
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public org.tensorflow.framework.Summary.Audio.Builder getAudioBuilder() {
return getAudioFieldBuilder().getBuilder();
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
public org.tensorflow.framework.Summary.AudioOrBuilder getAudioOrBuilder() {
if ((valueCase_ == 6) && (audioBuilder_ != null)) {
return audioBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 6) {
return (org.tensorflow.framework.Summary.Audio) value_;
}
return org.tensorflow.framework.Summary.Audio.getDefaultInstance();
}
}
/**
* .tensorflow.Summary.Audio audio = 6;
*/
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Audio, org.tensorflow.framework.Summary.Audio.Builder, org.tensorflow.framework.Summary.AudioOrBuilder>
getAudioFieldBuilder() {
if (audioBuilder_ == null) {
if (!(valueCase_ == 6)) {
value_ = org.tensorflow.framework.Summary.Audio.getDefaultInstance();
}
audioBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Audio, org.tensorflow.framework.Summary.Audio.Builder, org.tensorflow.framework.Summary.AudioOrBuilder>(
(org.tensorflow.framework.Summary.Audio) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 6;
onChanged();;
return audioBuilder_;
}
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> tensorBuilder_;
/**
* .tensorflow.TensorProto tensor = 8;
*/
public boolean hasTensor() {
return valueCase_ == 8;
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public org.tensorflow.framework.TensorProto getTensor() {
if (tensorBuilder_ == null) {
if (valueCase_ == 8) {
return (org.tensorflow.framework.TensorProto) value_;
}
return org.tensorflow.framework.TensorProto.getDefaultInstance();
} else {
if (valueCase_ == 8) {
return tensorBuilder_.getMessage();
}
return org.tensorflow.framework.TensorProto.getDefaultInstance();
}
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public Builder setTensor(org.tensorflow.framework.TensorProto value) {
if (tensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
tensorBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public Builder setTensor(
org.tensorflow.framework.TensorProto.Builder builderForValue) {
if (tensorBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
tensorBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 8;
return this;
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public Builder mergeTensor(org.tensorflow.framework.TensorProto value) {
if (tensorBuilder_ == null) {
if (valueCase_ == 8 &&
value_ != org.tensorflow.framework.TensorProto.getDefaultInstance()) {
value_ = org.tensorflow.framework.TensorProto.newBuilder((org.tensorflow.framework.TensorProto) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 8) {
tensorBuilder_.mergeFrom(value);
}
tensorBuilder_.setMessage(value);
}
valueCase_ = 8;
return this;
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public Builder clearTensor() {
if (tensorBuilder_ == null) {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 8) {
valueCase_ = 0;
value_ = null;
}
tensorBuilder_.clear();
}
return this;
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public org.tensorflow.framework.TensorProto.Builder getTensorBuilder() {
return getTensorFieldBuilder().getBuilder();
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() {
if ((valueCase_ == 8) && (tensorBuilder_ != null)) {
return tensorBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 8) {
return (org.tensorflow.framework.TensorProto) value_;
}
return org.tensorflow.framework.TensorProto.getDefaultInstance();
}
}
/**
* .tensorflow.TensorProto tensor = 8;
*/
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>
getTensorFieldBuilder() {
if (tensorBuilder_ == null) {
if (!(valueCase_ == 8)) {
value_ = org.tensorflow.framework.TensorProto.getDefaultInstance();
}
tensorBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>(
(org.tensorflow.framework.TensorProto) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 8;
onChanged();;
return tensorBuilder_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.Summary.Value)
}
// @@protoc_insertion_point(class_scope:tensorflow.Summary.Value)
private static final org.tensorflow.framework.Summary.Value DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.Summary.Value();
}
public static org.tensorflow.framework.Summary.Value getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Value parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Value(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.Summary.Value getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int VALUE_FIELD_NUMBER = 1;
private java.util.List value_;
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public java.util.List getValueList() {
return value_;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public java.util.List extends org.tensorflow.framework.Summary.ValueOrBuilder>
getValueOrBuilderList() {
return value_;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public int getValueCount() {
return value_.size();
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public org.tensorflow.framework.Summary.Value getValue(int index) {
return value_.get(index);
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public org.tensorflow.framework.Summary.ValueOrBuilder getValueOrBuilder(
int index) {
return value_.get(index);
}
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.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < value_.size(); i++) {
output.writeMessage(1, value_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < value_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(1, value_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.Summary)) {
return super.equals(obj);
}
org.tensorflow.framework.Summary other = (org.tensorflow.framework.Summary) obj;
boolean result = true;
result = result && getValueList()
.equals(other.getValueList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValueCount() > 0) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValueList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.Summary parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.Summary 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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A Summary is a set of named values to be displayed by the
* visualizer.
* Summaries are produced regularly during training, as controlled by
* the "summary_interval_secs" attribute of the training operation.
* Summaries are also produced at the end of an evaluation.
*
*
* Protobuf type {@code tensorflow.Summary}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary)
org.tensorflow.framework.SummaryOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.Summary.class, org.tensorflow.framework.Summary.Builder.class);
}
// Construct using org.tensorflow.framework.Summary.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (valueBuilder_ == null) {
value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
valueBuilder_.clear();
}
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_descriptor;
}
public org.tensorflow.framework.Summary getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.getDefaultInstance();
}
public org.tensorflow.framework.Summary build() {
org.tensorflow.framework.Summary result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.Summary buildPartial() {
org.tensorflow.framework.Summary result = new org.tensorflow.framework.Summary(this);
int from_bitField0_ = bitField0_;
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
value_ = java.util.Collections.unmodifiableList(value_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.Summary) {
return mergeFrom((org.tensorflow.framework.Summary)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.Summary other) {
if (other == org.tensorflow.framework.Summary.getDefaultInstance()) return this;
if (valueBuilder_ == null) {
if (!other.value_.isEmpty()) {
if (value_.isEmpty()) {
value_ = other.value_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValueIsMutable();
value_.addAll(other.value_);
}
onChanged();
}
} else {
if (!other.value_.isEmpty()) {
if (valueBuilder_.isEmpty()) {
valueBuilder_.dispose();
valueBuilder_ = null;
value_ = other.value_;
bitField0_ = (bitField0_ & ~0x00000001);
valueBuilder_ =
com.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValueFieldBuilder() : null;
} else {
valueBuilder_.addAllMessages(other.value_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.Summary) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List value_ =
java.util.Collections.emptyList();
private void ensureValueIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
value_ = new java.util.ArrayList(value_);
bitField0_ |= 0x00000001;
}
}
private com.github.os72.protobuf351.RepeatedFieldBuilderV3<
org.tensorflow.framework.Summary.Value, org.tensorflow.framework.Summary.Value.Builder, org.tensorflow.framework.Summary.ValueOrBuilder> valueBuilder_;
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public java.util.List getValueList() {
if (valueBuilder_ == null) {
return java.util.Collections.unmodifiableList(value_);
} else {
return valueBuilder_.getMessageList();
}
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public int getValueCount() {
if (valueBuilder_ == null) {
return value_.size();
} else {
return valueBuilder_.getCount();
}
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public org.tensorflow.framework.Summary.Value getValue(int index) {
if (valueBuilder_ == null) {
return value_.get(index);
} else {
return valueBuilder_.getMessage(index);
}
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder setValue(
int index, org.tensorflow.framework.Summary.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.set(index, value);
onChanged();
} else {
valueBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder setValue(
int index, org.tensorflow.framework.Summary.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.set(index, builderForValue.build());
onChanged();
} else {
valueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder addValue(org.tensorflow.framework.Summary.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.add(value);
onChanged();
} else {
valueBuilder_.addMessage(value);
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder addValue(
int index, org.tensorflow.framework.Summary.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.add(index, value);
onChanged();
} else {
valueBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder addValue(
org.tensorflow.framework.Summary.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.add(builderForValue.build());
onChanged();
} else {
valueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder addValue(
int index, org.tensorflow.framework.Summary.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.add(index, builderForValue.build());
onChanged();
} else {
valueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder addAllValue(
java.lang.Iterable extends org.tensorflow.framework.Summary.Value> values) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll(
values, value_);
onChanged();
} else {
valueBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valueBuilder_.clear();
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public Builder removeValue(int index) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.remove(index);
onChanged();
} else {
valueBuilder_.remove(index);
}
return this;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public org.tensorflow.framework.Summary.Value.Builder getValueBuilder(
int index) {
return getValueFieldBuilder().getBuilder(index);
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public org.tensorflow.framework.Summary.ValueOrBuilder getValueOrBuilder(
int index) {
if (valueBuilder_ == null) {
return value_.get(index); } else {
return valueBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public java.util.List extends org.tensorflow.framework.Summary.ValueOrBuilder>
getValueOrBuilderList() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(value_);
}
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public org.tensorflow.framework.Summary.Value.Builder addValueBuilder() {
return getValueFieldBuilder().addBuilder(
org.tensorflow.framework.Summary.Value.getDefaultInstance());
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public org.tensorflow.framework.Summary.Value.Builder addValueBuilder(
int index) {
return getValueFieldBuilder().addBuilder(
index, org.tensorflow.framework.Summary.Value.getDefaultInstance());
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
public java.util.List
getValueBuilderList() {
return getValueFieldBuilder().getBuilderList();
}
private com.github.os72.protobuf351.RepeatedFieldBuilderV3<
org.tensorflow.framework.Summary.Value, org.tensorflow.framework.Summary.Value.Builder, org.tensorflow.framework.Summary.ValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3<
org.tensorflow.framework.Summary.Value, org.tensorflow.framework.Summary.Value.Builder, org.tensorflow.framework.Summary.ValueOrBuilder>(
value_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.Summary)
}
// @@protoc_insertion_point(class_scope:tensorflow.Summary)
private static final org.tensorflow.framework.Summary DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.Summary();
}
public static org.tensorflow.framework.Summary getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Summary parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Summary(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.Summary getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}