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.
// 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
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.ValuesDef)
ValuesDefOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValuesDef.newBuilder() to construct.
private ValuesDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ValuesDef() {
values_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValuesDef();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValuesDef(
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = new org.nd4j.shade.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(s);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
externalValues_ = org.nd4j.shade.protobuf.MapField.newMapField(
ExternalValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
org.nd4j.shade.protobuf.MapEntry
externalValues__ = input.readMessage(
ExternalValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
externalValues_.getMutableMap().put(
externalValues__.getKey(), externalValues__.getValue());
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)) {
values_ = values_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected org.nd4j.shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetExternalValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected org.nd4j.shade.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 org.nd4j.shade.protobuf.LazyStringList values_;
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @return A list containing the values.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public org.nd4j.shade.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 org.nd4j.shade.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
org.nd4j.shade.protobuf.MapEntry
.newDefaultInstance(
org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_ExternalValuesEntry_descriptor,
org.nd4j.shade.protobuf.WireFormat.FieldType.STRING,
"",
org.nd4j.shade.protobuf.WireFormat.FieldType.STRING,
"");
}
private org.nd4j.shade.protobuf.MapField<
java.lang.String, java.lang.String> externalValues_;
private org.nd4j.shade.protobuf.MapField
internalGetExternalValues() {
if (externalValues_ == null) {
return org.nd4j.shade.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;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getExternalValues() {
return getExternalValuesMap();
}
/**
*
* Value names referenced by but external to this context.
*
* Value names referenced by but external to this context.
*
*
* map<string, string> external_values = 2;
*/
@java.lang.Override
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;
@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 < values_.size(); i++) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
org.nd4j.shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetExternalValues(),
ExternalValuesDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
@java.lang.Override
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()) {
org.nd4j.shade.protobuf.MapEntry
externalValues__ = ExternalValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += org.nd4j.shade.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;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!internalGetExternalValues().equals(
other.internalGetExternalValues())) 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 (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 org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ValuesDef 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.ValuesDef parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ValuesDef 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.ValuesDef parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ValuesDef 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.ValuesDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ValuesDef 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.ValuesDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ValuesDef 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.ValuesDef 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.ValuesDef 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.ValuesDef 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;
}
/**
*
* Protocol buffer representing the values in ControlFlowContext.
*
*
* Protobuf type {@code tensorflow.ValuesDef}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.ValuesDef)
org.tensorflow.framework.ValuesDefOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected org.nd4j.shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetExternalValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected org.nd4j.shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableExternalValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected org.nd4j.shade.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(
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();
values_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableExternalValues().clear();
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
}
@java.lang.Override
public org.tensorflow.framework.ValuesDef getDefaultInstanceForType() {
return org.tensorflow.framework.ValuesDef.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.framework.ValuesDef build() {
org.tensorflow.framework.ValuesDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.framework.ValuesDef buildPartial() {
org.tensorflow.framework.ValuesDef result = new org.tensorflow.framework.ValuesDef(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
result.externalValues_ = internalGetExternalValues();
result.externalValues_.makeImmutable();
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.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;
}
@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.ValuesDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.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 org.nd4j.shade.protobuf.LazyStringList values_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new org.nd4j.shade.protobuf.LazyStringArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @return A list containing the values.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getValuesList() {
return values_.getUnmodifiableView();
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public org.nd4j.shade.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
*
* Value names that have been seen in this context.
*
*
* repeated string values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
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;
* @param value The values to add.
* @return This builder for chaining.
*/
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;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable values) {
ensureValuesIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
*
* Value names that have been seen in this context.
*