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.
* Information on how to process the given RunnerItem.
*
*
* .clarifai.api.ProcessingInfo processing_info = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.ProcessingInfoOrBuilder getProcessingInfoOrBuilder() {
return getProcessingInfo();
}
public static final int POST_MODEL_OUTPUTS_REQUEST_FIELD_NUMBER = 4;
/**
*
* Model prediction request from a user.
*
*
* .clarifai.api.PostModelOutputsRequest post_model_outputs_request = 4;
* @return Whether the postModelOutputsRequest field is set.
*/
@java.lang.Override
public boolean hasPostModelOutputsRequest() {
return requestCase_ == 4;
}
/**
*
* Model prediction request from a user.
*
*
* .clarifai.api.PostModelOutputsRequest post_model_outputs_request = 4;
* @return The postModelOutputsRequest.
*/
@java.lang.Override
public com.clarifai.grpc.api.PostModelOutputsRequest getPostModelOutputsRequest() {
if (requestCase_ == 4) {
return (com.clarifai.grpc.api.PostModelOutputsRequest) request_;
}
return com.clarifai.grpc.api.PostModelOutputsRequest.getDefaultInstance();
}
/**
*
* Model prediction request from a user.
*
*
* .clarifai.api.PostModelOutputsRequest post_model_outputs_request = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.PostModelOutputsRequestOrBuilder getPostModelOutputsRequestOrBuilder() {
if (requestCase_ == 4) {
return (com.clarifai.grpc.api.PostModelOutputsRequest) request_;
}
return com.clarifai.grpc.api.PostModelOutputsRequest.getDefaultInstance();
}
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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (processingInfo_ != null) {
output.writeMessage(3, getProcessingInfo());
}
if (requestCase_ == 4) {
output.writeMessage(4, (com.clarifai.grpc.api.PostModelOutputsRequest) request_);
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (processingInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getProcessingInfo());
}
if (requestCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.clarifai.grpc.api.PostModelOutputsRequest) request_);
}
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.RunnerItem)) {
return super.equals(obj);
}
com.clarifai.grpc.api.RunnerItem other = (com.clarifai.grpc.api.RunnerItem) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasProcessingInfo() != other.hasProcessingInfo()) return false;
if (hasProcessingInfo()) {
if (!getProcessingInfo()
.equals(other.getProcessingInfo())) return false;
}
if (!getRequestCase().equals(other.getRequestCase())) return false;
switch (requestCase_) {
case 4:
if (!getPostModelOutputsRequest()
.equals(other.getPostModelOutputsRequest())) return false;
break;
case 0:
default:
}
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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasProcessingInfo()) {
hash = (37 * hash) + PROCESSING_INFO_FIELD_NUMBER;
hash = (53 * hash) + getProcessingInfo().hashCode();
}
switch (requestCase_) {
case 4:
hash = (37 * hash) + POST_MODEL_OUTPUTS_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getPostModelOutputsRequest().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.RunnerItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.RunnerItem 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.RunnerItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.RunnerItem 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.RunnerItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.RunnerItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.RunnerItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.RunnerItem 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.RunnerItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.RunnerItem 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.RunnerItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.RunnerItem 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.RunnerItem 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 a piece of work for a runner to process.
*
*
* Protobuf type {@code clarifai.api.RunnerItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.RunnerItem)
com.clarifai.grpc.api.RunnerItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_RunnerItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_RunnerItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.RunnerItem.class, com.clarifai.grpc.api.RunnerItem.Builder.class);
}
// Construct using com.clarifai.grpc.api.RunnerItem.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();
id_ = "";
description_ = "";
if (processingInfoBuilder_ == null) {
processingInfo_ = null;
} else {
processingInfo_ = null;
processingInfoBuilder_ = null;
}
requestCase_ = 0;
request_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_RunnerItem_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.RunnerItem getDefaultInstanceForType() {
return com.clarifai.grpc.api.RunnerItem.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.RunnerItem build() {
com.clarifai.grpc.api.RunnerItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.RunnerItem buildPartial() {
com.clarifai.grpc.api.RunnerItem result = new com.clarifai.grpc.api.RunnerItem(this);
result.id_ = id_;
result.description_ = description_;
if (processingInfoBuilder_ == null) {
result.processingInfo_ = processingInfo_;
} else {
result.processingInfo_ = processingInfoBuilder_.build();
}
if (requestCase_ == 4) {
if (postModelOutputsRequestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = postModelOutputsRequestBuilder_.build();
}
}
result.requestCase_ = requestCase_;
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.RunnerItem) {
return mergeFrom((com.clarifai.grpc.api.RunnerItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.RunnerItem other) {
if (other == com.clarifai.grpc.api.RunnerItem.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasProcessingInfo()) {
mergeProcessingInfo(other.getProcessingInfo());
}
switch (other.getRequestCase()) {
case POST_MODEL_OUTPUTS_REQUEST: {
mergePostModelOutputsRequest(other.getPostModelOutputsRequest());
break;
}
case REQUEST_NOT_SET: {
break;
}
}
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.RunnerItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.RunnerItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int requestCase_ = 0;
private java.lang.Object request_;
public RequestCase
getRequestCase() {
return RequestCase.forNumber(
requestCase_);
}
public Builder clearRequest() {
requestCase_ = 0;
request_ = null;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
* A UUID hash for this work item.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A UUID hash for this work item.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A UUID hash for this work item.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* A UUID hash for this work item.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* A UUID hash for this work item.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* A description of the work to be done in case needed for UIs.
*