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
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary)
SummaryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Summary.newBuilder() to construct.
private Summary(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Summary() {
value_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Summary();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Summary(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
value_.add(
input.readMessage(org.tensorflow.framework.Summary.Value.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
value_ = java.util.Collections.unmodifiableList(value_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
* @return The height.
*/
int getHeight();
/**
* int32 width = 2;
* @return The width.
*/
int getWidth();
/**
*
* Valid colorspace values are
* 1 - grayscale
* 2 - grayscale + alpha
* 3 - RGB
* 4 - RGBA
* 5 - DIGITAL_YUV
* 6 - BGRA
*
*
* int32 colorspace = 3;
* @return The colorspace.
*/
int getColorspace();
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
* @return The encodedImageString.
*/
org.nd4j.shade.protobuf.ByteString getEncodedImageString();
}
/**
* Protobuf type {@code tensorflow.Summary.Image}
*/
public static final class Image extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary.Image)
ImageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Image.newBuilder() to construct.
private Image(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Image() {
encodedImageString_ = org.nd4j.shade.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Image();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Image(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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;
* @return The height.
*/
@java.lang.Override
public int getHeight() {
return height_;
}
public static final int WIDTH_FIELD_NUMBER = 2;
private int width_;
/**
* int32 width = 2;
* @return The width.
*/
@java.lang.Override
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;
* @return The colorspace.
*/
@java.lang.Override
public int getColorspace() {
return colorspace_;
}
public static final int ENCODED_IMAGE_STRING_FIELD_NUMBER = 4;
private org.nd4j.shade.protobuf.ByteString encodedImageString_;
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
* @return The encodedImageString.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString getEncodedImageString() {
return encodedImageString_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.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);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32Size(1, height_);
}
if (width_ != 0) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32Size(2, width_);
}
if (colorspace_ != 0) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32Size(3, colorspace_);
}
if (!encodedImageString_.isEmpty()) {
size += org.nd4j.shade.protobuf.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;
if (getHeight()
!= other.getHeight()) return false;
if (getWidth()
!= other.getWidth()) return false;
if (getColorspace()
!= other.getColorspace()) return false;
if (!getEncodedImageString()
.equals(other.getEncodedImageString())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Image parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Image parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.Summary.Image}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary.Image)
org.tensorflow.framework.Summary.ImageOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
height_ = 0;
width_ = 0;
colorspace_ = 0;
encodedImageString_ = org.nd4j.shade.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor;
}
@java.lang.Override
public org.tensorflow.framework.Summary.Image getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.Image.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.framework.Summary.Image build() {
org.tensorflow.framework.Summary.Image result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.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() != org.nd4j.shade.protobuf.ByteString.EMPTY) {
setEncodedImageString(other.getEncodedImageString());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary.Image parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.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;
* @return The height.
*/
@java.lang.Override
public int getHeight() {
return height_;
}
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(int value) {
height_ = value;
onChanged();
return this;
}
/**
*
* Dimensions of the image.
*
*
* int32 height = 1;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0;
onChanged();
return this;
}
private int width_ ;
/**
* int32 width = 2;
* @return The width.
*/
@java.lang.Override
public int getWidth() {
return width_;
}
/**
* int32 width = 2;
* @param value The width to set.
* @return This builder for chaining.
*/
public Builder setWidth(int value) {
width_ = value;
onChanged();
return this;
}
/**
* int32 width = 2;
* @return This builder for chaining.
*/
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;
* @return The colorspace.
*/
@java.lang.Override
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;
* @param value The colorspace to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearColorspace() {
colorspace_ = 0;
onChanged();
return this;
}
private org.nd4j.shade.protobuf.ByteString encodedImageString_ = org.nd4j.shade.protobuf.ByteString.EMPTY;
/**
*
* Image data in encoded format. All image formats supported by
* image_codec::CoderUtil can be stored here.
*
*
* bytes encoded_image_string = 4;
* @return The encodedImageString.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.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;
* @param value The encodedImageString to set.
* @return This builder for chaining.
*/
public Builder setEncodedImageString(org.nd4j.shade.protobuf.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;
* @return This builder for chaining.
*/
public Builder clearEncodedImageString() {
encodedImageString_ = getDefaultInstance().getEncodedImageString();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public Image parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new Image(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.Summary.Image getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AudioOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.Summary.Audio)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
* @return The sampleRate.
*/
float getSampleRate();
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
* @return The numChannels.
*/
long getNumChannels();
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
* @return The lengthFrames.
*/
long getLengthFrames();
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
* @return The encodedAudioString.
*/
org.nd4j.shade.protobuf.ByteString getEncodedAudioString();
/**
* string content_type = 5;
* @return The contentType.
*/
java.lang.String getContentType();
/**
* string content_type = 5;
* @return The bytes for contentType.
*/
org.nd4j.shade.protobuf.ByteString
getContentTypeBytes();
}
/**
* Protobuf type {@code tensorflow.Summary.Audio}
*/
public static final class Audio extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary.Audio)
AudioOrBuilder {
private static final long serialVersionUID = 0L;
// Use Audio.newBuilder() to construct.
private Audio(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Audio() {
encodedAudioString_ = org.nd4j.shade.protobuf.ByteString.EMPTY;
contentType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Audio();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Audio(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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;
* @return The sampleRate.
*/
@java.lang.Override
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;
* @return The numChannels.
*/
@java.lang.Override
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;
* @return The lengthFrames.
*/
@java.lang.Override
public long getLengthFrames() {
return lengthFrames_;
}
public static final int ENCODED_AUDIO_STRING_FIELD_NUMBER = 4;
private org.nd4j.shade.protobuf.ByteString encodedAudioString_;
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
* @return The encodedAudioString.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString getEncodedAudioString() {
return encodedAudioString_;
}
public static final int CONTENT_TYPE_FIELD_NUMBER = 5;
private volatile java.lang.Object contentType_;
/**
* string content_type = 5;
* @return The contentType.
*/
@java.lang.Override
public java.lang.String getContentType() {
java.lang.Object ref = contentType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contentType_ = s;
return s;
}
}
/**
* string content_type = 5;
* @return The bytes for contentType.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.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()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 5, contentType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sampleRate_ != 0F) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFloatSize(1, sampleRate_);
}
if (numChannels_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(2, numChannels_);
}
if (lengthFrames_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(3, lengthFrames_);
}
if (!encodedAudioString_.isEmpty()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBytesSize(4, encodedAudioString_);
}
if (!getContentTypeBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.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;
if (java.lang.Float.floatToIntBits(getSampleRate())
!= java.lang.Float.floatToIntBits(
other.getSampleRate())) return false;
if (getNumChannels()
!= other.getNumChannels()) return false;
if (getLengthFrames()
!= other.getLengthFrames()) return false;
if (!getEncodedAudioString()
.equals(other.getEncodedAudioString())) return false;
if (!getContentType()
.equals(other.getContentType())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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) + org.nd4j.shade.protobuf.Internal.hashLong(
getNumChannels());
hash = (37 * hash) + LENGTH_FRAMES_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Audio parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Audio parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.Summary.Audio}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary.Audio)
org.tensorflow.framework.Summary.AudioOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sampleRate_ = 0F;
numChannels_ = 0L;
lengthFrames_ = 0L;
encodedAudioString_ = org.nd4j.shade.protobuf.ByteString.EMPTY;
contentType_ = "";
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor;
}
@java.lang.Override
public org.tensorflow.framework.Summary.Audio getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.Audio.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.framework.Summary.Audio build() {
org.tensorflow.framework.Summary.Audio result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.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() != org.nd4j.shade.protobuf.ByteString.EMPTY) {
setEncodedAudioString(other.getEncodedAudioString());
}
if (!other.getContentType().isEmpty()) {
contentType_ = other.contentType_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary.Audio parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.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;
* @return The sampleRate.
*/
@java.lang.Override
public float getSampleRate() {
return sampleRate_;
}
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
* @param value The sampleRate to set.
* @return This builder for chaining.
*/
public Builder setSampleRate(float value) {
sampleRate_ = value;
onChanged();
return this;
}
/**
*
* Sample rate of the audio in Hz.
*
*
* float sample_rate = 1;
* @return This builder for chaining.
*/
public Builder clearSampleRate() {
sampleRate_ = 0F;
onChanged();
return this;
}
private long numChannels_ ;
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
* @return The numChannels.
*/
@java.lang.Override
public long getNumChannels() {
return numChannels_;
}
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
* @param value The numChannels to set.
* @return This builder for chaining.
*/
public Builder setNumChannels(long value) {
numChannels_ = value;
onChanged();
return this;
}
/**
*
* Number of channels of audio.
*
*
* int64 num_channels = 2;
* @return This builder for chaining.
*/
public Builder clearNumChannels() {
numChannels_ = 0L;
onChanged();
return this;
}
private long lengthFrames_ ;
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
* @return The lengthFrames.
*/
@java.lang.Override
public long getLengthFrames() {
return lengthFrames_;
}
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
* @param value The lengthFrames to set.
* @return This builder for chaining.
*/
public Builder setLengthFrames(long value) {
lengthFrames_ = value;
onChanged();
return this;
}
/**
*
* Length of the audio in frames (samples per channel).
*
*
* int64 length_frames = 3;
* @return This builder for chaining.
*/
public Builder clearLengthFrames() {
lengthFrames_ = 0L;
onChanged();
return this;
}
private org.nd4j.shade.protobuf.ByteString encodedAudioString_ = org.nd4j.shade.protobuf.ByteString.EMPTY;
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
* @return The encodedAudioString.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString getEncodedAudioString() {
return encodedAudioString_;
}
/**
*
* Encoded audio data and its associated RFC 2045 content type (e.g.
* "audio/wav").
*
*
* bytes encoded_audio_string = 4;
* @param value The encodedAudioString to set.
* @return This builder for chaining.
*/
public Builder setEncodedAudioString(org.nd4j.shade.protobuf.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;
* @return This builder for chaining.
*/
public Builder clearEncodedAudioString() {
encodedAudioString_ = getDefaultInstance().getEncodedAudioString();
onChanged();
return this;
}
private java.lang.Object contentType_ = "";
/**
* string content_type = 5;
* @return The contentType.
*/
public java.lang.String getContentType() {
java.lang.Object ref = contentType_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contentType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string content_type = 5;
* @return The bytes for contentType.
*/
public org.nd4j.shade.protobuf.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
* string content_type = 5;
* @param value The contentType to set.
* @return This builder for chaining.
*/
public Builder setContentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contentType_ = value;
onChanged();
return this;
}
/**
* string content_type = 5;
* @return This builder for chaining.
*/
public Builder clearContentType() {
contentType_ = getDefaultInstance().getContentType();
onChanged();
return this;
}
/**
* string content_type = 5;
* @param value The bytes for contentType to set.
* @return This builder for chaining.
*/
public Builder setContentTypeBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contentType_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public Audio parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new Audio(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.Summary.Audio getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.Summary.Value)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
* @return The nodeName.
*/
java.lang.String getNodeName();
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
* @return The bytes for nodeName.
*/
org.nd4j.shade.protobuf.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;
* @return The tag.
*/
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;
* @return The bytes for tag.
*/
org.nd4j.shade.protobuf.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;
* @return Whether the metadata field is set.
*/
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;
* @return The metadata.
*/
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;
* @return The simpleValue.
*/
float getSimpleValue();
/**
* bytes obsolete_old_style_histogram = 3;
* @return The obsoleteOldStyleHistogram.
*/
org.nd4j.shade.protobuf.ByteString getObsoleteOldStyleHistogram();
/**
* .tensorflow.Summary.Image image = 4;
* @return Whether the image field is set.
*/
boolean hasImage();
/**
* .tensorflow.Summary.Image image = 4;
* @return The image.
*/
org.tensorflow.framework.Summary.Image getImage();
/**
* .tensorflow.Summary.Image image = 4;
*/
org.tensorflow.framework.Summary.ImageOrBuilder getImageOrBuilder();
/**
* .tensorflow.HistogramProto histo = 5;
* @return Whether the histo field is set.
*/
boolean hasHisto();
/**
* .tensorflow.HistogramProto histo = 5;
* @return The histo.
*/
org.tensorflow.framework.HistogramProto getHisto();
/**
* .tensorflow.HistogramProto histo = 5;
*/
org.tensorflow.framework.HistogramProtoOrBuilder getHistoOrBuilder();
/**
* .tensorflow.Summary.Audio audio = 6;
* @return Whether the audio field is set.
*/
boolean hasAudio();
/**
* .tensorflow.Summary.Audio audio = 6;
* @return The audio.
*/
org.tensorflow.framework.Summary.Audio getAudio();
/**
* .tensorflow.Summary.Audio audio = 6;
*/
org.tensorflow.framework.Summary.AudioOrBuilder getAudioOrBuilder();
/**
* .tensorflow.TensorProto tensor = 8;
* @return Whether the tensor field is set.
*/
boolean hasTensor();
/**
* .tensorflow.TensorProto tensor = 8;
* @return The tensor.
*/
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
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.Summary.Value)
ValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use Value.newBuilder() to construct.
private Value(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Value() {
nodeName_ = "";
tag_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Value();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Value(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.Internal.EnumLite,
org.nd4j.shade.protobuf.AbstractMessage.InternalOneOfEnum {
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;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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;
* @return The nodeName.
*/
@java.lang.Override
public java.lang.String getNodeName() {
java.lang.Object ref = nodeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.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;
* @return The bytes for nodeName.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getNodeNameBytes() {
java.lang.Object ref = nodeName_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeName_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.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;
* @return The tag.
*/
@java.lang.Override
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.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;
* @return The bytes for tag.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.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;
* @return Whether the metadata field is set.
*/
@java.lang.Override
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;
* @return The metadata.
*/
@java.lang.Override
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;
*/
@java.lang.Override
public org.tensorflow.framework.SummaryMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int SIMPLE_VALUE_FIELD_NUMBER = 2;
/**
* float simple_value = 2;
* @return The simpleValue.
*/
@java.lang.Override
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;
* @return The obsoleteOldStyleHistogram.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString getObsoleteOldStyleHistogram() {
if (valueCase_ == 3) {
return (org.nd4j.shade.protobuf.ByteString) value_;
}
return org.nd4j.shade.protobuf.ByteString.EMPTY;
}
public static final int IMAGE_FIELD_NUMBER = 4;
/**
* .tensorflow.Summary.Image image = 4;
* @return Whether the image field is set.
*/
@java.lang.Override
public boolean hasImage() {
return valueCase_ == 4;
}
/**
* .tensorflow.Summary.Image image = 4;
* @return The image.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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;
* @return Whether the histo field is set.
*/
@java.lang.Override
public boolean hasHisto() {
return valueCase_ == 5;
}
/**
* .tensorflow.HistogramProto histo = 5;
* @return The histo.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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;
* @return Whether the audio field is set.
*/
@java.lang.Override
public boolean hasAudio() {
return valueCase_ == 6;
}
/**
* .tensorflow.Summary.Audio audio = 6;
* @return The audio.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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;
* @return Whether the tensor field is set.
*/
@java.lang.Override
public boolean hasTensor() {
return valueCase_ == 8;
}
/**
* .tensorflow.TensorProto tensor = 8;
* @return The tensor.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTagBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, tag_);
}
if (valueCase_ == 2) {
output.writeFloat(
2, (float)((java.lang.Float) value_));
}
if (valueCase_ == 3) {
output.writeBytes(
3, (org.nd4j.shade.protobuf.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()) {
org.nd4j.shade.protobuf.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);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTagBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, tag_);
}
if (valueCase_ == 2) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFloatSize(
2, (float)((java.lang.Float) value_));
}
if (valueCase_ == 3) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBytesSize(
3, (org.nd4j.shade.protobuf.ByteString) value_);
}
if (valueCase_ == 4) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(4, (org.tensorflow.framework.Summary.Image) value_);
}
if (valueCase_ == 5) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(5, (org.tensorflow.framework.HistogramProto) value_);
}
if (valueCase_ == 6) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(6, (org.tensorflow.framework.Summary.Audio) value_);
}
if (!getNodeNameBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(7, nodeName_);
}
if (valueCase_ == 8) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(8, (org.tensorflow.framework.TensorProto) value_);
}
if (metadata_ != null) {
size += org.nd4j.shade.protobuf.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;
if (!getNodeName()
.equals(other.getNodeName())) return false;
if (!getTag()
.equals(other.getTag())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 2:
if (java.lang.Float.floatToIntBits(getSimpleValue())
!= java.lang.Float.floatToIntBits(
other.getSimpleValue())) return false;
break;
case 3:
if (!getObsoleteOldStyleHistogram()
.equals(other.getObsoleteOldStyleHistogram())) return false;
break;
case 4:
if (!getImage()
.equals(other.getImage())) return false;
break;
case 5:
if (!getHisto()
.equals(other.getHisto())) return false;
break;
case 6:
if (!getAudio()
.equals(other.getAudio())) return false;
break;
case 8:
if (!getTensor()
.equals(other.getTensor())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Value parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary.Value parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.Summary.Value}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary.Value)
org.tensorflow.framework.Summary.ValueOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
nodeName_ = "";
tag_ = "";
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_Value_descriptor;
}
@java.lang.Override
public org.tensorflow.framework.Summary.Value getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.Value.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.framework.Summary.Value build() {
org.tensorflow.framework.Summary.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.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;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary.Value parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.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;
* @return The nodeName.
*/
public java.lang.String getNodeName() {
java.lang.Object ref = nodeName_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.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;
* @return The bytes for nodeName.
*/
public org.nd4j.shade.protobuf.ByteString
getNodeNameBytes() {
java.lang.Object ref = nodeName_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeName_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
* @param value The nodeName to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearNodeName() {
nodeName_ = getDefaultInstance().getNodeName();
onChanged();
return this;
}
/**
*
* This field is deprecated and will not be set.
*
*
* string node_name = 7;
* @param value The bytes for nodeName to set.
* @return This builder for chaining.
*/
public Builder setNodeNameBytes(
org.nd4j.shade.protobuf.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;
* @return The tag.
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.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;
* @return The bytes for tag.
*/
public org.nd4j.shade.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.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;
* @param value The tag to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @param value The bytes for tag to set.
* @return This builder for chaining.
*/
public Builder setTagBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tag_ = value;
onChanged();
return this;
}
private org.tensorflow.framework.SummaryMetadata metadata_;
private org.nd4j.shade.protobuf.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;
* @return Whether the metadata field is set.
*/
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;
* @return The metadata.
*/
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 org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.SummaryMetadata, org.tensorflow.framework.SummaryMetadata.Builder, org.tensorflow.framework.SummaryMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new org.nd4j.shade.protobuf.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;
* @return The simpleValue.
*/
public float getSimpleValue() {
if (valueCase_ == 2) {
return (java.lang.Float) value_;
}
return 0F;
}
/**
* float simple_value = 2;
* @param value The simpleValue to set.
* @return This builder for chaining.
*/
public Builder setSimpleValue(float value) {
valueCase_ = 2;
value_ = value;
onChanged();
return this;
}
/**
* float simple_value = 2;
* @return This builder for chaining.
*/
public Builder clearSimpleValue() {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* bytes obsolete_old_style_histogram = 3;
* @return The obsoleteOldStyleHistogram.
*/
public org.nd4j.shade.protobuf.ByteString getObsoleteOldStyleHistogram() {
if (valueCase_ == 3) {
return (org.nd4j.shade.protobuf.ByteString) value_;
}
return org.nd4j.shade.protobuf.ByteString.EMPTY;
}
/**
* bytes obsolete_old_style_histogram = 3;
* @param value The obsoleteOldStyleHistogram to set.
* @return This builder for chaining.
*/
public Builder setObsoleteOldStyleHistogram(org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 3;
value_ = value;
onChanged();
return this;
}
/**
* bytes obsolete_old_style_histogram = 3;
* @return This builder for chaining.
*/
public Builder clearObsoleteOldStyleHistogram() {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Image, org.tensorflow.framework.Summary.Image.Builder, org.tensorflow.framework.Summary.ImageOrBuilder> imageBuilder_;
/**
* .tensorflow.Summary.Image image = 4;
* @return Whether the image field is set.
*/
@java.lang.Override
public boolean hasImage() {
return valueCase_ == 4;
}
/**
* .tensorflow.Summary.Image image = 4;
* @return The image.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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 org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.HistogramProto, org.tensorflow.framework.HistogramProto.Builder, org.tensorflow.framework.HistogramProtoOrBuilder> histoBuilder_;
/**
* .tensorflow.HistogramProto histo = 5;
* @return Whether the histo field is set.
*/
@java.lang.Override
public boolean hasHisto() {
return valueCase_ == 5;
}
/**
* .tensorflow.HistogramProto histo = 5;
* @return The histo.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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 org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.Summary.Audio, org.tensorflow.framework.Summary.Audio.Builder, org.tensorflow.framework.Summary.AudioOrBuilder> audioBuilder_;
/**
* .tensorflow.Summary.Audio audio = 6;
* @return Whether the audio field is set.
*/
@java.lang.Override
public boolean hasAudio() {
return valueCase_ == 6;
}
/**
* .tensorflow.Summary.Audio audio = 6;
* @return The audio.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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 org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> tensorBuilder_;
/**
* .tensorflow.TensorProto tensor = 8;
* @return Whether the tensor field is set.
*/
@java.lang.Override
public boolean hasTensor() {
return valueCase_ == 8;
}
/**
* .tensorflow.TensorProto tensor = 8;
* @return The tensor.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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 org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public Value parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new Value(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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;
*/
@java.lang.Override
public java.util.List getValueList() {
return value_;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
@java.lang.Override
public java.util.List
getValueOrBuilderList() {
return value_;
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
@java.lang.Override
public int getValueCount() {
return value_.size();
}
/**
*
* Set of values for the summary.
*
*
* repeated .tensorflow.Summary.Value value = 1;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public org.tensorflow.framework.Summary.ValueOrBuilder getValueOrBuilder(
int index) {
return value_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < value_.size(); i++) {
output.writeMessage(1, value_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < value_.size(); i++) {
size += org.nd4j.shade.protobuf.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;
if (!getValueList()
.equals(other.getValueList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.Summary parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.Summary parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.Summary parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.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
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.Summary)
org.tensorflow.framework.SummaryOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.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(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (valueBuilder_ == null) {
value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
valueBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SummaryProtos.internal_static_tensorflow_Summary_descriptor;
}
@java.lang.Override
public org.tensorflow.framework.Summary getDefaultInstanceForType() {
return org.tensorflow.framework.Summary.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.framework.Summary build() {
org.tensorflow.framework.Summary result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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) != 0)) {
value_ = java.util.Collections.unmodifiableList(value_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.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_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValueFieldBuilder() : null;
} else {
valueBuilder_.addAllMessages(other.value_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.Summary parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.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) != 0)) {
value_ = new java.util.ArrayList(value_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.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 values) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
org.nd4j.shade.protobuf.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
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 org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.Summary.Value, org.tensorflow.framework.Summary.Value.Builder, org.tensorflow.framework.Summary.ValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.Summary.Value, org.tensorflow.framework.Summary.Value.Builder, org.tensorflow.framework.Summary.ValueOrBuilder>(
value_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public Summary parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new Summary(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.Summary getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}