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

io.pinecone.proto.RequestUnion Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: vector_service.proto

// Protobuf Java Version: 3.25.3
package io.pinecone.proto;

/**
 * 
 * This is a container to hold mutating vector requests. This is not actually used
 * in any public APIs.
 * 
* * Protobuf type {@code RequestUnion} */ public final class RequestUnion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:RequestUnion) RequestUnionOrBuilder { private static final long serialVersionUID = 0L; // Use RequestUnion.newBuilder() to construct. private RequestUnion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestUnion() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestUnion(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.pinecone.proto.VectorServiceOuterClass.internal_static_RequestUnion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.pinecone.proto.VectorServiceOuterClass.internal_static_RequestUnion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.RequestUnion.class, io.pinecone.proto.RequestUnion.Builder.class); } private int requestUnionInnerCase_ = 0; @SuppressWarnings("serial") private java.lang.Object requestUnionInner_; public enum RequestUnionInnerCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UPSERT(1), DELETE(2), UPDATE(3), REQUESTUNIONINNER_NOT_SET(0); private final int value; private RequestUnionInnerCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestUnionInnerCase valueOf(int value) { return forNumber(value); } public static RequestUnionInnerCase forNumber(int value) { switch (value) { case 1: return UPSERT; case 2: return DELETE; case 3: return UPDATE; case 0: return REQUESTUNIONINNER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestUnionInnerCase getRequestUnionInnerCase() { return RequestUnionInnerCase.forNumber( requestUnionInnerCase_); } public static final int UPSERT_FIELD_NUMBER = 1; /** * .UpsertRequest upsert = 1; * @return Whether the upsert field is set. */ @java.lang.Override public boolean hasUpsert() { return requestUnionInnerCase_ == 1; } /** * .UpsertRequest upsert = 1; * @return The upsert. */ @java.lang.Override public io.pinecone.proto.UpsertRequest getUpsert() { if (requestUnionInnerCase_ == 1) { return (io.pinecone.proto.UpsertRequest) requestUnionInner_; } return io.pinecone.proto.UpsertRequest.getDefaultInstance(); } /** * .UpsertRequest upsert = 1; */ @java.lang.Override public io.pinecone.proto.UpsertRequestOrBuilder getUpsertOrBuilder() { if (requestUnionInnerCase_ == 1) { return (io.pinecone.proto.UpsertRequest) requestUnionInner_; } return io.pinecone.proto.UpsertRequest.getDefaultInstance(); } public static final int DELETE_FIELD_NUMBER = 2; /** * .DeleteRequest delete = 2; * @return Whether the delete field is set. */ @java.lang.Override public boolean hasDelete() { return requestUnionInnerCase_ == 2; } /** * .DeleteRequest delete = 2; * @return The delete. */ @java.lang.Override public io.pinecone.proto.DeleteRequest getDelete() { if (requestUnionInnerCase_ == 2) { return (io.pinecone.proto.DeleteRequest) requestUnionInner_; } return io.pinecone.proto.DeleteRequest.getDefaultInstance(); } /** * .DeleteRequest delete = 2; */ @java.lang.Override public io.pinecone.proto.DeleteRequestOrBuilder getDeleteOrBuilder() { if (requestUnionInnerCase_ == 2) { return (io.pinecone.proto.DeleteRequest) requestUnionInner_; } return io.pinecone.proto.DeleteRequest.getDefaultInstance(); } public static final int UPDATE_FIELD_NUMBER = 3; /** * .UpdateRequest update = 3; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return requestUnionInnerCase_ == 3; } /** * .UpdateRequest update = 3; * @return The update. */ @java.lang.Override public io.pinecone.proto.UpdateRequest getUpdate() { if (requestUnionInnerCase_ == 3) { return (io.pinecone.proto.UpdateRequest) requestUnionInner_; } return io.pinecone.proto.UpdateRequest.getDefaultInstance(); } /** * .UpdateRequest update = 3; */ @java.lang.Override public io.pinecone.proto.UpdateRequestOrBuilder getUpdateOrBuilder() { if (requestUnionInnerCase_ == 3) { return (io.pinecone.proto.UpdateRequest) requestUnionInner_; } return io.pinecone.proto.UpdateRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requestUnionInnerCase_ == 1) { output.writeMessage(1, (io.pinecone.proto.UpsertRequest) requestUnionInner_); } if (requestUnionInnerCase_ == 2) { output.writeMessage(2, (io.pinecone.proto.DeleteRequest) requestUnionInner_); } if (requestUnionInnerCase_ == 3) { output.writeMessage(3, (io.pinecone.proto.UpdateRequest) requestUnionInner_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestUnionInnerCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.pinecone.proto.UpsertRequest) requestUnionInner_); } if (requestUnionInnerCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.pinecone.proto.DeleteRequest) requestUnionInner_); } if (requestUnionInnerCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.pinecone.proto.UpdateRequest) requestUnionInner_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.pinecone.proto.RequestUnion)) { return super.equals(obj); } io.pinecone.proto.RequestUnion other = (io.pinecone.proto.RequestUnion) obj; if (!getRequestUnionInnerCase().equals(other.getRequestUnionInnerCase())) return false; switch (requestUnionInnerCase_) { case 1: if (!getUpsert() .equals(other.getUpsert())) return false; break; case 2: if (!getDelete() .equals(other.getDelete())) return false; break; case 3: if (!getUpdate() .equals(other.getUpdate())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (requestUnionInnerCase_) { case 1: hash = (37 * hash) + UPSERT_FIELD_NUMBER; hash = (53 * hash) + getUpsert().hashCode(); break; case 2: hash = (37 * hash) + DELETE_FIELD_NUMBER; hash = (53 * hash) + getDelete().hashCode(); break; case 3: hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.pinecone.proto.RequestUnion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.pinecone.proto.RequestUnion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.pinecone.proto.RequestUnion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.pinecone.proto.RequestUnion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.pinecone.proto.RequestUnion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.pinecone.proto.RequestUnion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.pinecone.proto.RequestUnion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.pinecone.proto.RequestUnion 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 io.pinecone.proto.RequestUnion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.pinecone.proto.RequestUnion 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 io.pinecone.proto.RequestUnion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.pinecone.proto.RequestUnion 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(io.pinecone.proto.RequestUnion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * This is a container to hold mutating vector requests. This is not actually used
   * in any public APIs.
   * 
* * Protobuf type {@code RequestUnion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:RequestUnion) io.pinecone.proto.RequestUnionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.pinecone.proto.VectorServiceOuterClass.internal_static_RequestUnion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.pinecone.proto.VectorServiceOuterClass.internal_static_RequestUnion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.RequestUnion.class, io.pinecone.proto.RequestUnion.Builder.class); } // Construct using io.pinecone.proto.RequestUnion.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (upsertBuilder_ != null) { upsertBuilder_.clear(); } if (deleteBuilder_ != null) { deleteBuilder_.clear(); } if (updateBuilder_ != null) { updateBuilder_.clear(); } requestUnionInnerCase_ = 0; requestUnionInner_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.pinecone.proto.VectorServiceOuterClass.internal_static_RequestUnion_descriptor; } @java.lang.Override public io.pinecone.proto.RequestUnion getDefaultInstanceForType() { return io.pinecone.proto.RequestUnion.getDefaultInstance(); } @java.lang.Override public io.pinecone.proto.RequestUnion build() { io.pinecone.proto.RequestUnion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.pinecone.proto.RequestUnion buildPartial() { io.pinecone.proto.RequestUnion result = new io.pinecone.proto.RequestUnion(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.pinecone.proto.RequestUnion result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.pinecone.proto.RequestUnion result) { result.requestUnionInnerCase_ = requestUnionInnerCase_; result.requestUnionInner_ = this.requestUnionInner_; if (requestUnionInnerCase_ == 1 && upsertBuilder_ != null) { result.requestUnionInner_ = upsertBuilder_.build(); } if (requestUnionInnerCase_ == 2 && deleteBuilder_ != null) { result.requestUnionInner_ = deleteBuilder_.build(); } if (requestUnionInnerCase_ == 3 && updateBuilder_ != null) { result.requestUnionInner_ = updateBuilder_.build(); } } @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 io.pinecone.proto.RequestUnion) { return mergeFrom((io.pinecone.proto.RequestUnion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.pinecone.proto.RequestUnion other) { if (other == io.pinecone.proto.RequestUnion.getDefaultInstance()) return this; switch (other.getRequestUnionInnerCase()) { case UPSERT: { mergeUpsert(other.getUpsert()); break; } case DELETE: { mergeDelete(other.getDelete()); break; } case UPDATE: { mergeUpdate(other.getUpdate()); break; } case REQUESTUNIONINNER_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getUpsertFieldBuilder().getBuilder(), extensionRegistry); requestUnionInnerCase_ = 1; break; } // case 10 case 18: { input.readMessage( getDeleteFieldBuilder().getBuilder(), extensionRegistry); requestUnionInnerCase_ = 2; break; } // case 18 case 26: { input.readMessage( getUpdateFieldBuilder().getBuilder(), extensionRegistry); requestUnionInnerCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int requestUnionInnerCase_ = 0; private java.lang.Object requestUnionInner_; public RequestUnionInnerCase getRequestUnionInnerCase() { return RequestUnionInnerCase.forNumber( requestUnionInnerCase_); } public Builder clearRequestUnionInner() { requestUnionInnerCase_ = 0; requestUnionInner_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.UpsertRequest, io.pinecone.proto.UpsertRequest.Builder, io.pinecone.proto.UpsertRequestOrBuilder> upsertBuilder_; /** * .UpsertRequest upsert = 1; * @return Whether the upsert field is set. */ @java.lang.Override public boolean hasUpsert() { return requestUnionInnerCase_ == 1; } /** * .UpsertRequest upsert = 1; * @return The upsert. */ @java.lang.Override public io.pinecone.proto.UpsertRequest getUpsert() { if (upsertBuilder_ == null) { if (requestUnionInnerCase_ == 1) { return (io.pinecone.proto.UpsertRequest) requestUnionInner_; } return io.pinecone.proto.UpsertRequest.getDefaultInstance(); } else { if (requestUnionInnerCase_ == 1) { return upsertBuilder_.getMessage(); } return io.pinecone.proto.UpsertRequest.getDefaultInstance(); } } /** * .UpsertRequest upsert = 1; */ public Builder setUpsert(io.pinecone.proto.UpsertRequest value) { if (upsertBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requestUnionInner_ = value; onChanged(); } else { upsertBuilder_.setMessage(value); } requestUnionInnerCase_ = 1; return this; } /** * .UpsertRequest upsert = 1; */ public Builder setUpsert( io.pinecone.proto.UpsertRequest.Builder builderForValue) { if (upsertBuilder_ == null) { requestUnionInner_ = builderForValue.build(); onChanged(); } else { upsertBuilder_.setMessage(builderForValue.build()); } requestUnionInnerCase_ = 1; return this; } /** * .UpsertRequest upsert = 1; */ public Builder mergeUpsert(io.pinecone.proto.UpsertRequest value) { if (upsertBuilder_ == null) { if (requestUnionInnerCase_ == 1 && requestUnionInner_ != io.pinecone.proto.UpsertRequest.getDefaultInstance()) { requestUnionInner_ = io.pinecone.proto.UpsertRequest.newBuilder((io.pinecone.proto.UpsertRequest) requestUnionInner_) .mergeFrom(value).buildPartial(); } else { requestUnionInner_ = value; } onChanged(); } else { if (requestUnionInnerCase_ == 1) { upsertBuilder_.mergeFrom(value); } else { upsertBuilder_.setMessage(value); } } requestUnionInnerCase_ = 1; return this; } /** * .UpsertRequest upsert = 1; */ public Builder clearUpsert() { if (upsertBuilder_ == null) { if (requestUnionInnerCase_ == 1) { requestUnionInnerCase_ = 0; requestUnionInner_ = null; onChanged(); } } else { if (requestUnionInnerCase_ == 1) { requestUnionInnerCase_ = 0; requestUnionInner_ = null; } upsertBuilder_.clear(); } return this; } /** * .UpsertRequest upsert = 1; */ public io.pinecone.proto.UpsertRequest.Builder getUpsertBuilder() { return getUpsertFieldBuilder().getBuilder(); } /** * .UpsertRequest upsert = 1; */ @java.lang.Override public io.pinecone.proto.UpsertRequestOrBuilder getUpsertOrBuilder() { if ((requestUnionInnerCase_ == 1) && (upsertBuilder_ != null)) { return upsertBuilder_.getMessageOrBuilder(); } else { if (requestUnionInnerCase_ == 1) { return (io.pinecone.proto.UpsertRequest) requestUnionInner_; } return io.pinecone.proto.UpsertRequest.getDefaultInstance(); } } /** * .UpsertRequest upsert = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.UpsertRequest, io.pinecone.proto.UpsertRequest.Builder, io.pinecone.proto.UpsertRequestOrBuilder> getUpsertFieldBuilder() { if (upsertBuilder_ == null) { if (!(requestUnionInnerCase_ == 1)) { requestUnionInner_ = io.pinecone.proto.UpsertRequest.getDefaultInstance(); } upsertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.UpsertRequest, io.pinecone.proto.UpsertRequest.Builder, io.pinecone.proto.UpsertRequestOrBuilder>( (io.pinecone.proto.UpsertRequest) requestUnionInner_, getParentForChildren(), isClean()); requestUnionInner_ = null; } requestUnionInnerCase_ = 1; onChanged(); return upsertBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.DeleteRequest, io.pinecone.proto.DeleteRequest.Builder, io.pinecone.proto.DeleteRequestOrBuilder> deleteBuilder_; /** * .DeleteRequest delete = 2; * @return Whether the delete field is set. */ @java.lang.Override public boolean hasDelete() { return requestUnionInnerCase_ == 2; } /** * .DeleteRequest delete = 2; * @return The delete. */ @java.lang.Override public io.pinecone.proto.DeleteRequest getDelete() { if (deleteBuilder_ == null) { if (requestUnionInnerCase_ == 2) { return (io.pinecone.proto.DeleteRequest) requestUnionInner_; } return io.pinecone.proto.DeleteRequest.getDefaultInstance(); } else { if (requestUnionInnerCase_ == 2) { return deleteBuilder_.getMessage(); } return io.pinecone.proto.DeleteRequest.getDefaultInstance(); } } /** * .DeleteRequest delete = 2; */ public Builder setDelete(io.pinecone.proto.DeleteRequest value) { if (deleteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requestUnionInner_ = value; onChanged(); } else { deleteBuilder_.setMessage(value); } requestUnionInnerCase_ = 2; return this; } /** * .DeleteRequest delete = 2; */ public Builder setDelete( io.pinecone.proto.DeleteRequest.Builder builderForValue) { if (deleteBuilder_ == null) { requestUnionInner_ = builderForValue.build(); onChanged(); } else { deleteBuilder_.setMessage(builderForValue.build()); } requestUnionInnerCase_ = 2; return this; } /** * .DeleteRequest delete = 2; */ public Builder mergeDelete(io.pinecone.proto.DeleteRequest value) { if (deleteBuilder_ == null) { if (requestUnionInnerCase_ == 2 && requestUnionInner_ != io.pinecone.proto.DeleteRequest.getDefaultInstance()) { requestUnionInner_ = io.pinecone.proto.DeleteRequest.newBuilder((io.pinecone.proto.DeleteRequest) requestUnionInner_) .mergeFrom(value).buildPartial(); } else { requestUnionInner_ = value; } onChanged(); } else { if (requestUnionInnerCase_ == 2) { deleteBuilder_.mergeFrom(value); } else { deleteBuilder_.setMessage(value); } } requestUnionInnerCase_ = 2; return this; } /** * .DeleteRequest delete = 2; */ public Builder clearDelete() { if (deleteBuilder_ == null) { if (requestUnionInnerCase_ == 2) { requestUnionInnerCase_ = 0; requestUnionInner_ = null; onChanged(); } } else { if (requestUnionInnerCase_ == 2) { requestUnionInnerCase_ = 0; requestUnionInner_ = null; } deleteBuilder_.clear(); } return this; } /** * .DeleteRequest delete = 2; */ public io.pinecone.proto.DeleteRequest.Builder getDeleteBuilder() { return getDeleteFieldBuilder().getBuilder(); } /** * .DeleteRequest delete = 2; */ @java.lang.Override public io.pinecone.proto.DeleteRequestOrBuilder getDeleteOrBuilder() { if ((requestUnionInnerCase_ == 2) && (deleteBuilder_ != null)) { return deleteBuilder_.getMessageOrBuilder(); } else { if (requestUnionInnerCase_ == 2) { return (io.pinecone.proto.DeleteRequest) requestUnionInner_; } return io.pinecone.proto.DeleteRequest.getDefaultInstance(); } } /** * .DeleteRequest delete = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.DeleteRequest, io.pinecone.proto.DeleteRequest.Builder, io.pinecone.proto.DeleteRequestOrBuilder> getDeleteFieldBuilder() { if (deleteBuilder_ == null) { if (!(requestUnionInnerCase_ == 2)) { requestUnionInner_ = io.pinecone.proto.DeleteRequest.getDefaultInstance(); } deleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.DeleteRequest, io.pinecone.proto.DeleteRequest.Builder, io.pinecone.proto.DeleteRequestOrBuilder>( (io.pinecone.proto.DeleteRequest) requestUnionInner_, getParentForChildren(), isClean()); requestUnionInner_ = null; } requestUnionInnerCase_ = 2; onChanged(); return deleteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.UpdateRequest, io.pinecone.proto.UpdateRequest.Builder, io.pinecone.proto.UpdateRequestOrBuilder> updateBuilder_; /** * .UpdateRequest update = 3; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return requestUnionInnerCase_ == 3; } /** * .UpdateRequest update = 3; * @return The update. */ @java.lang.Override public io.pinecone.proto.UpdateRequest getUpdate() { if (updateBuilder_ == null) { if (requestUnionInnerCase_ == 3) { return (io.pinecone.proto.UpdateRequest) requestUnionInner_; } return io.pinecone.proto.UpdateRequest.getDefaultInstance(); } else { if (requestUnionInnerCase_ == 3) { return updateBuilder_.getMessage(); } return io.pinecone.proto.UpdateRequest.getDefaultInstance(); } } /** * .UpdateRequest update = 3; */ public Builder setUpdate(io.pinecone.proto.UpdateRequest value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requestUnionInner_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } requestUnionInnerCase_ = 3; return this; } /** * .UpdateRequest update = 3; */ public Builder setUpdate( io.pinecone.proto.UpdateRequest.Builder builderForValue) { if (updateBuilder_ == null) { requestUnionInner_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } requestUnionInnerCase_ = 3; return this; } /** * .UpdateRequest update = 3; */ public Builder mergeUpdate(io.pinecone.proto.UpdateRequest value) { if (updateBuilder_ == null) { if (requestUnionInnerCase_ == 3 && requestUnionInner_ != io.pinecone.proto.UpdateRequest.getDefaultInstance()) { requestUnionInner_ = io.pinecone.proto.UpdateRequest.newBuilder((io.pinecone.proto.UpdateRequest) requestUnionInner_) .mergeFrom(value).buildPartial(); } else { requestUnionInner_ = value; } onChanged(); } else { if (requestUnionInnerCase_ == 3) { updateBuilder_.mergeFrom(value); } else { updateBuilder_.setMessage(value); } } requestUnionInnerCase_ = 3; return this; } /** * .UpdateRequest update = 3; */ public Builder clearUpdate() { if (updateBuilder_ == null) { if (requestUnionInnerCase_ == 3) { requestUnionInnerCase_ = 0; requestUnionInner_ = null; onChanged(); } } else { if (requestUnionInnerCase_ == 3) { requestUnionInnerCase_ = 0; requestUnionInner_ = null; } updateBuilder_.clear(); } return this; } /** * .UpdateRequest update = 3; */ public io.pinecone.proto.UpdateRequest.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** * .UpdateRequest update = 3; */ @java.lang.Override public io.pinecone.proto.UpdateRequestOrBuilder getUpdateOrBuilder() { if ((requestUnionInnerCase_ == 3) && (updateBuilder_ != null)) { return updateBuilder_.getMessageOrBuilder(); } else { if (requestUnionInnerCase_ == 3) { return (io.pinecone.proto.UpdateRequest) requestUnionInner_; } return io.pinecone.proto.UpdateRequest.getDefaultInstance(); } } /** * .UpdateRequest update = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.UpdateRequest, io.pinecone.proto.UpdateRequest.Builder, io.pinecone.proto.UpdateRequestOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { if (!(requestUnionInnerCase_ == 3)) { requestUnionInner_ = io.pinecone.proto.UpdateRequest.getDefaultInstance(); } updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.pinecone.proto.UpdateRequest, io.pinecone.proto.UpdateRequest.Builder, io.pinecone.proto.UpdateRequestOrBuilder>( (io.pinecone.proto.UpdateRequest) requestUnionInner_, getParentForChildren(), isClean()); requestUnionInner_ = null; } requestUnionInnerCase_ = 3; onChanged(); return updateBuilder_; } @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:RequestUnion) } // @@protoc_insertion_point(class_scope:RequestUnion) private static final io.pinecone.proto.RequestUnion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.pinecone.proto.RequestUnion(); } public static io.pinecone.proto.RequestUnion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestUnion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.pinecone.proto.RequestUnion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy