Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* List of inputs to post.
* For each input, the following fields are used:
* * id
* * data
* * dataset_ids
*
*
* repeated .clarifai.api.Input inputs = 2;
*/
@java.lang.Override
public com.clarifai.grpc.api.InputOrBuilder getInputsOrBuilder(
int index) {
return inputs_.get(index);
}
public static final int INPUTS_ADD_JOB_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object inputsAddJobId_;
/**
*
* Collect statistics about created inputs in job with given ID.
* * If job ID is empty, then job is not created.
* * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID.
* * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics.
*
* Collect statistics about created inputs in job with given ID.
* * If job ID is empty, then job is not created.
* * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID.
* * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics.
*
*
* string inputs_add_job_id = 3;
* @return The bytes for inputsAddJobId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInputsAddJobIdBytes() {
java.lang.Object ref = inputsAddJobId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inputsAddJobId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUT_ID_CONFLICT_RESOLUTION_FIELD_NUMBER = 4;
private int inputIdConflictResolution_;
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 4;
* @return The enum numeric value on the wire for inputIdConflictResolution.
*/
@java.lang.Override public int getInputIdConflictResolutionValue() {
return inputIdConflictResolution_;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 4;
* @return The inputIdConflictResolution.
*/
@java.lang.Override public com.clarifai.grpc.api.InputIDConflictResolution getInputIdConflictResolution() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.InputIDConflictResolution result = com.clarifai.grpc.api.InputIDConflictResolution.valueOf(inputIdConflictResolution_);
return result == null ? com.clarifai.grpc.api.InputIDConflictResolution.UNRECOGNIZED : result;
}
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());
}
for (int i = 0; i < inputs_.size(); i++) {
output.writeMessage(2, inputs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputsAddJobId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputsAddJobId_);
}
if (inputIdConflictResolution_ != com.clarifai.grpc.api.InputIDConflictResolution.INPUT_ID_CONFLICT_RESOLUTION_NOT_SET.getNumber()) {
output.writeEnum(4, inputIdConflictResolution_);
}
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());
}
for (int i = 0; i < inputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, inputs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputsAddJobId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inputsAddJobId_);
}
if (inputIdConflictResolution_ != com.clarifai.grpc.api.InputIDConflictResolution.INPUT_ID_CONFLICT_RESOLUTION_NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, inputIdConflictResolution_);
}
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.PostInputsRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.PostInputsRequest other = (com.clarifai.grpc.api.PostInputsRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getInputsList()
.equals(other.getInputsList())) return false;
if (!getInputsAddJobId()
.equals(other.getInputsAddJobId())) return false;
if (inputIdConflictResolution_ != other.inputIdConflictResolution_) 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();
}
if (getInputsCount() > 0) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getInputsList().hashCode();
}
hash = (37 * hash) + INPUTS_ADD_JOB_ID_FIELD_NUMBER;
hash = (53 * hash) + getInputsAddJobId().hashCode();
hash = (37 * hash) + INPUT_ID_CONFLICT_RESOLUTION_FIELD_NUMBER;
hash = (53 * hash) + inputIdConflictResolution_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.PostInputsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostInputsRequest 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.PostInputsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostInputsRequest 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.PostInputsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostInputsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.PostInputsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostInputsRequest 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.PostInputsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostInputsRequest 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.PostInputsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostInputsRequest 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.PostInputsRequest 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;
}
/**
*
* Collect statistics about created inputs in job with given ID.
* * If job ID is empty, then job is not created.
* * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID.
* * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics.
*
* Collect statistics about created inputs in job with given ID.
* * If job ID is empty, then job is not created.
* * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID.
* * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics.
*
*
* string inputs_add_job_id = 3;
* @return The bytes for inputsAddJobId.
*/
public com.google.protobuf.ByteString
getInputsAddJobIdBytes() {
java.lang.Object ref = inputsAddJobId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inputsAddJobId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Collect statistics about created inputs in job with given ID.
* * If job ID is empty, then job is not created.
* * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID.
* * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics.
*
*
* string inputs_add_job_id = 3;
* @param value The inputsAddJobId to set.
* @return This builder for chaining.
*/
public Builder setInputsAddJobId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
inputsAddJobId_ = value;
onChanged();
return this;
}
/**
*
* Collect statistics about created inputs in job with given ID.
* * If job ID is empty, then job is not created.
* * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID.
* * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics.
*
*
* string inputs_add_job_id = 3;
* @return This builder for chaining.
*/
public Builder clearInputsAddJobId() {
inputsAddJobId_ = getDefaultInstance().getInputsAddJobId();
onChanged();
return this;
}
/**
*
* Collect statistics about created inputs in job with given ID.
* * If job ID is empty, then job is not created.
* * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID.
* * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics.
*
*
* string inputs_add_job_id = 3;
* @param value The bytes for inputsAddJobId to set.
* @return This builder for chaining.
*/
public Builder setInputsAddJobIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
inputsAddJobId_ = value;
onChanged();
return this;
}
private int inputIdConflictResolution_ = 0;
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 4;
* @return The enum numeric value on the wire for inputIdConflictResolution.
*/
@java.lang.Override public int getInputIdConflictResolutionValue() {
return inputIdConflictResolution_;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 4;
* @param value The enum numeric value on the wire for inputIdConflictResolution to set.
* @return This builder for chaining.
*/
public Builder setInputIdConflictResolutionValue(int value) {
inputIdConflictResolution_ = value;
onChanged();
return this;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 4;
* @return The inputIdConflictResolution.
*/
@java.lang.Override
public com.clarifai.grpc.api.InputIDConflictResolution getInputIdConflictResolution() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.InputIDConflictResolution result = com.clarifai.grpc.api.InputIDConflictResolution.valueOf(inputIdConflictResolution_);
return result == null ? com.clarifai.grpc.api.InputIDConflictResolution.UNRECOGNIZED : result;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 4;
* @param value The inputIdConflictResolution to set.
* @return This builder for chaining.
*/
public Builder setInputIdConflictResolution(com.clarifai.grpc.api.InputIDConflictResolution value) {
if (value == null) {
throw new NullPointerException();
}
inputIdConflictResolution_ = value.getNumber();
onChanged();
return this;
}
/**
*
* How to handle input ID conflicts.
*
*
* .clarifai.api.InputIDConflictResolution input_id_conflict_resolution = 4;
* @return This builder for chaining.
*/
public Builder clearInputIdConflictResolution() {
inputIdConflictResolution_ = 0;
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.PostInputsRequest)
}
// @@protoc_insertion_point(class_scope:clarifai.api.PostInputsRequest)
private static final com.clarifai.grpc.api.PostInputsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.PostInputsRequest();
}
public static com.clarifai.grpc.api.PostInputsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostInputsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostInputsRequest(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.PostInputsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}