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.
* This allows you to create one or more runner by posting it to the API.
*
*
* repeated .clarifai.api.RunnerItemOutput runner_item_outputs = 4;
*/
@java.lang.Override
public com.clarifai.grpc.api.RunnerItemOutputOrBuilder getRunnerItemOutputsOrBuilder(
int index) {
return runnerItemOutputs_.get(index);
}
public static final int STATUS_FIELD_NUMBER = 5;
private com.clarifai.grpc.api.status.Status status_;
/**
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
* @return The status.
*/
@java.lang.Override
public com.clarifai.grpc.api.status.Status getStatus() {
return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
}
/**
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
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(runnerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runnerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runnerItemId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, runnerItemId_);
}
for (int i = 0; i < runnerItemOutputs_.size(); i++) {
output.writeMessage(4, runnerItemOutputs_.get(i));
}
if (status_ != null) {
output.writeMessage(5, getStatus());
}
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(runnerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runnerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runnerItemId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, runnerItemId_);
}
for (int i = 0; i < runnerItemOutputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, runnerItemOutputs_.get(i));
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getStatus());
}
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.PostRunnerItemOutputsRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.PostRunnerItemOutputsRequest other = (com.clarifai.grpc.api.PostRunnerItemOutputsRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getRunnerId()
.equals(other.getRunnerId())) return false;
if (!getRunnerItemId()
.equals(other.getRunnerItemId())) return false;
if (!getRunnerItemOutputsList()
.equals(other.getRunnerItemOutputsList())) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) 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) + RUNNER_ID_FIELD_NUMBER;
hash = (53 * hash) + getRunnerId().hashCode();
hash = (37 * hash) + RUNNER_ITEM_ID_FIELD_NUMBER;
hash = (53 * hash) + getRunnerItemId().hashCode();
if (getRunnerItemOutputsCount() > 0) {
hash = (37 * hash) + RUNNER_ITEM_OUTPUTS_FIELD_NUMBER;
hash = (53 * hash) + getRunnerItemOutputsList().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest 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.PostRunnerItemOutputsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest 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.PostRunnerItemOutputsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest 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.PostRunnerItemOutputsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest 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.PostRunnerItemOutputsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest 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.PostRunnerItemOutputsRequest 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 request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
* @return The status.
*/
public com.clarifai.grpc.api.status.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
*/
public Builder setStatus(com.clarifai.grpc.api.status.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
*/
public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
* This request has a status so that it can communicate to the API from runners and
* communicate status, errors, etc. This is on the request since runners operate
* in a reverse protocol.
*
*
* .clarifai.api.status.Status status = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
@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.PostRunnerItemOutputsRequest)
}
// @@protoc_insertion_point(class_scope:clarifai.api.PostRunnerItemOutputsRequest)
private static final com.clarifai.grpc.api.PostRunnerItemOutputsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.PostRunnerItemOutputsRequest();
}
public static com.clarifai.grpc.api.PostRunnerItemOutputsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostRunnerItemOutputsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostRunnerItemOutputsRequest(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.PostRunnerItemOutputsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}