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

com.clarifai.grpc.api.APIPostModelOutputsCollectorSource Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * This is configuration for using the inputs send for model prediction in our API as
 * as the source for data.
 * 
* * Protobuf type {@code clarifai.api.APIPostModelOutputsCollectorSource} */ public final class APIPostModelOutputsCollectorSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.APIPostModelOutputsCollectorSource) APIPostModelOutputsCollectorSourceOrBuilder { private static final long serialVersionUID = 0L; // Use APIPostModelOutputsCollectorSource.newBuilder() to construct. private APIPostModelOutputsCollectorSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private APIPostModelOutputsCollectorSource() { modelUserId_ = ""; modelAppId_ = ""; modelId_ = ""; modelVersionId_ = ""; postInputsKeyId_ = ""; callerUserId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new APIPostModelOutputsCollectorSource(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private APIPostModelOutputsCollectorSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { java.lang.String s = input.readStringRequireUtf8(); modelUserId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); modelAppId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); modelId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); modelVersionId_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); postInputsKeyId_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); callerUserId_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 com.clarifai.grpc.api.Resources.internal_static_clarifai_api_APIPostModelOutputsCollectorSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_APIPostModelOutputsCollectorSource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.APIPostModelOutputsCollectorSource.class, com.clarifai.grpc.api.APIPostModelOutputsCollectorSource.Builder.class); } public static final int MODEL_USER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object modelUserId_; /** *
   * To define the model that we should collect from we need to specify the following 4 IDs:
   * The User ID of the model we want to collect from.
   * This is User B in the example.
   * 
* * string model_user_id = 1; * @return The modelUserId. */ @java.lang.Override public java.lang.String getModelUserId() { java.lang.Object ref = modelUserId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelUserId_ = s; return s; } } /** *
   * To define the model that we should collect from we need to specify the following 4 IDs:
   * The User ID of the model we want to collect from.
   * This is User B in the example.
   * 
* * string model_user_id = 1; * @return The bytes for modelUserId. */ @java.lang.Override public com.google.protobuf.ByteString getModelUserIdBytes() { java.lang.Object ref = modelUserId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelUserId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODEL_APP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object modelAppId_; /** *
   * The App ID of the model we want to collect from.
   * 
* * string model_app_id = 2; * @return The modelAppId. */ @java.lang.Override public java.lang.String getModelAppId() { java.lang.Object ref = modelAppId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelAppId_ = s; return s; } } /** *
   * The App ID of the model we want to collect from.
   * 
* * string model_app_id = 2; * @return The bytes for modelAppId. */ @java.lang.Override public com.google.protobuf.ByteString getModelAppIdBytes() { java.lang.Object ref = modelAppId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelAppId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODEL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object modelId_; /** *
   * The Model ID of the model we want to collect from.
   * 
* * string model_id = 3; * @return The modelId. */ @java.lang.Override public java.lang.String getModelId() { java.lang.Object ref = modelId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelId_ = s; return s; } } /** *
   * The Model ID of the model we want to collect from.
   * 
* * string model_id = 3; * @return The bytes for modelId. */ @java.lang.Override public com.google.protobuf.ByteString getModelIdBytes() { java.lang.Object ref = modelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object modelVersionId_; /** *
   * The Version ID of the model we want to collect from.
   * 
* * string model_version_id = 4; * @return The modelVersionId. */ @java.lang.Override public java.lang.String getModelVersionId() { java.lang.Object ref = modelVersionId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelVersionId_ = s; return s; } } /** *
   * The Version ID of the model we want to collect from.
   * 
* * string model_version_id = 4; * @return The bytes for modelVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getModelVersionIdBytes() { java.lang.Object ref = modelVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POST_INPUTS_KEY_ID_FIELD_NUMBER = 5; private volatile java.lang.Object postInputsKeyId_; /** *
   * This key is used to POST /inputs into your app by the collector. It can be an API key or a
   * PAT. This needs the permissions that are needed for POST /inputs for the app_id this
   * Collector is defined in.
   * 
* * string post_inputs_key_id = 5; * @return The postInputsKeyId. */ @java.lang.Override public java.lang.String getPostInputsKeyId() { java.lang.Object ref = postInputsKeyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postInputsKeyId_ = s; return s; } } /** *
   * This key is used to POST /inputs into your app by the collector. It can be an API key or a
   * PAT. This needs the permissions that are needed for POST /inputs for the app_id this
   * Collector is defined in.
   * 
* * string post_inputs_key_id = 5; * @return The bytes for postInputsKeyId. */ @java.lang.Override public com.google.protobuf.ByteString getPostInputsKeyIdBytes() { java.lang.Object ref = postInputsKeyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postInputsKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALLER_USER_ID_FIELD_NUMBER = 6; private volatile java.lang.Object callerUserId_; /** *
   * This is a private field that defaults to the app owner for public users.
   * If this is left blank then this collector will collect from ALL users calling the given model.
   * 
* * string caller_user_id = 6; * @return The callerUserId. */ @java.lang.Override public java.lang.String getCallerUserId() { java.lang.Object ref = callerUserId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerUserId_ = s; return s; } } /** *
   * This is a private field that defaults to the app owner for public users.
   * If this is left blank then this collector will collect from ALL users calling the given model.
   * 
* * string caller_user_id = 6; * @return The bytes for callerUserId. */ @java.lang.Override public com.google.protobuf.ByteString getCallerUserIdBytes() { java.lang.Object ref = callerUserId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerUserId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelUserId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelUserId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelAppId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelAppId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postInputsKeyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, postInputsKeyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerUserId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, callerUserId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelUserId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelUserId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelAppId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelAppId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postInputsKeyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, postInputsKeyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerUserId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, callerUserId_); } 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 com.clarifai.grpc.api.APIPostModelOutputsCollectorSource)) { return super.equals(obj); } com.clarifai.grpc.api.APIPostModelOutputsCollectorSource other = (com.clarifai.grpc.api.APIPostModelOutputsCollectorSource) obj; if (!getModelUserId() .equals(other.getModelUserId())) return false; if (!getModelAppId() .equals(other.getModelAppId())) return false; if (!getModelId() .equals(other.getModelId())) return false; if (!getModelVersionId() .equals(other.getModelVersionId())) return false; if (!getPostInputsKeyId() .equals(other.getPostInputsKeyId())) return false; if (!getCallerUserId() .equals(other.getCallerUserId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MODEL_USER_ID_FIELD_NUMBER; hash = (53 * hash) + getModelUserId().hashCode(); hash = (37 * hash) + MODEL_APP_ID_FIELD_NUMBER; hash = (53 * hash) + getModelAppId().hashCode(); hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; hash = (53 * hash) + getModelId().hashCode(); hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getModelVersionId().hashCode(); hash = (37 * hash) + POST_INPUTS_KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getPostInputsKeyId().hashCode(); hash = (37 * hash) + CALLER_USER_ID_FIELD_NUMBER; hash = (53 * hash) + getCallerUserId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource 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 com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource 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 com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource 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(com.clarifai.grpc.api.APIPostModelOutputsCollectorSource 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; } /** *
   * This is configuration for using the inputs send for model prediction in our API as
   * as the source for data.
   * 
* * Protobuf type {@code clarifai.api.APIPostModelOutputsCollectorSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.APIPostModelOutputsCollectorSource) com.clarifai.grpc.api.APIPostModelOutputsCollectorSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_APIPostModelOutputsCollectorSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_APIPostModelOutputsCollectorSource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.APIPostModelOutputsCollectorSource.class, com.clarifai.grpc.api.APIPostModelOutputsCollectorSource.Builder.class); } // Construct using com.clarifai.grpc.api.APIPostModelOutputsCollectorSource.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(); modelUserId_ = ""; modelAppId_ = ""; modelId_ = ""; modelVersionId_ = ""; postInputsKeyId_ = ""; callerUserId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_APIPostModelOutputsCollectorSource_descriptor; } @java.lang.Override public com.clarifai.grpc.api.APIPostModelOutputsCollectorSource getDefaultInstanceForType() { return com.clarifai.grpc.api.APIPostModelOutputsCollectorSource.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.APIPostModelOutputsCollectorSource build() { com.clarifai.grpc.api.APIPostModelOutputsCollectorSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.APIPostModelOutputsCollectorSource buildPartial() { com.clarifai.grpc.api.APIPostModelOutputsCollectorSource result = new com.clarifai.grpc.api.APIPostModelOutputsCollectorSource(this); result.modelUserId_ = modelUserId_; result.modelAppId_ = modelAppId_; result.modelId_ = modelId_; result.modelVersionId_ = modelVersionId_; result.postInputsKeyId_ = postInputsKeyId_; result.callerUserId_ = callerUserId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.APIPostModelOutputsCollectorSource) { return mergeFrom((com.clarifai.grpc.api.APIPostModelOutputsCollectorSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.APIPostModelOutputsCollectorSource other) { if (other == com.clarifai.grpc.api.APIPostModelOutputsCollectorSource.getDefaultInstance()) return this; if (!other.getModelUserId().isEmpty()) { modelUserId_ = other.modelUserId_; onChanged(); } if (!other.getModelAppId().isEmpty()) { modelAppId_ = other.modelAppId_; onChanged(); } if (!other.getModelId().isEmpty()) { modelId_ = other.modelId_; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; onChanged(); } if (!other.getPostInputsKeyId().isEmpty()) { postInputsKeyId_ = other.postInputsKeyId_; onChanged(); } if (!other.getCallerUserId().isEmpty()) { callerUserId_ = other.callerUserId_; 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 { com.clarifai.grpc.api.APIPostModelOutputsCollectorSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.APIPostModelOutputsCollectorSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object modelUserId_ = ""; /** *
     * To define the model that we should collect from we need to specify the following 4 IDs:
     * The User ID of the model we want to collect from.
     * This is User B in the example.
     * 
* * string model_user_id = 1; * @return The modelUserId. */ public java.lang.String getModelUserId() { java.lang.Object ref = modelUserId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelUserId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * To define the model that we should collect from we need to specify the following 4 IDs:
     * The User ID of the model we want to collect from.
     * This is User B in the example.
     * 
* * string model_user_id = 1; * @return The bytes for modelUserId. */ public com.google.protobuf.ByteString getModelUserIdBytes() { java.lang.Object ref = modelUserId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelUserId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * To define the model that we should collect from we need to specify the following 4 IDs:
     * The User ID of the model we want to collect from.
     * This is User B in the example.
     * 
* * string model_user_id = 1; * @param value The modelUserId to set. * @return This builder for chaining. */ public Builder setModelUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modelUserId_ = value; onChanged(); return this; } /** *
     * To define the model that we should collect from we need to specify the following 4 IDs:
     * The User ID of the model we want to collect from.
     * This is User B in the example.
     * 
* * string model_user_id = 1; * @return This builder for chaining. */ public Builder clearModelUserId() { modelUserId_ = getDefaultInstance().getModelUserId(); onChanged(); return this; } /** *
     * To define the model that we should collect from we need to specify the following 4 IDs:
     * The User ID of the model we want to collect from.
     * This is User B in the example.
     * 
* * string model_user_id = 1; * @param value The bytes for modelUserId to set. * @return This builder for chaining. */ public Builder setModelUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modelUserId_ = value; onChanged(); return this; } private java.lang.Object modelAppId_ = ""; /** *
     * The App ID of the model we want to collect from.
     * 
* * string model_app_id = 2; * @return The modelAppId. */ public java.lang.String getModelAppId() { java.lang.Object ref = modelAppId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelAppId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The App ID of the model we want to collect from.
     * 
* * string model_app_id = 2; * @return The bytes for modelAppId. */ public com.google.protobuf.ByteString getModelAppIdBytes() { java.lang.Object ref = modelAppId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelAppId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The App ID of the model we want to collect from.
     * 
* * string model_app_id = 2; * @param value The modelAppId to set. * @return This builder for chaining. */ public Builder setModelAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modelAppId_ = value; onChanged(); return this; } /** *
     * The App ID of the model we want to collect from.
     * 
* * string model_app_id = 2; * @return This builder for chaining. */ public Builder clearModelAppId() { modelAppId_ = getDefaultInstance().getModelAppId(); onChanged(); return this; } /** *
     * The App ID of the model we want to collect from.
     * 
* * string model_app_id = 2; * @param value The bytes for modelAppId to set. * @return This builder for chaining. */ public Builder setModelAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modelAppId_ = value; onChanged(); return this; } private java.lang.Object modelId_ = ""; /** *
     * The Model ID of the model we want to collect from.
     * 
* * string model_id = 3; * @return The modelId. */ public java.lang.String getModelId() { java.lang.Object ref = modelId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The Model ID of the model we want to collect from.
     * 
* * string model_id = 3; * @return The bytes for modelId. */ public com.google.protobuf.ByteString getModelIdBytes() { java.lang.Object ref = modelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The Model ID of the model we want to collect from.
     * 
* * string model_id = 3; * @param value The modelId to set. * @return This builder for chaining. */ public Builder setModelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modelId_ = value; onChanged(); return this; } /** *
     * The Model ID of the model we want to collect from.
     * 
* * string model_id = 3; * @return This builder for chaining. */ public Builder clearModelId() { modelId_ = getDefaultInstance().getModelId(); onChanged(); return this; } /** *
     * The Model ID of the model we want to collect from.
     * 
* * string model_id = 3; * @param value The bytes for modelId to set. * @return This builder for chaining. */ public Builder setModelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modelId_ = value; onChanged(); return this; } private java.lang.Object modelVersionId_ = ""; /** *
     * The Version ID of the model we want to collect from.
     * 
* * string model_version_id = 4; * @return The modelVersionId. */ public java.lang.String getModelVersionId() { java.lang.Object ref = modelVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The Version ID of the model we want to collect from.
     * 
* * string model_version_id = 4; * @return The bytes for modelVersionId. */ public com.google.protobuf.ByteString getModelVersionIdBytes() { java.lang.Object ref = modelVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The Version ID of the model we want to collect from.
     * 
* * string model_version_id = 4; * @param value The modelVersionId to set. * @return This builder for chaining. */ public Builder setModelVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modelVersionId_ = value; onChanged(); return this; } /** *
     * The Version ID of the model we want to collect from.
     * 
* * string model_version_id = 4; * @return This builder for chaining. */ public Builder clearModelVersionId() { modelVersionId_ = getDefaultInstance().getModelVersionId(); onChanged(); return this; } /** *
     * The Version ID of the model we want to collect from.
     * 
* * string model_version_id = 4; * @param value The bytes for modelVersionId to set. * @return This builder for chaining. */ public Builder setModelVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modelVersionId_ = value; onChanged(); return this; } private java.lang.Object postInputsKeyId_ = ""; /** *
     * This key is used to POST /inputs into your app by the collector. It can be an API key or a
     * PAT. This needs the permissions that are needed for POST /inputs for the app_id this
     * Collector is defined in.
     * 
* * string post_inputs_key_id = 5; * @return The postInputsKeyId. */ public java.lang.String getPostInputsKeyId() { java.lang.Object ref = postInputsKeyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postInputsKeyId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This key is used to POST /inputs into your app by the collector. It can be an API key or a
     * PAT. This needs the permissions that are needed for POST /inputs for the app_id this
     * Collector is defined in.
     * 
* * string post_inputs_key_id = 5; * @return The bytes for postInputsKeyId. */ public com.google.protobuf.ByteString getPostInputsKeyIdBytes() { java.lang.Object ref = postInputsKeyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postInputsKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This key is used to POST /inputs into your app by the collector. It can be an API key or a
     * PAT. This needs the permissions that are needed for POST /inputs for the app_id this
     * Collector is defined in.
     * 
* * string post_inputs_key_id = 5; * @param value The postInputsKeyId to set. * @return This builder for chaining. */ public Builder setPostInputsKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } postInputsKeyId_ = value; onChanged(); return this; } /** *
     * This key is used to POST /inputs into your app by the collector. It can be an API key or a
     * PAT. This needs the permissions that are needed for POST /inputs for the app_id this
     * Collector is defined in.
     * 
* * string post_inputs_key_id = 5; * @return This builder for chaining. */ public Builder clearPostInputsKeyId() { postInputsKeyId_ = getDefaultInstance().getPostInputsKeyId(); onChanged(); return this; } /** *
     * This key is used to POST /inputs into your app by the collector. It can be an API key or a
     * PAT. This needs the permissions that are needed for POST /inputs for the app_id this
     * Collector is defined in.
     * 
* * string post_inputs_key_id = 5; * @param value The bytes for postInputsKeyId to set. * @return This builder for chaining. */ public Builder setPostInputsKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postInputsKeyId_ = value; onChanged(); return this; } private java.lang.Object callerUserId_ = ""; /** *
     * This is a private field that defaults to the app owner for public users.
     * If this is left blank then this collector will collect from ALL users calling the given model.
     * 
* * string caller_user_id = 6; * @return The callerUserId. */ public java.lang.String getCallerUserId() { java.lang.Object ref = callerUserId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerUserId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This is a private field that defaults to the app owner for public users.
     * If this is left blank then this collector will collect from ALL users calling the given model.
     * 
* * string caller_user_id = 6; * @return The bytes for callerUserId. */ public com.google.protobuf.ByteString getCallerUserIdBytes() { java.lang.Object ref = callerUserId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerUserId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This is a private field that defaults to the app owner for public users.
     * If this is left blank then this collector will collect from ALL users calling the given model.
     * 
* * string caller_user_id = 6; * @param value The callerUserId to set. * @return This builder for chaining. */ public Builder setCallerUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callerUserId_ = value; onChanged(); return this; } /** *
     * This is a private field that defaults to the app owner for public users.
     * If this is left blank then this collector will collect from ALL users calling the given model.
     * 
* * string caller_user_id = 6; * @return This builder for chaining. */ public Builder clearCallerUserId() { callerUserId_ = getDefaultInstance().getCallerUserId(); onChanged(); return this; } /** *
     * This is a private field that defaults to the app owner for public users.
     * If this is left blank then this collector will collect from ALL users calling the given model.
     * 
* * string caller_user_id = 6; * @param value The bytes for callerUserId to set. * @return This builder for chaining. */ public Builder setCallerUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callerUserId_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:clarifai.api.APIPostModelOutputsCollectorSource) } // @@protoc_insertion_point(class_scope:clarifai.api.APIPostModelOutputsCollectorSource) private static final com.clarifai.grpc.api.APIPostModelOutputsCollectorSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.APIPostModelOutputsCollectorSource(); } public static com.clarifai.grpc.api.APIPostModelOutputsCollectorSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public APIPostModelOutputsCollectorSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new APIPostModelOutputsCollectorSource(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 com.clarifai.grpc.api.APIPostModelOutputsCollectorSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy