All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.status.Status Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/status/status.proto

package com.clarifai.grpc.api.status;

/**
 * Protobuf type {@code clarifai.api.status.Status}
 */
public 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_ = "";
    stackTrace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    reqId_ = "";
    internalDetails_ = "";
    developerNotes_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Status();
  }

  @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;
          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 34: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              stackTrace_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            stackTrace_.add(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;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            internalDetails_ = s;
            break;
          }
          case 74: {
            com.clarifai.grpc.api.status.RedirectInfo.Builder subBuilder = null;
            if (redirectInfo_ != null) {
              subBuilder = redirectInfo_.toBuilder();
            }
            redirectInfo_ = input.readMessage(com.clarifai.grpc.api.status.RedirectInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(redirectInfo_);
              redirectInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 82: {
            java.lang.String s = input.readStringRequireUtf8();

            developerNotes_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        stackTrace_ = stackTrace_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.clarifai.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.clarifai.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.clarifai.grpc.api.status.Status.class, com.clarifai.grpc.api.status.Status.Builder.class);
  }

  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * 
   * Status code from internal codes.
   * 
* * .clarifai.api.status.StatusCode code = 1; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** *
   * Status code from internal codes.
   * 
* * .clarifai.api.status.StatusCode code = 1; * @return The code. */ @java.lang.Override public com.clarifai.grpc.api.status.StatusCode getCode() { @SuppressWarnings("deprecation") com.clarifai.grpc.api.status.StatusCode result = com.clarifai.grpc.api.status.StatusCode.valueOf(code_); return result == null ? com.clarifai.grpc.api.status.StatusCode.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
   * A short description of the error.
   * 
* * string description = 2; * @return The description. */ @java.lang.Override 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; } } /** *
   * A short description of the error.
   * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override 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_; /** *
   * More details of the given error.
   * These details may be exposed to non-technical users.
   * For technical details, try to use developer_notes field.
   * 
* * string details = 3; * @return The details. */ @java.lang.Override 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; } } /** *
   * More details of the given error.
   * These details may be exposed to non-technical users.
   * For technical details, try to use developer_notes field.
   * 
* * string details = 3; * @return The bytes for details. */ @java.lang.Override 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 STACK_TRACE_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList stackTrace_; /** *
   * For some environment we may return a stack trace to help debug
   * any issues.
   * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @return A list containing the stackTrace. */ public com.google.protobuf.ProtocolStringList getStackTraceList() { return stackTrace_; } /** *
   * For some environment we may return a stack trace to help debug
   * any issues.
   * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @return The count of stackTrace. */ public int getStackTraceCount() { return stackTrace_.size(); } /** *
   * For some environment we may return a stack trace to help debug
   * any issues.
   * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param index The index of the element to return. * @return The stackTrace at the given index. */ public java.lang.String getStackTrace(int index) { return stackTrace_.get(index); } /** *
   * For some environment we may return a stack trace to help debug
   * any issues.
   * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param index The index of the value to return. * @return The bytes of the stackTrace at the given index. */ public com.google.protobuf.ByteString getStackTraceBytes(int index) { return stackTrace_.getByteString(index); } public static final int PERCENT_COMPLETED_FIELD_NUMBER = 5; private int percentCompleted_; /** *
   * specifically for long running jobs
   * 
* * uint32 percent_completed = 5; * @return The percentCompleted. */ @java.lang.Override public int getPercentCompleted() { return percentCompleted_; } public static final int TIME_REMAINING_FIELD_NUMBER = 6; private int timeRemaining_; /** *
   * if status is pending, how much time is remaining (in seconds)
   * 
* * uint32 time_remaining = 6; * @return The timeRemaining. */ @java.lang.Override public int getTimeRemaining() { return timeRemaining_; } public static final int REQ_ID_FIELD_NUMBER = 7; private volatile java.lang.Object reqId_; /** *
   * A request ID may be present, to help monitoring and tracking requests
   * 
* * string req_id = 7; * @return The reqId. */ @java.lang.Override 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; } } /** *
   * A request ID may be present, to help monitoring and tracking requests
   * 
* * string req_id = 7; * @return The bytes for reqId. */ @java.lang.Override 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; } } public static final int INTERNAL_DETAILS_FIELD_NUMBER = 8; private volatile java.lang.Object internalDetails_; /** *
   * Internal Annotation (do not set in production, for internal Clarifai use only).
   * 
* * string internal_details = 8 [(.clarifai.auth.util.cl_private_field) = true]; * @return The internalDetails. */ @java.lang.Override public java.lang.String getInternalDetails() { java.lang.Object ref = internalDetails_; 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(); internalDetails_ = s; return s; } } /** *
   * Internal Annotation (do not set in production, for internal Clarifai use only).
   * 
* * string internal_details = 8 [(.clarifai.auth.util.cl_private_field) = true]; * @return The bytes for internalDetails. */ @java.lang.Override public com.google.protobuf.ByteString getInternalDetailsBytes() { java.lang.Object ref = internalDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); internalDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REDIRECT_INFO_FIELD_NUMBER = 9; private com.clarifai.grpc.api.status.RedirectInfo redirectInfo_; /** *
   * Resource location info for redirect, when resource location has been changed.
   * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; * @return Whether the redirectInfo field is set. */ @java.lang.Override public boolean hasRedirectInfo() { return redirectInfo_ != null; } /** *
   * Resource location info for redirect, when resource location has been changed.
   * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; * @return The redirectInfo. */ @java.lang.Override public com.clarifai.grpc.api.status.RedirectInfo getRedirectInfo() { return redirectInfo_ == null ? com.clarifai.grpc.api.status.RedirectInfo.getDefaultInstance() : redirectInfo_; } /** *
   * Resource location info for redirect, when resource location has been changed.
   * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ @java.lang.Override public com.clarifai.grpc.api.status.RedirectInfoOrBuilder getRedirectInfoOrBuilder() { return getRedirectInfo(); } public static final int DEVELOPER_NOTES_FIELD_NUMBER = 10; private volatile java.lang.Object developerNotes_; /** *
   * Notes for developer.
   * These notes are rather technical details for developers how to interpret the status,
   * e.g. why an error occurred and how to avoid getting the error.
   * 
* * string developer_notes = 10; * @return The developerNotes. */ @java.lang.Override public java.lang.String getDeveloperNotes() { java.lang.Object ref = developerNotes_; 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(); developerNotes_ = s; return s; } } /** *
   * Notes for developer.
   * These notes are rather technical details for developers how to interpret the status,
   * e.g. why an error occurred and how to avoid getting the error.
   * 
* * string developer_notes = 10; * @return The bytes for developerNotes. */ @java.lang.Override public com.google.protobuf.ByteString getDeveloperNotesBytes() { java.lang.Object ref = developerNotes_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); developerNotes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (code_ != com.clarifai.grpc.api.status.StatusCode.ZERO.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_); } for (int i = 0; i < stackTrace_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stackTrace_.getRaw(i)); } if (percentCompleted_ != 0) { output.writeUInt32(5, percentCompleted_); } if (timeRemaining_ != 0) { output.writeUInt32(6, timeRemaining_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalDetails_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, internalDetails_); } if (redirectInfo_ != null) { output.writeMessage(9, getRedirectInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(developerNotes_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, developerNotes_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != com.clarifai.grpc.api.status.StatusCode.ZERO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); } { int dataSize = 0; for (int i = 0; i < stackTrace_.size(); i++) { dataSize += computeStringSizeNoTag(stackTrace_.getRaw(i)); } size += dataSize; size += 1 * getStackTraceList().size(); } if (percentCompleted_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, percentCompleted_); } if (timeRemaining_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, timeRemaining_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalDetails_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, internalDetails_); } if (redirectInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRedirectInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(developerNotes_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, developerNotes_); } 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.status.Status)) { return super.equals(obj); } com.clarifai.grpc.api.status.Status other = (com.clarifai.grpc.api.status.Status) obj; if (code_ != other.code_) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getDetails() .equals(other.getDetails())) return false; if (!getStackTraceList() .equals(other.getStackTraceList())) return false; if (getPercentCompleted() != other.getPercentCompleted()) return false; if (getTimeRemaining() != other.getTimeRemaining()) return false; if (!getReqId() .equals(other.getReqId())) return false; if (!getInternalDetails() .equals(other.getInternalDetails())) return false; if (hasRedirectInfo() != other.hasRedirectInfo()) return false; if (hasRedirectInfo()) { if (!getRedirectInfo() .equals(other.getRedirectInfo())) return false; } if (!getDeveloperNotes() .equals(other.getDeveloperNotes())) 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(); 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(); if (getStackTraceCount() > 0) { hash = (37 * hash) + STACK_TRACE_FIELD_NUMBER; hash = (53 * hash) + getStackTraceList().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 = (37 * hash) + INTERNAL_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getInternalDetails().hashCode(); if (hasRedirectInfo()) { hash = (37 * hash) + REDIRECT_INFO_FIELD_NUMBER; hash = (53 * hash) + getRedirectInfo().hashCode(); } hash = (37 * hash) + DEVELOPER_NOTES_FIELD_NUMBER; hash = (53 * hash) + getDeveloperNotes().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.status.Status parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.status.Status 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.status.Status parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.status.Status 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.status.Status parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.status.Status parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.status.Status parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.status.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 com.clarifai.grpc.api.status.Status parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.status.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 com.clarifai.grpc.api.status.Status parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.status.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); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.status.Status 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; } /** * 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) com.clarifai.grpc.api.status.StatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.status.Status.class, com.clarifai.grpc.api.status.Status.Builder.class); } // Construct using com.clarifai.grpc.api.status.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) { } } @java.lang.Override public Builder clear() { super.clear(); code_ = 0; description_ = ""; details_ = ""; stackTrace_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); percentCompleted_ = 0; timeRemaining_ = 0; reqId_ = ""; internalDetails_ = ""; if (redirectInfoBuilder_ == null) { redirectInfo_ = null; } else { redirectInfo_ = null; redirectInfoBuilder_ = null; } developerNotes_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.status.StatusOuterClass.internal_static_clarifai_api_status_Status_descriptor; } @java.lang.Override public com.clarifai.grpc.api.status.Status getDefaultInstanceForType() { return com.clarifai.grpc.api.status.Status.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.status.Status build() { com.clarifai.grpc.api.status.Status result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.status.Status buildPartial() { com.clarifai.grpc.api.status.Status result = new com.clarifai.grpc.api.status.Status(this); int from_bitField0_ = bitField0_; result.code_ = code_; result.description_ = description_; result.details_ = details_; if (((bitField0_ & 0x00000001) != 0)) { stackTrace_ = stackTrace_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.stackTrace_ = stackTrace_; result.percentCompleted_ = percentCompleted_; result.timeRemaining_ = timeRemaining_; result.reqId_ = reqId_; result.internalDetails_ = internalDetails_; if (redirectInfoBuilder_ == null) { result.redirectInfo_ = redirectInfo_; } else { result.redirectInfo_ = redirectInfoBuilder_.build(); } result.developerNotes_ = developerNotes_; 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.status.Status) { return mergeFrom((com.clarifai.grpc.api.status.Status)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.status.Status other) { if (other == com.clarifai.grpc.api.status.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.stackTrace_.isEmpty()) { if (stackTrace_.isEmpty()) { stackTrace_ = other.stackTrace_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStackTraceIsMutable(); stackTrace_.addAll(other.stackTrace_); } onChanged(); } if (other.getPercentCompleted() != 0) { setPercentCompleted(other.getPercentCompleted()); } if (other.getTimeRemaining() != 0) { setTimeRemaining(other.getTimeRemaining()); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (!other.getInternalDetails().isEmpty()) { internalDetails_ = other.internalDetails_; onChanged(); } if (other.hasRedirectInfo()) { mergeRedirectInfo(other.getRedirectInfo()); } if (!other.getDeveloperNotes().isEmpty()) { developerNotes_ = other.developerNotes_; onChanged(); } 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.status.Status parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.status.Status) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int code_ = 0; /** *
     * Status code from internal codes.
     * 
* * .clarifai.api.status.StatusCode code = 1; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** *
     * Status code from internal codes.
     * 
* * .clarifai.api.status.StatusCode code = 1; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /** *
     * Status code from internal codes.
     * 
* * .clarifai.api.status.StatusCode code = 1; * @return The code. */ @java.lang.Override public com.clarifai.grpc.api.status.StatusCode getCode() { @SuppressWarnings("deprecation") com.clarifai.grpc.api.status.StatusCode result = com.clarifai.grpc.api.status.StatusCode.valueOf(code_); return result == null ? com.clarifai.grpc.api.status.StatusCode.UNRECOGNIZED : result; } /** *
     * Status code from internal codes.
     * 
* * .clarifai.api.status.StatusCode code = 1; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(com.clarifai.grpc.api.status.StatusCode value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /** *
     * Status code from internal codes.
     * 
* * .clarifai.api.status.StatusCode code = 1; * @return This builder for chaining. */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * A short description of the error.
     * 
* * string description = 2; * @return The description. */ 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; } } /** *
     * A short description of the error.
     * 
* * string description = 2; * @return The bytes for description. */ 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; } } /** *
     * A short description of the error.
     * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
     * A short description of the error.
     * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * A short description of the error.
     * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ 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_ = ""; /** *
     * More details of the given error.
     * These details may be exposed to non-technical users.
     * For technical details, try to use developer_notes field.
     * 
* * string details = 3; * @return The details. */ 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; } } /** *
     * More details of the given error.
     * These details may be exposed to non-technical users.
     * For technical details, try to use developer_notes field.
     * 
* * string details = 3; * @return The bytes for details. */ 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; } } /** *
     * More details of the given error.
     * These details may be exposed to non-technical users.
     * For technical details, try to use developer_notes field.
     * 
* * string details = 3; * @param value The details to set. * @return This builder for chaining. */ public Builder setDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } details_ = value; onChanged(); return this; } /** *
     * More details of the given error.
     * These details may be exposed to non-technical users.
     * For technical details, try to use developer_notes field.
     * 
* * string details = 3; * @return This builder for chaining. */ public Builder clearDetails() { details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** *
     * More details of the given error.
     * These details may be exposed to non-technical users.
     * For technical details, try to use developer_notes field.
     * 
* * string details = 3; * @param value The bytes for details to set. * @return This builder for chaining. */ public Builder setDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); details_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList stackTrace_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStackTraceIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTrace_ = new com.google.protobuf.LazyStringArrayList(stackTrace_); bitField0_ |= 0x00000001; } } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @return A list containing the stackTrace. */ public com.google.protobuf.ProtocolStringList getStackTraceList() { return stackTrace_.getUnmodifiableView(); } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @return The count of stackTrace. */ public int getStackTraceCount() { return stackTrace_.size(); } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param index The index of the element to return. * @return The stackTrace at the given index. */ public java.lang.String getStackTrace(int index) { return stackTrace_.get(index); } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param index The index of the value to return. * @return The bytes of the stackTrace at the given index. */ public com.google.protobuf.ByteString getStackTraceBytes(int index) { return stackTrace_.getByteString(index); } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param index The index to set the value at. * @param value The stackTrace to set. * @return This builder for chaining. */ public Builder setStackTrace( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStackTraceIsMutable(); stackTrace_.set(index, value); onChanged(); return this; } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param value The stackTrace to add. * @return This builder for chaining. */ public Builder addStackTrace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStackTraceIsMutable(); stackTrace_.add(value); onChanged(); return this; } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param values The stackTrace to add. * @return This builder for chaining. */ public Builder addAllStackTrace( java.lang.Iterable values) { ensureStackTraceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stackTrace_); onChanged(); return this; } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @return This builder for chaining. */ public Builder clearStackTrace() { stackTrace_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * For some environment we may return a stack trace to help debug
     * any issues.
     * 
* * repeated string stack_trace = 4 [(.clarifai.auth.util.cl_private_field) = true]; * @param value The bytes of the stackTrace to add. * @return This builder for chaining. */ public Builder addStackTraceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStackTraceIsMutable(); stackTrace_.add(value); onChanged(); return this; } private int percentCompleted_ ; /** *
     * specifically for long running jobs
     * 
* * uint32 percent_completed = 5; * @return The percentCompleted. */ @java.lang.Override public int getPercentCompleted() { return percentCompleted_; } /** *
     * specifically for long running jobs
     * 
* * uint32 percent_completed = 5; * @param value The percentCompleted to set. * @return This builder for chaining. */ public Builder setPercentCompleted(int value) { percentCompleted_ = value; onChanged(); return this; } /** *
     * specifically for long running jobs
     * 
* * uint32 percent_completed = 5; * @return This builder for chaining. */ public Builder clearPercentCompleted() { percentCompleted_ = 0; onChanged(); return this; } private int timeRemaining_ ; /** *
     * if status is pending, how much time is remaining (in seconds)
     * 
* * uint32 time_remaining = 6; * @return The timeRemaining. */ @java.lang.Override public int getTimeRemaining() { return timeRemaining_; } /** *
     * if status is pending, how much time is remaining (in seconds)
     * 
* * uint32 time_remaining = 6; * @param value The timeRemaining to set. * @return This builder for chaining. */ public Builder setTimeRemaining(int value) { timeRemaining_ = value; onChanged(); return this; } /** *
     * if status is pending, how much time is remaining (in seconds)
     * 
* * uint32 time_remaining = 6; * @return This builder for chaining. */ public Builder clearTimeRemaining() { timeRemaining_ = 0; onChanged(); return this; } private java.lang.Object reqId_ = ""; /** *
     * A request ID may be present, to help monitoring and tracking requests
     * 
* * string req_id = 7; * @return The reqId. */ 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; } } /** *
     * A request ID may be present, to help monitoring and tracking requests
     * 
* * string req_id = 7; * @return The bytes for reqId. */ 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; } } /** *
     * A request ID may be present, to help monitoring and tracking requests
     * 
* * string req_id = 7; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** *
     * A request ID may be present, to help monitoring and tracking requests
     * 
* * string req_id = 7; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** *
     * A request ID may be present, to help monitoring and tracking requests
     * 
* * string req_id = 7; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private java.lang.Object internalDetails_ = ""; /** *
     * Internal Annotation (do not set in production, for internal Clarifai use only).
     * 
* * string internal_details = 8 [(.clarifai.auth.util.cl_private_field) = true]; * @return The internalDetails. */ public java.lang.String getInternalDetails() { java.lang.Object ref = internalDetails_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); internalDetails_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Internal Annotation (do not set in production, for internal Clarifai use only).
     * 
* * string internal_details = 8 [(.clarifai.auth.util.cl_private_field) = true]; * @return The bytes for internalDetails. */ public com.google.protobuf.ByteString getInternalDetailsBytes() { java.lang.Object ref = internalDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); internalDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Internal Annotation (do not set in production, for internal Clarifai use only).
     * 
* * string internal_details = 8 [(.clarifai.auth.util.cl_private_field) = true]; * @param value The internalDetails to set. * @return This builder for chaining. */ public Builder setInternalDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } internalDetails_ = value; onChanged(); return this; } /** *
     * Internal Annotation (do not set in production, for internal Clarifai use only).
     * 
* * string internal_details = 8 [(.clarifai.auth.util.cl_private_field) = true]; * @return This builder for chaining. */ public Builder clearInternalDetails() { internalDetails_ = getDefaultInstance().getInternalDetails(); onChanged(); return this; } /** *
     * Internal Annotation (do not set in production, for internal Clarifai use only).
     * 
* * string internal_details = 8 [(.clarifai.auth.util.cl_private_field) = true]; * @param value The bytes for internalDetails to set. * @return This builder for chaining. */ public Builder setInternalDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); internalDetails_ = value; onChanged(); return this; } private com.clarifai.grpc.api.status.RedirectInfo redirectInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.RedirectInfo, com.clarifai.grpc.api.status.RedirectInfo.Builder, com.clarifai.grpc.api.status.RedirectInfoOrBuilder> redirectInfoBuilder_; /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; * @return Whether the redirectInfo field is set. */ public boolean hasRedirectInfo() { return redirectInfoBuilder_ != null || redirectInfo_ != null; } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; * @return The redirectInfo. */ public com.clarifai.grpc.api.status.RedirectInfo getRedirectInfo() { if (redirectInfoBuilder_ == null) { return redirectInfo_ == null ? com.clarifai.grpc.api.status.RedirectInfo.getDefaultInstance() : redirectInfo_; } else { return redirectInfoBuilder_.getMessage(); } } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ public Builder setRedirectInfo(com.clarifai.grpc.api.status.RedirectInfo value) { if (redirectInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } redirectInfo_ = value; onChanged(); } else { redirectInfoBuilder_.setMessage(value); } return this; } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ public Builder setRedirectInfo( com.clarifai.grpc.api.status.RedirectInfo.Builder builderForValue) { if (redirectInfoBuilder_ == null) { redirectInfo_ = builderForValue.build(); onChanged(); } else { redirectInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ public Builder mergeRedirectInfo(com.clarifai.grpc.api.status.RedirectInfo value) { if (redirectInfoBuilder_ == null) { if (redirectInfo_ != null) { redirectInfo_ = com.clarifai.grpc.api.status.RedirectInfo.newBuilder(redirectInfo_).mergeFrom(value).buildPartial(); } else { redirectInfo_ = value; } onChanged(); } else { redirectInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ public Builder clearRedirectInfo() { if (redirectInfoBuilder_ == null) { redirectInfo_ = null; onChanged(); } else { redirectInfo_ = null; redirectInfoBuilder_ = null; } return this; } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ public com.clarifai.grpc.api.status.RedirectInfo.Builder getRedirectInfoBuilder() { onChanged(); return getRedirectInfoFieldBuilder().getBuilder(); } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ public com.clarifai.grpc.api.status.RedirectInfoOrBuilder getRedirectInfoOrBuilder() { if (redirectInfoBuilder_ != null) { return redirectInfoBuilder_.getMessageOrBuilder(); } else { return redirectInfo_ == null ? com.clarifai.grpc.api.status.RedirectInfo.getDefaultInstance() : redirectInfo_; } } /** *
     * Resource location info for redirect, when resource location has been changed.
     * 
* * .clarifai.api.status.RedirectInfo redirect_info = 9 [(.clarifai.auth.util.cl_private_field) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.RedirectInfo, com.clarifai.grpc.api.status.RedirectInfo.Builder, com.clarifai.grpc.api.status.RedirectInfoOrBuilder> getRedirectInfoFieldBuilder() { if (redirectInfoBuilder_ == null) { redirectInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.RedirectInfo, com.clarifai.grpc.api.status.RedirectInfo.Builder, com.clarifai.grpc.api.status.RedirectInfoOrBuilder>( getRedirectInfo(), getParentForChildren(), isClean()); redirectInfo_ = null; } return redirectInfoBuilder_; } private java.lang.Object developerNotes_ = ""; /** *
     * Notes for developer.
     * These notes are rather technical details for developers how to interpret the status,
     * e.g. why an error occurred and how to avoid getting the error.
     * 
* * string developer_notes = 10; * @return The developerNotes. */ public java.lang.String getDeveloperNotes() { java.lang.Object ref = developerNotes_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); developerNotes_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Notes for developer.
     * These notes are rather technical details for developers how to interpret the status,
     * e.g. why an error occurred and how to avoid getting the error.
     * 
* * string developer_notes = 10; * @return The bytes for developerNotes. */ public com.google.protobuf.ByteString getDeveloperNotesBytes() { java.lang.Object ref = developerNotes_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); developerNotes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Notes for developer.
     * These notes are rather technical details for developers how to interpret the status,
     * e.g. why an error occurred and how to avoid getting the error.
     * 
* * string developer_notes = 10; * @param value The developerNotes to set. * @return This builder for chaining. */ public Builder setDeveloperNotes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } developerNotes_ = value; onChanged(); return this; } /** *
     * Notes for developer.
     * These notes are rather technical details for developers how to interpret the status,
     * e.g. why an error occurred and how to avoid getting the error.
     * 
* * string developer_notes = 10; * @return This builder for chaining. */ public Builder clearDeveloperNotes() { developerNotes_ = getDefaultInstance().getDeveloperNotes(); onChanged(); return this; } /** *
     * Notes for developer.
     * These notes are rather technical details for developers how to interpret the status,
     * e.g. why an error occurred and how to avoid getting the error.
     * 
* * string developer_notes = 10; * @param value The bytes for developerNotes to set. * @return This builder for chaining. */ public Builder setDeveloperNotesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); developerNotes_ = value; 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.status.Status) } // @@protoc_insertion_point(class_scope:clarifai.api.status.Status) private static final com.clarifai.grpc.api.status.Status DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.status.Status(); } public static com.clarifai.grpc.api.status.Status getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override 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; } @java.lang.Override public com.clarifai.grpc.api.status.Status getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy