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

tensorflow.serving.GetModelMetadata Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow_serving/apis/get_model_metadata.proto

package tensorflow.serving;

public final class GetModelMetadata {
  private GetModelMetadata() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SignatureDefMapOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.serving.SignatureDefMap)
      com.google.protobuf.MessageOrBuilder {

    /**
     * map<string, .tensorflow.SignatureDef> signature_def = 1;
     */
    int getSignatureDefCount();
    /**
     * map<string, .tensorflow.SignatureDef> signature_def = 1;
     */
    boolean containsSignatureDef(
        java.lang.String key);
    /**
     * Use {@link #getSignatureDefMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map
    getSignatureDef();
    /**
     * map<string, .tensorflow.SignatureDef> signature_def = 1;
     */
    java.util.Map
    getSignatureDefMap();
    /**
     * map<string, .tensorflow.SignatureDef> signature_def = 1;
     */

    org.tensorflow.framework.SignatureDef getSignatureDefOrDefault(
        java.lang.String key,
        org.tensorflow.framework.SignatureDef defaultValue);
    /**
     * map<string, .tensorflow.SignatureDef> signature_def = 1;
     */

    org.tensorflow.framework.SignatureDef getSignatureDefOrThrow(
        java.lang.String key);
  }
  /**
   * 
   * Message returned for "signature_def" field.
   * 
* * Protobuf type {@code tensorflow.serving.SignatureDefMap} */ public static final class SignatureDefMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.serving.SignatureDefMap) SignatureDefMapOrBuilder { private static final long serialVersionUID = 0L; // Use SignatureDefMap.newBuilder() to construct. private SignatureDefMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignatureDefMap() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SignatureDefMap( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { signatureDef_ = com.google.protobuf.MapField.newMapField( SignatureDefDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry signatureDef__ = input.readMessage( SignatureDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); signatureDef_.getMutableMap().put( signatureDef__.getKey(), signatureDef__.getValue()); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_SignatureDefMap_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_SignatureDefMap_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.serving.GetModelMetadata.SignatureDefMap.class, tensorflow.serving.GetModelMetadata.SignatureDefMap.Builder.class); } public static final int SIGNATURE_DEF_FIELD_NUMBER = 1; private static final class SignatureDefDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.tensorflow.framework.SignatureDef> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_SignatureDefMap_SignatureDefEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.tensorflow.framework.SignatureDef.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.SignatureDef> signatureDef_; private com.google.protobuf.MapField internalGetSignatureDef() { if (signatureDef_ == null) { return com.google.protobuf.MapField.emptyMapField( SignatureDefDefaultEntryHolder.defaultEntry); } return signatureDef_; } public int getSignatureDefCount() { return internalGetSignatureDef().getMap().size(); } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public boolean containsSignatureDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSignatureDef().getMap().containsKey(key); } /** * Use {@link #getSignatureDefMap()} instead. */ @java.lang.Deprecated public java.util.Map getSignatureDef() { return getSignatureDefMap(); } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public java.util.Map getSignatureDefMap() { return internalGetSignatureDef().getMap(); } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrDefault( java.lang.String key, org.tensorflow.framework.SignatureDef defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSignatureDef(), SignatureDefDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetSignatureDef().getMap().entrySet()) { com.google.protobuf.MapEntry signatureDef__ = SignatureDefDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, signatureDef__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.serving.GetModelMetadata.SignatureDefMap)) { return super.equals(obj); } tensorflow.serving.GetModelMetadata.SignatureDefMap other = (tensorflow.serving.GetModelMetadata.SignatureDefMap) obj; boolean result = true; result = result && internalGetSignatureDef().equals( other.internalGetSignatureDef()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetSignatureDef().getMap().isEmpty()) { hash = (37 * hash) + SIGNATURE_DEF_FIELD_NUMBER; hash = (53 * hash) + internalGetSignatureDef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.serving.GetModelMetadata.SignatureDefMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Message returned for "signature_def" field.
     * 
* * Protobuf type {@code tensorflow.serving.SignatureDefMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.serving.SignatureDefMap) tensorflow.serving.GetModelMetadata.SignatureDefMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_SignatureDefMap_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_SignatureDefMap_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.serving.GetModelMetadata.SignatureDefMap.class, tensorflow.serving.GetModelMetadata.SignatureDefMap.Builder.class); } // Construct using tensorflow.serving.GetModelMetadata.SignatureDefMap.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableSignatureDef().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_SignatureDefMap_descriptor; } @java.lang.Override public tensorflow.serving.GetModelMetadata.SignatureDefMap getDefaultInstanceForType() { return tensorflow.serving.GetModelMetadata.SignatureDefMap.getDefaultInstance(); } @java.lang.Override public tensorflow.serving.GetModelMetadata.SignatureDefMap build() { tensorflow.serving.GetModelMetadata.SignatureDefMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.serving.GetModelMetadata.SignatureDefMap buildPartial() { tensorflow.serving.GetModelMetadata.SignatureDefMap result = new tensorflow.serving.GetModelMetadata.SignatureDefMap(this); int from_bitField0_ = bitField0_; result.signatureDef_ = internalGetSignatureDef(); result.signatureDef_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.serving.GetModelMetadata.SignatureDefMap) { return mergeFrom((tensorflow.serving.GetModelMetadata.SignatureDefMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.serving.GetModelMetadata.SignatureDefMap other) { if (other == tensorflow.serving.GetModelMetadata.SignatureDefMap.getDefaultInstance()) return this; internalGetMutableSignatureDef().mergeFrom( other.internalGetSignatureDef()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.serving.GetModelMetadata.SignatureDefMap parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.serving.GetModelMetadata.SignatureDefMap) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.SignatureDef> signatureDef_; private com.google.protobuf.MapField internalGetSignatureDef() { if (signatureDef_ == null) { return com.google.protobuf.MapField.emptyMapField( SignatureDefDefaultEntryHolder.defaultEntry); } return signatureDef_; } private com.google.protobuf.MapField internalGetMutableSignatureDef() { onChanged();; if (signatureDef_ == null) { signatureDef_ = com.google.protobuf.MapField.newMapField( SignatureDefDefaultEntryHolder.defaultEntry); } if (!signatureDef_.isMutable()) { signatureDef_ = signatureDef_.copy(); } return signatureDef_; } public int getSignatureDefCount() { return internalGetSignatureDef().getMap().size(); } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public boolean containsSignatureDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSignatureDef().getMap().containsKey(key); } /** * Use {@link #getSignatureDefMap()} instead. */ @java.lang.Deprecated public java.util.Map getSignatureDef() { return getSignatureDefMap(); } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public java.util.Map getSignatureDefMap() { return internalGetSignatureDef().getMap(); } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrDefault( java.lang.String key, org.tensorflow.framework.SignatureDef defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSignatureDef() { internalGetMutableSignatureDef().getMutableMap() .clear(); return this; } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public Builder removeSignatureDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableSignatureDef().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSignatureDef() { return internalGetMutableSignatureDef().getMutableMap(); } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public Builder putSignatureDef( java.lang.String key, org.tensorflow.framework.SignatureDef value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableSignatureDef().getMutableMap() .put(key, value); return this; } /** * map<string, .tensorflow.SignatureDef> signature_def = 1; */ public Builder putAllSignatureDef( java.util.Map values) { internalGetMutableSignatureDef().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.serving.SignatureDefMap) } // @@protoc_insertion_point(class_scope:tensorflow.serving.SignatureDefMap) private static final tensorflow.serving.GetModelMetadata.SignatureDefMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.serving.GetModelMetadata.SignatureDefMap(); } public static tensorflow.serving.GetModelMetadata.SignatureDefMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SignatureDefMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignatureDefMap(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.serving.GetModelMetadata.SignatureDefMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetModelMetadataRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.serving.GetModelMetadataRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Model Specification indicating which model we are querying for metadata.
     * If version is not specified, will use the latest (numerical) version.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ boolean hasModelSpec(); /** *
     * Model Specification indicating which model we are querying for metadata.
     * If version is not specified, will use the latest (numerical) version.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ tensorflow.serving.Model.ModelSpec getModelSpec(); /** *
     * Model Specification indicating which model we are querying for metadata.
     * If version is not specified, will use the latest (numerical) version.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ tensorflow.serving.Model.ModelSpecOrBuilder getModelSpecOrBuilder(); /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ java.util.List getMetadataFieldList(); /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ int getMetadataFieldCount(); /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ java.lang.String getMetadataField(int index); /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ com.google.protobuf.ByteString getMetadataFieldBytes(int index); } /** * Protobuf type {@code tensorflow.serving.GetModelMetadataRequest} */ public static final class GetModelMetadataRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.serving.GetModelMetadataRequest) GetModelMetadataRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetModelMetadataRequest.newBuilder() to construct. private GetModelMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetModelMetadataRequest() { metadataField_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetModelMetadataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tensorflow.serving.Model.ModelSpec.Builder subBuilder = null; if (modelSpec_ != null) { subBuilder = modelSpec_.toBuilder(); } modelSpec_ = input.readMessage(tensorflow.serving.Model.ModelSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modelSpec_); modelSpec_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { metadataField_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } metadataField_.add(s); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { metadataField_ = metadataField_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.serving.GetModelMetadata.GetModelMetadataRequest.class, tensorflow.serving.GetModelMetadata.GetModelMetadataRequest.Builder.class); } private int bitField0_; public static final int MODEL_SPEC_FIELD_NUMBER = 1; private tensorflow.serving.Model.ModelSpec modelSpec_; /** *
     * Model Specification indicating which model we are querying for metadata.
     * If version is not specified, will use the latest (numerical) version.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public boolean hasModelSpec() { return modelSpec_ != null; } /** *
     * Model Specification indicating which model we are querying for metadata.
     * If version is not specified, will use the latest (numerical) version.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpec getModelSpec() { return modelSpec_ == null ? tensorflow.serving.Model.ModelSpec.getDefaultInstance() : modelSpec_; } /** *
     * Model Specification indicating which model we are querying for metadata.
     * If version is not specified, will use the latest (numerical) version.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpecOrBuilder getModelSpecOrBuilder() { return getModelSpec(); } public static final int METADATA_FIELD_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList metadataField_; /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ public com.google.protobuf.ProtocolStringList getMetadataFieldList() { return metadataField_; } /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ public int getMetadataFieldCount() { return metadataField_.size(); } /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ public java.lang.String getMetadataField(int index) { return metadataField_.get(index); } /** *
     * Metadata fields to get. Currently supported: "signature_def".
     * 
* * repeated string metadata_field = 2; */ public com.google.protobuf.ByteString getMetadataFieldBytes(int index) { return metadataField_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (modelSpec_ != null) { output.writeMessage(1, getModelSpec()); } for (int i = 0; i < metadataField_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metadataField_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (modelSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModelSpec()); } { int dataSize = 0; for (int i = 0; i < metadataField_.size(); i++) { dataSize += computeStringSizeNoTag(metadataField_.getRaw(i)); } size += dataSize; size += 1 * getMetadataFieldList().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 tensorflow.serving.GetModelMetadata.GetModelMetadataRequest)) { return super.equals(obj); } tensorflow.serving.GetModelMetadata.GetModelMetadataRequest other = (tensorflow.serving.GetModelMetadata.GetModelMetadataRequest) obj; boolean result = true; result = result && (hasModelSpec() == other.hasModelSpec()); if (hasModelSpec()) { result = result && getModelSpec() .equals(other.getModelSpec()); } result = result && getMetadataFieldList() .equals(other.getMetadataFieldList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasModelSpec()) { hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; hash = (53 * hash) + getModelSpec().hashCode(); } if (getMetadataFieldCount() > 0) { hash = (37 * hash) + METADATA_FIELD_FIELD_NUMBER; hash = (53 * hash) + getMetadataFieldList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.serving.GetModelMetadata.GetModelMetadataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.serving.GetModelMetadataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.serving.GetModelMetadataRequest) tensorflow.serving.GetModelMetadata.GetModelMetadataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.serving.GetModelMetadata.GetModelMetadataRequest.class, tensorflow.serving.GetModelMetadata.GetModelMetadataRequest.Builder.class); } // Construct using tensorflow.serving.GetModelMetadata.GetModelMetadataRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (modelSpecBuilder_ == null) { modelSpec_ = null; } else { modelSpec_ = null; modelSpecBuilder_ = null; } metadataField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataRequest_descriptor; } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataRequest getDefaultInstanceForType() { return tensorflow.serving.GetModelMetadata.GetModelMetadataRequest.getDefaultInstance(); } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataRequest build() { tensorflow.serving.GetModelMetadata.GetModelMetadataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataRequest buildPartial() { tensorflow.serving.GetModelMetadata.GetModelMetadataRequest result = new tensorflow.serving.GetModelMetadata.GetModelMetadataRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (modelSpecBuilder_ == null) { result.modelSpec_ = modelSpec_; } else { result.modelSpec_ = modelSpecBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { metadataField_ = metadataField_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.metadataField_ = metadataField_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.serving.GetModelMetadata.GetModelMetadataRequest) { return mergeFrom((tensorflow.serving.GetModelMetadata.GetModelMetadataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.serving.GetModelMetadata.GetModelMetadataRequest other) { if (other == tensorflow.serving.GetModelMetadata.GetModelMetadataRequest.getDefaultInstance()) return this; if (other.hasModelSpec()) { mergeModelSpec(other.getModelSpec()); } if (!other.metadataField_.isEmpty()) { if (metadataField_.isEmpty()) { metadataField_ = other.metadataField_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMetadataFieldIsMutable(); metadataField_.addAll(other.metadataField_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.serving.GetModelMetadata.GetModelMetadataRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.serving.GetModelMetadata.GetModelMetadataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private tensorflow.serving.Model.ModelSpec modelSpec_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.serving.Model.ModelSpec, tensorflow.serving.Model.ModelSpec.Builder, tensorflow.serving.Model.ModelSpecOrBuilder> modelSpecBuilder_; /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public boolean hasModelSpec() { return modelSpecBuilder_ != null || modelSpec_ != null; } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpec getModelSpec() { if (modelSpecBuilder_ == null) { return modelSpec_ == null ? tensorflow.serving.Model.ModelSpec.getDefaultInstance() : modelSpec_; } else { return modelSpecBuilder_.getMessage(); } } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder setModelSpec(tensorflow.serving.Model.ModelSpec value) { if (modelSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelSpec_ = value; onChanged(); } else { modelSpecBuilder_.setMessage(value); } return this; } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder setModelSpec( tensorflow.serving.Model.ModelSpec.Builder builderForValue) { if (modelSpecBuilder_ == null) { modelSpec_ = builderForValue.build(); onChanged(); } else { modelSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder mergeModelSpec(tensorflow.serving.Model.ModelSpec value) { if (modelSpecBuilder_ == null) { if (modelSpec_ != null) { modelSpec_ = tensorflow.serving.Model.ModelSpec.newBuilder(modelSpec_).mergeFrom(value).buildPartial(); } else { modelSpec_ = value; } onChanged(); } else { modelSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder clearModelSpec() { if (modelSpecBuilder_ == null) { modelSpec_ = null; onChanged(); } else { modelSpec_ = null; modelSpecBuilder_ = null; } return this; } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpec.Builder getModelSpecBuilder() { onChanged(); return getModelSpecFieldBuilder().getBuilder(); } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpecOrBuilder getModelSpecOrBuilder() { if (modelSpecBuilder_ != null) { return modelSpecBuilder_.getMessageOrBuilder(); } else { return modelSpec_ == null ? tensorflow.serving.Model.ModelSpec.getDefaultInstance() : modelSpec_; } } /** *
       * Model Specification indicating which model we are querying for metadata.
       * If version is not specified, will use the latest (numerical) version.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.serving.Model.ModelSpec, tensorflow.serving.Model.ModelSpec.Builder, tensorflow.serving.Model.ModelSpecOrBuilder> getModelSpecFieldBuilder() { if (modelSpecBuilder_ == null) { modelSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.serving.Model.ModelSpec, tensorflow.serving.Model.ModelSpec.Builder, tensorflow.serving.Model.ModelSpecOrBuilder>( getModelSpec(), getParentForChildren(), isClean()); modelSpec_ = null; } return modelSpecBuilder_; } private com.google.protobuf.LazyStringList metadataField_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMetadataFieldIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { metadataField_ = new com.google.protobuf.LazyStringArrayList(metadataField_); bitField0_ |= 0x00000002; } } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public com.google.protobuf.ProtocolStringList getMetadataFieldList() { return metadataField_.getUnmodifiableView(); } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public int getMetadataFieldCount() { return metadataField_.size(); } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public java.lang.String getMetadataField(int index) { return metadataField_.get(index); } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public com.google.protobuf.ByteString getMetadataFieldBytes(int index) { return metadataField_.getByteString(index); } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public Builder setMetadataField( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMetadataFieldIsMutable(); metadataField_.set(index, value); onChanged(); return this; } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public Builder addMetadataField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMetadataFieldIsMutable(); metadataField_.add(value); onChanged(); return this; } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public Builder addAllMetadataField( java.lang.Iterable values) { ensureMetadataFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metadataField_); onChanged(); return this; } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public Builder clearMetadataField() { metadataField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Metadata fields to get. Currently supported: "signature_def".
       * 
* * repeated string metadata_field = 2; */ public Builder addMetadataFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMetadataFieldIsMutable(); metadataField_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.serving.GetModelMetadataRequest) } // @@protoc_insertion_point(class_scope:tensorflow.serving.GetModelMetadataRequest) private static final tensorflow.serving.GetModelMetadata.GetModelMetadataRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.serving.GetModelMetadata.GetModelMetadataRequest(); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetModelMetadataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetModelMetadataRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetModelMetadataResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.serving.GetModelMetadataResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Model Specification indicating which model this metadata belongs to.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ boolean hasModelSpec(); /** *
     * Model Specification indicating which model this metadata belongs to.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ tensorflow.serving.Model.ModelSpec getModelSpec(); /** *
     * Model Specification indicating which model this metadata belongs to.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ tensorflow.serving.Model.ModelSpecOrBuilder getModelSpecOrBuilder(); /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ int getMetadataCount(); /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map getMetadata(); /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ java.util.Map getMetadataMap(); /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ com.google.protobuf.Any getMetadataOrDefault( java.lang.String key, com.google.protobuf.Any defaultValue); /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ com.google.protobuf.Any getMetadataOrThrow( java.lang.String key); } /** * Protobuf type {@code tensorflow.serving.GetModelMetadataResponse} */ public static final class GetModelMetadataResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.serving.GetModelMetadataResponse) GetModelMetadataResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetModelMetadataResponse.newBuilder() to construct. private GetModelMetadataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetModelMetadataResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetModelMetadataResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tensorflow.serving.Model.ModelSpec.Builder subBuilder = null; if (modelSpec_ != null) { subBuilder = modelSpec_.toBuilder(); } modelSpec_ = input.readMessage(tensorflow.serving.Model.ModelSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modelSpec_); modelSpec_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); metadata_.getMutableMap().put( metadata__.getKey(), metadata__.getValue()); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.serving.GetModelMetadata.GetModelMetadataResponse.class, tensorflow.serving.GetModelMetadata.GetModelMetadataResponse.Builder.class); } private int bitField0_; public static final int MODEL_SPEC_FIELD_NUMBER = 1; private tensorflow.serving.Model.ModelSpec modelSpec_; /** *
     * Model Specification indicating which model this metadata belongs to.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public boolean hasModelSpec() { return modelSpec_ != null; } /** *
     * Model Specification indicating which model this metadata belongs to.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpec getModelSpec() { return modelSpec_ == null ? tensorflow.serving.Model.ModelSpec.getDefaultInstance() : modelSpec_; } /** *
     * Model Specification indicating which model this metadata belongs to.
     * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpecOrBuilder getModelSpecOrBuilder() { return getModelSpec(); } public static final int METADATA_FIELD_NUMBER = 2; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Any> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataResponse_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Any.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Any> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public com.google.protobuf.Any getMetadataOrDefault( java.lang.String key, com.google.protobuf.Any defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Map of metadata field name to metadata field. The options for metadata
     * field name are listed in GetModelMetadataRequest. Currently supported:
     * "signature_def".
     * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public com.google.protobuf.Any getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (modelSpec_ != null) { output.writeMessage(1, getModelSpec()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (modelSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModelSpec()); } for (java.util.Map.Entry entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, metadata__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.serving.GetModelMetadata.GetModelMetadataResponse)) { return super.equals(obj); } tensorflow.serving.GetModelMetadata.GetModelMetadataResponse other = (tensorflow.serving.GetModelMetadata.GetModelMetadataResponse) obj; boolean result = true; result = result && (hasModelSpec() == other.hasModelSpec()); if (hasModelSpec()) { result = result && getModelSpec() .equals(other.getModelSpec()); } result = result && internalGetMetadata().equals( other.internalGetMetadata()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasModelSpec()) { hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; hash = (53 * hash) + getModelSpec().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.serving.GetModelMetadata.GetModelMetadataResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.serving.GetModelMetadataResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.serving.GetModelMetadataResponse) tensorflow.serving.GetModelMetadata.GetModelMetadataResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.serving.GetModelMetadata.GetModelMetadataResponse.class, tensorflow.serving.GetModelMetadata.GetModelMetadataResponse.Builder.class); } // Construct using tensorflow.serving.GetModelMetadata.GetModelMetadataResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (modelSpecBuilder_ == null) { modelSpec_ = null; } else { modelSpec_ = null; modelSpecBuilder_ = null; } internalGetMutableMetadata().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.serving.GetModelMetadata.internal_static_tensorflow_serving_GetModelMetadataResponse_descriptor; } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataResponse getDefaultInstanceForType() { return tensorflow.serving.GetModelMetadata.GetModelMetadataResponse.getDefaultInstance(); } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataResponse build() { tensorflow.serving.GetModelMetadata.GetModelMetadataResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataResponse buildPartial() { tensorflow.serving.GetModelMetadata.GetModelMetadataResponse result = new tensorflow.serving.GetModelMetadata.GetModelMetadataResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (modelSpecBuilder_ == null) { result.modelSpec_ = modelSpec_; } else { result.modelSpec_ = modelSpecBuilder_.build(); } result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.serving.GetModelMetadata.GetModelMetadataResponse) { return mergeFrom((tensorflow.serving.GetModelMetadata.GetModelMetadataResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.serving.GetModelMetadata.GetModelMetadataResponse other) { if (other == tensorflow.serving.GetModelMetadata.GetModelMetadataResponse.getDefaultInstance()) return this; if (other.hasModelSpec()) { mergeModelSpec(other.getModelSpec()); } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.serving.GetModelMetadata.GetModelMetadataResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.serving.GetModelMetadata.GetModelMetadataResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private tensorflow.serving.Model.ModelSpec modelSpec_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.serving.Model.ModelSpec, tensorflow.serving.Model.ModelSpec.Builder, tensorflow.serving.Model.ModelSpecOrBuilder> modelSpecBuilder_; /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public boolean hasModelSpec() { return modelSpecBuilder_ != null || modelSpec_ != null; } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpec getModelSpec() { if (modelSpecBuilder_ == null) { return modelSpec_ == null ? tensorflow.serving.Model.ModelSpec.getDefaultInstance() : modelSpec_; } else { return modelSpecBuilder_.getMessage(); } } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder setModelSpec(tensorflow.serving.Model.ModelSpec value) { if (modelSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelSpec_ = value; onChanged(); } else { modelSpecBuilder_.setMessage(value); } return this; } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder setModelSpec( tensorflow.serving.Model.ModelSpec.Builder builderForValue) { if (modelSpecBuilder_ == null) { modelSpec_ = builderForValue.build(); onChanged(); } else { modelSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder mergeModelSpec(tensorflow.serving.Model.ModelSpec value) { if (modelSpecBuilder_ == null) { if (modelSpec_ != null) { modelSpec_ = tensorflow.serving.Model.ModelSpec.newBuilder(modelSpec_).mergeFrom(value).buildPartial(); } else { modelSpec_ = value; } onChanged(); } else { modelSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public Builder clearModelSpec() { if (modelSpecBuilder_ == null) { modelSpec_ = null; onChanged(); } else { modelSpec_ = null; modelSpecBuilder_ = null; } return this; } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpec.Builder getModelSpecBuilder() { onChanged(); return getModelSpecFieldBuilder().getBuilder(); } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ public tensorflow.serving.Model.ModelSpecOrBuilder getModelSpecOrBuilder() { if (modelSpecBuilder_ != null) { return modelSpecBuilder_.getMessageOrBuilder(); } else { return modelSpec_ == null ? tensorflow.serving.Model.ModelSpec.getDefaultInstance() : modelSpec_; } } /** *
       * Model Specification indicating which model this metadata belongs to.
       * 
* * .tensorflow.serving.ModelSpec model_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.serving.Model.ModelSpec, tensorflow.serving.Model.ModelSpec.Builder, tensorflow.serving.Model.ModelSpecOrBuilder> getModelSpecFieldBuilder() { if (modelSpecBuilder_ == null) { modelSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.serving.Model.ModelSpec, tensorflow.serving.Model.ModelSpec.Builder, tensorflow.serving.Model.ModelSpecOrBuilder>( getModelSpec(), getParentForChildren(), isClean()); modelSpec_ = null; } return modelSpecBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Any> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField internalGetMutableMetadata() { onChanged();; if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
       * Map of metadata field name to metadata field. The options for metadata
       * field name are listed in GetModelMetadataRequest. Currently supported:
       * "signature_def".
       * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
       * Map of metadata field name to metadata field. The options for metadata
       * field name are listed in GetModelMetadataRequest. Currently supported:
       * "signature_def".
       * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * Map of metadata field name to metadata field. The options for metadata
       * field name are listed in GetModelMetadataRequest. Currently supported:
       * "signature_def".
       * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public com.google.protobuf.Any getMetadataOrDefault( java.lang.String key, com.google.protobuf.Any defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Map of metadata field name to metadata field. The options for metadata
       * field name are listed in GetModelMetadataRequest. Currently supported:
       * "signature_def".
       * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public com.google.protobuf.Any getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { internalGetMutableMetadata().getMutableMap() .clear(); return this; } /** *
       * Map of metadata field name to metadata field. The options for metadata
       * field name are listed in GetModelMetadataRequest. Currently supported:
       * "signature_def".
       * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** *
       * Map of metadata field name to metadata field. The options for metadata
       * field name are listed in GetModelMetadataRequest. Currently supported:
       * "signature_def".
       * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public Builder putMetadata( java.lang.String key, com.google.protobuf.Any value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * Map of metadata field name to metadata field. The options for metadata
       * field name are listed in GetModelMetadataRequest. Currently supported:
       * "signature_def".
       * 
* * map<string, .google.protobuf.Any> metadata = 2; */ public Builder putAllMetadata( java.util.Map values) { internalGetMutableMetadata().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.serving.GetModelMetadataResponse) } // @@protoc_insertion_point(class_scope:tensorflow.serving.GetModelMetadataResponse) private static final tensorflow.serving.GetModelMetadata.GetModelMetadataResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.serving.GetModelMetadata.GetModelMetadataResponse(); } public static tensorflow.serving.GetModelMetadata.GetModelMetadataResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetModelMetadataResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetModelMetadataResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.serving.GetModelMetadata.GetModelMetadataResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_serving_SignatureDefMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_serving_SignatureDefMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_serving_SignatureDefMap_SignatureDefEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_serving_SignatureDefMap_SignatureDefEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_serving_GetModelMetadataRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_serving_GetModelMetadataRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_serving_GetModelMetadataResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_serving_GetModelMetadataResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_serving_GetModelMetadataResponse_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_serving_GetModelMetadataResponse_MetadataEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n0tensorflow_serving/apis/get_model_meta" + "data.proto\022\022tensorflow.serving\032\031google/p" + "rotobuf/any.proto\032)tensorflow/core/proto" + "buf/meta_graph.proto\032#tensorflow_serving" + "/apis/model.proto\"\256\001\n\017SignatureDefMap\022L\n" + "\rsignature_def\030\001 \003(\01325.tensorflow.servin" + "g.SignatureDefMap.SignatureDefEntry\032M\n\021S" + "ignatureDefEntry\022\013\n\003key\030\001 \001(\t\022\'\n\005value\030\002" + " \001(\0132\030.tensorflow.SignatureDef:\0028\001\"d\n\027Ge" + "tModelMetadataRequest\0221\n\nmodel_spec\030\001 \001(" + "\0132\035.tensorflow.serving.ModelSpec\022\026\n\016meta" + "data_field\030\002 \003(\t\"\342\001\n\030GetModelMetadataRes" + "ponse\0221\n\nmodel_spec\030\001 \001(\0132\035.tensorflow.s" + "erving.ModelSpec\022L\n\010metadata\030\002 \003(\0132:.ten" + "sorflow.serving.GetModelMetadataResponse" + ".MetadataEntry\032E\n\rMetadataEntry\022\013\n\003key\030\001" + " \001(\t\022#\n\005value\030\002 \001(\0132\024.google.protobuf.An" + "y:\0028\001B\003\370\001\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), org.tensorflow.framework.MetaGraphProtos.getDescriptor(), tensorflow.serving.Model.getDescriptor(), }, assigner); internal_static_tensorflow_serving_SignatureDefMap_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tensorflow_serving_SignatureDefMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_serving_SignatureDefMap_descriptor, new java.lang.String[] { "SignatureDef", }); internal_static_tensorflow_serving_SignatureDefMap_SignatureDefEntry_descriptor = internal_static_tensorflow_serving_SignatureDefMap_descriptor.getNestedTypes().get(0); internal_static_tensorflow_serving_SignatureDefMap_SignatureDefEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_serving_SignatureDefMap_SignatureDefEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_tensorflow_serving_GetModelMetadataRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tensorflow_serving_GetModelMetadataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_serving_GetModelMetadataRequest_descriptor, new java.lang.String[] { "ModelSpec", "MetadataField", }); internal_static_tensorflow_serving_GetModelMetadataResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tensorflow_serving_GetModelMetadataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_serving_GetModelMetadataResponse_descriptor, new java.lang.String[] { "ModelSpec", "Metadata", }); internal_static_tensorflow_serving_GetModelMetadataResponse_MetadataEntry_descriptor = internal_static_tensorflow_serving_GetModelMetadataResponse_descriptor.getNestedTypes().get(0); internal_static_tensorflow_serving_GetModelMetadataResponse_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_serving_GetModelMetadataResponse_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.AnyProto.getDescriptor(); org.tensorflow.framework.MetaGraphProtos.getDescriptor(); tensorflow.serving.Model.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy