
clarifai2.internal.grpc.api.status.StatusOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Clarifai Java API Client
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/status/status.proto
package clarifai2.internal.grpc.api.status;
public final class StatusOuterClass {
private StatusOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface StatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:clarifai.api.status.Status)
com.google.protobuf.MessageOrBuilder {
/**
* .clarifai.api.status.StatusCode code = 1;
*/
int getCodeValue();
/**
* .clarifai.api.status.StatusCode code = 1;
*/
clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode getCode();
/**
* string description = 2;
*/
java.lang.String getDescription();
/**
* string description = 2;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* string details = 3;
*/
java.lang.String getDetails();
/**
* string details = 3;
*/
com.google.protobuf.ByteString
getDetailsBytes();
/**
* uint32 percent_completed = 5;
*/
int getPercentCompleted();
/**
* uint32 time_remaining = 6;
*/
int getTimeRemaining();
/**
* string req_id = 7;
*/
java.lang.String getReqId();
/**
* string req_id = 7;
*/
com.google.protobuf.ByteString
getReqIdBytes();
}
/**
* Protobuf type {@code clarifai.api.status.Status}
*/
public static final class Status extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.status.Status)
StatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use Status.newBuilder() to construct.
private Status(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Status() {
code_ = 0;
description_ = "";
details_ = "";
percentCompleted_ = 0;
timeRemaining_ = 0;
reqId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Status(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
code_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
details_ = s;
break;
}
case 40: {
percentCompleted_ = input.readUInt32();
break;
}
case 48: {
timeRemaining_ = input.readUInt32();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
reqId_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_fieldAccessorTable
.ensureFieldAccessorsInitialized(
clarifai2.internal.grpc.api.status.StatusOuterClass.Status.class, clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* .clarifai.api.status.StatusCode code = 1;
*/
public int getCodeValue() {
return code_;
}
/**
* .clarifai.api.status.StatusCode code = 1;
*/
public clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode getCode() {
clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode result = clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode.valueOf(code_);
return result == null ? clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode.UNRECOGNIZED : result;
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DETAILS_FIELD_NUMBER = 3;
private volatile java.lang.Object details_;
/**
* string details = 3;
*/
public java.lang.String getDetails() {
java.lang.Object ref = details_;
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();
details_ = s;
return s;
}
}
/**
* string details = 3;
*/
public com.google.protobuf.ByteString
getDetailsBytes() {
java.lang.Object ref = details_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
details_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PERCENT_COMPLETED_FIELD_NUMBER = 5;
private int percentCompleted_;
/**
* uint32 percent_completed = 5;
*/
public int getPercentCompleted() {
return percentCompleted_;
}
public static final int TIME_REMAINING_FIELD_NUMBER = 6;
private int timeRemaining_;
/**
* uint32 time_remaining = 6;
*/
public int getTimeRemaining() {
return timeRemaining_;
}
public static final int REQ_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object reqId_;
/**
* string req_id = 7;
*/
public java.lang.String getReqId() {
java.lang.Object ref = reqId_;
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();
reqId_ = s;
return s;
}
}
/**
* string req_id = 7;
*/
public com.google.protobuf.ByteString
getReqIdBytes() {
java.lang.Object ref = reqId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reqId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode.ZERO.getNumber()) {
output.writeEnum(1, code_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!getDetailsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_);
}
if (percentCompleted_ != 0) {
output.writeUInt32(5, percentCompleted_);
}
if (timeRemaining_ != 0) {
output.writeUInt32(6, timeRemaining_);
}
if (!getReqIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reqId_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode.ZERO.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, code_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (!getDetailsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_);
}
if (percentCompleted_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, percentCompleted_);
}
if (timeRemaining_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, timeRemaining_);
}
if (!getReqIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reqId_);
}
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 clarifai2.internal.grpc.api.status.StatusOuterClass.Status)) {
return super.equals(obj);
}
clarifai2.internal.grpc.api.status.StatusOuterClass.Status other = (clarifai2.internal.grpc.api.status.StatusOuterClass.Status) obj;
boolean result = true;
result = result && code_ == other.code_;
result = result && getDescription()
.equals(other.getDescription());
result = result && getDetails()
.equals(other.getDetails());
result = result && (getPercentCompleted()
== other.getPercentCompleted());
result = result && (getTimeRemaining()
== other.getTimeRemaining());
result = result && getReqId()
.equals(other.getReqId());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + code_;
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getDetails().hashCode();
hash = (37 * hash) + PERCENT_COMPLETED_FIELD_NUMBER;
hash = (53 * hash) + getPercentCompleted();
hash = (37 * hash) + TIME_REMAINING_FIELD_NUMBER;
hash = (53 * hash) + getTimeRemaining();
hash = (37 * hash) + REQ_ID_FIELD_NUMBER;
hash = (53 * hash) + getReqId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status 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 clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status 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 clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(clarifai2.internal.grpc.api.status.StatusOuterClass.Status prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code clarifai.api.status.Status}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.status.Status)
clarifai2.internal.grpc.api.status.StatusOuterClass.StatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_fieldAccessorTable
.ensureFieldAccessorsInitialized(
clarifai2.internal.grpc.api.status.StatusOuterClass.Status.class, clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder.class);
}
// Construct using clarifai2.internal.grpc.api.status.StatusOuterClass.Status.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
code_ = 0;
description_ = "";
details_ = "";
percentCompleted_ = 0;
timeRemaining_ = 0;
reqId_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_descriptor;
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.Status getDefaultInstanceForType() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.Status.getDefaultInstance();
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.Status build() {
clarifai2.internal.grpc.api.status.StatusOuterClass.Status result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.Status buildPartial() {
clarifai2.internal.grpc.api.status.StatusOuterClass.Status result = new clarifai2.internal.grpc.api.status.StatusOuterClass.Status(this);
result.code_ = code_;
result.description_ = description_;
result.details_ = details_;
result.percentCompleted_ = percentCompleted_;
result.timeRemaining_ = timeRemaining_;
result.reqId_ = reqId_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof clarifai2.internal.grpc.api.status.StatusOuterClass.Status) {
return mergeFrom((clarifai2.internal.grpc.api.status.StatusOuterClass.Status)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(clarifai2.internal.grpc.api.status.StatusOuterClass.Status other) {
if (other == clarifai2.internal.grpc.api.status.StatusOuterClass.Status.getDefaultInstance()) return this;
if (other.code_ != 0) {
setCodeValue(other.getCodeValue());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getDetails().isEmpty()) {
details_ = other.details_;
onChanged();
}
if (other.getPercentCompleted() != 0) {
setPercentCompleted(other.getPercentCompleted());
}
if (other.getTimeRemaining() != 0) {
setTimeRemaining(other.getTimeRemaining());
}
if (!other.getReqId().isEmpty()) {
reqId_ = other.reqId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
clarifai2.internal.grpc.api.status.StatusOuterClass.Status parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (clarifai2.internal.grpc.api.status.StatusOuterClass.Status) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int code_ = 0;
/**
* .clarifai.api.status.StatusCode code = 1;
*/
public int getCodeValue() {
return code_;
}
/**
* .clarifai.api.status.StatusCode code = 1;
*/
public Builder setCodeValue(int value) {
code_ = value;
onChanged();
return this;
}
/**
* .clarifai.api.status.StatusCode code = 1;
*/
public clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode getCode() {
clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode result = clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode.valueOf(code_);
return result == null ? clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode.UNRECOGNIZED : result;
}
/**
* .clarifai.api.status.StatusCode code = 1;
*/
public Builder setCode(clarifai2.internal.grpc.api.status.StatusCodeOuterClass.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
code_ = value.getNumber();
onChanged();
return this;
}
/**
* .clarifai.api.status.StatusCode code = 1;
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* string description = 2;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object details_ = "";
/**
* string details = 3;
*/
public java.lang.String getDetails() {
java.lang.Object ref = details_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
details_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string details = 3;
*/
public com.google.protobuf.ByteString
getDetailsBytes() {
java.lang.Object ref = details_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
details_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string details = 3;
*/
public Builder setDetails(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
details_ = value;
onChanged();
return this;
}
/**
* string details = 3;
*/
public Builder clearDetails() {
details_ = getDefaultInstance().getDetails();
onChanged();
return this;
}
/**
* string details = 3;
*/
public Builder setDetailsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
details_ = value;
onChanged();
return this;
}
private int percentCompleted_ ;
/**
* uint32 percent_completed = 5;
*/
public int getPercentCompleted() {
return percentCompleted_;
}
/**
* uint32 percent_completed = 5;
*/
public Builder setPercentCompleted(int value) {
percentCompleted_ = value;
onChanged();
return this;
}
/**
* uint32 percent_completed = 5;
*/
public Builder clearPercentCompleted() {
percentCompleted_ = 0;
onChanged();
return this;
}
private int timeRemaining_ ;
/**
* uint32 time_remaining = 6;
*/
public int getTimeRemaining() {
return timeRemaining_;
}
/**
* uint32 time_remaining = 6;
*/
public Builder setTimeRemaining(int value) {
timeRemaining_ = value;
onChanged();
return this;
}
/**
* uint32 time_remaining = 6;
*/
public Builder clearTimeRemaining() {
timeRemaining_ = 0;
onChanged();
return this;
}
private java.lang.Object reqId_ = "";
/**
* string req_id = 7;
*/
public java.lang.String getReqId() {
java.lang.Object ref = reqId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reqId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string req_id = 7;
*/
public com.google.protobuf.ByteString
getReqIdBytes() {
java.lang.Object ref = reqId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reqId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string req_id = 7;
*/
public Builder setReqId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
reqId_ = value;
onChanged();
return this;
}
/**
* string req_id = 7;
*/
public Builder clearReqId() {
reqId_ = getDefaultInstance().getReqId();
onChanged();
return this;
}
/**
* string req_id = 7;
*/
public Builder setReqIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
reqId_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.status.Status)
}
// @@protoc_insertion_point(class_scope:clarifai.api.status.Status)
private static final clarifai2.internal.grpc.api.status.StatusOuterClass.Status DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new clarifai2.internal.grpc.api.status.StatusOuterClass.Status();
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.Status getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Status parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Status(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.Status getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BaseResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:clarifai.api.status.BaseResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .clarifai.api.status.Status status = 1;
*/
boolean hasStatus();
/**
* .clarifai.api.status.Status status = 1;
*/
clarifai2.internal.grpc.api.status.StatusOuterClass.Status getStatus();
/**
* .clarifai.api.status.Status status = 1;
*/
clarifai2.internal.grpc.api.status.StatusOuterClass.StatusOrBuilder getStatusOrBuilder();
}
/**
* Protobuf type {@code clarifai.api.status.BaseResponse}
*/
public static final class BaseResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.status.BaseResponse)
BaseResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BaseResponse.newBuilder() to construct.
private BaseResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BaseResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BaseResponse(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(clarifai2.internal.grpc.api.status.StatusOuterClass.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_BaseResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_BaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse.class, clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private clarifai2.internal.grpc.api.status.StatusOuterClass.Status status_;
/**
* .clarifai.api.status.Status status = 1;
*/
public boolean hasStatus() {
return status_ != null;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public clarifai2.internal.grpc.api.status.StatusOuterClass.Status getStatus() {
return status_ == null ? clarifai2.internal.grpc.api.status.StatusOuterClass.Status.getDefaultInstance() : status_;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public clarifai2.internal.grpc.api.status.StatusOuterClass.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != null) {
output.writeMessage(1, getStatus());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, 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 clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse)) {
return super.equals(obj);
}
clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse other = (clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse) obj;
boolean result = true;
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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 clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse 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 clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse 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 clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code clarifai.api.status.BaseResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.status.BaseResponse)
clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_BaseResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_BaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse.class, clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse.Builder.class);
}
// Construct using clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_BaseResponse_descriptor;
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse getDefaultInstanceForType() {
return clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse.getDefaultInstance();
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse build() {
clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse buildPartial() {
clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse result = new clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse(this);
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse) {
return mergeFrom((clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse other) {
if (other == clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private clarifai2.internal.grpc.api.status.StatusOuterClass.Status status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
clarifai2.internal.grpc.api.status.StatusOuterClass.Status, clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder, clarifai2.internal.grpc.api.status.StatusOuterClass.StatusOrBuilder> statusBuilder_;
/**
* .clarifai.api.status.Status status = 1;
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public clarifai2.internal.grpc.api.status.StatusOuterClass.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? clarifai2.internal.grpc.api.status.StatusOuterClass.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* .clarifai.api.status.Status status = 1;
*/
public Builder setStatus(clarifai2.internal.grpc.api.status.StatusOuterClass.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public Builder setStatus(
clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public Builder mergeStatus(clarifai2.internal.grpc.api.status.StatusOuterClass.Status value) {
if (statusBuilder_ == null) {
if (status_ != null) {
status_ =
clarifai2.internal.grpc.api.status.StatusOuterClass.Status.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.status.Status status = 1;
*/
public clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* .clarifai.api.status.Status status = 1;
*/
public clarifai2.internal.grpc.api.status.StatusOuterClass.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
clarifai2.internal.grpc.api.status.StatusOuterClass.Status.getDefaultInstance() : status_;
}
}
/**
* .clarifai.api.status.Status status = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
clarifai2.internal.grpc.api.status.StatusOuterClass.Status, clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder, clarifai2.internal.grpc.api.status.StatusOuterClass.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
clarifai2.internal.grpc.api.status.StatusOuterClass.Status, clarifai2.internal.grpc.api.status.StatusOuterClass.Status.Builder, clarifai2.internal.grpc.api.status.StatusOuterClass.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.status.BaseResponse)
}
// @@protoc_insertion_point(class_scope:clarifai.api.status.BaseResponse)
private static final clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse();
}
public static clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BaseResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BaseResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public clarifai2.internal.grpc.api.status.StatusOuterClass.BaseResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_clarifai_api_status_Status_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_clarifai_api_status_Status_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_clarifai_api_status_BaseResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_clarifai_api_status_BaseResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n&proto/clarifai/api/status/status.proto" +
"\022\023clarifai.api.status\032+proto/clarifai/ap" +
"i/status/status_code.proto\"\240\001\n\006Status\022-\n" +
"\004code\030\001 \001(\0162\037.clarifai.api.status.Status" +
"Code\022\023\n\013description\030\002 \001(\t\022\017\n\007details\030\003 \001" +
"(\t\022\031\n\021percent_completed\030\005 \001(\r\022\026\n\016time_re" +
"maining\030\006 \001(\r\022\016\n\006req_id\030\007 \001(\t\";\n\014BaseRes" +
"ponse\022+\n\006status\030\001 \001(\0132\033.clarifai.api.sta" +
"tus.StatusBR\n\"clarifai2.internal.grpc.ap" +
"i.statusZ\006status\242\002\004CAIP\302\002\001_\312\002\030Clarifai\\I" +
"nternal\\Statusb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
clarifai2.internal.grpc.api.status.StatusCodeOuterClass.getDescriptor(),
}, assigner);
internal_static_clarifai_api_status_Status_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_clarifai_api_status_Status_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_clarifai_api_status_Status_descriptor,
new java.lang.String[] { "Code", "Description", "Details", "PercentCompleted", "TimeRemaining", "ReqId", });
internal_static_clarifai_api_status_BaseResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_clarifai_api_status_BaseResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_clarifai_api_status_BaseResponse_descriptor,
new java.lang.String[] { "Status", });
clarifai2.internal.grpc.api.status.StatusCodeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy