
org.tensorflow.framework.ValuesDef 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.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/control_flow.proto
package org.tensorflow.framework;
/**
*
* Protocol buffer representing the values in ControlFlowContext.
*
*
* Protobuf type {@code tensorflow.ValuesDef}
*/
public final class ValuesDef extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.ValuesDef)
ValuesDefOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValuesDef.newBuilder() to construct.
private ValuesDef(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValuesDef() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValuesDef(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
values_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(s);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
externalValues_ = com.google.protobuf.MapField.newMapField(
ExternalValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
externalValues__ = input.readMessage(
ExternalValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
externalValues_.getMutableMap().put(
externalValues__.getKey(), externalValues__.getValue());
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
values_ = values_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetExternalValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.ValuesDef.class, org.tensorflow.framework.ValuesDef.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList values_;
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
public static final int EXTERNAL_VALUES_FIELD_NUMBER = 2;
private static final class ExternalValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_ExternalValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> externalValues_;
private com.google.protobuf.MapField
internalGetExternalValues() {
if (externalValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ExternalValuesDefaultEntryHolder.defaultEntry);
}
return externalValues_;
}
public int getExternalValuesCount() {
return internalGetExternalValues().getMap().size();
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public boolean containsExternalValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetExternalValues().getMap().containsKey(key);
}
/**
* Use {@link #getExternalValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getExternalValues() {
return getExternalValuesMap();
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public java.util.Map getExternalValuesMap() {
return internalGetExternalValues().getMap();
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public java.lang.String getExternalValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetExternalValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public java.lang.String getExternalValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetExternalValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetExternalValues(),
ExternalValuesDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
for (java.util.Map.Entry entry
: internalGetExternalValues().getMap().entrySet()) {
com.google.protobuf.MapEntry
externalValues__ = ExternalValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, externalValues__);
}
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.ValuesDef)) {
return super.equals(obj);
}
org.tensorflow.framework.ValuesDef other = (org.tensorflow.framework.ValuesDef) obj;
boolean result = true;
result = result && getValuesList()
.equals(other.getValuesList());
result = result && internalGetExternalValues().equals(
other.internalGetExternalValues());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
if (!internalGetExternalValues().getMap().isEmpty()) {
hash = (37 * hash) + EXTERNAL_VALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetExternalValues().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.ValuesDef parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ValuesDef parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.ValuesDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ValuesDef 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.framework.ValuesDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ValuesDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.ValuesDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ValuesDef 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.framework.ValuesDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ValuesDef 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.framework.ValuesDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ValuesDef 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.framework.ValuesDef 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;
}
/**
*
* Protocol buffer representing the values in ControlFlowContext.
*
*
* Protobuf type {@code tensorflow.ValuesDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.ValuesDef)
org.tensorflow.framework.ValuesDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetExternalValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableExternalValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.ValuesDef.class, org.tensorflow.framework.ValuesDef.Builder.class);
}
// Construct using org.tensorflow.framework.ValuesDef.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();
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableExternalValues().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
}
public org.tensorflow.framework.ValuesDef getDefaultInstanceForType() {
return org.tensorflow.framework.ValuesDef.getDefaultInstance();
}
public org.tensorflow.framework.ValuesDef build() {
org.tensorflow.framework.ValuesDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.ValuesDef buildPartial() {
org.tensorflow.framework.ValuesDef result = new org.tensorflow.framework.ValuesDef(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
values_ = values_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
result.externalValues_ = internalGetExternalValues();
result.externalValues_.makeImmutable();
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.framework.ValuesDef) {
return mergeFrom((org.tensorflow.framework.ValuesDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.ValuesDef other) {
if (other == org.tensorflow.framework.ValuesDef.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
internalGetMutableExternalValues().mergeFrom(
other.internalGetExternalValues());
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.framework.ValuesDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.ValuesDef) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_.getUnmodifiableView();
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public Builder setValues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public Builder addValues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public Builder addAllValues(
java.lang.Iterable values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public Builder clearValues() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
*/
public Builder addValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> externalValues_;
private com.google.protobuf.MapField
internalGetExternalValues() {
if (externalValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ExternalValuesDefaultEntryHolder.defaultEntry);
}
return externalValues_;
}
private com.google.protobuf.MapField
internalGetMutableExternalValues() {
onChanged();;
if (externalValues_ == null) {
externalValues_ = com.google.protobuf.MapField.newMapField(
ExternalValuesDefaultEntryHolder.defaultEntry);
}
if (!externalValues_.isMutable()) {
externalValues_ = externalValues_.copy();
}
return externalValues_;
}
public int getExternalValuesCount() {
return internalGetExternalValues().getMap().size();
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public boolean containsExternalValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetExternalValues().getMap().containsKey(key);
}
/**
* Use {@link #getExternalValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getExternalValues() {
return getExternalValuesMap();
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public java.util.Map getExternalValuesMap() {
return internalGetExternalValues().getMap();
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public java.lang.String getExternalValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetExternalValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public java.lang.String getExternalValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetExternalValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearExternalValues() {
internalGetMutableExternalValues().getMutableMap()
.clear();
return this;
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public Builder removeExternalValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableExternalValues().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableExternalValues() {
return internalGetMutableExternalValues().getMutableMap();
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public Builder putExternalValues(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableExternalValues().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
public Builder putAllExternalValues(
java.util.Map values) {
internalGetMutableExternalValues().getMutableMap()
.putAll(values);
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.ValuesDef)
}
// @@protoc_insertion_point(class_scope:tensorflow.ValuesDef)
private static final org.tensorflow.framework.ValuesDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.ValuesDef();
}
public static org.tensorflow.framework.ValuesDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ValuesDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValuesDef(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.framework.ValuesDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy