grpc.vectorindex._MetadataRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos-jvm Show documentation
Show all versions of client-protos-jvm Show documentation
Kotlin protobuf protocols for the JVM that define the Momento gRPC wire format
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: vectorindex.proto
package grpc.vectorindex;
/**
* Protobuf type {@code vectorindex._MetadataRequest}
*/
public final class _MetadataRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vectorindex._MetadataRequest)
_MetadataRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use _MetadataRequest.newBuilder() to construct.
private _MetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _MetadataRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _MetadataRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.vectorindex._MetadataRequest.class, grpc.vectorindex._MetadataRequest.Builder.class);
}
public interface SomeOrBuilder extends
// @@protoc_insertion_point(interface_extends:vectorindex._MetadataRequest.Some)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string fields = 1;
* @return A list containing the fields.
*/
java.util.List
getFieldsList();
/**
* repeated string fields = 1;
* @return The count of fields.
*/
int getFieldsCount();
/**
* repeated string fields = 1;
* @param index The index of the element to return.
* @return The fields at the given index.
*/
java.lang.String getFields(int index);
/**
* repeated string fields = 1;
* @param index The index of the value to return.
* @return The bytes of the fields at the given index.
*/
com.google.protobuf.ByteString
getFieldsBytes(int index);
}
/**
* Protobuf type {@code vectorindex._MetadataRequest.Some}
*/
public static final class Some extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vectorindex._MetadataRequest.Some)
SomeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Some.newBuilder() to construct.
private Some(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Some() {
fields_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Some();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_Some_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_Some_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.vectorindex._MetadataRequest.Some.class, grpc.vectorindex._MetadataRequest.Some.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList fields_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string fields = 1;
* @return A list containing the fields.
*/
public com.google.protobuf.ProtocolStringList
getFieldsList() {
return fields_;
}
/**
* repeated string fields = 1;
* @return The count of fields.
*/
public int getFieldsCount() {
return fields_.size();
}
/**
* repeated string fields = 1;
* @param index The index of the element to return.
* @return The fields at the given index.
*/
public java.lang.String getFields(int index) {
return fields_.get(index);
}
/**
* repeated string fields = 1;
* @param index The index of the value to return.
* @return The bytes of the fields at the given index.
*/
public com.google.protobuf.ByteString
getFieldsBytes(int index) {
return fields_.getByteString(index);
}
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 {
for (int i = 0; i < fields_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fields_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < fields_.size(); i++) {
dataSize += computeStringSizeNoTag(fields_.getRaw(i));
}
size += dataSize;
size += 1 * getFieldsList().size();
}
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 grpc.vectorindex._MetadataRequest.Some)) {
return super.equals(obj);
}
grpc.vectorindex._MetadataRequest.Some other = (grpc.vectorindex._MetadataRequest.Some) obj;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
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();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.vectorindex._MetadataRequest.Some parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest.Some parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest.Some parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest.Some parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest.Some parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest.Some parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest.Some parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest.Some 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 grpc.vectorindex._MetadataRequest.Some parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest.Some 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 grpc.vectorindex._MetadataRequest.Some parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest.Some 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(grpc.vectorindex._MetadataRequest.Some 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 vectorindex._MetadataRequest.Some}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vectorindex._MetadataRequest.Some)
grpc.vectorindex._MetadataRequest.SomeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_Some_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_Some_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.vectorindex._MetadataRequest.Some.class, grpc.vectorindex._MetadataRequest.Some.Builder.class);
}
// Construct using grpc.vectorindex._MetadataRequest.Some.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fields_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_Some_descriptor;
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest.Some getDefaultInstanceForType() {
return grpc.vectorindex._MetadataRequest.Some.getDefaultInstance();
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest.Some build() {
grpc.vectorindex._MetadataRequest.Some result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest.Some buildPartial() {
grpc.vectorindex._MetadataRequest.Some result = new grpc.vectorindex._MetadataRequest.Some(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(grpc.vectorindex._MetadataRequest.Some result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
fields_.makeImmutable();
result.fields_ = fields_;
}
}
@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 grpc.vectorindex._MetadataRequest.Some) {
return mergeFrom((grpc.vectorindex._MetadataRequest.Some)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.vectorindex._MetadataRequest.Some other) {
if (other == grpc.vectorindex._MetadataRequest.Some.getDefaultInstance()) return this;
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ |= 0x00000001;
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureFieldsIsMutable();
fields_.add(s);
break;
} // case 10
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 bitField0_;
private com.google.protobuf.LazyStringArrayList fields_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureFieldsIsMutable() {
if (!fields_.isModifiable()) {
fields_ = new com.google.protobuf.LazyStringArrayList(fields_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string fields = 1;
* @return A list containing the fields.
*/
public com.google.protobuf.ProtocolStringList
getFieldsList() {
fields_.makeImmutable();
return fields_;
}
/**
* repeated string fields = 1;
* @return The count of fields.
*/
public int getFieldsCount() {
return fields_.size();
}
/**
* repeated string fields = 1;
* @param index The index of the element to return.
* @return The fields at the given index.
*/
public java.lang.String getFields(int index) {
return fields_.get(index);
}
/**
* repeated string fields = 1;
* @param index The index of the value to return.
* @return The bytes of the fields at the given index.
*/
public com.google.protobuf.ByteString
getFieldsBytes(int index) {
return fields_.getByteString(index);
}
/**
* repeated string fields = 1;
* @param index The index to set the value at.
* @param value The fields to set.
* @return This builder for chaining.
*/
public Builder setFields(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFieldsIsMutable();
fields_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string fields = 1;
* @param value The fields to add.
* @return This builder for chaining.
*/
public Builder addFields(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFieldsIsMutable();
fields_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string fields = 1;
* @param values The fields to add.
* @return This builder for chaining.
*/
public Builder addAllFields(
java.lang.Iterable values) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string fields = 1;
* @return This builder for chaining.
*/
public Builder clearFields() {
fields_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string fields = 1;
* @param value The bytes of the fields to add.
* @return This builder for chaining.
*/
public Builder addFieldsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureFieldsIsMutable();
fields_.add(value);
bitField0_ |= 0x00000001;
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:vectorindex._MetadataRequest.Some)
}
// @@protoc_insertion_point(class_scope:vectorindex._MetadataRequest.Some)
private static final grpc.vectorindex._MetadataRequest.Some DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.vectorindex._MetadataRequest.Some();
}
public static grpc.vectorindex._MetadataRequest.Some getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Some 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 grpc.vectorindex._MetadataRequest.Some getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AllOrBuilder extends
// @@protoc_insertion_point(interface_extends:vectorindex._MetadataRequest.All)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code vectorindex._MetadataRequest.All}
*/
public static final class All extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:vectorindex._MetadataRequest.All)
AllOrBuilder {
private static final long serialVersionUID = 0L;
// Use All.newBuilder() to construct.
private All(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private All() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new All();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_All_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_All_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.vectorindex._MetadataRequest.All.class, grpc.vectorindex._MetadataRequest.All.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 grpc.vectorindex._MetadataRequest.All)) {
return super.equals(obj);
}
grpc.vectorindex._MetadataRequest.All other = (grpc.vectorindex._MetadataRequest.All) obj;
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();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.vectorindex._MetadataRequest.All parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest.All parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest.All parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest.All parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest.All parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest.All parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest.All parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest.All 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 grpc.vectorindex._MetadataRequest.All parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest.All 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 grpc.vectorindex._MetadataRequest.All parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest.All 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(grpc.vectorindex._MetadataRequest.All 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 vectorindex._MetadataRequest.All}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vectorindex._MetadataRequest.All)
grpc.vectorindex._MetadataRequest.AllOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_All_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_All_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.vectorindex._MetadataRequest.All.class, grpc.vectorindex._MetadataRequest.All.Builder.class);
}
// Construct using grpc.vectorindex._MetadataRequest.All.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_All_descriptor;
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest.All getDefaultInstanceForType() {
return grpc.vectorindex._MetadataRequest.All.getDefaultInstance();
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest.All build() {
grpc.vectorindex._MetadataRequest.All result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest.All buildPartial() {
grpc.vectorindex._MetadataRequest.All result = new grpc.vectorindex._MetadataRequest.All(this);
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 grpc.vectorindex._MetadataRequest.All) {
return mergeFrom((grpc.vectorindex._MetadataRequest.All)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.vectorindex._MetadataRequest.All other) {
if (other == grpc.vectorindex._MetadataRequest.All.getDefaultInstance()) return this;
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;
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;
}
@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:vectorindex._MetadataRequest.All)
}
// @@protoc_insertion_point(class_scope:vectorindex._MetadataRequest.All)
private static final grpc.vectorindex._MetadataRequest.All DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.vectorindex._MetadataRequest.All();
}
public static grpc.vectorindex._MetadataRequest.All getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public All 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 grpc.vectorindex._MetadataRequest.All getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int kindCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object kind_;
public enum KindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SOME(2),
ALL(3),
KIND_NOT_SET(0);
private final int value;
private KindCase(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 KindCase valueOf(int value) {
return forNumber(value);
}
public static KindCase forNumber(int value) {
switch (value) {
case 2: return SOME;
case 3: return ALL;
case 0: return KIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public KindCase
getKindCase() {
return KindCase.forNumber(
kindCase_);
}
public static final int SOME_FIELD_NUMBER = 2;
/**
* .vectorindex._MetadataRequest.Some some = 2;
* @return Whether the some field is set.
*/
@java.lang.Override
public boolean hasSome() {
return kindCase_ == 2;
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
* @return The some.
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.Some getSome() {
if (kindCase_ == 2) {
return (grpc.vectorindex._MetadataRequest.Some) kind_;
}
return grpc.vectorindex._MetadataRequest.Some.getDefaultInstance();
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.SomeOrBuilder getSomeOrBuilder() {
if (kindCase_ == 2) {
return (grpc.vectorindex._MetadataRequest.Some) kind_;
}
return grpc.vectorindex._MetadataRequest.Some.getDefaultInstance();
}
public static final int ALL_FIELD_NUMBER = 3;
/**
* .vectorindex._MetadataRequest.All all = 3;
* @return Whether the all field is set.
*/
@java.lang.Override
public boolean hasAll() {
return kindCase_ == 3;
}
/**
* .vectorindex._MetadataRequest.All all = 3;
* @return The all.
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.All getAll() {
if (kindCase_ == 3) {
return (grpc.vectorindex._MetadataRequest.All) kind_;
}
return grpc.vectorindex._MetadataRequest.All.getDefaultInstance();
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.AllOrBuilder getAllOrBuilder() {
if (kindCase_ == 3) {
return (grpc.vectorindex._MetadataRequest.All) kind_;
}
return grpc.vectorindex._MetadataRequest.All.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 (kindCase_ == 2) {
output.writeMessage(2, (grpc.vectorindex._MetadataRequest.Some) kind_);
}
if (kindCase_ == 3) {
output.writeMessage(3, (grpc.vectorindex._MetadataRequest.All) kind_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (kindCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (grpc.vectorindex._MetadataRequest.Some) kind_);
}
if (kindCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (grpc.vectorindex._MetadataRequest.All) kind_);
}
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 grpc.vectorindex._MetadataRequest)) {
return super.equals(obj);
}
grpc.vectorindex._MetadataRequest other = (grpc.vectorindex._MetadataRequest) obj;
if (!getKindCase().equals(other.getKindCase())) return false;
switch (kindCase_) {
case 2:
if (!getSome()
.equals(other.getSome())) return false;
break;
case 3:
if (!getAll()
.equals(other.getAll())) 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 (kindCase_) {
case 2:
hash = (37 * hash) + SOME_FIELD_NUMBER;
hash = (53 * hash) + getSome().hashCode();
break;
case 3:
hash = (37 * hash) + ALL_FIELD_NUMBER;
hash = (53 * hash) + getAll().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.vectorindex._MetadataRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.vectorindex._MetadataRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.vectorindex._MetadataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest 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 grpc.vectorindex._MetadataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest 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 grpc.vectorindex._MetadataRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.vectorindex._MetadataRequest 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(grpc.vectorindex._MetadataRequest 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 vectorindex._MetadataRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:vectorindex._MetadataRequest)
grpc.vectorindex._MetadataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.vectorindex._MetadataRequest.class, grpc.vectorindex._MetadataRequest.Builder.class);
}
// Construct using grpc.vectorindex._MetadataRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (someBuilder_ != null) {
someBuilder_.clear();
}
if (allBuilder_ != null) {
allBuilder_.clear();
}
kindCase_ = 0;
kind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.vectorindex.Vectorindex.internal_static_vectorindex__MetadataRequest_descriptor;
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest getDefaultInstanceForType() {
return grpc.vectorindex._MetadataRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest build() {
grpc.vectorindex._MetadataRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest buildPartial() {
grpc.vectorindex._MetadataRequest result = new grpc.vectorindex._MetadataRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(grpc.vectorindex._MetadataRequest result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(grpc.vectorindex._MetadataRequest result) {
result.kindCase_ = kindCase_;
result.kind_ = this.kind_;
if (kindCase_ == 2 &&
someBuilder_ != null) {
result.kind_ = someBuilder_.build();
}
if (kindCase_ == 3 &&
allBuilder_ != null) {
result.kind_ = allBuilder_.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 grpc.vectorindex._MetadataRequest) {
return mergeFrom((grpc.vectorindex._MetadataRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.vectorindex._MetadataRequest other) {
if (other == grpc.vectorindex._MetadataRequest.getDefaultInstance()) return this;
switch (other.getKindCase()) {
case SOME: {
mergeSome(other.getSome());
break;
}
case ALL: {
mergeAll(other.getAll());
break;
}
case KIND_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 18: {
input.readMessage(
getSomeFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getAllFieldBuilder().getBuilder(),
extensionRegistry);
kindCase_ = 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 kindCase_ = 0;
private java.lang.Object kind_;
public KindCase
getKindCase() {
return KindCase.forNumber(
kindCase_);
}
public Builder clearKind() {
kindCase_ = 0;
kind_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
grpc.vectorindex._MetadataRequest.Some, grpc.vectorindex._MetadataRequest.Some.Builder, grpc.vectorindex._MetadataRequest.SomeOrBuilder> someBuilder_;
/**
* .vectorindex._MetadataRequest.Some some = 2;
* @return Whether the some field is set.
*/
@java.lang.Override
public boolean hasSome() {
return kindCase_ == 2;
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
* @return The some.
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.Some getSome() {
if (someBuilder_ == null) {
if (kindCase_ == 2) {
return (grpc.vectorindex._MetadataRequest.Some) kind_;
}
return grpc.vectorindex._MetadataRequest.Some.getDefaultInstance();
} else {
if (kindCase_ == 2) {
return someBuilder_.getMessage();
}
return grpc.vectorindex._MetadataRequest.Some.getDefaultInstance();
}
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
public Builder setSome(grpc.vectorindex._MetadataRequest.Some value) {
if (someBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
someBuilder_.setMessage(value);
}
kindCase_ = 2;
return this;
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
public Builder setSome(
grpc.vectorindex._MetadataRequest.Some.Builder builderForValue) {
if (someBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
someBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 2;
return this;
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
public Builder mergeSome(grpc.vectorindex._MetadataRequest.Some value) {
if (someBuilder_ == null) {
if (kindCase_ == 2 &&
kind_ != grpc.vectorindex._MetadataRequest.Some.getDefaultInstance()) {
kind_ = grpc.vectorindex._MetadataRequest.Some.newBuilder((grpc.vectorindex._MetadataRequest.Some) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 2) {
someBuilder_.mergeFrom(value);
} else {
someBuilder_.setMessage(value);
}
}
kindCase_ = 2;
return this;
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
public Builder clearSome() {
if (someBuilder_ == null) {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
}
someBuilder_.clear();
}
return this;
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
public grpc.vectorindex._MetadataRequest.Some.Builder getSomeBuilder() {
return getSomeFieldBuilder().getBuilder();
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.SomeOrBuilder getSomeOrBuilder() {
if ((kindCase_ == 2) && (someBuilder_ != null)) {
return someBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 2) {
return (grpc.vectorindex._MetadataRequest.Some) kind_;
}
return grpc.vectorindex._MetadataRequest.Some.getDefaultInstance();
}
}
/**
* .vectorindex._MetadataRequest.Some some = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.vectorindex._MetadataRequest.Some, grpc.vectorindex._MetadataRequest.Some.Builder, grpc.vectorindex._MetadataRequest.SomeOrBuilder>
getSomeFieldBuilder() {
if (someBuilder_ == null) {
if (!(kindCase_ == 2)) {
kind_ = grpc.vectorindex._MetadataRequest.Some.getDefaultInstance();
}
someBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.vectorindex._MetadataRequest.Some, grpc.vectorindex._MetadataRequest.Some.Builder, grpc.vectorindex._MetadataRequest.SomeOrBuilder>(
(grpc.vectorindex._MetadataRequest.Some) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 2;
onChanged();
return someBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
grpc.vectorindex._MetadataRequest.All, grpc.vectorindex._MetadataRequest.All.Builder, grpc.vectorindex._MetadataRequest.AllOrBuilder> allBuilder_;
/**
* .vectorindex._MetadataRequest.All all = 3;
* @return Whether the all field is set.
*/
@java.lang.Override
public boolean hasAll() {
return kindCase_ == 3;
}
/**
* .vectorindex._MetadataRequest.All all = 3;
* @return The all.
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.All getAll() {
if (allBuilder_ == null) {
if (kindCase_ == 3) {
return (grpc.vectorindex._MetadataRequest.All) kind_;
}
return grpc.vectorindex._MetadataRequest.All.getDefaultInstance();
} else {
if (kindCase_ == 3) {
return allBuilder_.getMessage();
}
return grpc.vectorindex._MetadataRequest.All.getDefaultInstance();
}
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
public Builder setAll(grpc.vectorindex._MetadataRequest.All value) {
if (allBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
allBuilder_.setMessage(value);
}
kindCase_ = 3;
return this;
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
public Builder setAll(
grpc.vectorindex._MetadataRequest.All.Builder builderForValue) {
if (allBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
allBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 3;
return this;
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
public Builder mergeAll(grpc.vectorindex._MetadataRequest.All value) {
if (allBuilder_ == null) {
if (kindCase_ == 3 &&
kind_ != grpc.vectorindex._MetadataRequest.All.getDefaultInstance()) {
kind_ = grpc.vectorindex._MetadataRequest.All.newBuilder((grpc.vectorindex._MetadataRequest.All) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 3) {
allBuilder_.mergeFrom(value);
} else {
allBuilder_.setMessage(value);
}
}
kindCase_ = 3;
return this;
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
public Builder clearAll() {
if (allBuilder_ == null) {
if (kindCase_ == 3) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 3) {
kindCase_ = 0;
kind_ = null;
}
allBuilder_.clear();
}
return this;
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
public grpc.vectorindex._MetadataRequest.All.Builder getAllBuilder() {
return getAllFieldBuilder().getBuilder();
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
@java.lang.Override
public grpc.vectorindex._MetadataRequest.AllOrBuilder getAllOrBuilder() {
if ((kindCase_ == 3) && (allBuilder_ != null)) {
return allBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 3) {
return (grpc.vectorindex._MetadataRequest.All) kind_;
}
return grpc.vectorindex._MetadataRequest.All.getDefaultInstance();
}
}
/**
* .vectorindex._MetadataRequest.All all = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.vectorindex._MetadataRequest.All, grpc.vectorindex._MetadataRequest.All.Builder, grpc.vectorindex._MetadataRequest.AllOrBuilder>
getAllFieldBuilder() {
if (allBuilder_ == null) {
if (!(kindCase_ == 3)) {
kind_ = grpc.vectorindex._MetadataRequest.All.getDefaultInstance();
}
allBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.vectorindex._MetadataRequest.All, grpc.vectorindex._MetadataRequest.All.Builder, grpc.vectorindex._MetadataRequest.AllOrBuilder>(
(grpc.vectorindex._MetadataRequest.All) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 3;
onChanged();
return allBuilder_;
}
@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:vectorindex._MetadataRequest)
}
// @@protoc_insertion_point(class_scope:vectorindex._MetadataRequest)
private static final grpc.vectorindex._MetadataRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.vectorindex._MetadataRequest();
}
public static grpc.vectorindex._MetadataRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_MetadataRequest>
PARSER = new com.google.protobuf.AbstractParser<_MetadataRequest>() {
@java.lang.Override
public _MetadataRequest 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<_MetadataRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_MetadataRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.vectorindex._MetadataRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy