third_party.tensorflow.tools.api.ApiObjects Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/tools/api/lib/api_objects.proto
package third_party.tensorflow.tools.api;
public final class ApiObjects {
private ApiObjects() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TFAPIMemberOrBuilder extends
// @@protoc_insertion_point(interface_extends:third_party.tensorflow.tools.api.TFAPIMember)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string mtype = 2;
*/
boolean hasMtype();
/**
* optional string mtype = 2;
*/
java.lang.String getMtype();
/**
* optional string mtype = 2;
*/
com.google.protobuf.ByteString
getMtypeBytes();
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIMember}
*/
public static final class TFAPIMember extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:third_party.tensorflow.tools.api.TFAPIMember)
TFAPIMemberOrBuilder {
private static final long serialVersionUID = 0L;
// Use TFAPIMember.newBuilder() to construct.
private TFAPIMember(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TFAPIMember() {
name_ = "";
mtype_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TFAPIMember(
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
mtype_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMember_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMember_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional 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.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MTYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object mtype_;
/**
* optional string mtype = 2;
*/
public boolean hasMtype() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string mtype = 2;
*/
public java.lang.String getMtype() {
java.lang.Object ref = mtype_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
mtype_ = s;
}
return s;
}
}
/**
* optional string mtype = 2;
*/
public com.google.protobuf.ByteString
getMtypeBytes() {
java.lang.Object ref = mtype_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mtype_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mtype_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mtype_);
}
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 third_party.tensorflow.tools.api.ApiObjects.TFAPIMember)) {
return super.equals(obj);
}
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember other = (third_party.tensorflow.tools.api.ApiObjects.TFAPIMember) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasMtype() == other.hasMtype());
if (hasMtype()) {
result = result && getMtype()
.equals(other.getMtype());
}
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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasMtype()) {
hash = (37 * hash) + MTYPE_FIELD_NUMBER;
hash = (53 * hash) + getMtype().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(third_party.tensorflow.tools.api.ApiObjects.TFAPIMember 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIMember}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:third_party.tensorflow.tools.api.TFAPIMember)
third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMember_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMember_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder.class);
}
// Construct using third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
mtype_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMember_descriptor;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getDefaultInstanceForType() {
return third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.getDefaultInstance();
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember build() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember buildPartial() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember result = new third_party.tensorflow.tools.api.ApiObjects.TFAPIMember(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.mtype_ = mtype_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof third_party.tensorflow.tools.api.ApiObjects.TFAPIMember) {
return mergeFrom((third_party.tensorflow.tools.api.ApiObjects.TFAPIMember)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(third_party.tensorflow.tools.api.ApiObjects.TFAPIMember other) {
if (other == third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasMtype()) {
bitField0_ |= 0x00000002;
mtype_ = other.mtype_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (third_party.tensorflow.tools.api.ApiObjects.TFAPIMember) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object mtype_ = "";
/**
* optional string mtype = 2;
*/
public boolean hasMtype() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string mtype = 2;
*/
public java.lang.String getMtype() {
java.lang.Object ref = mtype_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
mtype_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mtype = 2;
*/
public com.google.protobuf.ByteString
getMtypeBytes() {
java.lang.Object ref = mtype_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mtype_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string mtype = 2;
*/
public Builder setMtype(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mtype_ = value;
onChanged();
return this;
}
/**
* optional string mtype = 2;
*/
public Builder clearMtype() {
bitField0_ = (bitField0_ & ~0x00000002);
mtype_ = getDefaultInstance().getMtype();
onChanged();
return this;
}
/**
* optional string mtype = 2;
*/
public Builder setMtypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mtype_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:third_party.tensorflow.tools.api.TFAPIMember)
}
// @@protoc_insertion_point(class_scope:third_party.tensorflow.tools.api.TFAPIMember)
private static final third_party.tensorflow.tools.api.ApiObjects.TFAPIMember DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new third_party.tensorflow.tools.api.ApiObjects.TFAPIMember();
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TFAPIMember parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TFAPIMember(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TFAPIMethodOrBuilder extends
// @@protoc_insertion_point(interface_extends:third_party.tensorflow.tools.api.TFAPIMethod)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string path = 2;
*/
boolean hasPath();
/**
* optional string path = 2;
*/
java.lang.String getPath();
/**
* optional string path = 2;
*/
com.google.protobuf.ByteString
getPathBytes();
/**
* optional string argspec = 3;
*/
boolean hasArgspec();
/**
* optional string argspec = 3;
*/
java.lang.String getArgspec();
/**
* optional string argspec = 3;
*/
com.google.protobuf.ByteString
getArgspecBytes();
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIMethod}
*/
public static final class TFAPIMethod extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:third_party.tensorflow.tools.api.TFAPIMethod)
TFAPIMethodOrBuilder {
private static final long serialVersionUID = 0L;
// Use TFAPIMethod.newBuilder() to construct.
private TFAPIMethod(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TFAPIMethod() {
name_ = "";
path_ = "";
argspec_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TFAPIMethod(
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
path_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
argspec_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMethod_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMethod_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional 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.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* optional string path = 2;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
* optional string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARGSPEC_FIELD_NUMBER = 3;
private volatile java.lang.Object argspec_;
/**
* optional string argspec = 3;
*/
public boolean hasArgspec() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string argspec = 3;
*/
public java.lang.String getArgspec() {
java.lang.Object ref = argspec_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
argspec_ = s;
}
return s;
}
}
/**
* optional string argspec = 3;
*/
public com.google.protobuf.ByteString
getArgspecBytes() {
java.lang.Object ref = argspec_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
argspec_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, argspec_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, argspec_);
}
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 third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod)) {
return super.equals(obj);
}
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod other = (third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasPath() == other.hasPath());
if (hasPath()) {
result = result && getPath()
.equals(other.getPath());
}
result = result && (hasArgspec() == other.hasArgspec());
if (hasArgspec()) {
result = result && getArgspec()
.equals(other.getArgspec());
}
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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasPath()) {
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
}
if (hasArgspec()) {
hash = (37 * hash) + ARGSPEC_FIELD_NUMBER;
hash = (53 * hash) + getArgspec().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIMethod}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:third_party.tensorflow.tools.api.TFAPIMethod)
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMethod_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMethod_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder.class);
}
// Construct using third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
path_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
argspec_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIMethod_descriptor;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getDefaultInstanceForType() {
return third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.getDefaultInstance();
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod build() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod buildPartial() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod result = new third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.argspec_ = argspec_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod) {
return mergeFrom((third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod other) {
if (other == third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasPath()) {
bitField0_ |= 0x00000002;
path_ = other.path_;
onChanged();
}
if (other.hasArgspec()) {
bitField0_ |= 0x00000004;
argspec_ = other.argspec_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
* optional string path = 2;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string path = 2;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
/**
* optional string path = 2;
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000002);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* optional string path = 2;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
private java.lang.Object argspec_ = "";
/**
* optional string argspec = 3;
*/
public boolean hasArgspec() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string argspec = 3;
*/
public java.lang.String getArgspec() {
java.lang.Object ref = argspec_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
argspec_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string argspec = 3;
*/
public com.google.protobuf.ByteString
getArgspecBytes() {
java.lang.Object ref = argspec_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
argspec_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string argspec = 3;
*/
public Builder setArgspec(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
argspec_ = value;
onChanged();
return this;
}
/**
* optional string argspec = 3;
*/
public Builder clearArgspec() {
bitField0_ = (bitField0_ & ~0x00000004);
argspec_ = getDefaultInstance().getArgspec();
onChanged();
return this;
}
/**
* optional string argspec = 3;
*/
public Builder setArgspecBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
argspec_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:third_party.tensorflow.tools.api.TFAPIMethod)
}
// @@protoc_insertion_point(class_scope:third_party.tensorflow.tools.api.TFAPIMethod)
private static final third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod();
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TFAPIMethod parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TFAPIMethod(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TFAPIModuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:third_party.tensorflow.tools.api.TFAPIModule)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
java.util.List
getMemberList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getMember(int index);
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
int getMemberCount();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberOrBuilderList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder getMemberOrBuilder(
int index);
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
java.util.List
getMemberMethodList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getMemberMethod(int index);
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
int getMemberMethodCount();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodOrBuilderList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder getMemberMethodOrBuilder(
int index);
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIModule}
*/
public static final class TFAPIModule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:third_party.tensorflow.tools.api.TFAPIModule)
TFAPIModuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use TFAPIModule.newBuilder() to construct.
private TFAPIModule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TFAPIModule() {
member_ = java.util.Collections.emptyList();
memberMethod_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TFAPIModule(
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;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
member_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
member_.add(
input.readMessage(third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
memberMethod_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
memberMethod_.add(
input.readMessage(third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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)) {
member_ = java.util.Collections.unmodifiableList(member_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
memberMethod_ = java.util.Collections.unmodifiableList(memberMethod_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIModule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIModule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder.class);
}
public static final int MEMBER_FIELD_NUMBER = 1;
private java.util.List member_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public java.util.List getMemberList() {
return member_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberOrBuilderList() {
return member_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public int getMemberCount() {
return member_.size();
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getMember(int index) {
return member_.get(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder getMemberOrBuilder(
int index) {
return member_.get(index);
}
public static final int MEMBER_METHOD_FIELD_NUMBER = 2;
private java.util.List memberMethod_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public java.util.List getMemberMethodList() {
return memberMethod_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodOrBuilderList() {
return memberMethod_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public int getMemberMethodCount() {
return memberMethod_.size();
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getMemberMethod(int index) {
return memberMethod_.get(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder getMemberMethodOrBuilder(
int index) {
return memberMethod_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < member_.size(); i++) {
output.writeMessage(1, member_.get(i));
}
for (int i = 0; i < memberMethod_.size(); i++) {
output.writeMessage(2, memberMethod_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < member_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, member_.get(i));
}
for (int i = 0; i < memberMethod_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, memberMethod_.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 third_party.tensorflow.tools.api.ApiObjects.TFAPIModule)) {
return super.equals(obj);
}
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule other = (third_party.tensorflow.tools.api.ApiObjects.TFAPIModule) obj;
boolean result = true;
result = result && getMemberList()
.equals(other.getMemberList());
result = result && getMemberMethodList()
.equals(other.getMemberMethodList());
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 (getMemberCount() > 0) {
hash = (37 * hash) + MEMBER_FIELD_NUMBER;
hash = (53 * hash) + getMemberList().hashCode();
}
if (getMemberMethodCount() > 0) {
hash = (37 * hash) + MEMBER_METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMemberMethodList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(third_party.tensorflow.tools.api.ApiObjects.TFAPIModule 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIModule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:third_party.tensorflow.tools.api.TFAPIModule)
third_party.tensorflow.tools.api.ApiObjects.TFAPIModuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIModule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIModule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder.class);
}
// Construct using third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMemberFieldBuilder();
getMemberMethodFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
memberBuilder_.clear();
}
if (memberMethodBuilder_ == null) {
memberMethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
memberMethodBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIModule_descriptor;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModule getDefaultInstanceForType() {
return third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.getDefaultInstance();
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModule build() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModule buildPartial() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule result = new third_party.tensorflow.tools.api.ApiObjects.TFAPIModule(this);
int from_bitField0_ = bitField0_;
if (memberBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
member_ = java.util.Collections.unmodifiableList(member_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.member_ = member_;
} else {
result.member_ = memberBuilder_.build();
}
if (memberMethodBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
memberMethod_ = java.util.Collections.unmodifiableList(memberMethod_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.memberMethod_ = memberMethod_;
} else {
result.memberMethod_ = memberMethodBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof third_party.tensorflow.tools.api.ApiObjects.TFAPIModule) {
return mergeFrom((third_party.tensorflow.tools.api.ApiObjects.TFAPIModule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(third_party.tensorflow.tools.api.ApiObjects.TFAPIModule other) {
if (other == third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.getDefaultInstance()) return this;
if (memberBuilder_ == null) {
if (!other.member_.isEmpty()) {
if (member_.isEmpty()) {
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMemberIsMutable();
member_.addAll(other.member_);
}
onChanged();
}
} else {
if (!other.member_.isEmpty()) {
if (memberBuilder_.isEmpty()) {
memberBuilder_.dispose();
memberBuilder_ = null;
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000001);
memberBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMemberFieldBuilder() : null;
} else {
memberBuilder_.addAllMessages(other.member_);
}
}
}
if (memberMethodBuilder_ == null) {
if (!other.memberMethod_.isEmpty()) {
if (memberMethod_.isEmpty()) {
memberMethod_ = other.memberMethod_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMemberMethodIsMutable();
memberMethod_.addAll(other.memberMethod_);
}
onChanged();
}
} else {
if (!other.memberMethod_.isEmpty()) {
if (memberMethodBuilder_.isEmpty()) {
memberMethodBuilder_.dispose();
memberMethodBuilder_ = null;
memberMethod_ = other.memberMethod_;
bitField0_ = (bitField0_ & ~0x00000002);
memberMethodBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMemberMethodFieldBuilder() : null;
} else {
memberMethodBuilder_.addAllMessages(other.memberMethod_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (third_party.tensorflow.tools.api.ApiObjects.TFAPIModule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List member_ =
java.util.Collections.emptyList();
private void ensureMemberIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
member_ = new java.util.ArrayList(member_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder> memberBuilder_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public java.util.List getMemberList() {
if (memberBuilder_ == null) {
return java.util.Collections.unmodifiableList(member_);
} else {
return memberBuilder_.getMessageList();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public int getMemberCount() {
if (memberBuilder_ == null) {
return member_.size();
} else {
return memberBuilder_.getCount();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getMember(int index) {
if (memberBuilder_ == null) {
return member_.get(index);
} else {
return memberBuilder_.getMessage(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder setMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.set(index, value);
onChanged();
} else {
memberBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder setMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.set(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder addMember(third_party.tensorflow.tools.api.ApiObjects.TFAPIMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(value);
onChanged();
} else {
memberBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder addMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(index, value);
onChanged();
} else {
memberBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder addMember(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder addMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder addAllMember(
java.lang.Iterable extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMember> values) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, member_);
onChanged();
} else {
memberBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder clearMember() {
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
memberBuilder_.clear();
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public Builder removeMember(int index) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.remove(index);
onChanged();
} else {
memberBuilder_.remove(index);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder getMemberBuilder(
int index) {
return getMemberFieldBuilder().getBuilder(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder getMemberOrBuilder(
int index) {
if (memberBuilder_ == null) {
return member_.get(index); } else {
return memberBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberOrBuilderList() {
if (memberBuilder_ != null) {
return memberBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(member_);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder addMemberBuilder() {
return getMemberFieldBuilder().addBuilder(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder addMemberBuilder(
int index) {
return getMemberFieldBuilder().addBuilder(
index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 1;
*/
public java.util.List
getMemberBuilderList() {
return getMemberFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberFieldBuilder() {
if (memberBuilder_ == null) {
memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>(
member_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
member_ = null;
}
return memberBuilder_;
}
private java.util.List memberMethod_ =
java.util.Collections.emptyList();
private void ensureMemberMethodIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
memberMethod_ = new java.util.ArrayList(memberMethod_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder> memberMethodBuilder_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public java.util.List getMemberMethodList() {
if (memberMethodBuilder_ == null) {
return java.util.Collections.unmodifiableList(memberMethod_);
} else {
return memberMethodBuilder_.getMessageList();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public int getMemberMethodCount() {
if (memberMethodBuilder_ == null) {
return memberMethod_.size();
} else {
return memberMethodBuilder_.getCount();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getMemberMethod(int index) {
if (memberMethodBuilder_ == null) {
return memberMethod_.get(index);
} else {
return memberMethodBuilder_.getMessage(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder setMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod value) {
if (memberMethodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberMethodIsMutable();
memberMethod_.set(index, value);
onChanged();
} else {
memberMethodBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder setMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder builderForValue) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.set(index, builderForValue.build());
onChanged();
} else {
memberMethodBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder addMemberMethod(third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod value) {
if (memberMethodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberMethodIsMutable();
memberMethod_.add(value);
onChanged();
} else {
memberMethodBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder addMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod value) {
if (memberMethodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberMethodIsMutable();
memberMethod_.add(index, value);
onChanged();
} else {
memberMethodBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder addMemberMethod(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder builderForValue) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.add(builderForValue.build());
onChanged();
} else {
memberMethodBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder addMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder builderForValue) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.add(index, builderForValue.build());
onChanged();
} else {
memberMethodBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder addAllMemberMethod(
java.lang.Iterable extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod> values) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, memberMethod_);
onChanged();
} else {
memberMethodBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder clearMemberMethod() {
if (memberMethodBuilder_ == null) {
memberMethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
memberMethodBuilder_.clear();
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public Builder removeMemberMethod(int index) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.remove(index);
onChanged();
} else {
memberMethodBuilder_.remove(index);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder getMemberMethodBuilder(
int index) {
return getMemberMethodFieldBuilder().getBuilder(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder getMemberMethodOrBuilder(
int index) {
if (memberMethodBuilder_ == null) {
return memberMethod_.get(index); } else {
return memberMethodBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodOrBuilderList() {
if (memberMethodBuilder_ != null) {
return memberMethodBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(memberMethod_);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder addMemberMethodBuilder() {
return getMemberMethodFieldBuilder().addBuilder(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder addMemberMethodBuilder(
int index) {
return getMemberMethodFieldBuilder().addBuilder(
index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 2;
*/
public java.util.List
getMemberMethodBuilderList() {
return getMemberMethodFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodFieldBuilder() {
if (memberMethodBuilder_ == null) {
memberMethodBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>(
memberMethod_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
memberMethod_ = null;
}
return memberMethodBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:third_party.tensorflow.tools.api.TFAPIModule)
}
// @@protoc_insertion_point(class_scope:third_party.tensorflow.tools.api.TFAPIModule)
private static final third_party.tensorflow.tools.api.ApiObjects.TFAPIModule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new third_party.tensorflow.tools.api.ApiObjects.TFAPIModule();
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIModule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TFAPIModule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TFAPIModule(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TFAPIClassOrBuilder extends
// @@protoc_insertion_point(interface_extends:third_party.tensorflow.tools.api.TFAPIClass)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string is_instance = 1;
*/
java.util.List
getIsInstanceList();
/**
* repeated string is_instance = 1;
*/
int getIsInstanceCount();
/**
* repeated string is_instance = 1;
*/
java.lang.String getIsInstance(int index);
/**
* repeated string is_instance = 1;
*/
com.google.protobuf.ByteString
getIsInstanceBytes(int index);
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
java.util.List
getMemberList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getMember(int index);
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
int getMemberCount();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberOrBuilderList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder getMemberOrBuilder(
int index);
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
java.util.List
getMemberMethodList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getMemberMethod(int index);
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
int getMemberMethodCount();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodOrBuilderList();
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder getMemberMethodOrBuilder(
int index);
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIClass}
*/
public static final class TFAPIClass extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:third_party.tensorflow.tools.api.TFAPIClass)
TFAPIClassOrBuilder {
private static final long serialVersionUID = 0L;
// Use TFAPIClass.newBuilder() to construct.
private TFAPIClass(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TFAPIClass() {
isInstance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
member_ = java.util.Collections.emptyList();
memberMethod_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TFAPIClass(
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
isInstance_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
isInstance_.add(bs);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
member_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
member_.add(
input.readMessage(third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
memberMethod_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
memberMethod_.add(
input.readMessage(third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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)) {
isInstance_ = isInstance_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
member_ = java.util.Collections.unmodifiableList(member_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
memberMethod_ = java.util.Collections.unmodifiableList(memberMethod_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIClass_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIClass_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder.class);
}
public static final int IS_INSTANCE_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList isInstance_;
/**
* repeated string is_instance = 1;
*/
public com.google.protobuf.ProtocolStringList
getIsInstanceList() {
return isInstance_;
}
/**
* repeated string is_instance = 1;
*/
public int getIsInstanceCount() {
return isInstance_.size();
}
/**
* repeated string is_instance = 1;
*/
public java.lang.String getIsInstance(int index) {
return isInstance_.get(index);
}
/**
* repeated string is_instance = 1;
*/
public com.google.protobuf.ByteString
getIsInstanceBytes(int index) {
return isInstance_.getByteString(index);
}
public static final int MEMBER_FIELD_NUMBER = 2;
private java.util.List member_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public java.util.List getMemberList() {
return member_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberOrBuilderList() {
return member_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public int getMemberCount() {
return member_.size();
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getMember(int index) {
return member_.get(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder getMemberOrBuilder(
int index) {
return member_.get(index);
}
public static final int MEMBER_METHOD_FIELD_NUMBER = 3;
private java.util.List memberMethod_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public java.util.List getMemberMethodList() {
return memberMethod_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodOrBuilderList() {
return memberMethod_;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public int getMemberMethodCount() {
return memberMethod_.size();
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getMemberMethod(int index) {
return memberMethod_.get(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder getMemberMethodOrBuilder(
int index) {
return memberMethod_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < isInstance_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, isInstance_.getRaw(i));
}
for (int i = 0; i < member_.size(); i++) {
output.writeMessage(2, member_.get(i));
}
for (int i = 0; i < memberMethod_.size(); i++) {
output.writeMessage(3, memberMethod_.get(i));
}
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 < isInstance_.size(); i++) {
dataSize += computeStringSizeNoTag(isInstance_.getRaw(i));
}
size += dataSize;
size += 1 * getIsInstanceList().size();
}
for (int i = 0; i < member_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, member_.get(i));
}
for (int i = 0; i < memberMethod_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, memberMethod_.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 third_party.tensorflow.tools.api.ApiObjects.TFAPIClass)) {
return super.equals(obj);
}
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass other = (third_party.tensorflow.tools.api.ApiObjects.TFAPIClass) obj;
boolean result = true;
result = result && getIsInstanceList()
.equals(other.getIsInstanceList());
result = result && getMemberList()
.equals(other.getMemberList());
result = result && getMemberMethodList()
.equals(other.getMemberMethodList());
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 (getIsInstanceCount() > 0) {
hash = (37 * hash) + IS_INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getIsInstanceList().hashCode();
}
if (getMemberCount() > 0) {
hash = (37 * hash) + MEMBER_FIELD_NUMBER;
hash = (53 * hash) + getMemberList().hashCode();
}
if (getMemberMethodCount() > 0) {
hash = (37 * hash) + MEMBER_METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMemberMethodList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(third_party.tensorflow.tools.api.ApiObjects.TFAPIClass 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIClass}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:third_party.tensorflow.tools.api.TFAPIClass)
third_party.tensorflow.tools.api.ApiObjects.TFAPIClassOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIClass_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIClass_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder.class);
}
// Construct using third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMemberFieldBuilder();
getMemberMethodFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
isInstance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
memberBuilder_.clear();
}
if (memberMethodBuilder_ == null) {
memberMethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
memberMethodBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIClass_descriptor;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClass getDefaultInstanceForType() {
return third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.getDefaultInstance();
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClass build() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClass buildPartial() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass result = new third_party.tensorflow.tools.api.ApiObjects.TFAPIClass(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
isInstance_ = isInstance_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.isInstance_ = isInstance_;
if (memberBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
member_ = java.util.Collections.unmodifiableList(member_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.member_ = member_;
} else {
result.member_ = memberBuilder_.build();
}
if (memberMethodBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
memberMethod_ = java.util.Collections.unmodifiableList(memberMethod_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.memberMethod_ = memberMethod_;
} else {
result.memberMethod_ = memberMethodBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof third_party.tensorflow.tools.api.ApiObjects.TFAPIClass) {
return mergeFrom((third_party.tensorflow.tools.api.ApiObjects.TFAPIClass)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(third_party.tensorflow.tools.api.ApiObjects.TFAPIClass other) {
if (other == third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.getDefaultInstance()) return this;
if (!other.isInstance_.isEmpty()) {
if (isInstance_.isEmpty()) {
isInstance_ = other.isInstance_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIsInstanceIsMutable();
isInstance_.addAll(other.isInstance_);
}
onChanged();
}
if (memberBuilder_ == null) {
if (!other.member_.isEmpty()) {
if (member_.isEmpty()) {
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMemberIsMutable();
member_.addAll(other.member_);
}
onChanged();
}
} else {
if (!other.member_.isEmpty()) {
if (memberBuilder_.isEmpty()) {
memberBuilder_.dispose();
memberBuilder_ = null;
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000002);
memberBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMemberFieldBuilder() : null;
} else {
memberBuilder_.addAllMessages(other.member_);
}
}
}
if (memberMethodBuilder_ == null) {
if (!other.memberMethod_.isEmpty()) {
if (memberMethod_.isEmpty()) {
memberMethod_ = other.memberMethod_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureMemberMethodIsMutable();
memberMethod_.addAll(other.memberMethod_);
}
onChanged();
}
} else {
if (!other.memberMethod_.isEmpty()) {
if (memberMethodBuilder_.isEmpty()) {
memberMethodBuilder_.dispose();
memberMethodBuilder_ = null;
memberMethod_ = other.memberMethod_;
bitField0_ = (bitField0_ & ~0x00000004);
memberMethodBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMemberMethodFieldBuilder() : null;
} else {
memberMethodBuilder_.addAllMessages(other.memberMethod_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (third_party.tensorflow.tools.api.ApiObjects.TFAPIClass) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList isInstance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIsInstanceIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
isInstance_ = new com.google.protobuf.LazyStringArrayList(isInstance_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string is_instance = 1;
*/
public com.google.protobuf.ProtocolStringList
getIsInstanceList() {
return isInstance_.getUnmodifiableView();
}
/**
* repeated string is_instance = 1;
*/
public int getIsInstanceCount() {
return isInstance_.size();
}
/**
* repeated string is_instance = 1;
*/
public java.lang.String getIsInstance(int index) {
return isInstance_.get(index);
}
/**
* repeated string is_instance = 1;
*/
public com.google.protobuf.ByteString
getIsInstanceBytes(int index) {
return isInstance_.getByteString(index);
}
/**
* repeated string is_instance = 1;
*/
public Builder setIsInstance(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIsInstanceIsMutable();
isInstance_.set(index, value);
onChanged();
return this;
}
/**
* repeated string is_instance = 1;
*/
public Builder addIsInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIsInstanceIsMutable();
isInstance_.add(value);
onChanged();
return this;
}
/**
* repeated string is_instance = 1;
*/
public Builder addAllIsInstance(
java.lang.Iterable values) {
ensureIsInstanceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, isInstance_);
onChanged();
return this;
}
/**
* repeated string is_instance = 1;
*/
public Builder clearIsInstance() {
isInstance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string is_instance = 1;
*/
public Builder addIsInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureIsInstanceIsMutable();
isInstance_.add(value);
onChanged();
return this;
}
private java.util.List member_ =
java.util.Collections.emptyList();
private void ensureMemberIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
member_ = new java.util.ArrayList(member_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder> memberBuilder_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public java.util.List getMemberList() {
if (memberBuilder_ == null) {
return java.util.Collections.unmodifiableList(member_);
} else {
return memberBuilder_.getMessageList();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public int getMemberCount() {
if (memberBuilder_ == null) {
return member_.size();
} else {
return memberBuilder_.getCount();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember getMember(int index) {
if (memberBuilder_ == null) {
return member_.get(index);
} else {
return memberBuilder_.getMessage(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder setMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.set(index, value);
onChanged();
} else {
memberBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder setMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.set(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder addMember(third_party.tensorflow.tools.api.ApiObjects.TFAPIMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(value);
onChanged();
} else {
memberBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder addMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(index, value);
onChanged();
} else {
memberBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder addMember(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder addMember(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder addAllMember(
java.lang.Iterable extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMember> values) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, member_);
onChanged();
} else {
memberBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder clearMember() {
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
memberBuilder_.clear();
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public Builder removeMember(int index) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.remove(index);
onChanged();
} else {
memberBuilder_.remove(index);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder getMemberBuilder(
int index) {
return getMemberFieldBuilder().getBuilder(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder getMemberOrBuilder(
int index) {
if (memberBuilder_ == null) {
return member_.get(index); } else {
return memberBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberOrBuilderList() {
if (memberBuilder_ != null) {
return memberBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(member_);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder addMemberBuilder() {
return getMemberFieldBuilder().addBuilder(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder addMemberBuilder(
int index) {
return getMemberFieldBuilder().addBuilder(
index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMember member = 2;
*/
public java.util.List
getMemberBuilderList() {
return getMemberFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>
getMemberFieldBuilder() {
if (memberBuilder_ == null) {
memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMember, third_party.tensorflow.tools.api.ApiObjects.TFAPIMember.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMemberOrBuilder>(
member_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
member_ = null;
}
return memberBuilder_;
}
private java.util.List memberMethod_ =
java.util.Collections.emptyList();
private void ensureMemberMethodIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
memberMethod_ = new java.util.ArrayList(memberMethod_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder> memberMethodBuilder_;
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public java.util.List getMemberMethodList() {
if (memberMethodBuilder_ == null) {
return java.util.Collections.unmodifiableList(memberMethod_);
} else {
return memberMethodBuilder_.getMessageList();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public int getMemberMethodCount() {
if (memberMethodBuilder_ == null) {
return memberMethod_.size();
} else {
return memberMethodBuilder_.getCount();
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod getMemberMethod(int index) {
if (memberMethodBuilder_ == null) {
return memberMethod_.get(index);
} else {
return memberMethodBuilder_.getMessage(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder setMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod value) {
if (memberMethodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberMethodIsMutable();
memberMethod_.set(index, value);
onChanged();
} else {
memberMethodBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder setMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder builderForValue) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.set(index, builderForValue.build());
onChanged();
} else {
memberMethodBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder addMemberMethod(third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod value) {
if (memberMethodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberMethodIsMutable();
memberMethod_.add(value);
onChanged();
} else {
memberMethodBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder addMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod value) {
if (memberMethodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberMethodIsMutable();
memberMethod_.add(index, value);
onChanged();
} else {
memberMethodBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder addMemberMethod(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder builderForValue) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.add(builderForValue.build());
onChanged();
} else {
memberMethodBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder addMemberMethod(
int index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder builderForValue) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.add(index, builderForValue.build());
onChanged();
} else {
memberMethodBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder addAllMemberMethod(
java.lang.Iterable extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod> values) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, memberMethod_);
onChanged();
} else {
memberMethodBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder clearMemberMethod() {
if (memberMethodBuilder_ == null) {
memberMethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
memberMethodBuilder_.clear();
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public Builder removeMemberMethod(int index) {
if (memberMethodBuilder_ == null) {
ensureMemberMethodIsMutable();
memberMethod_.remove(index);
onChanged();
} else {
memberMethodBuilder_.remove(index);
}
return this;
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder getMemberMethodBuilder(
int index) {
return getMemberMethodFieldBuilder().getBuilder(index);
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder getMemberMethodOrBuilder(
int index) {
if (memberMethodBuilder_ == null) {
return memberMethod_.get(index); } else {
return memberMethodBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public java.util.List extends third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodOrBuilderList() {
if (memberMethodBuilder_ != null) {
return memberMethodBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(memberMethod_);
}
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder addMemberMethodBuilder() {
return getMemberMethodFieldBuilder().addBuilder(
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder addMemberMethodBuilder(
int index) {
return getMemberMethodFieldBuilder().addBuilder(
index, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.getDefaultInstance());
}
/**
* repeated .third_party.tensorflow.tools.api.TFAPIMethod member_method = 3;
*/
public java.util.List
getMemberMethodBuilderList() {
return getMemberMethodFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>
getMemberMethodFieldBuilder() {
if (memberMethodBuilder_ == null) {
memberMethodBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethod.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIMethodOrBuilder>(
memberMethod_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
memberMethod_ = null;
}
return memberMethodBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:third_party.tensorflow.tools.api.TFAPIClass)
}
// @@protoc_insertion_point(class_scope:third_party.tensorflow.tools.api.TFAPIClass)
private static final third_party.tensorflow.tools.api.ApiObjects.TFAPIClass DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new third_party.tensorflow.tools.api.ApiObjects.TFAPIClass();
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIClass getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TFAPIClass parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TFAPIClass(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClass getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TFAPIProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:third_party.tensorflow.tools.api.TFAPIProto)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
boolean hasDescriptor();
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
com.google.protobuf.DescriptorProtos.DescriptorProto getDescriptor();
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getDescriptorOrBuilder();
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIProto}
*/
public static final class TFAPIProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:third_party.tensorflow.tools.api.TFAPIProto)
TFAPIProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TFAPIProto.newBuilder() to construct.
private TFAPIProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TFAPIProto() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TFAPIProto(
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;
case 10: {
com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = descriptor_.toBuilder();
}
descriptor_ = input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(descriptor_);
descriptor_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder.class);
}
private int bitField0_;
public static final int DESCRIPTOR_FIELD_NUMBER = 1;
private com.google.protobuf.DescriptorProtos.DescriptorProto descriptor_;
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public boolean hasDescriptor() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public com.google.protobuf.DescriptorProtos.DescriptorProto getDescriptor() {
return descriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : descriptor_;
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getDescriptorOrBuilder() {
return descriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : descriptor_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasDescriptor()) {
if (!getDescriptor().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getDescriptor());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDescriptor());
}
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 third_party.tensorflow.tools.api.ApiObjects.TFAPIProto)) {
return super.equals(obj);
}
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto other = (third_party.tensorflow.tools.api.ApiObjects.TFAPIProto) obj;
boolean result = true;
result = result && (hasDescriptor() == other.hasDescriptor());
if (hasDescriptor()) {
result = result && getDescriptor()
.equals(other.getDescriptor());
}
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) + getDescriptorForType().hashCode();
if (hasDescriptor()) {
hash = (37 * hash) + DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getDescriptor().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(third_party.tensorflow.tools.api.ApiObjects.TFAPIProto 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:third_party.tensorflow.tools.api.TFAPIProto)
third_party.tensorflow.tools.api.ApiObjects.TFAPIProtoOrBuilder {
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder.class);
}
// Construct using third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDescriptorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (descriptorBuilder_ == null) {
descriptor_ = null;
} else {
descriptorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIProto_descriptor;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProto getDefaultInstanceForType() {
return third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.getDefaultInstance();
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProto build() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProto buildPartial() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto result = new third_party.tensorflow.tools.api.ApiObjects.TFAPIProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (descriptorBuilder_ == null) {
result.descriptor_ = descriptor_;
} else {
result.descriptor_ = descriptorBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof third_party.tensorflow.tools.api.ApiObjects.TFAPIProto) {
return mergeFrom((third_party.tensorflow.tools.api.ApiObjects.TFAPIProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(third_party.tensorflow.tools.api.ApiObjects.TFAPIProto other) {
if (other == third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.getDefaultInstance()) return this;
if (other.hasDescriptor()) {
mergeDescriptor(other.getDescriptor());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasDescriptor()) {
if (!getDescriptor().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (third_party.tensorflow.tools.api.ApiObjects.TFAPIProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.DescriptorProtos.DescriptorProto descriptor_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> descriptorBuilder_;
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public boolean hasDescriptor() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public com.google.protobuf.DescriptorProtos.DescriptorProto getDescriptor() {
if (descriptorBuilder_ == null) {
return descriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : descriptor_;
} else {
return descriptorBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public Builder setDescriptor(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
if (descriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
descriptor_ = value;
onChanged();
} else {
descriptorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public Builder setDescriptor(
com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) {
if (descriptorBuilder_ == null) {
descriptor_ = builderForValue.build();
onChanged();
} else {
descriptorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public Builder mergeDescriptor(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
if (descriptorBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
descriptor_ != null &&
descriptor_ != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
descriptor_ =
com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder(descriptor_).mergeFrom(value).buildPartial();
} else {
descriptor_ = value;
}
onChanged();
} else {
descriptorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public Builder clearDescriptor() {
if (descriptorBuilder_ == null) {
descriptor_ = null;
onChanged();
} else {
descriptorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getDescriptorBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDescriptorFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getDescriptorOrBuilder() {
if (descriptorBuilder_ != null) {
return descriptorBuilder_.getMessageOrBuilder();
} else {
return descriptor_ == null ?
com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : descriptor_;
}
}
/**
* optional .google.protobuf.DescriptorProto descriptor = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>
getDescriptorFieldBuilder() {
if (descriptorBuilder_ == null) {
descriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
getDescriptor(),
getParentForChildren(),
isClean());
descriptor_ = null;
}
return descriptorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:third_party.tensorflow.tools.api.TFAPIProto)
}
// @@protoc_insertion_point(class_scope:third_party.tensorflow.tools.api.TFAPIProto)
private static final third_party.tensorflow.tools.api.ApiObjects.TFAPIProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new third_party.tensorflow.tools.api.ApiObjects.TFAPIProto();
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TFAPIProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TFAPIProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TFAPIObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:third_party.tensorflow.tools.api.TFAPIObject)
com.google.protobuf.MessageOrBuilder {
/**
* optional string path = 1;
*/
boolean hasPath();
/**
* optional string path = 1;
*/
java.lang.String getPath();
/**
* optional string path = 1;
*/
com.google.protobuf.ByteString
getPathBytes();
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
boolean hasTfModule();
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule getTfModule();
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIModuleOrBuilder getTfModuleOrBuilder();
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
boolean hasTfClass();
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass getTfClass();
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIClassOrBuilder getTfClassOrBuilder();
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
boolean hasTfProto();
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto getTfProto();
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
third_party.tensorflow.tools.api.ApiObjects.TFAPIProtoOrBuilder getTfProtoOrBuilder();
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIObject}
*/
public static final class TFAPIObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:third_party.tensorflow.tools.api.TFAPIObject)
TFAPIObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use TFAPIObject.newBuilder() to construct.
private TFAPIObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TFAPIObject() {
path_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TFAPIObject(
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
path_ = bs;
break;
}
case 18: {
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = tfModule_.toBuilder();
}
tfModule_ = input.readMessage(third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tfModule_);
tfModule_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = tfClass_.toBuilder();
}
tfClass_ = input.readMessage(third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tfClass_);
tfClass_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = tfProto_.toBuilder();
}
tfProto_ = input.readMessage(third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tfProto_);
tfProto_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIObject.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIObject.Builder.class);
}
private int bitField0_;
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
* optional string path = 1;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string path = 1;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
* optional string path = 1;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TF_MODULE_FIELD_NUMBER = 2;
private third_party.tensorflow.tools.api.ApiObjects.TFAPIModule tfModule_;
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public boolean hasTfModule() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModule getTfModule() {
return tfModule_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.getDefaultInstance() : tfModule_;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModuleOrBuilder getTfModuleOrBuilder() {
return tfModule_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.getDefaultInstance() : tfModule_;
}
public static final int TF_CLASS_FIELD_NUMBER = 3;
private third_party.tensorflow.tools.api.ApiObjects.TFAPIClass tfClass_;
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public boolean hasTfClass() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClass getTfClass() {
return tfClass_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.getDefaultInstance() : tfClass_;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClassOrBuilder getTfClassOrBuilder() {
return tfClass_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.getDefaultInstance() : tfClass_;
}
public static final int TF_PROTO_FIELD_NUMBER = 4;
private third_party.tensorflow.tools.api.ApiObjects.TFAPIProto tfProto_;
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public boolean hasTfProto() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProto getTfProto() {
return tfProto_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.getDefaultInstance() : tfProto_;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProtoOrBuilder getTfProtoOrBuilder() {
return tfProto_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.getDefaultInstance() : tfProto_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasTfProto()) {
if (!getTfProto().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getTfModule());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getTfClass());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getTfProto());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTfModule());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTfClass());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTfProto());
}
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 third_party.tensorflow.tools.api.ApiObjects.TFAPIObject)) {
return super.equals(obj);
}
third_party.tensorflow.tools.api.ApiObjects.TFAPIObject other = (third_party.tensorflow.tools.api.ApiObjects.TFAPIObject) obj;
boolean result = true;
result = result && (hasPath() == other.hasPath());
if (hasPath()) {
result = result && getPath()
.equals(other.getPath());
}
result = result && (hasTfModule() == other.hasTfModule());
if (hasTfModule()) {
result = result && getTfModule()
.equals(other.getTfModule());
}
result = result && (hasTfClass() == other.hasTfClass());
if (hasTfClass()) {
result = result && getTfClass()
.equals(other.getTfClass());
}
result = result && (hasTfProto() == other.hasTfProto());
if (hasTfProto()) {
result = result && getTfProto()
.equals(other.getTfProto());
}
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 (hasPath()) {
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
}
if (hasTfModule()) {
hash = (37 * hash) + TF_MODULE_FIELD_NUMBER;
hash = (53 * hash) + getTfModule().hashCode();
}
if (hasTfClass()) {
hash = (37 * hash) + TF_CLASS_FIELD_NUMBER;
hash = (53 * hash) + getTfClass().hashCode();
}
if (hasTfProto()) {
hash = (37 * hash) + TF_PROTO_FIELD_NUMBER;
hash = (53 * hash) + getTfProto().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject 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 third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(third_party.tensorflow.tools.api.ApiObjects.TFAPIObject 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code third_party.tensorflow.tools.api.TFAPIObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:third_party.tensorflow.tools.api.TFAPIObject)
third_party.tensorflow.tools.api.ApiObjects.TFAPIObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
third_party.tensorflow.tools.api.ApiObjects.TFAPIObject.class, third_party.tensorflow.tools.api.ApiObjects.TFAPIObject.Builder.class);
}
// Construct using third_party.tensorflow.tools.api.ApiObjects.TFAPIObject.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTfModuleFieldBuilder();
getTfClassFieldBuilder();
getTfProtoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (tfModuleBuilder_ == null) {
tfModule_ = null;
} else {
tfModuleBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (tfClassBuilder_ == null) {
tfClass_ = null;
} else {
tfClassBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (tfProtoBuilder_ == null) {
tfProto_ = null;
} else {
tfProtoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return third_party.tensorflow.tools.api.ApiObjects.internal_static_third_party_tensorflow_tools_api_TFAPIObject_descriptor;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIObject getDefaultInstanceForType() {
return third_party.tensorflow.tools.api.ApiObjects.TFAPIObject.getDefaultInstance();
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIObject build() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIObject buildPartial() {
third_party.tensorflow.tools.api.ApiObjects.TFAPIObject result = new third_party.tensorflow.tools.api.ApiObjects.TFAPIObject(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (tfModuleBuilder_ == null) {
result.tfModule_ = tfModule_;
} else {
result.tfModule_ = tfModuleBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (tfClassBuilder_ == null) {
result.tfClass_ = tfClass_;
} else {
result.tfClass_ = tfClassBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (tfProtoBuilder_ == null) {
result.tfProto_ = tfProto_;
} else {
result.tfProto_ = tfProtoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof third_party.tensorflow.tools.api.ApiObjects.TFAPIObject) {
return mergeFrom((third_party.tensorflow.tools.api.ApiObjects.TFAPIObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(third_party.tensorflow.tools.api.ApiObjects.TFAPIObject other) {
if (other == third_party.tensorflow.tools.api.ApiObjects.TFAPIObject.getDefaultInstance()) return this;
if (other.hasPath()) {
bitField0_ |= 0x00000001;
path_ = other.path_;
onChanged();
}
if (other.hasTfModule()) {
mergeTfModule(other.getTfModule());
}
if (other.hasTfClass()) {
mergeTfClass(other.getTfClass());
}
if (other.hasTfProto()) {
mergeTfProto(other.getTfProto());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasTfProto()) {
if (!getTfProto().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
third_party.tensorflow.tools.api.ApiObjects.TFAPIObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (third_party.tensorflow.tools.api.ApiObjects.TFAPIObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
* optional string path = 1;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string path = 1;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string path = 1;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string path = 1;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
/**
* optional string path = 1;
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000001);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* optional string path = 1;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
private third_party.tensorflow.tools.api.ApiObjects.TFAPIModule tfModule_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule, third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIModuleOrBuilder> tfModuleBuilder_;
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public boolean hasTfModule() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModule getTfModule() {
if (tfModuleBuilder_ == null) {
return tfModule_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.getDefaultInstance() : tfModule_;
} else {
return tfModuleBuilder_.getMessage();
}
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public Builder setTfModule(third_party.tensorflow.tools.api.ApiObjects.TFAPIModule value) {
if (tfModuleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tfModule_ = value;
onChanged();
} else {
tfModuleBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public Builder setTfModule(
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder builderForValue) {
if (tfModuleBuilder_ == null) {
tfModule_ = builderForValue.build();
onChanged();
} else {
tfModuleBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public Builder mergeTfModule(third_party.tensorflow.tools.api.ApiObjects.TFAPIModule value) {
if (tfModuleBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
tfModule_ != null &&
tfModule_ != third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.getDefaultInstance()) {
tfModule_ =
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.newBuilder(tfModule_).mergeFrom(value).buildPartial();
} else {
tfModule_ = value;
}
onChanged();
} else {
tfModuleBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public Builder clearTfModule() {
if (tfModuleBuilder_ == null) {
tfModule_ = null;
onChanged();
} else {
tfModuleBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder getTfModuleBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTfModuleFieldBuilder().getBuilder();
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIModuleOrBuilder getTfModuleOrBuilder() {
if (tfModuleBuilder_ != null) {
return tfModuleBuilder_.getMessageOrBuilder();
} else {
return tfModule_ == null ?
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.getDefaultInstance() : tfModule_;
}
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIModule tf_module = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule, third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIModuleOrBuilder>
getTfModuleFieldBuilder() {
if (tfModuleBuilder_ == null) {
tfModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIModule, third_party.tensorflow.tools.api.ApiObjects.TFAPIModule.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIModuleOrBuilder>(
getTfModule(),
getParentForChildren(),
isClean());
tfModule_ = null;
}
return tfModuleBuilder_;
}
private third_party.tensorflow.tools.api.ApiObjects.TFAPIClass tfClass_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass, third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIClassOrBuilder> tfClassBuilder_;
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public boolean hasTfClass() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClass getTfClass() {
if (tfClassBuilder_ == null) {
return tfClass_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.getDefaultInstance() : tfClass_;
} else {
return tfClassBuilder_.getMessage();
}
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public Builder setTfClass(third_party.tensorflow.tools.api.ApiObjects.TFAPIClass value) {
if (tfClassBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tfClass_ = value;
onChanged();
} else {
tfClassBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public Builder setTfClass(
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder builderForValue) {
if (tfClassBuilder_ == null) {
tfClass_ = builderForValue.build();
onChanged();
} else {
tfClassBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public Builder mergeTfClass(third_party.tensorflow.tools.api.ApiObjects.TFAPIClass value) {
if (tfClassBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
tfClass_ != null &&
tfClass_ != third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.getDefaultInstance()) {
tfClass_ =
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.newBuilder(tfClass_).mergeFrom(value).buildPartial();
} else {
tfClass_ = value;
}
onChanged();
} else {
tfClassBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public Builder clearTfClass() {
if (tfClassBuilder_ == null) {
tfClass_ = null;
onChanged();
} else {
tfClassBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder getTfClassBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTfClassFieldBuilder().getBuilder();
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIClassOrBuilder getTfClassOrBuilder() {
if (tfClassBuilder_ != null) {
return tfClassBuilder_.getMessageOrBuilder();
} else {
return tfClass_ == null ?
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.getDefaultInstance() : tfClass_;
}
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIClass tf_class = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass, third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIClassOrBuilder>
getTfClassFieldBuilder() {
if (tfClassBuilder_ == null) {
tfClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIClass, third_party.tensorflow.tools.api.ApiObjects.TFAPIClass.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIClassOrBuilder>(
getTfClass(),
getParentForChildren(),
isClean());
tfClass_ = null;
}
return tfClassBuilder_;
}
private third_party.tensorflow.tools.api.ApiObjects.TFAPIProto tfProto_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto, third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIProtoOrBuilder> tfProtoBuilder_;
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public boolean hasTfProto() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProto getTfProto() {
if (tfProtoBuilder_ == null) {
return tfProto_ == null ? third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.getDefaultInstance() : tfProto_;
} else {
return tfProtoBuilder_.getMessage();
}
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public Builder setTfProto(third_party.tensorflow.tools.api.ApiObjects.TFAPIProto value) {
if (tfProtoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tfProto_ = value;
onChanged();
} else {
tfProtoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public Builder setTfProto(
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder builderForValue) {
if (tfProtoBuilder_ == null) {
tfProto_ = builderForValue.build();
onChanged();
} else {
tfProtoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public Builder mergeTfProto(third_party.tensorflow.tools.api.ApiObjects.TFAPIProto value) {
if (tfProtoBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
tfProto_ != null &&
tfProto_ != third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.getDefaultInstance()) {
tfProto_ =
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.newBuilder(tfProto_).mergeFrom(value).buildPartial();
} else {
tfProto_ = value;
}
onChanged();
} else {
tfProtoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public Builder clearTfProto() {
if (tfProtoBuilder_ == null) {
tfProto_ = null;
onChanged();
} else {
tfProtoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder getTfProtoBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getTfProtoFieldBuilder().getBuilder();
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
public third_party.tensorflow.tools.api.ApiObjects.TFAPIProtoOrBuilder getTfProtoOrBuilder() {
if (tfProtoBuilder_ != null) {
return tfProtoBuilder_.getMessageOrBuilder();
} else {
return tfProto_ == null ?
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.getDefaultInstance() : tfProto_;
}
}
/**
* optional .third_party.tensorflow.tools.api.TFAPIProto tf_proto = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto, third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIProtoOrBuilder>
getTfProtoFieldBuilder() {
if (tfProtoBuilder_ == null) {
tfProtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
third_party.tensorflow.tools.api.ApiObjects.TFAPIProto, third_party.tensorflow.tools.api.ApiObjects.TFAPIProto.Builder, third_party.tensorflow.tools.api.ApiObjects.TFAPIProtoOrBuilder>(
getTfProto(),
getParentForChildren(),
isClean());
tfProto_ = null;
}
return tfProtoBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:third_party.tensorflow.tools.api.TFAPIObject)
}
// @@protoc_insertion_point(class_scope:third_party.tensorflow.tools.api.TFAPIObject)
private static final third_party.tensorflow.tools.api.ApiObjects.TFAPIObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new third_party.tensorflow.tools.api.ApiObjects.TFAPIObject();
}
public static third_party.tensorflow.tools.api.ApiObjects.TFAPIObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TFAPIObject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TFAPIObject(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public third_party.tensorflow.tools.api.ApiObjects.TFAPIObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_third_party_tensorflow_tools_api_TFAPIMember_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_third_party_tensorflow_tools_api_TFAPIMember_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_third_party_tensorflow_tools_api_TFAPIMethod_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_third_party_tensorflow_tools_api_TFAPIMethod_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_third_party_tensorflow_tools_api_TFAPIModule_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_third_party_tensorflow_tools_api_TFAPIModule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_third_party_tensorflow_tools_api_TFAPIClass_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_third_party_tensorflow_tools_api_TFAPIClass_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_third_party_tensorflow_tools_api_TFAPIProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_third_party_tensorflow_tools_api_TFAPIProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_third_party_tensorflow_tools_api_TFAPIObject_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_third_party_tensorflow_tools_api_TFAPIObject_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n*tensorflow/tools/api/lib/api_objects.p" +
"roto\022 third_party.tensorflow.tools.api\032 " +
"google/protobuf/descriptor.proto\"*\n\013TFAP" +
"IMember\022\014\n\004name\030\001 \001(\t\022\r\n\005mtype\030\002 \001(\t\":\n\013" +
"TFAPIMethod\022\014\n\004name\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\022" +
"\017\n\007argspec\030\003 \001(\t\"\222\001\n\013TFAPIModule\022=\n\006memb" +
"er\030\001 \003(\0132-.third_party.tensorflow.tools." +
"api.TFAPIMember\022D\n\rmember_method\030\002 \003(\0132-" +
".third_party.tensorflow.tools.api.TFAPIM" +
"ethod\"\246\001\n\nTFAPIClass\022\023\n\013is_instance\030\001 \003(" +
"\t\022=\n\006member\030\002 \003(\0132-.third_party.tensorfl" +
"ow.tools.api.TFAPIMember\022D\n\rmember_metho" +
"d\030\003 \003(\0132-.third_party.tensorflow.tools.a" +
"pi.TFAPIMethod\"F\n\nTFAPIProto\0224\n\ndescript" +
"or\030\001 \001(\0132 .google.protobuf.DescriptorPro" +
"to:\002\020\001\"\335\001\n\013TFAPIObject\022\014\n\004path\030\001 \001(\t\022@\n\t" +
"tf_module\030\002 \001(\0132-.third_party.tensorflow" +
".tools.api.TFAPIModule\022>\n\010tf_class\030\003 \001(\013" +
"2,.third_party.tensorflow.tools.api.TFAP" +
"IClass\022>\n\010tf_proto\030\004 \001(\0132,.third_party.t" +
"ensorflow.tools.api.TFAPIProto"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
}, assigner);
internal_static_third_party_tensorflow_tools_api_TFAPIMember_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_third_party_tensorflow_tools_api_TFAPIMember_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_third_party_tensorflow_tools_api_TFAPIMember_descriptor,
new java.lang.String[] { "Name", "Mtype", });
internal_static_third_party_tensorflow_tools_api_TFAPIMethod_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_third_party_tensorflow_tools_api_TFAPIMethod_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_third_party_tensorflow_tools_api_TFAPIMethod_descriptor,
new java.lang.String[] { "Name", "Path", "Argspec", });
internal_static_third_party_tensorflow_tools_api_TFAPIModule_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_third_party_tensorflow_tools_api_TFAPIModule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_third_party_tensorflow_tools_api_TFAPIModule_descriptor,
new java.lang.String[] { "Member", "MemberMethod", });
internal_static_third_party_tensorflow_tools_api_TFAPIClass_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_third_party_tensorflow_tools_api_TFAPIClass_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_third_party_tensorflow_tools_api_TFAPIClass_descriptor,
new java.lang.String[] { "IsInstance", "Member", "MemberMethod", });
internal_static_third_party_tensorflow_tools_api_TFAPIProto_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_third_party_tensorflow_tools_api_TFAPIProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_third_party_tensorflow_tools_api_TFAPIProto_descriptor,
new java.lang.String[] { "Descriptor", });
internal_static_third_party_tensorflow_tools_api_TFAPIObject_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_third_party_tensorflow_tools_api_TFAPIObject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_third_party_tensorflow_tools_api_TFAPIObject_descriptor,
new java.lang.String[] { "Path", "TfModule", "TfClass", "TfProto", });
com.google.protobuf.DescriptorProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}