All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.framework.ApiDef Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/framework/api_def.proto

package org.tensorflow.framework;

/**
 * 
 * Used to specify and override the default API & behavior in the
 * generated code for client languages, from what you would get from
 * the OpDef alone. There will be a set of ApiDefs that are common
 * to all client languages, and another set per client language.
 * The per-client-language ApiDefs will inherit values from the
 * common ApiDefs which it can either replace or modify.
 * We separate the API definition from the OpDef so we can evolve the
 * API while remaining backwards compatible when interpretting old
 * graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
 * ApiDefs message.
 * WARNING: Be *very* careful changing the API for any existing op --
 * you can change the semantics of existing code.  These changes may
 * need to wait until a major release of TensorFlow to avoid breaking
 * our compatibility promises.
 * 
* * Protobuf type {@code tensorflow.ApiDef} */ public final class ApiDef extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.ApiDef) ApiDefOrBuilder { private static final long serialVersionUID = 0L; // Use ApiDef.newBuilder() to construct. private ApiDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApiDef() { graphOpName_ = ""; visibility_ = 0; endpoint_ = java.util.Collections.emptyList(); inArg_ = java.util.Collections.emptyList(); outArg_ = java.util.Collections.emptyList(); argOrder_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; attr_ = java.util.Collections.emptyList(); summary_ = ""; description_ = ""; descriptionPrefix_ = ""; descriptionSuffix_ = ""; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApiDef( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); graphOpName_ = s; break; } case 16: { int rawValue = input.readEnum(); visibility_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { endpoint_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } endpoint_.add( input.readMessage(org.tensorflow.framework.ApiDef.Endpoint.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { inArg_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } inArg_.add( input.readMessage(org.tensorflow.framework.ApiDef.Arg.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { outArg_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } outArg_.add( input.readMessage(org.tensorflow.framework.ApiDef.Arg.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { attr_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } attr_.add( input.readMessage(org.tensorflow.framework.ApiDef.Attr.parser(), extensionRegistry)); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); summary_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); descriptionPrefix_ = s; break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); descriptionSuffix_ = s; break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { argOrder_ = new org.nd4j.shade.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } argOrder_.add(s); break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { endpoint_ = java.util.Collections.unmodifiableList(endpoint_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { inArg_ = java.util.Collections.unmodifiableList(inArg_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { outArg_ = java.util.Collections.unmodifiableList(outArg_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { attr_ = java.util.Collections.unmodifiableList(attr_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { argOrder_ = argOrder_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.class, org.tensorflow.framework.ApiDef.Builder.class); } /** * Protobuf enum {@code tensorflow.ApiDef.Visibility} */ public enum Visibility implements org.nd4j.shade.protobuf.ProtocolMessageEnum { /** *
     * Normally this is "VISIBLE" unless you are inheriting a
     * different value from another ApiDef.
     * 
* * DEFAULT_VISIBILITY = 0; */ DEFAULT_VISIBILITY(0), /** *
     * Publicly visible in the API.
     * 
* * VISIBLE = 1; */ VISIBLE(1), /** *
     * Do not include this op in the generated API. If visibility is
     * set to 'SKIP', other fields are ignored for this op.
     * 
* * SKIP = 2; */ SKIP(2), /** *
     * Hide this op by putting it into an internal namespace (or whatever
     * is appropriate in the target language).
     * 
* * HIDDEN = 3; */ HIDDEN(3), UNRECOGNIZED(-1), ; /** *
     * Normally this is "VISIBLE" unless you are inheriting a
     * different value from another ApiDef.
     * 
* * DEFAULT_VISIBILITY = 0; */ public static final int DEFAULT_VISIBILITY_VALUE = 0; /** *
     * Publicly visible in the API.
     * 
* * VISIBLE = 1; */ public static final int VISIBLE_VALUE = 1; /** *
     * Do not include this op in the generated API. If visibility is
     * set to 'SKIP', other fields are ignored for this op.
     * 
* * SKIP = 2; */ public static final int SKIP_VALUE = 2; /** *
     * Hide this op by putting it into an internal namespace (or whatever
     * is appropriate in the target language).
     * 
* * HIDDEN = 3; */ public static final int HIDDEN_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Visibility valueOf(int value) { return forNumber(value); } public static Visibility forNumber(int value) { switch (value) { case 0: return DEFAULT_VISIBILITY; case 1: return VISIBLE; case 2: return SKIP; case 3: return HIDDEN; default: return null; } } public static org.nd4j.shade.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final org.nd4j.shade.protobuf.Internal.EnumLiteMap< Visibility> internalValueMap = new org.nd4j.shade.protobuf.Internal.EnumLiteMap() { public Visibility findValueByNumber(int number) { return Visibility.forNumber(number); } }; public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tensorflow.framework.ApiDef.getDescriptor().getEnumTypes().get(0); } private static final Visibility[] VALUES = values(); public static Visibility valueOf( org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Visibility(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tensorflow.ApiDef.Visibility) } public interface EndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Endpoint) org.nd4j.shade.protobuf.MessageOrBuilder { /** *
     * Name should be either like "CamelCaseName" or
     * "Package.CamelCaseName". Client-language-specific ApiDefs may
     * use a snake_case convention instead of CamelCase.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * Name should be either like "CamelCaseName" or
     * "Package.CamelCaseName". Client-language-specific ApiDefs may
     * use a snake_case convention instead of CamelCase.
     * 
* * string name = 1; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * If this endpoint is deprecated, set deprecation_message to a
     * message that should be logged when the endpoint is used.
     * The message should indicate alternative endpoint to use, if any.
     * 
* * string deprecation_message = 2; */ java.lang.String getDeprecationMessage(); /** *
     * If this endpoint is deprecated, set deprecation_message to a
     * message that should be logged when the endpoint is used.
     * The message should indicate alternative endpoint to use, if any.
     * 
* * string deprecation_message = 2; */ org.nd4j.shade.protobuf.ByteString getDeprecationMessageBytes(); } /** *
   * If you specify any endpoint, this will replace all of the
   * inherited endpoints.  The first endpoint should be the
   * "canonical" endpoint, and should not be deprecated (unless all
   * endpoints are deprecated).
   * 
* * Protobuf type {@code tensorflow.ApiDef.Endpoint} */ public static final class Endpoint extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Endpoint) EndpointOrBuilder { private static final long serialVersionUID = 0L; // Use Endpoint.newBuilder() to construct. private Endpoint(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Endpoint() { name_ = ""; deprecationMessage_ = ""; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Endpoint( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); deprecationMessage_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.Endpoint.class, org.tensorflow.framework.ApiDef.Endpoint.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name should be either like "CamelCaseName" or
     * "Package.CamelCaseName". Client-language-specific ApiDefs may
     * use a snake_case convention instead of CamelCase.
     * 
* * 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 { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name should be either like "CamelCaseName" or
     * "Package.CamelCaseName". Client-language-specific ApiDefs may
     * use a snake_case convention instead of CamelCase.
     * 
* * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DEPRECATION_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object deprecationMessage_; /** *
     * If this endpoint is deprecated, set deprecation_message to a
     * message that should be logged when the endpoint is used.
     * The message should indicate alternative endpoint to use, if any.
     * 
* * string deprecation_message = 2; */ public java.lang.String getDeprecationMessage() { java.lang.Object ref = deprecationMessage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deprecationMessage_ = s; return s; } } /** *
     * If this endpoint is deprecated, set deprecation_message to a
     * message that should be logged when the endpoint is used.
     * The message should indicate alternative endpoint to use, if any.
     * 
* * string deprecation_message = 2; */ public org.nd4j.shade.protobuf.ByteString getDeprecationMessageBytes() { java.lang.Object ref = deprecationMessage_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deprecationMessage_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDeprecationMessageBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, deprecationMessage_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getDeprecationMessageBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, deprecationMessage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.ApiDef.Endpoint)) { return super.equals(obj); } org.tensorflow.framework.ApiDef.Endpoint other = (org.tensorflow.framework.ApiDef.Endpoint) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getDeprecationMessage() .equals(other.getDeprecationMessage()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DEPRECATION_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getDeprecationMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Endpoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Endpoint parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Endpoint parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.ApiDef.Endpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * If you specify any endpoint, this will replace all of the
     * inherited endpoints.  The first endpoint should be the
     * "canonical" endpoint, and should not be deprecated (unless all
     * endpoints are deprecated).
     * 
* * Protobuf type {@code tensorflow.ApiDef.Endpoint} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Endpoint) org.tensorflow.framework.ApiDef.EndpointOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.Endpoint.class, org.tensorflow.framework.ApiDef.Endpoint.Builder.class); } // Construct using org.tensorflow.framework.ApiDef.Endpoint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; deprecationMessage_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; } public org.tensorflow.framework.ApiDef.Endpoint getDefaultInstanceForType() { return org.tensorflow.framework.ApiDef.Endpoint.getDefaultInstance(); } public org.tensorflow.framework.ApiDef.Endpoint build() { org.tensorflow.framework.ApiDef.Endpoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.ApiDef.Endpoint buildPartial() { org.tensorflow.framework.ApiDef.Endpoint result = new org.tensorflow.framework.ApiDef.Endpoint(this); result.name_ = name_; result.deprecationMessage_ = deprecationMessage_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.framework.ApiDef.Endpoint) { return mergeFrom((org.tensorflow.framework.ApiDef.Endpoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.ApiDef.Endpoint other) { if (other == org.tensorflow.framework.ApiDef.Endpoint.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDeprecationMessage().isEmpty()) { deprecationMessage_ = other.deprecationMessage_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.ApiDef.Endpoint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.ApiDef.Endpoint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name should be either like "CamelCaseName" or
       * "Package.CamelCaseName". Client-language-specific ApiDefs may
       * use a snake_case convention instead of CamelCase.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name should be either like "CamelCaseName" or
       * "Package.CamelCaseName". Client-language-specific ApiDefs may
       * use a snake_case convention instead of CamelCase.
       * 
* * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * Name should be either like "CamelCaseName" or
       * "Package.CamelCaseName". Client-language-specific ApiDefs may
       * use a snake_case convention instead of CamelCase.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name should be either like "CamelCaseName" or
       * "Package.CamelCaseName". Client-language-specific ApiDefs may
       * use a snake_case convention instead of CamelCase.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name should be either like "CamelCaseName" or
       * "Package.CamelCaseName". Client-language-specific ApiDefs may
       * use a snake_case convention instead of CamelCase.
       * 
* * string name = 1; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object deprecationMessage_ = ""; /** *
       * If this endpoint is deprecated, set deprecation_message to a
       * message that should be logged when the endpoint is used.
       * The message should indicate alternative endpoint to use, if any.
       * 
* * string deprecation_message = 2; */ public java.lang.String getDeprecationMessage() { java.lang.Object ref = deprecationMessage_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deprecationMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If this endpoint is deprecated, set deprecation_message to a
       * message that should be logged when the endpoint is used.
       * The message should indicate alternative endpoint to use, if any.
       * 
* * string deprecation_message = 2; */ public org.nd4j.shade.protobuf.ByteString getDeprecationMessageBytes() { java.lang.Object ref = deprecationMessage_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deprecationMessage_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * If this endpoint is deprecated, set deprecation_message to a
       * message that should be logged when the endpoint is used.
       * The message should indicate alternative endpoint to use, if any.
       * 
* * string deprecation_message = 2; */ public Builder setDeprecationMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deprecationMessage_ = value; onChanged(); return this; } /** *
       * If this endpoint is deprecated, set deprecation_message to a
       * message that should be logged when the endpoint is used.
       * The message should indicate alternative endpoint to use, if any.
       * 
* * string deprecation_message = 2; */ public Builder clearDeprecationMessage() { deprecationMessage_ = getDefaultInstance().getDeprecationMessage(); onChanged(); return this; } /** *
       * If this endpoint is deprecated, set deprecation_message to a
       * message that should be logged when the endpoint is used.
       * The message should indicate alternative endpoint to use, if any.
       * 
* * string deprecation_message = 2; */ public Builder setDeprecationMessageBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deprecationMessage_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef.Endpoint) } // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Endpoint) private static final org.tensorflow.framework.ApiDef.Endpoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.ApiDef.Endpoint(); } public static org.tensorflow.framework.ApiDef.Endpoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Endpoint parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Endpoint(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.ApiDef.Endpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ArgOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Arg) org.nd4j.shade.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * Change the name used to access this arg in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ java.lang.String getRenameTo(); /** *
     * Change the name used to access this arg in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ org.nd4j.shade.protobuf.ByteString getRenameToBytes(); /** *
     * Note: this will replace any inherited arg doc. There is no
     * current way of modifying arg descriptions (other than replacing
     * them entirely) as can be done with op descriptions.
     * 
* * string description = 3; */ java.lang.String getDescription(); /** *
     * Note: this will replace any inherited arg doc. There is no
     * current way of modifying arg descriptions (other than replacing
     * them entirely) as can be done with op descriptions.
     * 
* * string description = 3; */ org.nd4j.shade.protobuf.ByteString getDescriptionBytes(); } /** * Protobuf type {@code tensorflow.ApiDef.Arg} */ public static final class Arg extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Arg) ArgOrBuilder { private static final long serialVersionUID = 0L; // Use Arg.newBuilder() to construct. private Arg(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Arg() { name_ = ""; renameTo_ = ""; description_ = ""; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Arg( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); renameTo_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.Arg.class, org.tensorflow.framework.ApiDef.Arg.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int RENAME_TO_FIELD_NUMBER = 2; private volatile java.lang.Object renameTo_; /** *
     * Change the name used to access this arg in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ public java.lang.String getRenameTo() { java.lang.Object ref = renameTo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); renameTo_ = s; return s; } } /** *
     * Change the name used to access this arg in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ public org.nd4j.shade.protobuf.ByteString getRenameToBytes() { java.lang.Object ref = renameTo_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); renameTo_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
     * Note: this will replace any inherited arg doc. There is no
     * current way of modifying arg descriptions (other than replacing
     * them entirely) as can be done with op descriptions.
     * 
* * string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Note: this will replace any inherited arg doc. There is no
     * current way of modifying arg descriptions (other than replacing
     * them entirely) as can be done with op descriptions.
     * 
* * string description = 3; */ public org.nd4j.shade.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getRenameToBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, renameTo_); } if (!getDescriptionBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getRenameToBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, renameTo_); } if (!getDescriptionBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.ApiDef.Arg)) { return super.equals(obj); } org.tensorflow.framework.ApiDef.Arg other = (org.tensorflow.framework.ApiDef.Arg) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRenameTo() .equals(other.getRenameTo()); result = result && getDescription() .equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; hash = (53 * hash) + getRenameTo().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.ApiDef.Arg parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Arg parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Arg parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Arg parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Arg parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Arg parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Arg parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Arg parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Arg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Arg parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Arg parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Arg parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.ApiDef.Arg prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.ApiDef.Arg} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Arg) org.tensorflow.framework.ApiDef.ArgOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.Arg.class, org.tensorflow.framework.ApiDef.Arg.Builder.class); } // Construct using org.tensorflow.framework.ApiDef.Arg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; renameTo_ = ""; description_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; } public org.tensorflow.framework.ApiDef.Arg getDefaultInstanceForType() { return org.tensorflow.framework.ApiDef.Arg.getDefaultInstance(); } public org.tensorflow.framework.ApiDef.Arg build() { org.tensorflow.framework.ApiDef.Arg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.ApiDef.Arg buildPartial() { org.tensorflow.framework.ApiDef.Arg result = new org.tensorflow.framework.ApiDef.Arg(this); result.name_ = name_; result.renameTo_ = renameTo_; result.description_ = description_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.framework.ApiDef.Arg) { return mergeFrom((org.tensorflow.framework.ApiDef.Arg)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.ApiDef.Arg other) { if (other == org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.ApiDef.Arg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.ApiDef.Arg) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object renameTo_ = ""; /** *
       * Change the name used to access this arg in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public java.lang.String getRenameTo() { java.lang.Object ref = renameTo_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); renameTo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Change the name used to access this arg in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public org.nd4j.shade.protobuf.ByteString getRenameToBytes() { java.lang.Object ref = renameTo_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); renameTo_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * Change the name used to access this arg in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public Builder setRenameTo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } renameTo_ = value; onChanged(); return this; } /** *
       * Change the name used to access this arg in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public Builder clearRenameTo() { renameTo_ = getDefaultInstance().getRenameTo(); onChanged(); return this; } /** *
       * Change the name used to access this arg in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public Builder setRenameToBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); renameTo_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Note: this will replace any inherited arg doc. There is no
       * current way of modifying arg descriptions (other than replacing
       * them entirely) as can be done with op descriptions.
       * 
* * string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Note: this will replace any inherited arg doc. There is no
       * current way of modifying arg descriptions (other than replacing
       * them entirely) as can be done with op descriptions.
       * 
* * string description = 3; */ public org.nd4j.shade.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * Note: this will replace any inherited arg doc. There is no
       * current way of modifying arg descriptions (other than replacing
       * them entirely) as can be done with op descriptions.
       * 
* * string description = 3; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Note: this will replace any inherited arg doc. There is no
       * current way of modifying arg descriptions (other than replacing
       * them entirely) as can be done with op descriptions.
       * 
* * string description = 3; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Note: this will replace any inherited arg doc. There is no
       * current way of modifying arg descriptions (other than replacing
       * them entirely) as can be done with op descriptions.
       * 
* * string description = 3; */ public Builder setDescriptionBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef.Arg) } // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Arg) private static final org.tensorflow.framework.ApiDef.Arg DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.ApiDef.Arg(); } public static org.tensorflow.framework.ApiDef.Arg getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Arg parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Arg(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.ApiDef.Arg getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttrOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Attr) org.nd4j.shade.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ org.nd4j.shade.protobuf.ByteString getNameBytes(); /** *
     * Change the name used to access this attr in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ java.lang.String getRenameTo(); /** *
     * Change the name used to access this attr in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ org.nd4j.shade.protobuf.ByteString getRenameToBytes(); /** *
     * Specify a new default value to use for this attr.  This default
     * will be used when creating new graphs, as opposed to the
     * default in the OpDef, which will be used when interpreting old
     * GraphDefs.
     * 
* * .tensorflow.AttrValue default_value = 3; */ boolean hasDefaultValue(); /** *
     * Specify a new default value to use for this attr.  This default
     * will be used when creating new graphs, as opposed to the
     * default in the OpDef, which will be used when interpreting old
     * GraphDefs.
     * 
* * .tensorflow.AttrValue default_value = 3; */ org.tensorflow.framework.AttrValue getDefaultValue(); /** *
     * Specify a new default value to use for this attr.  This default
     * will be used when creating new graphs, as opposed to the
     * default in the OpDef, which will be used when interpreting old
     * GraphDefs.
     * 
* * .tensorflow.AttrValue default_value = 3; */ org.tensorflow.framework.AttrValueOrBuilder getDefaultValueOrBuilder(); /** *
     * Note: this will replace any inherited attr doc, there is no current
     * way of modifying attr descriptions as can be done with op descriptions.
     * 
* * string description = 4; */ java.lang.String getDescription(); /** *
     * Note: this will replace any inherited attr doc, there is no current
     * way of modifying attr descriptions as can be done with op descriptions.
     * 
* * string description = 4; */ org.nd4j.shade.protobuf.ByteString getDescriptionBytes(); } /** *
   * Description of the graph-construction-time configuration of this
   * Op.  That is to say, this describes the attr fields that will
   * be specified in the NodeDef.
   * 
* * Protobuf type {@code tensorflow.ApiDef.Attr} */ public static final class Attr extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Attr) AttrOrBuilder { private static final long serialVersionUID = 0L; // Use Attr.newBuilder() to construct. private Attr(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Attr() { name_ = ""; renameTo_ = ""; description_ = ""; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Attr( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); renameTo_ = s; break; } case 26: { org.tensorflow.framework.AttrValue.Builder subBuilder = null; if (defaultValue_ != null) { subBuilder = defaultValue_.toBuilder(); } defaultValue_ = input.readMessage(org.tensorflow.framework.AttrValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(defaultValue_); defaultValue_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.Attr.class, org.tensorflow.framework.ApiDef.Attr.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int RENAME_TO_FIELD_NUMBER = 2; private volatile java.lang.Object renameTo_; /** *
     * Change the name used to access this attr in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ public java.lang.String getRenameTo() { java.lang.Object ref = renameTo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); renameTo_ = s; return s; } } /** *
     * Change the name used to access this attr in the API from what
     * is used in the GraphDef.  Note that these names in `backticks`
     * will also be replaced in the summary & description fields.
     * 
* * string rename_to = 2; */ public org.nd4j.shade.protobuf.ByteString getRenameToBytes() { java.lang.Object ref = renameTo_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); renameTo_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; private org.tensorflow.framework.AttrValue defaultValue_; /** *
     * Specify a new default value to use for this attr.  This default
     * will be used when creating new graphs, as opposed to the
     * default in the OpDef, which will be used when interpreting old
     * GraphDefs.
     * 
* * .tensorflow.AttrValue default_value = 3; */ public boolean hasDefaultValue() { return defaultValue_ != null; } /** *
     * Specify a new default value to use for this attr.  This default
     * will be used when creating new graphs, as opposed to the
     * default in the OpDef, which will be used when interpreting old
     * GraphDefs.
     * 
* * .tensorflow.AttrValue default_value = 3; */ public org.tensorflow.framework.AttrValue getDefaultValue() { return defaultValue_ == null ? org.tensorflow.framework.AttrValue.getDefaultInstance() : defaultValue_; } /** *
     * Specify a new default value to use for this attr.  This default
     * will be used when creating new graphs, as opposed to the
     * default in the OpDef, which will be used when interpreting old
     * GraphDefs.
     * 
* * .tensorflow.AttrValue default_value = 3; */ public org.tensorflow.framework.AttrValueOrBuilder getDefaultValueOrBuilder() { return getDefaultValue(); } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** *
     * Note: this will replace any inherited attr doc, there is no current
     * way of modifying attr descriptions as can be done with op descriptions.
     * 
* * string description = 4; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Note: this will replace any inherited attr doc, there is no current
     * way of modifying attr descriptions as can be done with op descriptions.
     * 
* * string description = 4; */ public org.nd4j.shade.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getRenameToBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, renameTo_); } if (defaultValue_ != null) { output.writeMessage(3, getDefaultValue()); } if (!getDescriptionBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getRenameToBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, renameTo_); } if (defaultValue_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(3, getDefaultValue()); } if (!getDescriptionBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.ApiDef.Attr)) { return super.equals(obj); } org.tensorflow.framework.ApiDef.Attr other = (org.tensorflow.framework.ApiDef.Attr) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRenameTo() .equals(other.getRenameTo()); result = result && (hasDefaultValue() == other.hasDefaultValue()); if (hasDefaultValue()) { result = result && getDefaultValue() .equals(other.getDefaultValue()); } result = result && getDescription() .equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; hash = (53 * hash) + getRenameTo().hashCode(); if (hasDefaultValue()) { hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.ApiDef.Attr parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Attr parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Attr parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Attr parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Attr parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef.Attr parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Attr parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Attr parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Attr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Attr parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef.Attr parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef.Attr parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.ApiDef.Attr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Description of the graph-construction-time configuration of this
     * Op.  That is to say, this describes the attr fields that will
     * be specified in the NodeDef.
     * 
* * Protobuf type {@code tensorflow.ApiDef.Attr} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Attr) org.tensorflow.framework.ApiDef.AttrOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.Attr.class, org.tensorflow.framework.ApiDef.Attr.Builder.class); } // Construct using org.tensorflow.framework.ApiDef.Attr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; renameTo_ = ""; if (defaultValueBuilder_ == null) { defaultValue_ = null; } else { defaultValue_ = null; defaultValueBuilder_ = null; } description_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; } public org.tensorflow.framework.ApiDef.Attr getDefaultInstanceForType() { return org.tensorflow.framework.ApiDef.Attr.getDefaultInstance(); } public org.tensorflow.framework.ApiDef.Attr build() { org.tensorflow.framework.ApiDef.Attr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.ApiDef.Attr buildPartial() { org.tensorflow.framework.ApiDef.Attr result = new org.tensorflow.framework.ApiDef.Attr(this); result.name_ = name_; result.renameTo_ = renameTo_; if (defaultValueBuilder_ == null) { result.defaultValue_ = defaultValue_; } else { result.defaultValue_ = defaultValueBuilder_.build(); } result.description_ = description_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.framework.ApiDef.Attr) { return mergeFrom((org.tensorflow.framework.ApiDef.Attr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.ApiDef.Attr other) { if (other == org.tensorflow.framework.ApiDef.Attr.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (other.hasDefaultValue()) { mergeDefaultValue(other.getDefaultValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.ApiDef.Attr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.ApiDef.Attr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object renameTo_ = ""; /** *
       * Change the name used to access this attr in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public java.lang.String getRenameTo() { java.lang.Object ref = renameTo_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); renameTo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Change the name used to access this attr in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public org.nd4j.shade.protobuf.ByteString getRenameToBytes() { java.lang.Object ref = renameTo_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); renameTo_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * Change the name used to access this attr in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public Builder setRenameTo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } renameTo_ = value; onChanged(); return this; } /** *
       * Change the name used to access this attr in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public Builder clearRenameTo() { renameTo_ = getDefaultInstance().getRenameTo(); onChanged(); return this; } /** *
       * Change the name used to access this attr in the API from what
       * is used in the GraphDef.  Note that these names in `backticks`
       * will also be replaced in the summary & description fields.
       * 
* * string rename_to = 2; */ public Builder setRenameToBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); renameTo_ = value; onChanged(); return this; } private org.tensorflow.framework.AttrValue defaultValue_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder> defaultValueBuilder_; /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public boolean hasDefaultValue() { return defaultValueBuilder_ != null || defaultValue_ != null; } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public org.tensorflow.framework.AttrValue getDefaultValue() { if (defaultValueBuilder_ == null) { return defaultValue_ == null ? org.tensorflow.framework.AttrValue.getDefaultInstance() : defaultValue_; } else { return defaultValueBuilder_.getMessage(); } } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public Builder setDefaultValue(org.tensorflow.framework.AttrValue value) { if (defaultValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultValue_ = value; onChanged(); } else { defaultValueBuilder_.setMessage(value); } return this; } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public Builder setDefaultValue( org.tensorflow.framework.AttrValue.Builder builderForValue) { if (defaultValueBuilder_ == null) { defaultValue_ = builderForValue.build(); onChanged(); } else { defaultValueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public Builder mergeDefaultValue(org.tensorflow.framework.AttrValue value) { if (defaultValueBuilder_ == null) { if (defaultValue_ != null) { defaultValue_ = org.tensorflow.framework.AttrValue.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); } else { defaultValue_ = value; } onChanged(); } else { defaultValueBuilder_.mergeFrom(value); } return this; } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public Builder clearDefaultValue() { if (defaultValueBuilder_ == null) { defaultValue_ = null; onChanged(); } else { defaultValue_ = null; defaultValueBuilder_ = null; } return this; } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public org.tensorflow.framework.AttrValue.Builder getDefaultValueBuilder() { onChanged(); return getDefaultValueFieldBuilder().getBuilder(); } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ public org.tensorflow.framework.AttrValueOrBuilder getDefaultValueOrBuilder() { if (defaultValueBuilder_ != null) { return defaultValueBuilder_.getMessageOrBuilder(); } else { return defaultValue_ == null ? org.tensorflow.framework.AttrValue.getDefaultInstance() : defaultValue_; } } /** *
       * Specify a new default value to use for this attr.  This default
       * will be used when creating new graphs, as opposed to the
       * default in the OpDef, which will be used when interpreting old
       * GraphDefs.
       * 
* * .tensorflow.AttrValue default_value = 3; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder> getDefaultValueFieldBuilder() { if (defaultValueBuilder_ == null) { defaultValueBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder>( getDefaultValue(), getParentForChildren(), isClean()); defaultValue_ = null; } return defaultValueBuilder_; } private java.lang.Object description_ = ""; /** *
       * Note: this will replace any inherited attr doc, there is no current
       * way of modifying attr descriptions as can be done with op descriptions.
       * 
* * string description = 4; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Note: this will replace any inherited attr doc, there is no current
       * way of modifying attr descriptions as can be done with op descriptions.
       * 
* * string description = 4; */ public org.nd4j.shade.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
       * Note: this will replace any inherited attr doc, there is no current
       * way of modifying attr descriptions as can be done with op descriptions.
       * 
* * string description = 4; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Note: this will replace any inherited attr doc, there is no current
       * way of modifying attr descriptions as can be done with op descriptions.
       * 
* * string description = 4; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Note: this will replace any inherited attr doc, there is no current
       * way of modifying attr descriptions as can be done with op descriptions.
       * 
* * string description = 4; */ public Builder setDescriptionBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef.Attr) } // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Attr) private static final org.tensorflow.framework.ApiDef.Attr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.ApiDef.Attr(); } public static org.tensorflow.framework.ApiDef.Attr getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public Attr parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new Attr(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.ApiDef.Attr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int GRAPH_OP_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object graphOpName_; /** *
   * Name of the op (in the OpDef) to specify the API for.
   * 
* * string graph_op_name = 1; */ public java.lang.String getGraphOpName() { java.lang.Object ref = graphOpName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); graphOpName_ = s; return s; } } /** *
   * Name of the op (in the OpDef) to specify the API for.
   * 
* * string graph_op_name = 1; */ public org.nd4j.shade.protobuf.ByteString getGraphOpNameBytes() { java.lang.Object ref = graphOpName_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); graphOpName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int VISIBILITY_FIELD_NUMBER = 2; private int visibility_; /** * .tensorflow.ApiDef.Visibility visibility = 2; */ public int getVisibilityValue() { return visibility_; } /** * .tensorflow.ApiDef.Visibility visibility = 2; */ public org.tensorflow.framework.ApiDef.Visibility getVisibility() { org.tensorflow.framework.ApiDef.Visibility result = org.tensorflow.framework.ApiDef.Visibility.valueOf(visibility_); return result == null ? org.tensorflow.framework.ApiDef.Visibility.UNRECOGNIZED : result; } public static final int ENDPOINT_FIELD_NUMBER = 3; private java.util.List endpoint_; /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public java.util.List getEndpointList() { return endpoint_; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public java.util.List getEndpointOrBuilderList() { return endpoint_; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public int getEndpointCount() { return endpoint_.size(); } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public org.tensorflow.framework.ApiDef.Endpoint getEndpoint(int index) { return endpoint_.get(index); } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public org.tensorflow.framework.ApiDef.EndpointOrBuilder getEndpointOrBuilder( int index) { return endpoint_.get(index); } public static final int IN_ARG_FIELD_NUMBER = 4; private java.util.List inArg_; /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public java.util.List getInArgList() { return inArg_; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public java.util.List getInArgOrBuilderList() { return inArg_; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public int getInArgCount() { return inArg_.size(); } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public org.tensorflow.framework.ApiDef.Arg getInArg(int index) { return inArg_.get(index); } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public org.tensorflow.framework.ApiDef.ArgOrBuilder getInArgOrBuilder( int index) { return inArg_.get(index); } public static final int OUT_ARG_FIELD_NUMBER = 5; private java.util.List outArg_; /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public java.util.List getOutArgList() { return outArg_; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public java.util.List getOutArgOrBuilderList() { return outArg_; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public int getOutArgCount() { return outArg_.size(); } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public org.tensorflow.framework.ApiDef.Arg getOutArg(int index) { return outArg_.get(index); } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public org.tensorflow.framework.ApiDef.ArgOrBuilder getOutArgOrBuilder( int index) { return outArg_.get(index); } public static final int ARG_ORDER_FIELD_NUMBER = 11; private org.nd4j.shade.protobuf.LazyStringList argOrder_; /** *
   * List of original in_arg names to specify new argument order.
   * Length of arg_order should be either empty to keep current order
   * or match size of in_arg.
   * 
* * repeated string arg_order = 11; */ public org.nd4j.shade.protobuf.ProtocolStringList getArgOrderList() { return argOrder_; } /** *
   * List of original in_arg names to specify new argument order.
   * Length of arg_order should be either empty to keep current order
   * or match size of in_arg.
   * 
* * repeated string arg_order = 11; */ public int getArgOrderCount() { return argOrder_.size(); } /** *
   * List of original in_arg names to specify new argument order.
   * Length of arg_order should be either empty to keep current order
   * or match size of in_arg.
   * 
* * repeated string arg_order = 11; */ public java.lang.String getArgOrder(int index) { return argOrder_.get(index); } /** *
   * List of original in_arg names to specify new argument order.
   * Length of arg_order should be either empty to keep current order
   * or match size of in_arg.
   * 
* * repeated string arg_order = 11; */ public org.nd4j.shade.protobuf.ByteString getArgOrderBytes(int index) { return argOrder_.getByteString(index); } public static final int ATTR_FIELD_NUMBER = 6; private java.util.List attr_; /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public java.util.List getAttrList() { return attr_; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public java.util.List getAttrOrBuilderList() { return attr_; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public int getAttrCount() { return attr_.size(); } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public org.tensorflow.framework.ApiDef.Attr getAttr(int index) { return attr_.get(index); } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public org.tensorflow.framework.ApiDef.AttrOrBuilder getAttrOrBuilder( int index) { return attr_.get(index); } public static final int SUMMARY_FIELD_NUMBER = 7; private volatile java.lang.Object summary_; /** *
   * One-line human-readable description of what the Op does.
   * 
* * string summary = 7; */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } } /** *
   * One-line human-readable description of what the Op does.
   * 
* * string summary = 7; */ public org.nd4j.shade.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); summary_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 8; private volatile java.lang.Object description_; /** *
   * Additional, longer human-readable description of what the Op does.
   * 
* * string description = 8; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
   * Additional, longer human-readable description of what the Op does.
   * 
* * string description = 8; */ public org.nd4j.shade.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DESCRIPTION_PREFIX_FIELD_NUMBER = 9; private volatile java.lang.Object descriptionPrefix_; /** *
   * Modify an existing/inherited description by adding text to the beginning
   * or end.
   * 
* * string description_prefix = 9; */ public java.lang.String getDescriptionPrefix() { java.lang.Object ref = descriptionPrefix_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptionPrefix_ = s; return s; } } /** *
   * Modify an existing/inherited description by adding text to the beginning
   * or end.
   * 
* * string description_prefix = 9; */ public org.nd4j.shade.protobuf.ByteString getDescriptionPrefixBytes() { java.lang.Object ref = descriptionPrefix_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptionPrefix_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DESCRIPTION_SUFFIX_FIELD_NUMBER = 10; private volatile java.lang.Object descriptionSuffix_; /** * string description_suffix = 10; */ public java.lang.String getDescriptionSuffix() { java.lang.Object ref = descriptionSuffix_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptionSuffix_ = s; return s; } } /** * string description_suffix = 10; */ public org.nd4j.shade.protobuf.ByteString getDescriptionSuffixBytes() { java.lang.Object ref = descriptionSuffix_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptionSuffix_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getGraphOpNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, graphOpName_); } if (visibility_ != org.tensorflow.framework.ApiDef.Visibility.DEFAULT_VISIBILITY.getNumber()) { output.writeEnum(2, visibility_); } for (int i = 0; i < endpoint_.size(); i++) { output.writeMessage(3, endpoint_.get(i)); } for (int i = 0; i < inArg_.size(); i++) { output.writeMessage(4, inArg_.get(i)); } for (int i = 0; i < outArg_.size(); i++) { output.writeMessage(5, outArg_.get(i)); } for (int i = 0; i < attr_.size(); i++) { output.writeMessage(6, attr_.get(i)); } if (!getSummaryBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 7, summary_); } if (!getDescriptionBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 8, description_); } if (!getDescriptionPrefixBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 9, descriptionPrefix_); } if (!getDescriptionSuffixBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 10, descriptionSuffix_); } for (int i = 0; i < argOrder_.size(); i++) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 11, argOrder_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getGraphOpNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, graphOpName_); } if (visibility_ != org.tensorflow.framework.ApiDef.Visibility.DEFAULT_VISIBILITY.getNumber()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeEnumSize(2, visibility_); } for (int i = 0; i < endpoint_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(3, endpoint_.get(i)); } for (int i = 0; i < inArg_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(4, inArg_.get(i)); } for (int i = 0; i < outArg_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(5, outArg_.get(i)); } for (int i = 0; i < attr_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(6, attr_.get(i)); } if (!getSummaryBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(7, summary_); } if (!getDescriptionBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(8, description_); } if (!getDescriptionPrefixBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(9, descriptionPrefix_); } if (!getDescriptionSuffixBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(10, descriptionSuffix_); } { int dataSize = 0; for (int i = 0; i < argOrder_.size(); i++) { dataSize += computeStringSizeNoTag(argOrder_.getRaw(i)); } size += dataSize; size += 1 * getArgOrderList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.ApiDef)) { return super.equals(obj); } org.tensorflow.framework.ApiDef other = (org.tensorflow.framework.ApiDef) obj; boolean result = true; result = result && getGraphOpName() .equals(other.getGraphOpName()); result = result && visibility_ == other.visibility_; result = result && getEndpointList() .equals(other.getEndpointList()); result = result && getInArgList() .equals(other.getInArgList()); result = result && getOutArgList() .equals(other.getOutArgList()); result = result && getArgOrderList() .equals(other.getArgOrderList()); result = result && getAttrList() .equals(other.getAttrList()); result = result && getSummary() .equals(other.getSummary()); result = result && getDescription() .equals(other.getDescription()); result = result && getDescriptionPrefix() .equals(other.getDescriptionPrefix()); result = result && getDescriptionSuffix() .equals(other.getDescriptionSuffix()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + GRAPH_OP_NAME_FIELD_NUMBER; hash = (53 * hash) + getGraphOpName().hashCode(); hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + visibility_; if (getEndpointCount() > 0) { hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpointList().hashCode(); } if (getInArgCount() > 0) { hash = (37 * hash) + IN_ARG_FIELD_NUMBER; hash = (53 * hash) + getInArgList().hashCode(); } if (getOutArgCount() > 0) { hash = (37 * hash) + OUT_ARG_FIELD_NUMBER; hash = (53 * hash) + getOutArgList().hashCode(); } if (getArgOrderCount() > 0) { hash = (37 * hash) + ARG_ORDER_FIELD_NUMBER; hash = (53 * hash) + getArgOrderList().hashCode(); } if (getAttrCount() > 0) { hash = (37 * hash) + ATTR_FIELD_NUMBER; hash = (53 * hash) + getAttrList().hashCode(); } hash = (37 * hash) + SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getSummary().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DESCRIPTION_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getDescriptionPrefix().hashCode(); hash = (37 * hash) + DESCRIPTION_SUFFIX_FIELD_NUMBER; hash = (53 * hash) + getDescriptionSuffix().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.ApiDef parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.ApiDef parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.ApiDef parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.ApiDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.ApiDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.ApiDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Used to specify and override the default API & behavior in the
   * generated code for client languages, from what you would get from
   * the OpDef alone. There will be a set of ApiDefs that are common
   * to all client languages, and another set per client language.
   * The per-client-language ApiDefs will inherit values from the
   * common ApiDefs which it can either replace or modify.
   * We separate the API definition from the OpDef so we can evolve the
   * API while remaining backwards compatible when interpretting old
   * graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
   * ApiDefs message.
   * WARNING: Be *very* careful changing the API for any existing op --
   * you can change the semantics of existing code.  These changes may
   * need to wait until a major release of TensorFlow to avoid breaking
   * our compatibility promises.
   * 
* * Protobuf type {@code tensorflow.ApiDef} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef) org.tensorflow.framework.ApiDefOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.ApiDef.class, org.tensorflow.framework.ApiDef.Builder.class); } // Construct using org.tensorflow.framework.ApiDef.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEndpointFieldBuilder(); getInArgFieldBuilder(); getOutArgFieldBuilder(); getAttrFieldBuilder(); } } public Builder clear() { super.clear(); graphOpName_ = ""; visibility_ = 0; if (endpointBuilder_ == null) { endpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { endpointBuilder_.clear(); } if (inArgBuilder_ == null) { inArg_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { inArgBuilder_.clear(); } if (outArgBuilder_ == null) { outArg_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { outArgBuilder_.clear(); } argOrder_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); if (attrBuilder_ == null) { attr_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { attrBuilder_.clear(); } summary_ = ""; description_ = ""; descriptionPrefix_ = ""; descriptionSuffix_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; } public org.tensorflow.framework.ApiDef getDefaultInstanceForType() { return org.tensorflow.framework.ApiDef.getDefaultInstance(); } public org.tensorflow.framework.ApiDef build() { org.tensorflow.framework.ApiDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.ApiDef buildPartial() { org.tensorflow.framework.ApiDef result = new org.tensorflow.framework.ApiDef(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.graphOpName_ = graphOpName_; result.visibility_ = visibility_; if (endpointBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { endpoint_ = java.util.Collections.unmodifiableList(endpoint_); bitField0_ = (bitField0_ & ~0x00000004); } result.endpoint_ = endpoint_; } else { result.endpoint_ = endpointBuilder_.build(); } if (inArgBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { inArg_ = java.util.Collections.unmodifiableList(inArg_); bitField0_ = (bitField0_ & ~0x00000008); } result.inArg_ = inArg_; } else { result.inArg_ = inArgBuilder_.build(); } if (outArgBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { outArg_ = java.util.Collections.unmodifiableList(outArg_); bitField0_ = (bitField0_ & ~0x00000010); } result.outArg_ = outArg_; } else { result.outArg_ = outArgBuilder_.build(); } if (((bitField0_ & 0x00000020) == 0x00000020)) { argOrder_ = argOrder_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.argOrder_ = argOrder_; if (attrBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { attr_ = java.util.Collections.unmodifiableList(attr_); bitField0_ = (bitField0_ & ~0x00000040); } result.attr_ = attr_; } else { result.attr_ = attrBuilder_.build(); } result.summary_ = summary_; result.description_ = description_; result.descriptionPrefix_ = descriptionPrefix_; result.descriptionSuffix_ = descriptionSuffix_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.framework.ApiDef) { return mergeFrom((org.tensorflow.framework.ApiDef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.ApiDef other) { if (other == org.tensorflow.framework.ApiDef.getDefaultInstance()) return this; if (!other.getGraphOpName().isEmpty()) { graphOpName_ = other.graphOpName_; onChanged(); } if (other.visibility_ != 0) { setVisibilityValue(other.getVisibilityValue()); } if (endpointBuilder_ == null) { if (!other.endpoint_.isEmpty()) { if (endpoint_.isEmpty()) { endpoint_ = other.endpoint_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureEndpointIsMutable(); endpoint_.addAll(other.endpoint_); } onChanged(); } } else { if (!other.endpoint_.isEmpty()) { if (endpointBuilder_.isEmpty()) { endpointBuilder_.dispose(); endpointBuilder_ = null; endpoint_ = other.endpoint_; bitField0_ = (bitField0_ & ~0x00000004); endpointBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndpointFieldBuilder() : null; } else { endpointBuilder_.addAllMessages(other.endpoint_); } } } if (inArgBuilder_ == null) { if (!other.inArg_.isEmpty()) { if (inArg_.isEmpty()) { inArg_ = other.inArg_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureInArgIsMutable(); inArg_.addAll(other.inArg_); } onChanged(); } } else { if (!other.inArg_.isEmpty()) { if (inArgBuilder_.isEmpty()) { inArgBuilder_.dispose(); inArgBuilder_ = null; inArg_ = other.inArg_; bitField0_ = (bitField0_ & ~0x00000008); inArgBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInArgFieldBuilder() : null; } else { inArgBuilder_.addAllMessages(other.inArg_); } } } if (outArgBuilder_ == null) { if (!other.outArg_.isEmpty()) { if (outArg_.isEmpty()) { outArg_ = other.outArg_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureOutArgIsMutable(); outArg_.addAll(other.outArg_); } onChanged(); } } else { if (!other.outArg_.isEmpty()) { if (outArgBuilder_.isEmpty()) { outArgBuilder_.dispose(); outArgBuilder_ = null; outArg_ = other.outArg_; bitField0_ = (bitField0_ & ~0x00000010); outArgBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutArgFieldBuilder() : null; } else { outArgBuilder_.addAllMessages(other.outArg_); } } } if (!other.argOrder_.isEmpty()) { if (argOrder_.isEmpty()) { argOrder_ = other.argOrder_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureArgOrderIsMutable(); argOrder_.addAll(other.argOrder_); } onChanged(); } if (attrBuilder_ == null) { if (!other.attr_.isEmpty()) { if (attr_.isEmpty()) { attr_ = other.attr_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAttrIsMutable(); attr_.addAll(other.attr_); } onChanged(); } } else { if (!other.attr_.isEmpty()) { if (attrBuilder_.isEmpty()) { attrBuilder_.dispose(); attrBuilder_ = null; attr_ = other.attr_; bitField0_ = (bitField0_ & ~0x00000040); attrBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttrFieldBuilder() : null; } else { attrBuilder_.addAllMessages(other.attr_); } } } if (!other.getSummary().isEmpty()) { summary_ = other.summary_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getDescriptionPrefix().isEmpty()) { descriptionPrefix_ = other.descriptionPrefix_; onChanged(); } if (!other.getDescriptionSuffix().isEmpty()) { descriptionSuffix_ = other.descriptionSuffix_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.ApiDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.ApiDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object graphOpName_ = ""; /** *
     * Name of the op (in the OpDef) to specify the API for.
     * 
* * string graph_op_name = 1; */ public java.lang.String getGraphOpName() { java.lang.Object ref = graphOpName_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); graphOpName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the op (in the OpDef) to specify the API for.
     * 
* * string graph_op_name = 1; */ public org.nd4j.shade.protobuf.ByteString getGraphOpNameBytes() { java.lang.Object ref = graphOpName_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); graphOpName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * Name of the op (in the OpDef) to specify the API for.
     * 
* * string graph_op_name = 1; */ public Builder setGraphOpName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } graphOpName_ = value; onChanged(); return this; } /** *
     * Name of the op (in the OpDef) to specify the API for.
     * 
* * string graph_op_name = 1; */ public Builder clearGraphOpName() { graphOpName_ = getDefaultInstance().getGraphOpName(); onChanged(); return this; } /** *
     * Name of the op (in the OpDef) to specify the API for.
     * 
* * string graph_op_name = 1; */ public Builder setGraphOpNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); graphOpName_ = value; onChanged(); return this; } private int visibility_ = 0; /** * .tensorflow.ApiDef.Visibility visibility = 2; */ public int getVisibilityValue() { return visibility_; } /** * .tensorflow.ApiDef.Visibility visibility = 2; */ public Builder setVisibilityValue(int value) { visibility_ = value; onChanged(); return this; } /** * .tensorflow.ApiDef.Visibility visibility = 2; */ public org.tensorflow.framework.ApiDef.Visibility getVisibility() { org.tensorflow.framework.ApiDef.Visibility result = org.tensorflow.framework.ApiDef.Visibility.valueOf(visibility_); return result == null ? org.tensorflow.framework.ApiDef.Visibility.UNRECOGNIZED : result; } /** * .tensorflow.ApiDef.Visibility visibility = 2; */ public Builder setVisibility(org.tensorflow.framework.ApiDef.Visibility value) { if (value == null) { throw new NullPointerException(); } visibility_ = value.getNumber(); onChanged(); return this; } /** * .tensorflow.ApiDef.Visibility visibility = 2; */ public Builder clearVisibility() { visibility_ = 0; onChanged(); return this; } private java.util.List endpoint_ = java.util.Collections.emptyList(); private void ensureEndpointIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { endpoint_ = new java.util.ArrayList(endpoint_); bitField0_ |= 0x00000004; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Endpoint, org.tensorflow.framework.ApiDef.Endpoint.Builder, org.tensorflow.framework.ApiDef.EndpointOrBuilder> endpointBuilder_; /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public java.util.List getEndpointList() { if (endpointBuilder_ == null) { return java.util.Collections.unmodifiableList(endpoint_); } else { return endpointBuilder_.getMessageList(); } } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public int getEndpointCount() { if (endpointBuilder_ == null) { return endpoint_.size(); } else { return endpointBuilder_.getCount(); } } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public org.tensorflow.framework.ApiDef.Endpoint getEndpoint(int index) { if (endpointBuilder_ == null) { return endpoint_.get(index); } else { return endpointBuilder_.getMessage(index); } } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder setEndpoint( int index, org.tensorflow.framework.ApiDef.Endpoint value) { if (endpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointIsMutable(); endpoint_.set(index, value); onChanged(); } else { endpointBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder setEndpoint( int index, org.tensorflow.framework.ApiDef.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.set(index, builderForValue.build()); onChanged(); } else { endpointBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder addEndpoint(org.tensorflow.framework.ApiDef.Endpoint value) { if (endpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointIsMutable(); endpoint_.add(value); onChanged(); } else { endpointBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder addEndpoint( int index, org.tensorflow.framework.ApiDef.Endpoint value) { if (endpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointIsMutable(); endpoint_.add(index, value); onChanged(); } else { endpointBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder addEndpoint( org.tensorflow.framework.ApiDef.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.add(builderForValue.build()); onChanged(); } else { endpointBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder addEndpoint( int index, org.tensorflow.framework.ApiDef.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.add(index, builderForValue.build()); onChanged(); } else { endpointBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder addAllEndpoint( java.lang.Iterable values) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, endpoint_); onChanged(); } else { endpointBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { endpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { endpointBuilder_.clear(); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public Builder removeEndpoint(int index) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.remove(index); onChanged(); } else { endpointBuilder_.remove(index); } return this; } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public org.tensorflow.framework.ApiDef.Endpoint.Builder getEndpointBuilder( int index) { return getEndpointFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public org.tensorflow.framework.ApiDef.EndpointOrBuilder getEndpointOrBuilder( int index) { if (endpointBuilder_ == null) { return endpoint_.get(index); } else { return endpointBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public java.util.List getEndpointOrBuilderList() { if (endpointBuilder_ != null) { return endpointBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(endpoint_); } } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public org.tensorflow.framework.ApiDef.Endpoint.Builder addEndpointBuilder() { return getEndpointFieldBuilder().addBuilder( org.tensorflow.framework.ApiDef.Endpoint.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public org.tensorflow.framework.ApiDef.Endpoint.Builder addEndpointBuilder( int index) { return getEndpointFieldBuilder().addBuilder( index, org.tensorflow.framework.ApiDef.Endpoint.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; */ public java.util.List getEndpointBuilderList() { return getEndpointFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Endpoint, org.tensorflow.framework.ApiDef.Endpoint.Builder, org.tensorflow.framework.ApiDef.EndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { endpointBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Endpoint, org.tensorflow.framework.ApiDef.Endpoint.Builder, org.tensorflow.framework.ApiDef.EndpointOrBuilder>( endpoint_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); endpoint_ = null; } return endpointBuilder_; } private java.util.List inArg_ = java.util.Collections.emptyList(); private void ensureInArgIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { inArg_ = new java.util.ArrayList(inArg_); bitField0_ |= 0x00000008; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Arg, org.tensorflow.framework.ApiDef.Arg.Builder, org.tensorflow.framework.ApiDef.ArgOrBuilder> inArgBuilder_; /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public java.util.List getInArgList() { if (inArgBuilder_ == null) { return java.util.Collections.unmodifiableList(inArg_); } else { return inArgBuilder_.getMessageList(); } } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public int getInArgCount() { if (inArgBuilder_ == null) { return inArg_.size(); } else { return inArgBuilder_.getCount(); } } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public org.tensorflow.framework.ApiDef.Arg getInArg(int index) { if (inArgBuilder_ == null) { return inArg_.get(index); } else { return inArgBuilder_.getMessage(index); } } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder setInArg( int index, org.tensorflow.framework.ApiDef.Arg value) { if (inArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInArgIsMutable(); inArg_.set(index, value); onChanged(); } else { inArgBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder setInArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.set(index, builderForValue.build()); onChanged(); } else { inArgBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder addInArg(org.tensorflow.framework.ApiDef.Arg value) { if (inArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInArgIsMutable(); inArg_.add(value); onChanged(); } else { inArgBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder addInArg( int index, org.tensorflow.framework.ApiDef.Arg value) { if (inArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInArgIsMutable(); inArg_.add(index, value); onChanged(); } else { inArgBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder addInArg( org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.add(builderForValue.build()); onChanged(); } else { inArgBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder addInArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.add(index, builderForValue.build()); onChanged(); } else { inArgBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder addAllInArg( java.lang.Iterable values) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, inArg_); onChanged(); } else { inArgBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder clearInArg() { if (inArgBuilder_ == null) { inArg_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { inArgBuilder_.clear(); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public Builder removeInArg(int index) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.remove(index); onChanged(); } else { inArgBuilder_.remove(index); } return this; } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public org.tensorflow.framework.ApiDef.Arg.Builder getInArgBuilder( int index) { return getInArgFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public org.tensorflow.framework.ApiDef.ArgOrBuilder getInArgOrBuilder( int index) { if (inArgBuilder_ == null) { return inArg_.get(index); } else { return inArgBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public java.util.List getInArgOrBuilderList() { if (inArgBuilder_ != null) { return inArgBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inArg_); } } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public org.tensorflow.framework.ApiDef.Arg.Builder addInArgBuilder() { return getInArgFieldBuilder().addBuilder( org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public org.tensorflow.framework.ApiDef.Arg.Builder addInArgBuilder( int index) { return getInArgFieldBuilder().addBuilder( index, org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Arg in_arg = 4; */ public java.util.List getInArgBuilderList() { return getInArgFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Arg, org.tensorflow.framework.ApiDef.Arg.Builder, org.tensorflow.framework.ApiDef.ArgOrBuilder> getInArgFieldBuilder() { if (inArgBuilder_ == null) { inArgBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Arg, org.tensorflow.framework.ApiDef.Arg.Builder, org.tensorflow.framework.ApiDef.ArgOrBuilder>( inArg_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); inArg_ = null; } return inArgBuilder_; } private java.util.List outArg_ = java.util.Collections.emptyList(); private void ensureOutArgIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { outArg_ = new java.util.ArrayList(outArg_); bitField0_ |= 0x00000010; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Arg, org.tensorflow.framework.ApiDef.Arg.Builder, org.tensorflow.framework.ApiDef.ArgOrBuilder> outArgBuilder_; /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public java.util.List getOutArgList() { if (outArgBuilder_ == null) { return java.util.Collections.unmodifiableList(outArg_); } else { return outArgBuilder_.getMessageList(); } } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public int getOutArgCount() { if (outArgBuilder_ == null) { return outArg_.size(); } else { return outArgBuilder_.getCount(); } } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public org.tensorflow.framework.ApiDef.Arg getOutArg(int index) { if (outArgBuilder_ == null) { return outArg_.get(index); } else { return outArgBuilder_.getMessage(index); } } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder setOutArg( int index, org.tensorflow.framework.ApiDef.Arg value) { if (outArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutArgIsMutable(); outArg_.set(index, value); onChanged(); } else { outArgBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder setOutArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); outArg_.set(index, builderForValue.build()); onChanged(); } else { outArgBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder addOutArg(org.tensorflow.framework.ApiDef.Arg value) { if (outArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutArgIsMutable(); outArg_.add(value); onChanged(); } else { outArgBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder addOutArg( int index, org.tensorflow.framework.ApiDef.Arg value) { if (outArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutArgIsMutable(); outArg_.add(index, value); onChanged(); } else { outArgBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder addOutArg( org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); outArg_.add(builderForValue.build()); onChanged(); } else { outArgBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder addOutArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); outArg_.add(index, builderForValue.build()); onChanged(); } else { outArgBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder addAllOutArg( java.lang.Iterable values) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, outArg_); onChanged(); } else { outArgBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder clearOutArg() { if (outArgBuilder_ == null) { outArg_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { outArgBuilder_.clear(); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public Builder removeOutArg(int index) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); outArg_.remove(index); onChanged(); } else { outArgBuilder_.remove(index); } return this; } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public org.tensorflow.framework.ApiDef.Arg.Builder getOutArgBuilder( int index) { return getOutArgFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public org.tensorflow.framework.ApiDef.ArgOrBuilder getOutArgOrBuilder( int index) { if (outArgBuilder_ == null) { return outArg_.get(index); } else { return outArgBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public java.util.List getOutArgOrBuilderList() { if (outArgBuilder_ != null) { return outArgBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outArg_); } } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public org.tensorflow.framework.ApiDef.Arg.Builder addOutArgBuilder() { return getOutArgFieldBuilder().addBuilder( org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public org.tensorflow.framework.ApiDef.Arg.Builder addOutArgBuilder( int index) { return getOutArgFieldBuilder().addBuilder( index, org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Arg out_arg = 5; */ public java.util.List getOutArgBuilderList() { return getOutArgFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Arg, org.tensorflow.framework.ApiDef.Arg.Builder, org.tensorflow.framework.ApiDef.ArgOrBuilder> getOutArgFieldBuilder() { if (outArgBuilder_ == null) { outArgBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Arg, org.tensorflow.framework.ApiDef.Arg.Builder, org.tensorflow.framework.ApiDef.ArgOrBuilder>( outArg_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); outArg_ = null; } return outArgBuilder_; } private org.nd4j.shade.protobuf.LazyStringList argOrder_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; private void ensureArgOrderIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { argOrder_ = new org.nd4j.shade.protobuf.LazyStringArrayList(argOrder_); bitField0_ |= 0x00000020; } } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public org.nd4j.shade.protobuf.ProtocolStringList getArgOrderList() { return argOrder_.getUnmodifiableView(); } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public int getArgOrderCount() { return argOrder_.size(); } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public java.lang.String getArgOrder(int index) { return argOrder_.get(index); } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public org.nd4j.shade.protobuf.ByteString getArgOrderBytes(int index) { return argOrder_.getByteString(index); } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public Builder setArgOrder( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgOrderIsMutable(); argOrder_.set(index, value); onChanged(); return this; } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public Builder addArgOrder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgOrderIsMutable(); argOrder_.add(value); onChanged(); return this; } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public Builder addAllArgOrder( java.lang.Iterable values) { ensureArgOrderIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, argOrder_); onChanged(); return this; } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public Builder clearArgOrder() { argOrder_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * List of original in_arg names to specify new argument order.
     * Length of arg_order should be either empty to keep current order
     * or match size of in_arg.
     * 
* * repeated string arg_order = 11; */ public Builder addArgOrderBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureArgOrderIsMutable(); argOrder_.add(value); onChanged(); return this; } private java.util.List attr_ = java.util.Collections.emptyList(); private void ensureAttrIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { attr_ = new java.util.ArrayList(attr_); bitField0_ |= 0x00000040; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Attr, org.tensorflow.framework.ApiDef.Attr.Builder, org.tensorflow.framework.ApiDef.AttrOrBuilder> attrBuilder_; /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public java.util.List getAttrList() { if (attrBuilder_ == null) { return java.util.Collections.unmodifiableList(attr_); } else { return attrBuilder_.getMessageList(); } } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public int getAttrCount() { if (attrBuilder_ == null) { return attr_.size(); } else { return attrBuilder_.getCount(); } } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public org.tensorflow.framework.ApiDef.Attr getAttr(int index) { if (attrBuilder_ == null) { return attr_.get(index); } else { return attrBuilder_.getMessage(index); } } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder setAttr( int index, org.tensorflow.framework.ApiDef.Attr value) { if (attrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrIsMutable(); attr_.set(index, value); onChanged(); } else { attrBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder setAttr( int index, org.tensorflow.framework.ApiDef.Attr.Builder builderForValue) { if (attrBuilder_ == null) { ensureAttrIsMutable(); attr_.set(index, builderForValue.build()); onChanged(); } else { attrBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder addAttr(org.tensorflow.framework.ApiDef.Attr value) { if (attrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrIsMutable(); attr_.add(value); onChanged(); } else { attrBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder addAttr( int index, org.tensorflow.framework.ApiDef.Attr value) { if (attrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttrIsMutable(); attr_.add(index, value); onChanged(); } else { attrBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder addAttr( org.tensorflow.framework.ApiDef.Attr.Builder builderForValue) { if (attrBuilder_ == null) { ensureAttrIsMutable(); attr_.add(builderForValue.build()); onChanged(); } else { attrBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder addAttr( int index, org.tensorflow.framework.ApiDef.Attr.Builder builderForValue) { if (attrBuilder_ == null) { ensureAttrIsMutable(); attr_.add(index, builderForValue.build()); onChanged(); } else { attrBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder addAllAttr( java.lang.Iterable values) { if (attrBuilder_ == null) { ensureAttrIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, attr_); onChanged(); } else { attrBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder clearAttr() { if (attrBuilder_ == null) { attr_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { attrBuilder_.clear(); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public Builder removeAttr(int index) { if (attrBuilder_ == null) { ensureAttrIsMutable(); attr_.remove(index); onChanged(); } else { attrBuilder_.remove(index); } return this; } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public org.tensorflow.framework.ApiDef.Attr.Builder getAttrBuilder( int index) { return getAttrFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public org.tensorflow.framework.ApiDef.AttrOrBuilder getAttrOrBuilder( int index) { if (attrBuilder_ == null) { return attr_.get(index); } else { return attrBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public java.util.List getAttrOrBuilderList() { if (attrBuilder_ != null) { return attrBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attr_); } } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public org.tensorflow.framework.ApiDef.Attr.Builder addAttrBuilder() { return getAttrFieldBuilder().addBuilder( org.tensorflow.framework.ApiDef.Attr.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public org.tensorflow.framework.ApiDef.Attr.Builder addAttrBuilder( int index) { return getAttrFieldBuilder().addBuilder( index, org.tensorflow.framework.ApiDef.Attr.getDefaultInstance()); } /** * repeated .tensorflow.ApiDef.Attr attr = 6; */ public java.util.List getAttrBuilderList() { return getAttrFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Attr, org.tensorflow.framework.ApiDef.Attr.Builder, org.tensorflow.framework.ApiDef.AttrOrBuilder> getAttrFieldBuilder() { if (attrBuilder_ == null) { attrBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.ApiDef.Attr, org.tensorflow.framework.ApiDef.Attr.Builder, org.tensorflow.framework.ApiDef.AttrOrBuilder>( attr_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); attr_ = null; } return attrBuilder_; } private java.lang.Object summary_ = ""; /** *
     * One-line human-readable description of what the Op does.
     * 
* * string summary = 7; */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * One-line human-readable description of what the Op does.
     * 
* * string summary = 7; */ public org.nd4j.shade.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); summary_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * One-line human-readable description of what the Op does.
     * 
* * string summary = 7; */ public Builder setSummary( java.lang.String value) { if (value == null) { throw new NullPointerException(); } summary_ = value; onChanged(); return this; } /** *
     * One-line human-readable description of what the Op does.
     * 
* * string summary = 7; */ public Builder clearSummary() { summary_ = getDefaultInstance().getSummary(); onChanged(); return this; } /** *
     * One-line human-readable description of what the Op does.
     * 
* * string summary = 7; */ public Builder setSummaryBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summary_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * Additional, longer human-readable description of what the Op does.
     * 
* * string description = 8; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Additional, longer human-readable description of what the Op does.
     * 
* * string description = 8; */ public org.nd4j.shade.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * Additional, longer human-readable description of what the Op does.
     * 
* * string description = 8; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
     * Additional, longer human-readable description of what the Op does.
     * 
* * string description = 8; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * Additional, longer human-readable description of what the Op does.
     * 
* * string description = 8; */ public Builder setDescriptionBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object descriptionPrefix_ = ""; /** *
     * Modify an existing/inherited description by adding text to the beginning
     * or end.
     * 
* * string description_prefix = 9; */ public java.lang.String getDescriptionPrefix() { java.lang.Object ref = descriptionPrefix_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptionPrefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Modify an existing/inherited description by adding text to the beginning
     * or end.
     * 
* * string description_prefix = 9; */ public org.nd4j.shade.protobuf.ByteString getDescriptionPrefixBytes() { java.lang.Object ref = descriptionPrefix_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptionPrefix_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * Modify an existing/inherited description by adding text to the beginning
     * or end.
     * 
* * string description_prefix = 9; */ public Builder setDescriptionPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptionPrefix_ = value; onChanged(); return this; } /** *
     * Modify an existing/inherited description by adding text to the beginning
     * or end.
     * 
* * string description_prefix = 9; */ public Builder clearDescriptionPrefix() { descriptionPrefix_ = getDefaultInstance().getDescriptionPrefix(); onChanged(); return this; } /** *
     * Modify an existing/inherited description by adding text to the beginning
     * or end.
     * 
* * string description_prefix = 9; */ public Builder setDescriptionPrefixBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptionPrefix_ = value; onChanged(); return this; } private java.lang.Object descriptionSuffix_ = ""; /** * string description_suffix = 10; */ public java.lang.String getDescriptionSuffix() { java.lang.Object ref = descriptionSuffix_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptionSuffix_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description_suffix = 10; */ public org.nd4j.shade.protobuf.ByteString getDescriptionSuffixBytes() { java.lang.Object ref = descriptionSuffix_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptionSuffix_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string description_suffix = 10; */ public Builder setDescriptionSuffix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptionSuffix_ = value; onChanged(); return this; } /** * string description_suffix = 10; */ public Builder clearDescriptionSuffix() { descriptionSuffix_ = getDefaultInstance().getDescriptionSuffix(); onChanged(); return this; } /** * string description_suffix = 10; */ public Builder setDescriptionSuffixBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptionSuffix_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef) } // @@protoc_insertion_point(class_scope:tensorflow.ApiDef) private static final org.tensorflow.framework.ApiDef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.ApiDef(); } public static org.tensorflow.framework.ApiDef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public ApiDef parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new ApiDef(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.ApiDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy