org.tensorflow.example.VarLenFeatureProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
Java API for TensorFlow protocol buffers.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/example/example_parser_configuration.proto
package org.tensorflow.example;
/**
* Protobuf type {@code tensorflow.VarLenFeatureProto}
*/
public final class VarLenFeatureProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.VarLenFeatureProto)
VarLenFeatureProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use VarLenFeatureProto.newBuilder() to construct.
private VarLenFeatureProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VarLenFeatureProto() {
dtype_ = 0;
valuesOutputTensorName_ = "";
indicesOutputTensorName_ = "";
shapesOutputTensorName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VarLenFeatureProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
dtype_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
valuesOutputTensorName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
indicesOutputTensorName_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
shapesOutputTensorName_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.example.VarLenFeatureProto.class, org.tensorflow.example.VarLenFeatureProto.Builder.class);
}
public static final int DTYPE_FIELD_NUMBER = 1;
private int dtype_;
/**
* .tensorflow.DataType dtype = 1;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
public static final int VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object valuesOutputTensorName_;
/**
* string values_output_tensor_name = 2;
*/
public java.lang.String getValuesOutputTensorName() {
java.lang.Object ref = valuesOutputTensorName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
valuesOutputTensorName_ = s;
return s;
}
}
/**
* string values_output_tensor_name = 2;
*/
public com.google.protobuf.ByteString
getValuesOutputTensorNameBytes() {
java.lang.Object ref = valuesOutputTensorName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
valuesOutputTensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDICES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object indicesOutputTensorName_;
/**
* string indices_output_tensor_name = 3;
*/
public java.lang.String getIndicesOutputTensorName() {
java.lang.Object ref = indicesOutputTensorName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indicesOutputTensorName_ = s;
return s;
}
}
/**
* string indices_output_tensor_name = 3;
*/
public com.google.protobuf.ByteString
getIndicesOutputTensorNameBytes() {
java.lang.Object ref = indicesOutputTensorName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indicesOutputTensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHAPES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object shapesOutputTensorName_;
/**
* string shapes_output_tensor_name = 4;
*/
public java.lang.String getShapesOutputTensorName() {
java.lang.Object ref = shapesOutputTensorName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
shapesOutputTensorName_ = s;
return s;
}
}
/**
* string shapes_output_tensor_name = 4;
*/
public com.google.protobuf.ByteString
getShapesOutputTensorNameBytes() {
java.lang.Object ref = shapesOutputTensorName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shapesOutputTensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(1, dtype_);
}
if (!getValuesOutputTensorNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, valuesOutputTensorName_);
}
if (!getIndicesOutputTensorNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, indicesOutputTensorName_);
}
if (!getShapesOutputTensorNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, shapesOutputTensorName_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, dtype_);
}
if (!getValuesOutputTensorNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, valuesOutputTensorName_);
}
if (!getIndicesOutputTensorNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, indicesOutputTensorName_);
}
if (!getShapesOutputTensorNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, shapesOutputTensorName_);
}
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.example.VarLenFeatureProto)) {
return super.equals(obj);
}
org.tensorflow.example.VarLenFeatureProto other = (org.tensorflow.example.VarLenFeatureProto) obj;
boolean result = true;
result = result && dtype_ == other.dtype_;
result = result && getValuesOutputTensorName()
.equals(other.getValuesOutputTensorName());
result = result && getIndicesOutputTensorName()
.equals(other.getIndicesOutputTensorName());
result = result && getShapesOutputTensorName()
.equals(other.getShapesOutputTensorName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
hash = (37 * hash) + VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getValuesOutputTensorName().hashCode();
hash = (37 * hash) + INDICES_OUTPUT_TENSOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getIndicesOutputTensorName().hashCode();
hash = (37 * hash) + SHAPES_OUTPUT_TENSOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getShapesOutputTensorName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.example.VarLenFeatureProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.example.VarLenFeatureProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.example.VarLenFeatureProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.example.VarLenFeatureProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.VarLenFeatureProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.VarLenFeatureProto)
org.tensorflow.example.VarLenFeatureProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.example.VarLenFeatureProto.class, org.tensorflow.example.VarLenFeatureProto.Builder.class);
}
// Construct using org.tensorflow.example.VarLenFeatureProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
dtype_ = 0;
valuesOutputTensorName_ = "";
indicesOutputTensorName_ = "";
shapesOutputTensorName_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor;
}
public org.tensorflow.example.VarLenFeatureProto getDefaultInstanceForType() {
return org.tensorflow.example.VarLenFeatureProto.getDefaultInstance();
}
public org.tensorflow.example.VarLenFeatureProto build() {
org.tensorflow.example.VarLenFeatureProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.example.VarLenFeatureProto buildPartial() {
org.tensorflow.example.VarLenFeatureProto result = new org.tensorflow.example.VarLenFeatureProto(this);
result.dtype_ = dtype_;
result.valuesOutputTensorName_ = valuesOutputTensorName_;
result.indicesOutputTensorName_ = indicesOutputTensorName_;
result.shapesOutputTensorName_ = shapesOutputTensorName_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.example.VarLenFeatureProto) {
return mergeFrom((org.tensorflow.example.VarLenFeatureProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.example.VarLenFeatureProto other) {
if (other == org.tensorflow.example.VarLenFeatureProto.getDefaultInstance()) return this;
if (other.dtype_ != 0) {
setDtypeValue(other.getDtypeValue());
}
if (!other.getValuesOutputTensorName().isEmpty()) {
valuesOutputTensorName_ = other.valuesOutputTensorName_;
onChanged();
}
if (!other.getIndicesOutputTensorName().isEmpty()) {
indicesOutputTensorName_ = other.indicesOutputTensorName_;
onChanged();
}
if (!other.getShapesOutputTensorName().isEmpty()) {
shapesOutputTensorName_ = other.shapesOutputTensorName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.example.VarLenFeatureProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.example.VarLenFeatureProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dtype_ = 0;
/**
* .tensorflow.DataType dtype = 1;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public Builder setDtypeValue(int value) {
dtype_ = value;
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public Builder setDtype(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public Builder clearDtype() {
dtype_ = 0;
onChanged();
return this;
}
private java.lang.Object valuesOutputTensorName_ = "";
/**
* string values_output_tensor_name = 2;
*/
public java.lang.String getValuesOutputTensorName() {
java.lang.Object ref = valuesOutputTensorName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
valuesOutputTensorName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string values_output_tensor_name = 2;
*/
public com.google.protobuf.ByteString
getValuesOutputTensorNameBytes() {
java.lang.Object ref = valuesOutputTensorName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
valuesOutputTensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string values_output_tensor_name = 2;
*/
public Builder setValuesOutputTensorName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
valuesOutputTensorName_ = value;
onChanged();
return this;
}
/**
* string values_output_tensor_name = 2;
*/
public Builder clearValuesOutputTensorName() {
valuesOutputTensorName_ = getDefaultInstance().getValuesOutputTensorName();
onChanged();
return this;
}
/**
* string values_output_tensor_name = 2;
*/
public Builder setValuesOutputTensorNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
valuesOutputTensorName_ = value;
onChanged();
return this;
}
private java.lang.Object indicesOutputTensorName_ = "";
/**
* string indices_output_tensor_name = 3;
*/
public java.lang.String getIndicesOutputTensorName() {
java.lang.Object ref = indicesOutputTensorName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indicesOutputTensorName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string indices_output_tensor_name = 3;
*/
public com.google.protobuf.ByteString
getIndicesOutputTensorNameBytes() {
java.lang.Object ref = indicesOutputTensorName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indicesOutputTensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string indices_output_tensor_name = 3;
*/
public Builder setIndicesOutputTensorName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
indicesOutputTensorName_ = value;
onChanged();
return this;
}
/**
* string indices_output_tensor_name = 3;
*/
public Builder clearIndicesOutputTensorName() {
indicesOutputTensorName_ = getDefaultInstance().getIndicesOutputTensorName();
onChanged();
return this;
}
/**
* string indices_output_tensor_name = 3;
*/
public Builder setIndicesOutputTensorNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
indicesOutputTensorName_ = value;
onChanged();
return this;
}
private java.lang.Object shapesOutputTensorName_ = "";
/**
* string shapes_output_tensor_name = 4;
*/
public java.lang.String getShapesOutputTensorName() {
java.lang.Object ref = shapesOutputTensorName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
shapesOutputTensorName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string shapes_output_tensor_name = 4;
*/
public com.google.protobuf.ByteString
getShapesOutputTensorNameBytes() {
java.lang.Object ref = shapesOutputTensorName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shapesOutputTensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string shapes_output_tensor_name = 4;
*/
public Builder setShapesOutputTensorName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
shapesOutputTensorName_ = value;
onChanged();
return this;
}
/**
* string shapes_output_tensor_name = 4;
*/
public Builder clearShapesOutputTensorName() {
shapesOutputTensorName_ = getDefaultInstance().getShapesOutputTensorName();
onChanged();
return this;
}
/**
* string shapes_output_tensor_name = 4;
*/
public Builder setShapesOutputTensorNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
shapesOutputTensorName_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.VarLenFeatureProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.VarLenFeatureProto)
private static final org.tensorflow.example.VarLenFeatureProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.example.VarLenFeatureProto();
}
public static org.tensorflow.example.VarLenFeatureProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public VarLenFeatureProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VarLenFeatureProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.example.VarLenFeatureProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}