com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/service.proto
package com.clarifai.grpc.api;
/**
*
* PostWorkflowResultsSimilarityRequest
*
*
* Protobuf type {@code clarifai.api.PostWorkflowResultsSimilarityRequest}
*/
public final class PostWorkflowResultsSimilarityRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.PostWorkflowResultsSimilarityRequest)
PostWorkflowResultsSimilarityRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostWorkflowResultsSimilarityRequest.newBuilder() to construct.
private PostWorkflowResultsSimilarityRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostWorkflowResultsSimilarityRequest() {
workflowId_ = "";
versionId_ = "";
modelVersionId_ = "";
probeInputs_ = java.util.Collections.emptyList();
poolInputs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostWorkflowResultsSimilarityRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostWorkflowResultsSimilarityRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.clarifai.grpc.api.UserAppIDSet.Builder subBuilder = null;
if (userAppId_ != null) {
subBuilder = userAppId_.toBuilder();
}
userAppId_ = input.readMessage(com.clarifai.grpc.api.UserAppIDSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userAppId_);
userAppId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
workflowId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
modelVersionId_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
probeInputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
probeInputs_.add(
input.readMessage(com.clarifai.grpc.api.Input.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
poolInputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
poolInputs_.add(
input.readMessage(com.clarifai.grpc.api.Input.parser(), extensionRegistry));
break;
}
case 48: {
favorClarifaiWorkflows_ = input.readBool();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
versionId_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
probeInputs_ = java.util.Collections.unmodifiableList(probeInputs_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
poolInputs_ = java.util.Collections.unmodifiableList(poolInputs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostWorkflowResultsSimilarityRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostWorkflowResultsSimilarityRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest.class, com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest.Builder.class);
}
public static final int USER_APP_ID_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
@java.lang.Override
public boolean hasUserAppId() {
return userAppId_ != null;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return The userAppId.
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSet getUserAppId() {
return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
return getUserAppId();
}
public static final int WORKFLOW_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object workflowId_;
/**
* string workflow_id = 2;
* @return The workflowId.
*/
@java.lang.Override
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
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();
workflowId_ = s;
return s;
}
}
/**
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object versionId_;
/**
*
* Workflow version ID to retrieve
* If no ID is specified, latest workflow version is used
*
*
* string version_id = 7;
* @return The versionId.
*/
@java.lang.Override
public java.lang.String getVersionId() {
java.lang.Object ref = versionId_;
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();
versionId_ = s;
return s;
}
}
/**
*
* Workflow version ID to retrieve
* If no ID is specified, latest workflow version is used
*
*
* string version_id = 7;
* @return The bytes for versionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionIdBytes() {
java.lang.Object ref = versionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODEL_VERSION_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object modelVersionId_;
/**
*
* The specific model version whose outputs we are comparing
*
*
* string model_version_id = 3;
* @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 specific model version whose outputs we are comparing
*
*
* string model_version_id = 3;
* @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 PROBE_INPUTS_FIELD_NUMBER = 4;
private java.util.List probeInputs_;
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
@java.lang.Override
public java.util.List getProbeInputsList() {
return probeInputs_;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
@java.lang.Override
public java.util.List extends com.clarifai.grpc.api.InputOrBuilder>
getProbeInputsOrBuilderList() {
return probeInputs_;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
@java.lang.Override
public int getProbeInputsCount() {
return probeInputs_.size();
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.Input getProbeInputs(int index) {
return probeInputs_.get(index);
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputOrBuilder getProbeInputsOrBuilder(
int index) {
return probeInputs_.get(index);
}
public static final int POOL_INPUTS_FIELD_NUMBER = 5;
private java.util.List poolInputs_;
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
@java.lang.Override
public java.util.List getPoolInputsList() {
return poolInputs_;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
@java.lang.Override
public java.util.List extends com.clarifai.grpc.api.InputOrBuilder>
getPoolInputsOrBuilderList() {
return poolInputs_;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
@java.lang.Override
public int getPoolInputsCount() {
return poolInputs_.size();
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.Input getPoolInputs(int index) {
return poolInputs_.get(index);
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputOrBuilder getPoolInputsOrBuilder(
int index) {
return poolInputs_.get(index);
}
public static final int FAVOR_CLARIFAI_WORKFLOWS_FIELD_NUMBER = 6;
private boolean favorClarifaiWorkflows_;
/**
*
* Use this flag to look into clarifai published workflows first for a Workflow ID
*
*
* bool favor_clarifai_workflows = 6;
* @return The favorClarifaiWorkflows.
*/
@java.lang.Override
public boolean getFavorClarifaiWorkflows() {
return favorClarifaiWorkflows_;
}
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 (userAppId_ != null) {
output.writeMessage(1, getUserAppId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelVersionId_);
}
for (int i = 0; i < probeInputs_.size(); i++) {
output.writeMessage(4, probeInputs_.get(i));
}
for (int i = 0; i < poolInputs_.size(); i++) {
output.writeMessage(5, poolInputs_.get(i));
}
if (favorClarifaiWorkflows_ != false) {
output.writeBool(6, favorClarifaiWorkflows_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, versionId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userAppId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUserAppId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workflowId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelVersionId_);
}
for (int i = 0; i < probeInputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, probeInputs_.get(i));
}
for (int i = 0; i < poolInputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, poolInputs_.get(i));
}
if (favorClarifaiWorkflows_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, favorClarifaiWorkflows_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, versionId_);
}
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.PostWorkflowResultsSimilarityRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest other = (com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (!getVersionId()
.equals(other.getVersionId())) return false;
if (!getModelVersionId()
.equals(other.getModelVersionId())) return false;
if (!getProbeInputsList()
.equals(other.getProbeInputsList())) return false;
if (!getPoolInputsList()
.equals(other.getPoolInputsList())) return false;
if (getFavorClarifaiWorkflows()
!= other.getFavorClarifaiWorkflows()) 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();
if (hasUserAppId()) {
hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserAppId().hashCode();
}
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
hash = (37 * hash) + VERSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getVersionId().hashCode();
hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getModelVersionId().hashCode();
if (getProbeInputsCount() > 0) {
hash = (37 * hash) + PROBE_INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getProbeInputsList().hashCode();
}
if (getPoolInputsCount() > 0) {
hash = (37 * hash) + POOL_INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getPoolInputsList().hashCode();
}
hash = (37 * hash) + FAVOR_CLARIFAI_WORKFLOWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFavorClarifaiWorkflows());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest 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.PostWorkflowResultsSimilarityRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest 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.PostWorkflowResultsSimilarityRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest 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.PostWorkflowResultsSimilarityRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest 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.PostWorkflowResultsSimilarityRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest 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.PostWorkflowResultsSimilarityRequest 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;
}
/**
*
* PostWorkflowResultsSimilarityRequest
*
*
* Protobuf type {@code clarifai.api.PostWorkflowResultsSimilarityRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.PostWorkflowResultsSimilarityRequest)
com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostWorkflowResultsSimilarityRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostWorkflowResultsSimilarityRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest.class, com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest.Builder.class);
}
// Construct using com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProbeInputsFieldBuilder();
getPoolInputsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userAppIdBuilder_ == null) {
userAppId_ = null;
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
workflowId_ = "";
versionId_ = "";
modelVersionId_ = "";
if (probeInputsBuilder_ == null) {
probeInputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
probeInputsBuilder_.clear();
}
if (poolInputsBuilder_ == null) {
poolInputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
poolInputsBuilder_.clear();
}
favorClarifaiWorkflows_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostWorkflowResultsSimilarityRequest_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest getDefaultInstanceForType() {
return com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest build() {
com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest buildPartial() {
com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest result = new com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest(this);
int from_bitField0_ = bitField0_;
if (userAppIdBuilder_ == null) {
result.userAppId_ = userAppId_;
} else {
result.userAppId_ = userAppIdBuilder_.build();
}
result.workflowId_ = workflowId_;
result.versionId_ = versionId_;
result.modelVersionId_ = modelVersionId_;
if (probeInputsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
probeInputs_ = java.util.Collections.unmodifiableList(probeInputs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.probeInputs_ = probeInputs_;
} else {
result.probeInputs_ = probeInputsBuilder_.build();
}
if (poolInputsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
poolInputs_ = java.util.Collections.unmodifiableList(poolInputs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.poolInputs_ = poolInputs_;
} else {
result.poolInputs_ = poolInputsBuilder_.build();
}
result.favorClarifaiWorkflows_ = favorClarifaiWorkflows_;
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.PostWorkflowResultsSimilarityRequest) {
return mergeFrom((com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest other) {
if (other == com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest.getDefaultInstance()) return this;
if (other.hasUserAppId()) {
mergeUserAppId(other.getUserAppId());
}
if (!other.getWorkflowId().isEmpty()) {
workflowId_ = other.workflowId_;
onChanged();
}
if (!other.getVersionId().isEmpty()) {
versionId_ = other.versionId_;
onChanged();
}
if (!other.getModelVersionId().isEmpty()) {
modelVersionId_ = other.modelVersionId_;
onChanged();
}
if (probeInputsBuilder_ == null) {
if (!other.probeInputs_.isEmpty()) {
if (probeInputs_.isEmpty()) {
probeInputs_ = other.probeInputs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProbeInputsIsMutable();
probeInputs_.addAll(other.probeInputs_);
}
onChanged();
}
} else {
if (!other.probeInputs_.isEmpty()) {
if (probeInputsBuilder_.isEmpty()) {
probeInputsBuilder_.dispose();
probeInputsBuilder_ = null;
probeInputs_ = other.probeInputs_;
bitField0_ = (bitField0_ & ~0x00000001);
probeInputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProbeInputsFieldBuilder() : null;
} else {
probeInputsBuilder_.addAllMessages(other.probeInputs_);
}
}
}
if (poolInputsBuilder_ == null) {
if (!other.poolInputs_.isEmpty()) {
if (poolInputs_.isEmpty()) {
poolInputs_ = other.poolInputs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePoolInputsIsMutable();
poolInputs_.addAll(other.poolInputs_);
}
onChanged();
}
} else {
if (!other.poolInputs_.isEmpty()) {
if (poolInputsBuilder_.isEmpty()) {
poolInputsBuilder_.dispose();
poolInputsBuilder_ = null;
poolInputs_ = other.poolInputs_;
bitField0_ = (bitField0_ & ~0x00000002);
poolInputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPoolInputsFieldBuilder() : null;
} else {
poolInputsBuilder_.addAllMessages(other.poolInputs_);
}
}
}
if (other.getFavorClarifaiWorkflows() != false) {
setFavorClarifaiWorkflows(other.getFavorClarifaiWorkflows());
}
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.PostWorkflowResultsSimilarityRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> userAppIdBuilder_;
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
public boolean hasUserAppId() {
return userAppIdBuilder_ != null || userAppId_ != null;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return The userAppId.
*/
public com.clarifai.grpc.api.UserAppIDSet getUserAppId() {
if (userAppIdBuilder_ == null) {
return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
} else {
return userAppIdBuilder_.getMessage();
}
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder setUserAppId(com.clarifai.grpc.api.UserAppIDSet value) {
if (userAppIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userAppId_ = value;
onChanged();
} else {
userAppIdBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder setUserAppId(
com.clarifai.grpc.api.UserAppIDSet.Builder builderForValue) {
if (userAppIdBuilder_ == null) {
userAppId_ = builderForValue.build();
onChanged();
} else {
userAppIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder mergeUserAppId(com.clarifai.grpc.api.UserAppIDSet value) {
if (userAppIdBuilder_ == null) {
if (userAppId_ != null) {
userAppId_ =
com.clarifai.grpc.api.UserAppIDSet.newBuilder(userAppId_).mergeFrom(value).buildPartial();
} else {
userAppId_ = value;
}
onChanged();
} else {
userAppIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public Builder clearUserAppId() {
if (userAppIdBuilder_ == null) {
userAppId_ = null;
onChanged();
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public com.clarifai.grpc.api.UserAppIDSet.Builder getUserAppIdBuilder() {
onChanged();
return getUserAppIdFieldBuilder().getBuilder();
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
if (userAppIdBuilder_ != null) {
return userAppIdBuilder_.getMessageOrBuilder();
} else {
return userAppId_ == null ?
com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
}
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>
getUserAppIdFieldBuilder() {
if (userAppIdBuilder_ == null) {
userAppIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>(
getUserAppId(),
getParentForChildren(),
isClean());
userAppId_ = null;
}
return userAppIdBuilder_;
}
private java.lang.Object workflowId_ = "";
/**
* string workflow_id = 2;
* @return The workflowId.
*/
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string workflow_id = 2;
* @param value The workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workflowId_ = value;
onChanged();
return this;
}
/**
* string workflow_id = 2;
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
* string workflow_id = 2;
* @param value The bytes for workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workflowId_ = value;
onChanged();
return this;
}
private java.lang.Object versionId_ = "";
/**
*
* Workflow version ID to retrieve
* If no ID is specified, latest workflow version is used
*
*
* string version_id = 7;
* @return The versionId.
*/
public java.lang.String getVersionId() {
java.lang.Object ref = versionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Workflow version ID to retrieve
* If no ID is specified, latest workflow version is used
*
*
* string version_id = 7;
* @return The bytes for versionId.
*/
public com.google.protobuf.ByteString
getVersionIdBytes() {
java.lang.Object ref = versionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Workflow version ID to retrieve
* If no ID is specified, latest workflow version is used
*
*
* string version_id = 7;
* @param value The versionId to set.
* @return This builder for chaining.
*/
public Builder setVersionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
versionId_ = value;
onChanged();
return this;
}
/**
*
* Workflow version ID to retrieve
* If no ID is specified, latest workflow version is used
*
*
* string version_id = 7;
* @return This builder for chaining.
*/
public Builder clearVersionId() {
versionId_ = getDefaultInstance().getVersionId();
onChanged();
return this;
}
/**
*
* Workflow version ID to retrieve
* If no ID is specified, latest workflow version is used
*
*
* string version_id = 7;
* @param value The bytes for versionId to set.
* @return This builder for chaining.
*/
public Builder setVersionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
versionId_ = value;
onChanged();
return this;
}
private java.lang.Object modelVersionId_ = "";
/**
*
* The specific model version whose outputs we are comparing
*
*
* string model_version_id = 3;
* @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 specific model version whose outputs we are comparing
*
*
* string model_version_id = 3;
* @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 specific model version whose outputs we are comparing
*
*
* string model_version_id = 3;
* @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 specific model version whose outputs we are comparing
*
*
* string model_version_id = 3;
* @return This builder for chaining.
*/
public Builder clearModelVersionId() {
modelVersionId_ = getDefaultInstance().getModelVersionId();
onChanged();
return this;
}
/**
*
* The specific model version whose outputs we are comparing
*
*
* string model_version_id = 3;
* @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.util.List probeInputs_ =
java.util.Collections.emptyList();
private void ensureProbeInputsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
probeInputs_ = new java.util.ArrayList(probeInputs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder> probeInputsBuilder_;
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public java.util.List getProbeInputsList() {
if (probeInputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(probeInputs_);
} else {
return probeInputsBuilder_.getMessageList();
}
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public int getProbeInputsCount() {
if (probeInputsBuilder_ == null) {
return probeInputs_.size();
} else {
return probeInputsBuilder_.getCount();
}
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public com.clarifai.grpc.api.Input getProbeInputs(int index) {
if (probeInputsBuilder_ == null) {
return probeInputs_.get(index);
} else {
return probeInputsBuilder_.getMessage(index);
}
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder setProbeInputs(
int index, com.clarifai.grpc.api.Input value) {
if (probeInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProbeInputsIsMutable();
probeInputs_.set(index, value);
onChanged();
} else {
probeInputsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder setProbeInputs(
int index, com.clarifai.grpc.api.Input.Builder builderForValue) {
if (probeInputsBuilder_ == null) {
ensureProbeInputsIsMutable();
probeInputs_.set(index, builderForValue.build());
onChanged();
} else {
probeInputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder addProbeInputs(com.clarifai.grpc.api.Input value) {
if (probeInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProbeInputsIsMutable();
probeInputs_.add(value);
onChanged();
} else {
probeInputsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder addProbeInputs(
int index, com.clarifai.grpc.api.Input value) {
if (probeInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProbeInputsIsMutable();
probeInputs_.add(index, value);
onChanged();
} else {
probeInputsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder addProbeInputs(
com.clarifai.grpc.api.Input.Builder builderForValue) {
if (probeInputsBuilder_ == null) {
ensureProbeInputsIsMutable();
probeInputs_.add(builderForValue.build());
onChanged();
} else {
probeInputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder addProbeInputs(
int index, com.clarifai.grpc.api.Input.Builder builderForValue) {
if (probeInputsBuilder_ == null) {
ensureProbeInputsIsMutable();
probeInputs_.add(index, builderForValue.build());
onChanged();
} else {
probeInputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder addAllProbeInputs(
java.lang.Iterable extends com.clarifai.grpc.api.Input> values) {
if (probeInputsBuilder_ == null) {
ensureProbeInputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, probeInputs_);
onChanged();
} else {
probeInputsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder clearProbeInputs() {
if (probeInputsBuilder_ == null) {
probeInputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
probeInputsBuilder_.clear();
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public Builder removeProbeInputs(int index) {
if (probeInputsBuilder_ == null) {
ensureProbeInputsIsMutable();
probeInputs_.remove(index);
onChanged();
} else {
probeInputsBuilder_.remove(index);
}
return this;
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public com.clarifai.grpc.api.Input.Builder getProbeInputsBuilder(
int index) {
return getProbeInputsFieldBuilder().getBuilder(index);
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public com.clarifai.grpc.api.InputOrBuilder getProbeInputsOrBuilder(
int index) {
if (probeInputsBuilder_ == null) {
return probeInputs_.get(index); } else {
return probeInputsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public java.util.List extends com.clarifai.grpc.api.InputOrBuilder>
getProbeInputsOrBuilderList() {
if (probeInputsBuilder_ != null) {
return probeInputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(probeInputs_);
}
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public com.clarifai.grpc.api.Input.Builder addProbeInputsBuilder() {
return getProbeInputsFieldBuilder().addBuilder(
com.clarifai.grpc.api.Input.getDefaultInstance());
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public com.clarifai.grpc.api.Input.Builder addProbeInputsBuilder(
int index) {
return getProbeInputsFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.Input.getDefaultInstance());
}
/**
*
* Each probe is compared against every pool input
*
*
* repeated .clarifai.api.Input probe_inputs = 4;
*/
public java.util.List
getProbeInputsBuilderList() {
return getProbeInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>
getProbeInputsFieldBuilder() {
if (probeInputsBuilder_ == null) {
probeInputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>(
probeInputs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
probeInputs_ = null;
}
return probeInputsBuilder_;
}
private java.util.List poolInputs_ =
java.util.Collections.emptyList();
private void ensurePoolInputsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
poolInputs_ = new java.util.ArrayList(poolInputs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder> poolInputsBuilder_;
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public java.util.List getPoolInputsList() {
if (poolInputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(poolInputs_);
} else {
return poolInputsBuilder_.getMessageList();
}
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public int getPoolInputsCount() {
if (poolInputsBuilder_ == null) {
return poolInputs_.size();
} else {
return poolInputsBuilder_.getCount();
}
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public com.clarifai.grpc.api.Input getPoolInputs(int index) {
if (poolInputsBuilder_ == null) {
return poolInputs_.get(index);
} else {
return poolInputsBuilder_.getMessage(index);
}
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder setPoolInputs(
int index, com.clarifai.grpc.api.Input value) {
if (poolInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolInputsIsMutable();
poolInputs_.set(index, value);
onChanged();
} else {
poolInputsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder setPoolInputs(
int index, com.clarifai.grpc.api.Input.Builder builderForValue) {
if (poolInputsBuilder_ == null) {
ensurePoolInputsIsMutable();
poolInputs_.set(index, builderForValue.build());
onChanged();
} else {
poolInputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder addPoolInputs(com.clarifai.grpc.api.Input value) {
if (poolInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolInputsIsMutable();
poolInputs_.add(value);
onChanged();
} else {
poolInputsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder addPoolInputs(
int index, com.clarifai.grpc.api.Input value) {
if (poolInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolInputsIsMutable();
poolInputs_.add(index, value);
onChanged();
} else {
poolInputsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder addPoolInputs(
com.clarifai.grpc.api.Input.Builder builderForValue) {
if (poolInputsBuilder_ == null) {
ensurePoolInputsIsMutable();
poolInputs_.add(builderForValue.build());
onChanged();
} else {
poolInputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder addPoolInputs(
int index, com.clarifai.grpc.api.Input.Builder builderForValue) {
if (poolInputsBuilder_ == null) {
ensurePoolInputsIsMutable();
poolInputs_.add(index, builderForValue.build());
onChanged();
} else {
poolInputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder addAllPoolInputs(
java.lang.Iterable extends com.clarifai.grpc.api.Input> values) {
if (poolInputsBuilder_ == null) {
ensurePoolInputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, poolInputs_);
onChanged();
} else {
poolInputsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder clearPoolInputs() {
if (poolInputsBuilder_ == null) {
poolInputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
poolInputsBuilder_.clear();
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public Builder removePoolInputs(int index) {
if (poolInputsBuilder_ == null) {
ensurePoolInputsIsMutable();
poolInputs_.remove(index);
onChanged();
} else {
poolInputsBuilder_.remove(index);
}
return this;
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public com.clarifai.grpc.api.Input.Builder getPoolInputsBuilder(
int index) {
return getPoolInputsFieldBuilder().getBuilder(index);
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public com.clarifai.grpc.api.InputOrBuilder getPoolInputsOrBuilder(
int index) {
if (poolInputsBuilder_ == null) {
return poolInputs_.get(index); } else {
return poolInputsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public java.util.List extends com.clarifai.grpc.api.InputOrBuilder>
getPoolInputsOrBuilderList() {
if (poolInputsBuilder_ != null) {
return poolInputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(poolInputs_);
}
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public com.clarifai.grpc.api.Input.Builder addPoolInputsBuilder() {
return getPoolInputsFieldBuilder().addBuilder(
com.clarifai.grpc.api.Input.getDefaultInstance());
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public com.clarifai.grpc.api.Input.Builder addPoolInputsBuilder(
int index) {
return getPoolInputsFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.Input.getDefaultInstance());
}
/**
*
* Each pool input is compared against ever probe input
*
*
* repeated .clarifai.api.Input pool_inputs = 5;
*/
public java.util.List
getPoolInputsBuilderList() {
return getPoolInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>
getPoolInputsFieldBuilder() {
if (poolInputsBuilder_ == null) {
poolInputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>(
poolInputs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
poolInputs_ = null;
}
return poolInputsBuilder_;
}
private boolean favorClarifaiWorkflows_ ;
/**
*
* Use this flag to look into clarifai published workflows first for a Workflow ID
*
*
* bool favor_clarifai_workflows = 6;
* @return The favorClarifaiWorkflows.
*/
@java.lang.Override
public boolean getFavorClarifaiWorkflows() {
return favorClarifaiWorkflows_;
}
/**
*
* Use this flag to look into clarifai published workflows first for a Workflow ID
*
*
* bool favor_clarifai_workflows = 6;
* @param value The favorClarifaiWorkflows to set.
* @return This builder for chaining.
*/
public Builder setFavorClarifaiWorkflows(boolean value) {
favorClarifaiWorkflows_ = value;
onChanged();
return this;
}
/**
*
* Use this flag to look into clarifai published workflows first for a Workflow ID
*
*
* bool favor_clarifai_workflows = 6;
* @return This builder for chaining.
*/
public Builder clearFavorClarifaiWorkflows() {
favorClarifaiWorkflows_ = false;
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.PostWorkflowResultsSimilarityRequest)
}
// @@protoc_insertion_point(class_scope:clarifai.api.PostWorkflowResultsSimilarityRequest)
private static final com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest();
}
public static com.clarifai.grpc.api.PostWorkflowResultsSimilarityRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostWorkflowResultsSimilarityRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostWorkflowResultsSimilarityRequest(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.PostWorkflowResultsSimilarityRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}