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

com.clarifai.grpc.api.PatchAnnotationsStatusRequest Maven / Gradle / Ivy

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

package com.clarifai.grpc.api;

/**
 * 
 * PatchAnnotationsStatusRequest
 * 
* * Protobuf type {@code clarifai.api.PatchAnnotationsStatusRequest} */ public final class PatchAnnotationsStatusRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.PatchAnnotationsStatusRequest) PatchAnnotationsStatusRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PatchAnnotationsStatusRequest.newBuilder() to construct. private PatchAnnotationsStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PatchAnnotationsStatusRequest() { userIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; taskId_ = ""; statusCodes_ = java.util.Collections.emptyList(); action_ = ""; statusCode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PatchAnnotationsStatusRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PatchAnnotationsStatusRequest( 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 10: { com.clarifai.grpc.api.UserAppIDSet.Builder subBuilder = null; if (userAppId_ != null) { subBuilder = userAppId_.toBuilder(); } userAppId_ = input.readMessage(com.clarifai.grpc.api.UserAppIDSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(userAppId_); userAppId_ = subBuilder.buildPartial(); } break; } case 16: { int rawValue = input.readEnum(); statusCode_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { userIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } userIds_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); taskId_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); action_ = s; break; } case 48: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { statusCodes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } statusCodes_.add(rawValue); break; } case 50: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { statusCodes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } statusCodes_.add(rawValue); } input.popLimit(oldLimit); 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)) { userIds_ = userIds_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { statusCodes_ = java.util.Collections.unmodifiableList(statusCodes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PatchAnnotationsStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PatchAnnotationsStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.PatchAnnotationsStatusRequest.class, com.clarifai.grpc.api.PatchAnnotationsStatusRequest.Builder.class); } public static final int USER_APP_ID_FIELD_NUMBER = 1; private com.clarifai.grpc.api.UserAppIDSet userAppId_; /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return Whether the userAppId field is set. */ @java.lang.Override public boolean hasUserAppId() { return userAppId_ != null; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return The userAppId. */ @java.lang.Override public com.clarifai.grpc.api.UserAppIDSet getUserAppId() { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ @java.lang.Override public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() { return getUserAppId(); } public static final int USER_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList userIds_; /** *
   * Filter by user IDs
   * 
* * repeated string user_ids = 3; * @return A list containing the userIds. */ public com.google.protobuf.ProtocolStringList getUserIdsList() { return userIds_; } /** *
   * Filter by user IDs
   * 
* * repeated string user_ids = 3; * @return The count of userIds. */ public int getUserIdsCount() { return userIds_.size(); } /** *
   * Filter by user IDs
   * 
* * repeated string user_ids = 3; * @param index The index of the element to return. * @return The userIds at the given index. */ public java.lang.String getUserIds(int index) { return userIds_.get(index); } /** *
   * Filter by user IDs
   * 
* * repeated string user_ids = 3; * @param index The index of the value to return. * @return The bytes of the userIds at the given index. */ public com.google.protobuf.ByteString getUserIdsBytes(int index) { return userIds_.getByteString(index); } public static final int TASK_ID_FIELD_NUMBER = 4; private volatile java.lang.Object taskId_; /** *
   * Filter by task ID
   * 
* * string task_id = 4; * @return The taskId. */ @java.lang.Override public java.lang.String getTaskId() { java.lang.Object ref = taskId_; 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(); taskId_ = s; return s; } } /** *
   * Filter by task ID
   * 
* * string task_id = 4; * @return The bytes for taskId. */ @java.lang.Override public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); taskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_CODES_FIELD_NUMBER = 6; private java.util.List statusCodes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.clarifai.grpc.api.status.StatusCode> statusCodes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.clarifai.grpc.api.status.StatusCode>() { public com.clarifai.grpc.api.status.StatusCode convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.clarifai.grpc.api.status.StatusCode result = com.clarifai.grpc.api.status.StatusCode.valueOf(from); return result == null ? com.clarifai.grpc.api.status.StatusCode.UNRECOGNIZED : result; } }; /** *
   * Filter by Status codes
   * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @return A list containing the statusCodes. */ @java.lang.Override public java.util.List getStatusCodesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.clarifai.grpc.api.status.StatusCode>(statusCodes_, statusCodes_converter_); } /** *
   * Filter by Status codes
   * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @return The count of statusCodes. */ @java.lang.Override public int getStatusCodesCount() { return statusCodes_.size(); } /** *
   * Filter by Status codes
   * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param index The index of the element to return. * @return The statusCodes at the given index. */ @java.lang.Override public com.clarifai.grpc.api.status.StatusCode getStatusCodes(int index) { return statusCodes_converter_.convert(statusCodes_.get(index)); } /** *
   * Filter by Status codes
   * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @return A list containing the enum numeric values on the wire for statusCodes. */ @java.lang.Override public java.util.List getStatusCodesValueList() { return statusCodes_; } /** *
   * Filter by Status codes
   * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of statusCodes at the given index. */ @java.lang.Override public int getStatusCodesValue(int index) { return statusCodes_.get(index); } private int statusCodesMemoizedSerializedSize; public static final int ACTION_FIELD_NUMBER = 5; private volatile java.lang.Object action_; /** *
   * 'overwrite' is supported
   * 
* * string action = 5; * @return The action. */ @java.lang.Override public java.lang.String getAction() { java.lang.Object ref = action_; 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(); action_ = s; return s; } } /** *
   * 'overwrite' is supported
   * 
* * string action = 5; * @return The bytes for action. */ @java.lang.Override public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); action_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_CODE_FIELD_NUMBER = 2; private int statusCode_; /** *
   * Update filtered annotations to this status
   * 
* * .clarifai.api.status.StatusCode status_code = 2; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** *
   * Update filtered annotations to this status
   * 
* * .clarifai.api.status.StatusCode status_code = 2; * @return The statusCode. */ @java.lang.Override public com.clarifai.grpc.api.status.StatusCode getStatusCode() { @SuppressWarnings("deprecation") com.clarifai.grpc.api.status.StatusCode result = com.clarifai.grpc.api.status.StatusCode.valueOf(statusCode_); return result == null ? com.clarifai.grpc.api.status.StatusCode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (userAppId_ != null) { output.writeMessage(1, getUserAppId()); } if (statusCode_ != com.clarifai.grpc.api.status.StatusCode.ZERO.getNumber()) { output.writeEnum(2, statusCode_); } for (int i = 0; i < userIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userIds_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, taskId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, action_); } if (getStatusCodesList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(statusCodesMemoizedSerializedSize); } for (int i = 0; i < statusCodes_.size(); i++) { output.writeEnumNoTag(statusCodes_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (userAppId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getUserAppId()); } if (statusCode_ != com.clarifai.grpc.api.status.StatusCode.ZERO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, statusCode_); } { int dataSize = 0; for (int i = 0; i < userIds_.size(); i++) { dataSize += computeStringSizeNoTag(userIds_.getRaw(i)); } size += dataSize; size += 1 * getUserIdsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, taskId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, action_); } { int dataSize = 0; for (int i = 0; i < statusCodes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(statusCodes_.get(i)); } size += dataSize; if (!getStatusCodesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }statusCodesMemoizedSerializedSize = dataSize; } 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.PatchAnnotationsStatusRequest)) { return super.equals(obj); } com.clarifai.grpc.api.PatchAnnotationsStatusRequest other = (com.clarifai.grpc.api.PatchAnnotationsStatusRequest) obj; if (hasUserAppId() != other.hasUserAppId()) return false; if (hasUserAppId()) { if (!getUserAppId() .equals(other.getUserAppId())) return false; } if (!getUserIdsList() .equals(other.getUserIdsList())) return false; if (!getTaskId() .equals(other.getTaskId())) return false; if (!statusCodes_.equals(other.statusCodes_)) return false; if (!getAction() .equals(other.getAction())) return false; if (statusCode_ != other.statusCode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUserAppId()) { hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER; hash = (53 * hash) + getUserAppId().hashCode(); } if (getUserIdsCount() > 0) { hash = (37 * hash) + USER_IDS_FIELD_NUMBER; hash = (53 * hash) + getUserIdsList().hashCode(); } hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); if (getStatusCodesCount() > 0) { hash = (37 * hash) + STATUS_CODES_FIELD_NUMBER; hash = (53 * hash) + statusCodes_.hashCode(); } hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; hash = (53 * hash) + statusCode_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest 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.PatchAnnotationsStatusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest 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.PatchAnnotationsStatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest 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.PatchAnnotationsStatusRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest 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.PatchAnnotationsStatusRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest 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.PatchAnnotationsStatusRequest 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; } /** *
   * PatchAnnotationsStatusRequest
   * 
* * Protobuf type {@code clarifai.api.PatchAnnotationsStatusRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.PatchAnnotationsStatusRequest) com.clarifai.grpc.api.PatchAnnotationsStatusRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PatchAnnotationsStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PatchAnnotationsStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.PatchAnnotationsStatusRequest.class, com.clarifai.grpc.api.PatchAnnotationsStatusRequest.Builder.class); } // Construct using com.clarifai.grpc.api.PatchAnnotationsStatusRequest.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(); if (userAppIdBuilder_ == null) { userAppId_ = null; } else { userAppId_ = null; userAppIdBuilder_ = null; } userIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); taskId_ = ""; statusCodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); action_ = ""; statusCode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PatchAnnotationsStatusRequest_descriptor; } @java.lang.Override public com.clarifai.grpc.api.PatchAnnotationsStatusRequest getDefaultInstanceForType() { return com.clarifai.grpc.api.PatchAnnotationsStatusRequest.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.PatchAnnotationsStatusRequest build() { com.clarifai.grpc.api.PatchAnnotationsStatusRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.PatchAnnotationsStatusRequest buildPartial() { com.clarifai.grpc.api.PatchAnnotationsStatusRequest result = new com.clarifai.grpc.api.PatchAnnotationsStatusRequest(this); int from_bitField0_ = bitField0_; if (userAppIdBuilder_ == null) { result.userAppId_ = userAppId_; } else { result.userAppId_ = userAppIdBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { userIds_ = userIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.userIds_ = userIds_; result.taskId_ = taskId_; if (((bitField0_ & 0x00000002) != 0)) { statusCodes_ = java.util.Collections.unmodifiableList(statusCodes_); bitField0_ = (bitField0_ & ~0x00000002); } result.statusCodes_ = statusCodes_; result.action_ = action_; result.statusCode_ = statusCode_; 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.PatchAnnotationsStatusRequest) { return mergeFrom((com.clarifai.grpc.api.PatchAnnotationsStatusRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.PatchAnnotationsStatusRequest other) { if (other == com.clarifai.grpc.api.PatchAnnotationsStatusRequest.getDefaultInstance()) return this; if (other.hasUserAppId()) { mergeUserAppId(other.getUserAppId()); } if (!other.userIds_.isEmpty()) { if (userIds_.isEmpty()) { userIds_ = other.userIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUserIdsIsMutable(); userIds_.addAll(other.userIds_); } onChanged(); } if (!other.getTaskId().isEmpty()) { taskId_ = other.taskId_; onChanged(); } if (!other.statusCodes_.isEmpty()) { if (statusCodes_.isEmpty()) { statusCodes_ = other.statusCodes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStatusCodesIsMutable(); statusCodes_.addAll(other.statusCodes_); } onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; onChanged(); } if (other.statusCode_ != 0) { setStatusCodeValue(other.getStatusCodeValue()); } 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.PatchAnnotationsStatusRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.PatchAnnotationsStatusRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.clarifai.grpc.api.UserAppIDSet userAppId_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> userAppIdBuilder_; /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return Whether the userAppId field is set. */ public boolean hasUserAppId() { return userAppIdBuilder_ != null || userAppId_ != null; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return The userAppId. */ public com.clarifai.grpc.api.UserAppIDSet getUserAppId() { if (userAppIdBuilder_ == null) { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } else { return userAppIdBuilder_.getMessage(); } } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder setUserAppId(com.clarifai.grpc.api.UserAppIDSet value) { if (userAppIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } userAppId_ = value; onChanged(); } else { userAppIdBuilder_.setMessage(value); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder setUserAppId( com.clarifai.grpc.api.UserAppIDSet.Builder builderForValue) { if (userAppIdBuilder_ == null) { userAppId_ = builderForValue.build(); onChanged(); } else { userAppIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder mergeUserAppId(com.clarifai.grpc.api.UserAppIDSet value) { if (userAppIdBuilder_ == null) { if (userAppId_ != null) { userAppId_ = com.clarifai.grpc.api.UserAppIDSet.newBuilder(userAppId_).mergeFrom(value).buildPartial(); } else { userAppId_ = value; } onChanged(); } else { userAppIdBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder clearUserAppId() { if (userAppIdBuilder_ == null) { userAppId_ = null; onChanged(); } else { userAppId_ = null; userAppIdBuilder_ = null; } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public com.clarifai.grpc.api.UserAppIDSet.Builder getUserAppIdBuilder() { onChanged(); return getUserAppIdFieldBuilder().getBuilder(); } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() { if (userAppIdBuilder_ != null) { return userAppIdBuilder_.getMessageOrBuilder(); } else { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> getUserAppIdFieldBuilder() { if (userAppIdBuilder_ == null) { userAppIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>( getUserAppId(), getParentForChildren(), isClean()); userAppId_ = null; } return userAppIdBuilder_; } private com.google.protobuf.LazyStringList userIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUserIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { userIds_ = new com.google.protobuf.LazyStringArrayList(userIds_); bitField0_ |= 0x00000001; } } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @return A list containing the userIds. */ public com.google.protobuf.ProtocolStringList getUserIdsList() { return userIds_.getUnmodifiableView(); } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @return The count of userIds. */ public int getUserIdsCount() { return userIds_.size(); } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @param index The index of the element to return. * @return The userIds at the given index. */ public java.lang.String getUserIds(int index) { return userIds_.get(index); } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @param index The index of the value to return. * @return The bytes of the userIds at the given index. */ public com.google.protobuf.ByteString getUserIdsBytes(int index) { return userIds_.getByteString(index); } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @param index The index to set the value at. * @param value The userIds to set. * @return This builder for chaining. */ public Builder setUserIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.set(index, value); onChanged(); return this; } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @param value The userIds to add. * @return This builder for chaining. */ public Builder addUserIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUserIdsIsMutable(); userIds_.add(value); onChanged(); return this; } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @param values The userIds to add. * @return This builder for chaining. */ public Builder addAllUserIds( java.lang.Iterable values) { ensureUserIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, userIds_); onChanged(); return this; } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @return This builder for chaining. */ public Builder clearUserIds() { userIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Filter by user IDs
     * 
* * repeated string user_ids = 3; * @param value The bytes of the userIds to add. * @return This builder for chaining. */ public Builder addUserIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUserIdsIsMutable(); userIds_.add(value); onChanged(); return this; } private java.lang.Object taskId_ = ""; /** *
     * Filter by task ID
     * 
* * string task_id = 4; * @return The taskId. */ public java.lang.String getTaskId() { java.lang.Object ref = taskId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Filter by task ID
     * 
* * string task_id = 4; * @return The bytes for taskId. */ public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); taskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Filter by task ID
     * 
* * string task_id = 4; * @param value The taskId to set. * @return This builder for chaining. */ public Builder setTaskId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } taskId_ = value; onChanged(); return this; } /** *
     * Filter by task ID
     * 
* * string task_id = 4; * @return This builder for chaining. */ public Builder clearTaskId() { taskId_ = getDefaultInstance().getTaskId(); onChanged(); return this; } /** *
     * Filter by task ID
     * 
* * string task_id = 4; * @param value The bytes for taskId to set. * @return This builder for chaining. */ public Builder setTaskIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); taskId_ = value; onChanged(); return this; } private java.util.List statusCodes_ = java.util.Collections.emptyList(); private void ensureStatusCodesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { statusCodes_ = new java.util.ArrayList(statusCodes_); bitField0_ |= 0x00000002; } } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @return A list containing the statusCodes. */ public java.util.List getStatusCodesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.clarifai.grpc.api.status.StatusCode>(statusCodes_, statusCodes_converter_); } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @return The count of statusCodes. */ public int getStatusCodesCount() { return statusCodes_.size(); } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param index The index of the element to return. * @return The statusCodes at the given index. */ public com.clarifai.grpc.api.status.StatusCode getStatusCodes(int index) { return statusCodes_converter_.convert(statusCodes_.get(index)); } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param index The index to set the value at. * @param value The statusCodes to set. * @return This builder for chaining. */ public Builder setStatusCodes( int index, com.clarifai.grpc.api.status.StatusCode value) { if (value == null) { throw new NullPointerException(); } ensureStatusCodesIsMutable(); statusCodes_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param value The statusCodes to add. * @return This builder for chaining. */ public Builder addStatusCodes(com.clarifai.grpc.api.status.StatusCode value) { if (value == null) { throw new NullPointerException(); } ensureStatusCodesIsMutable(); statusCodes_.add(value.getNumber()); onChanged(); return this; } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param values The statusCodes to add. * @return This builder for chaining. */ public Builder addAllStatusCodes( java.lang.Iterable values) { ensureStatusCodesIsMutable(); for (com.clarifai.grpc.api.status.StatusCode value : values) { statusCodes_.add(value.getNumber()); } onChanged(); return this; } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @return This builder for chaining. */ public Builder clearStatusCodes() { statusCodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @return A list containing the enum numeric values on the wire for statusCodes. */ public java.util.List getStatusCodesValueList() { return java.util.Collections.unmodifiableList(statusCodes_); } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of statusCodes at the given index. */ public int getStatusCodesValue(int index) { return statusCodes_.get(index); } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param index The index to set the value at. * @param value The enum numeric value on the wire for statusCodes to set. * @return This builder for chaining. */ public Builder setStatusCodesValue( int index, int value) { ensureStatusCodesIsMutable(); statusCodes_.set(index, value); onChanged(); return this; } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param value The enum numeric value on the wire for statusCodes to add. * @return This builder for chaining. */ public Builder addStatusCodesValue(int value) { ensureStatusCodesIsMutable(); statusCodes_.add(value); onChanged(); return this; } /** *
     * Filter by Status codes
     * 
* * repeated .clarifai.api.status.StatusCode status_codes = 6; * @param values The enum numeric values on the wire for statusCodes to add. * @return This builder for chaining. */ public Builder addAllStatusCodesValue( java.lang.Iterable values) { ensureStatusCodesIsMutable(); for (int value : values) { statusCodes_.add(value); } onChanged(); return this; } private java.lang.Object action_ = ""; /** *
     * 'overwrite' is supported
     * 
* * string action = 5; * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 'overwrite' is supported
     * 
* * string action = 5; * @return The bytes for action. */ public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); action_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 'overwrite' is supported
     * 
* * string action = 5; * @param value The action to set. * @return This builder for chaining. */ public Builder setAction( java.lang.String value) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); return this; } /** *
     * 'overwrite' is supported
     * 
* * string action = 5; * @return This builder for chaining. */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); onChanged(); return this; } /** *
     * 'overwrite' is supported
     * 
* * string action = 5; * @param value The bytes for action to set. * @return This builder for chaining. */ public Builder setActionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); action_ = value; onChanged(); return this; } private int statusCode_ = 0; /** *
     * Update filtered annotations to this status
     * 
* * .clarifai.api.status.StatusCode status_code = 2; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** *
     * Update filtered annotations to this status
     * 
* * .clarifai.api.status.StatusCode status_code = 2; * @param value The enum numeric value on the wire for statusCode to set. * @return This builder for chaining. */ public Builder setStatusCodeValue(int value) { statusCode_ = value; onChanged(); return this; } /** *
     * Update filtered annotations to this status
     * 
* * .clarifai.api.status.StatusCode status_code = 2; * @return The statusCode. */ @java.lang.Override public com.clarifai.grpc.api.status.StatusCode getStatusCode() { @SuppressWarnings("deprecation") com.clarifai.grpc.api.status.StatusCode result = com.clarifai.grpc.api.status.StatusCode.valueOf(statusCode_); return result == null ? com.clarifai.grpc.api.status.StatusCode.UNRECOGNIZED : result; } /** *
     * Update filtered annotations to this status
     * 
* * .clarifai.api.status.StatusCode status_code = 2; * @param value The statusCode to set. * @return This builder for chaining. */ public Builder setStatusCode(com.clarifai.grpc.api.status.StatusCode value) { if (value == null) { throw new NullPointerException(); } statusCode_ = value.getNumber(); onChanged(); return this; } /** *
     * Update filtered annotations to this status
     * 
* * .clarifai.api.status.StatusCode status_code = 2; * @return This builder for chaining. */ public Builder clearStatusCode() { statusCode_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:clarifai.api.PatchAnnotationsStatusRequest) } // @@protoc_insertion_point(class_scope:clarifai.api.PatchAnnotationsStatusRequest) private static final com.clarifai.grpc.api.PatchAnnotationsStatusRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.PatchAnnotationsStatusRequest(); } public static com.clarifai.grpc.api.PatchAnnotationsStatusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PatchAnnotationsStatusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PatchAnnotationsStatusRequest(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.PatchAnnotationsStatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy