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.
* Used to override the default API & behavior in the generated code
* for client languages, from what you would get from the OpDef alone.
* This is so we can evolve the API while remaining backwards
* compatible when interpretting old graphs. Overrides go in an
* "op_gen_overrides.pbtxt" file with a text-format OpGenOverrides
* message. Right now these only apply to the C++ API.
* TODO(josh11b): In the future there will be a common set of overrides
* and per-client-language overrides.
* WARNING: Be *very* careful using these features -- these overrides
* can change the semantics of existing code. These changes may need
* to wait until a major release of TensorFlow to avoid breaking our
* compatibility promises.
*
*
* Protobuf type {@code tensorflow.OpGenOverride}
*/
public static final class OpGenOverride extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.OpGenOverride)
OpGenOverrideOrBuilder {
private static final long serialVersionUID = 0L;
// Use OpGenOverride.newBuilder() to construct.
private OpGenOverride(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OpGenOverride() {
name_ = "";
skip_ = false;
hide_ = false;
renameTo_ = "";
alias_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY;
attrDefault_ = java.util.Collections.emptyList();
attrRename_ = java.util.Collections.emptyList();
inputRename_ = java.util.Collections.emptyList();
outputRename_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpGenOverride(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
skip_ = input.readBool();
break;
}
case 24: {
hide_ = input.readBool();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
renameTo_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
alias_ = new com.github.os72.protobuf351.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
alias_.add(s);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
attrDefault_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
attrDefault_.add(
input.readMessage(tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
attrRename_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
attrRename_.add(
input.readMessage(tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.parser(), extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
inputRename_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
inputRename_.add(
input.readMessage(tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.parser(), extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
outputRename_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
outputRename_.add(
input.readMessage(tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.parser(), extensionRegistry));
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
alias_ = alias_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
attrDefault_ = java.util.Collections.unmodifiableList(attrDefault_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
attrRename_ = java.util.Collections.unmodifiableList(attrRename_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
inputRename_ = java.util.Collections.unmodifiableList(inputRename_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
outputRename_ = java.util.Collections.unmodifiableList(outputRename_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.OpGenOverridesOuterClass.OpGenOverride.class, tensorflow.OpGenOverridesOuterClass.OpGenOverride.Builder.class);
}
public interface AttrDefaultOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.OpGenOverride.AttrDefault)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* string name = 1;
*/
java.lang.String getName();
/**
* string name = 1;
*/
com.github.os72.protobuf351.ByteString
getNameBytes();
/**
* .tensorflow.AttrValue value = 2;
*/
boolean hasValue();
/**
* .tensorflow.AttrValue value = 2;
*/
org.tensorflow.framework.AttrValue getValue();
/**
* .tensorflow.AttrValue value = 2;
*/
org.tensorflow.framework.AttrValueOrBuilder getValueOrBuilder();
}
/**
*
* Map the name of an attr to a new default value to use. This
* default will be used when creating new graphs, as opposed to the
* default in the OpDef, which will be used when interpreting old
* GraphDefs. If this attr is also renamed (using attr_rename
* below), use the original name of the attr.
*
*
* Protobuf type {@code tensorflow.OpGenOverride.AttrDefault}
*/
public static final class AttrDefault extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.OpGenOverride.AttrDefault)
AttrDefaultOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttrDefault.newBuilder() to construct.
private AttrDefault(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttrDefault() {
name_ = "";
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttrDefault(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
org.tensorflow.framework.AttrValue.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(org.tensorflow.framework.AttrValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_AttrDefault_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_AttrDefault_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.class, tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private org.tensorflow.framework.AttrValue value_;
/**
* .tensorflow.AttrValue value = 2;
*/
public boolean hasValue() {
return value_ != null;
}
/**
* .tensorflow.AttrValue value = 2;
*/
public org.tensorflow.framework.AttrValue getValue() {
return value_ == null ? org.tensorflow.framework.AttrValue.getDefaultInstance() : value_;
}
/**
* .tensorflow.AttrValue value = 2;
*/
public org.tensorflow.framework.AttrValueOrBuilder getValueOrBuilder() {
return getValue();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
}
if (value_ != null) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(2, getValue());
}
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 tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault)) {
return super.equals(obj);
}
tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault other = (tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Map the name of an attr to a new default value to use. This
* default will be used when creating new graphs, as opposed to the
* default in the OpDef, which will be used when interpreting old
* GraphDefs. If this attr is also renamed (using attr_rename
* below), use the original name of the attr.
*
*
* Protobuf type {@code tensorflow.OpGenOverride.AttrDefault}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.OpGenOverride.AttrDefault)
tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefaultOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_AttrDefault_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_AttrDefault_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.class, tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.Builder.class);
}
// Construct using tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_AttrDefault_descriptor;
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault getDefaultInstanceForType() {
return tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.getDefaultInstance();
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault build() {
tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault buildPartial() {
tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault result = new tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault(this);
result.name_ = name_;
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault) {
return mergeFrom((tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault other) {
if (other == tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder setNameBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private org.tensorflow.framework.AttrValue value_ = null;
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder> valueBuilder_;
/**
* .tensorflow.AttrValue value = 2;
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .tensorflow.AttrValue value = 2;
*/
public org.tensorflow.framework.AttrValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? org.tensorflow.framework.AttrValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .tensorflow.AttrValue value = 2;
*/
public Builder setValue(org.tensorflow.framework.AttrValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.AttrValue value = 2;
*/
public Builder setValue(
org.tensorflow.framework.AttrValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.AttrValue value = 2;
*/
public Builder mergeValue(org.tensorflow.framework.AttrValue value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
org.tensorflow.framework.AttrValue.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.AttrValue value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .tensorflow.AttrValue value = 2;
*/
public org.tensorflow.framework.AttrValue.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .tensorflow.AttrValue value = 2;
*/
public org.tensorflow.framework.AttrValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
org.tensorflow.framework.AttrValue.getDefaultInstance() : value_;
}
}
/**
* .tensorflow.AttrValue value = 2;
*/
private com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3<
org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.OpGenOverride.AttrDefault)
}
// @@protoc_insertion_point(class_scope:tensorflow.OpGenOverride.AttrDefault)
private static final tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault();
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public AttrDefault parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new AttrDefault(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RenameOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.OpGenOverride.Rename)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* string from = 1;
*/
java.lang.String getFrom();
/**
* string from = 1;
*/
com.github.os72.protobuf351.ByteString
getFromBytes();
/**
* string to = 2;
*/
java.lang.String getTo();
/**
* string to = 2;
*/
com.github.os72.protobuf351.ByteString
getToBytes();
}
/**
*
* Change the name used to access attrs/inputs/outputs in the API
* from what is used in the GraphDef. Note that these names in
* `backticks` will also be replaced in the docs.
*
*
* Protobuf type {@code tensorflow.OpGenOverride.Rename}
*/
public static final class Rename extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.OpGenOverride.Rename)
RenameOrBuilder {
private static final long serialVersionUID = 0L;
// Use Rename.newBuilder() to construct.
private Rename(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Rename() {
from_ = "";
to_ = "";
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Rename(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
from_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
to_ = s;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_Rename_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_Rename_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.class, tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.Builder.class);
}
public static final int FROM_FIELD_NUMBER = 1;
private volatile java.lang.Object from_;
/**
* string from = 1;
*/
public java.lang.String getFrom() {
java.lang.Object ref = from_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
from_ = s;
return s;
}
}
/**
* string from = 1;
*/
public com.github.os72.protobuf351.ByteString
getFromBytes() {
java.lang.Object ref = from_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
from_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int TO_FIELD_NUMBER = 2;
private volatile java.lang.Object to_;
/**
* string to = 2;
*/
public java.lang.String getTo() {
java.lang.Object ref = to_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
to_ = s;
return s;
}
}
/**
* string to = 2;
*/
public com.github.os72.protobuf351.ByteString
getToBytes() {
java.lang.Object ref = to_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
to_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (!getFromBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, from_);
}
if (!getToBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, to_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFromBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, from_);
}
if (!getToBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, to_);
}
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 tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename)) {
return super.equals(obj);
}
tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename other = (tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename) obj;
boolean result = true;
result = result && getFrom()
.equals(other.getFrom());
result = result && getTo()
.equals(other.getTo());
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) + FROM_FIELD_NUMBER;
hash = (53 * hash) + getFrom().hashCode();
hash = (37 * hash) + TO_FIELD_NUMBER;
hash = (53 * hash) + getTo().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Change the name used to access attrs/inputs/outputs in the API
* from what is used in the GraphDef. Note that these names in
* `backticks` will also be replaced in the docs.
*
*
* Protobuf type {@code tensorflow.OpGenOverride.Rename}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.OpGenOverride.Rename)
tensorflow.OpGenOverridesOuterClass.OpGenOverride.RenameOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_Rename_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_Rename_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.class, tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.Builder.class);
}
// Construct using tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
from_ = "";
to_ = "";
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.OpGenOverridesOuterClass.internal_static_tensorflow_OpGenOverride_Rename_descriptor;
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename getDefaultInstanceForType() {
return tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.getDefaultInstance();
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename build() {
tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename buildPartial() {
tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename result = new tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename(this);
result.from_ = from_;
result.to_ = to_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename) {
return mergeFrom((tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename other) {
if (other == tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename.getDefaultInstance()) return this;
if (!other.getFrom().isEmpty()) {
from_ = other.from_;
onChanged();
}
if (!other.getTo().isEmpty()) {
to_ = other.to_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object from_ = "";
/**
* string from = 1;
*/
public java.lang.String getFrom() {
java.lang.Object ref = from_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
from_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string from = 1;
*/
public com.github.os72.protobuf351.ByteString
getFromBytes() {
java.lang.Object ref = from_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
from_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string from = 1;
*/
public Builder setFrom(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
from_ = value;
onChanged();
return this;
}
/**
* string from = 1;
*/
public Builder clearFrom() {
from_ = getDefaultInstance().getFrom();
onChanged();
return this;
}
/**
* string from = 1;
*/
public Builder setFromBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
from_ = value;
onChanged();
return this;
}
private java.lang.Object to_ = "";
/**
* string to = 2;
*/
public java.lang.String getTo() {
java.lang.Object ref = to_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
to_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string to = 2;
*/
public com.github.os72.protobuf351.ByteString
getToBytes() {
java.lang.Object ref = to_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
to_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string to = 2;
*/
public Builder setTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
to_ = value;
onChanged();
return this;
}
/**
* string to = 2;
*/
public Builder clearTo() {
to_ = getDefaultInstance().getTo();
onChanged();
return this;
}
/**
* string to = 2;
*/
public Builder setToBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
to_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.OpGenOverride.Rename)
}
// @@protoc_insertion_point(class_scope:tensorflow.OpGenOverride.Rename)
private static final tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename();
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Rename parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Rename(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Use a different name in the API than the op's name. Note that
* the op's name in `backticks` will also be replaced in the docs.
*
*
* string rename_to = 4;
*/
public com.github.os72.protobuf351.ByteString
getRenameToBytes() {
java.lang.Object ref = renameTo_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
renameTo_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int ALIAS_FIELD_NUMBER = 5;
private com.github.os72.protobuf351.LazyStringList alias_;
/**
*
* Create *additional* API endpoints with different names (contrast
* with rename_to, which affects the original name).
*
*
* repeated string alias = 5;
*/
public com.github.os72.protobuf351.ProtocolStringList
getAliasList() {
return alias_;
}
/**
*
* Create *additional* API endpoints with different names (contrast
* with rename_to, which affects the original name).
*
*
* repeated string alias = 5;
*/
public int getAliasCount() {
return alias_.size();
}
/**
*
* Create *additional* API endpoints with different names (contrast
* with rename_to, which affects the original name).
*
*
* repeated string alias = 5;
*/
public java.lang.String getAlias(int index) {
return alias_.get(index);
}
/**
*
* Create *additional* API endpoints with different names (contrast
* with rename_to, which affects the original name).
*
*
* repeated string alias = 5;
*/
public com.github.os72.protobuf351.ByteString
getAliasBytes(int index) {
return alias_.getByteString(index);
}
public static final int ATTR_DEFAULT_FIELD_NUMBER = 6;
private java.util.List attrDefault_;
/**
* repeated .tensorflow.OpGenOverride.AttrDefault attr_default = 6;
*/
public java.util.List getAttrDefaultList() {
return attrDefault_;
}
/**
* repeated .tensorflow.OpGenOverride.AttrDefault attr_default = 6;
*/
public java.util.List extends tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefaultOrBuilder>
getAttrDefaultOrBuilderList() {
return attrDefault_;
}
/**
* repeated .tensorflow.OpGenOverride.AttrDefault attr_default = 6;
*/
public int getAttrDefaultCount() {
return attrDefault_.size();
}
/**
* repeated .tensorflow.OpGenOverride.AttrDefault attr_default = 6;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefault getAttrDefault(int index) {
return attrDefault_.get(index);
}
/**
* repeated .tensorflow.OpGenOverride.AttrDefault attr_default = 6;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.AttrDefaultOrBuilder getAttrDefaultOrBuilder(
int index) {
return attrDefault_.get(index);
}
public static final int ATTR_RENAME_FIELD_NUMBER = 7;
private java.util.List attrRename_;
/**
* repeated .tensorflow.OpGenOverride.Rename attr_rename = 7;
*/
public java.util.List getAttrRenameList() {
return attrRename_;
}
/**
* repeated .tensorflow.OpGenOverride.Rename attr_rename = 7;
*/
public java.util.List extends tensorflow.OpGenOverridesOuterClass.OpGenOverride.RenameOrBuilder>
getAttrRenameOrBuilderList() {
return attrRename_;
}
/**
* repeated .tensorflow.OpGenOverride.Rename attr_rename = 7;
*/
public int getAttrRenameCount() {
return attrRename_.size();
}
/**
* repeated .tensorflow.OpGenOverride.Rename attr_rename = 7;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename getAttrRename(int index) {
return attrRename_.get(index);
}
/**
* repeated .tensorflow.OpGenOverride.Rename attr_rename = 7;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.RenameOrBuilder getAttrRenameOrBuilder(
int index) {
return attrRename_.get(index);
}
public static final int INPUT_RENAME_FIELD_NUMBER = 8;
private java.util.List inputRename_;
/**
* repeated .tensorflow.OpGenOverride.Rename input_rename = 8;
*/
public java.util.List getInputRenameList() {
return inputRename_;
}
/**
* repeated .tensorflow.OpGenOverride.Rename input_rename = 8;
*/
public java.util.List extends tensorflow.OpGenOverridesOuterClass.OpGenOverride.RenameOrBuilder>
getInputRenameOrBuilderList() {
return inputRename_;
}
/**
* repeated .tensorflow.OpGenOverride.Rename input_rename = 8;
*/
public int getInputRenameCount() {
return inputRename_.size();
}
/**
* repeated .tensorflow.OpGenOverride.Rename input_rename = 8;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename getInputRename(int index) {
return inputRename_.get(index);
}
/**
* repeated .tensorflow.OpGenOverride.Rename input_rename = 8;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.RenameOrBuilder getInputRenameOrBuilder(
int index) {
return inputRename_.get(index);
}
public static final int OUTPUT_RENAME_FIELD_NUMBER = 9;
private java.util.List outputRename_;
/**
* repeated .tensorflow.OpGenOverride.Rename output_rename = 9;
*/
public java.util.List getOutputRenameList() {
return outputRename_;
}
/**
* repeated .tensorflow.OpGenOverride.Rename output_rename = 9;
*/
public java.util.List extends tensorflow.OpGenOverridesOuterClass.OpGenOverride.RenameOrBuilder>
getOutputRenameOrBuilderList() {
return outputRename_;
}
/**
* repeated .tensorflow.OpGenOverride.Rename output_rename = 9;
*/
public int getOutputRenameCount() {
return outputRename_.size();
}
/**
* repeated .tensorflow.OpGenOverride.Rename output_rename = 9;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.Rename getOutputRename(int index) {
return outputRename_.get(index);
}
/**
* repeated .tensorflow.OpGenOverride.Rename output_rename = 9;
*/
public tensorflow.OpGenOverridesOuterClass.OpGenOverride.RenameOrBuilder getOutputRenameOrBuilder(
int index) {
return outputRename_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
}
if (skip_ != false) {
output.writeBool(2, skip_);
}
if (hide_ != false) {
output.writeBool(3, hide_);
}
if (!getRenameToBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 4, renameTo_);
}
for (int i = 0; i < alias_.size(); i++) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 5, alias_.getRaw(i));
}
for (int i = 0; i < attrDefault_.size(); i++) {
output.writeMessage(6, attrDefault_.get(i));
}
for (int i = 0; i < attrRename_.size(); i++) {
output.writeMessage(7, attrRename_.get(i));
}
for (int i = 0; i < inputRename_.size(); i++) {
output.writeMessage(8, inputRename_.get(i));
}
for (int i = 0; i < outputRename_.size(); i++) {
output.writeMessage(9, outputRename_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
}
if (skip_ != false) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBoolSize(2, skip_);
}
if (hide_ != false) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBoolSize(3, hide_);
}
if (!getRenameToBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(4, renameTo_);
}
{
int dataSize = 0;
for (int i = 0; i < alias_.size(); i++) {
dataSize += computeStringSizeNoTag(alias_.getRaw(i));
}
size += dataSize;
size += 1 * getAliasList().size();
}
for (int i = 0; i < attrDefault_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(6, attrDefault_.get(i));
}
for (int i = 0; i < attrRename_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(7, attrRename_.get(i));
}
for (int i = 0; i < inputRename_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(8, inputRename_.get(i));
}
for (int i = 0; i < outputRename_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(9, outputRename_.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 tensorflow.OpGenOverridesOuterClass.OpGenOverride)) {
return super.equals(obj);
}
tensorflow.OpGenOverridesOuterClass.OpGenOverride other = (tensorflow.OpGenOverridesOuterClass.OpGenOverride) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (getSkip()
== other.getSkip());
result = result && (getHide()
== other.getHide());
result = result && getRenameTo()
.equals(other.getRenameTo());
result = result && getAliasList()
.equals(other.getAliasList());
result = result && getAttrDefaultList()
.equals(other.getAttrDefaultList());
result = result && getAttrRenameList()
.equals(other.getAttrRenameList());
result = result && getInputRenameList()
.equals(other.getInputRenameList());
result = result && getOutputRenameList()
.equals(other.getOutputRenameList());
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + SKIP_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashBoolean(
getSkip());
hash = (37 * hash) + HIDE_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashBoolean(
getHide());
hash = (37 * hash) + RENAME_TO_FIELD_NUMBER;
hash = (53 * hash) + getRenameTo().hashCode();
if (getAliasCount() > 0) {
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAliasList().hashCode();
}
if (getAttrDefaultCount() > 0) {
hash = (37 * hash) + ATTR_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getAttrDefaultList().hashCode();
}
if (getAttrRenameCount() > 0) {
hash = (37 * hash) + ATTR_RENAME_FIELD_NUMBER;
hash = (53 * hash) + getAttrRenameList().hashCode();
}
if (getInputRenameCount() > 0) {
hash = (37 * hash) + INPUT_RENAME_FIELD_NUMBER;
hash = (53 * hash) + getInputRenameList().hashCode();
}
if (getOutputRenameCount() > 0) {
hash = (37 * hash) + OUTPUT_RENAME_FIELD_NUMBER;
hash = (53 * hash) + getOutputRenameList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.OpGenOverridesOuterClass.OpGenOverride parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.OpGenOverridesOuterClass.OpGenOverride prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Used to override the default API & behavior in the generated code
* for client languages, from what you would get from the OpDef alone.
* This is so we can evolve the API while remaining backwards
* compatible when interpretting old graphs. Overrides go in an
* "op_gen_overrides.pbtxt" file with a text-format OpGenOverrides
* message. Right now these only apply to the C++ API.
* TODO(josh11b): In the future there will be a common set of overrides
* and per-client-language overrides.
* WARNING: Be *very* careful using these features -- these overrides
* can change the semantics of existing code. These changes may need
* to wait until a major release of TensorFlow to avoid breaking our
* compatibility promises.
*