grpc.control_client._ListIndexesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos Show documentation
Show all versions of client-protos Show documentation
Java protobuf protocols that define the Momento gRPC wire format
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: controlclient.proto
package grpc.control_client;
/**
* Protobuf type {@code control_client._ListIndexesResponse}
*/
public final class _ListIndexesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:control_client._ListIndexesResponse)
_ListIndexesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use _ListIndexesResponse.newBuilder() to construct.
private _ListIndexesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _ListIndexesResponse() {
indexes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _ListIndexesResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.control_client._ListIndexesResponse.class, grpc.control_client._ListIndexesResponse.Builder.class);
}
public interface _IndexOrBuilder extends
// @@protoc_insertion_point(interface_extends:control_client._ListIndexesResponse._Index)
com.google.protobuf.MessageOrBuilder {
/**
* string index_name = 1;
* @return The indexName.
*/
java.lang.String getIndexName();
/**
* string index_name = 1;
* @return The bytes for indexName.
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
* uint64 num_dimensions = 2;
* @return The numDimensions.
*/
long getNumDimensions();
/**
* .control_client._SimilarityMetric similarity_metric = 3;
* @return Whether the similarityMetric field is set.
*/
boolean hasSimilarityMetric();
/**
* .control_client._SimilarityMetric similarity_metric = 3;
* @return The similarityMetric.
*/
grpc.control_client._SimilarityMetric getSimilarityMetric();
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
grpc.control_client._SimilarityMetricOrBuilder getSimilarityMetricOrBuilder();
}
/**
* Protobuf type {@code control_client._ListIndexesResponse._Index}
*/
public static final class _Index extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:control_client._ListIndexesResponse._Index)
_IndexOrBuilder {
private static final long serialVersionUID = 0L;
// Use _Index.newBuilder() to construct.
private _Index(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _Index() {
indexName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _Index();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse__Index_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse__Index_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.control_client._ListIndexesResponse._Index.class, grpc.control_client._ListIndexesResponse._Index.Builder.class);
}
public static final int INDEX_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object indexName_ = "";
/**
* string index_name = 1;
* @return The indexName.
*/
@java.lang.Override
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
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();
indexName_ = s;
return s;
}
}
/**
* string index_name = 1;
* @return The bytes for indexName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUM_DIMENSIONS_FIELD_NUMBER = 2;
private long numDimensions_ = 0L;
/**
* uint64 num_dimensions = 2;
* @return The numDimensions.
*/
@java.lang.Override
public long getNumDimensions() {
return numDimensions_;
}
public static final int SIMILARITY_METRIC_FIELD_NUMBER = 3;
private grpc.control_client._SimilarityMetric similarityMetric_;
/**
* .control_client._SimilarityMetric similarity_metric = 3;
* @return Whether the similarityMetric field is set.
*/
@java.lang.Override
public boolean hasSimilarityMetric() {
return similarityMetric_ != null;
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
* @return The similarityMetric.
*/
@java.lang.Override
public grpc.control_client._SimilarityMetric getSimilarityMetric() {
return similarityMetric_ == null ? grpc.control_client._SimilarityMetric.getDefaultInstance() : similarityMetric_;
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
@java.lang.Override
public grpc.control_client._SimilarityMetricOrBuilder getSimilarityMetricOrBuilder() {
return similarityMetric_ == null ? grpc.control_client._SimilarityMetric.getDefaultInstance() : similarityMetric_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_);
}
if (numDimensions_ != 0L) {
output.writeUInt64(2, numDimensions_);
}
if (similarityMetric_ != null) {
output.writeMessage(3, getSimilarityMetric());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexName_);
}
if (numDimensions_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, numDimensions_);
}
if (similarityMetric_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSimilarityMetric());
}
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.control_client._ListIndexesResponse._Index)) {
return super.equals(obj);
}
grpc.control_client._ListIndexesResponse._Index other = (grpc.control_client._ListIndexesResponse._Index) obj;
if (!getIndexName()
.equals(other.getIndexName())) return false;
if (getNumDimensions()
!= other.getNumDimensions()) return false;
if (hasSimilarityMetric() != other.hasSimilarityMetric()) return false;
if (hasSimilarityMetric()) {
if (!getSimilarityMetric()
.equals(other.getSimilarityMetric())) 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();
hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER;
hash = (53 * hash) + getIndexName().hashCode();
hash = (37 * hash) + NUM_DIMENSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumDimensions());
if (hasSimilarityMetric()) {
hash = (37 * hash) + SIMILARITY_METRIC_FIELD_NUMBER;
hash = (53 * hash) + getSimilarityMetric().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.control_client._ListIndexesResponse._Index parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.control_client._ListIndexesResponse._Index parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.control_client._ListIndexesResponse._Index parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.control_client._ListIndexesResponse._Index parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.control_client._ListIndexesResponse._Index parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.control_client._ListIndexesResponse._Index parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.control_client._ListIndexesResponse._Index parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.control_client._ListIndexesResponse._Index 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.control_client._ListIndexesResponse._Index parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.control_client._ListIndexesResponse._Index 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.control_client._ListIndexesResponse._Index parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.control_client._ListIndexesResponse._Index 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.control_client._ListIndexesResponse._Index 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 control_client._ListIndexesResponse._Index}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:control_client._ListIndexesResponse._Index)
grpc.control_client._ListIndexesResponse._IndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse__Index_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse__Index_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.control_client._ListIndexesResponse._Index.class, grpc.control_client._ListIndexesResponse._Index.Builder.class);
}
// Construct using grpc.control_client._ListIndexesResponse._Index.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexName_ = "";
numDimensions_ = 0L;
similarityMetric_ = null;
if (similarityMetricBuilder_ != null) {
similarityMetricBuilder_.dispose();
similarityMetricBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse__Index_descriptor;
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse._Index getDefaultInstanceForType() {
return grpc.control_client._ListIndexesResponse._Index.getDefaultInstance();
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse._Index build() {
grpc.control_client._ListIndexesResponse._Index result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse._Index buildPartial() {
grpc.control_client._ListIndexesResponse._Index result = new grpc.control_client._ListIndexesResponse._Index(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(grpc.control_client._ListIndexesResponse._Index result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexName_ = indexName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.numDimensions_ = numDimensions_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.similarityMetric_ = similarityMetricBuilder_ == null
? similarityMetric_
: similarityMetricBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.control_client._ListIndexesResponse._Index) {
return mergeFrom((grpc.control_client._ListIndexesResponse._Index)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.control_client._ListIndexesResponse._Index other) {
if (other == grpc.control_client._ListIndexesResponse._Index.getDefaultInstance()) return this;
if (!other.getIndexName().isEmpty()) {
indexName_ = other.indexName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getNumDimensions() != 0L) {
setNumDimensions(other.getNumDimensions());
}
if (other.hasSimilarityMetric()) {
mergeSimilarityMetric(other.getSimilarityMetric());
}
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: {
indexName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
numDimensions_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getSimilarityMetricFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
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 bitField0_;
private java.lang.Object indexName_ = "";
/**
* string index_name = 1;
* @return The indexName.
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string index_name = 1;
* @return The bytes for indexName.
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string index_name = 1;
* @param value The indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
indexName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string index_name = 1;
* @return This builder for chaining.
*/
public Builder clearIndexName() {
indexName_ = getDefaultInstance().getIndexName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string index_name = 1;
* @param value The bytes for indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
indexName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long numDimensions_ ;
/**
* uint64 num_dimensions = 2;
* @return The numDimensions.
*/
@java.lang.Override
public long getNumDimensions() {
return numDimensions_;
}
/**
* uint64 num_dimensions = 2;
* @param value The numDimensions to set.
* @return This builder for chaining.
*/
public Builder setNumDimensions(long value) {
numDimensions_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint64 num_dimensions = 2;
* @return This builder for chaining.
*/
public Builder clearNumDimensions() {
bitField0_ = (bitField0_ & ~0x00000002);
numDimensions_ = 0L;
onChanged();
return this;
}
private grpc.control_client._SimilarityMetric similarityMetric_;
private com.google.protobuf.SingleFieldBuilderV3<
grpc.control_client._SimilarityMetric, grpc.control_client._SimilarityMetric.Builder, grpc.control_client._SimilarityMetricOrBuilder> similarityMetricBuilder_;
/**
* .control_client._SimilarityMetric similarity_metric = 3;
* @return Whether the similarityMetric field is set.
*/
public boolean hasSimilarityMetric() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
* @return The similarityMetric.
*/
public grpc.control_client._SimilarityMetric getSimilarityMetric() {
if (similarityMetricBuilder_ == null) {
return similarityMetric_ == null ? grpc.control_client._SimilarityMetric.getDefaultInstance() : similarityMetric_;
} else {
return similarityMetricBuilder_.getMessage();
}
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
public Builder setSimilarityMetric(grpc.control_client._SimilarityMetric value) {
if (similarityMetricBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
similarityMetric_ = value;
} else {
similarityMetricBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
public Builder setSimilarityMetric(
grpc.control_client._SimilarityMetric.Builder builderForValue) {
if (similarityMetricBuilder_ == null) {
similarityMetric_ = builderForValue.build();
} else {
similarityMetricBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
public Builder mergeSimilarityMetric(grpc.control_client._SimilarityMetric value) {
if (similarityMetricBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
similarityMetric_ != null &&
similarityMetric_ != grpc.control_client._SimilarityMetric.getDefaultInstance()) {
getSimilarityMetricBuilder().mergeFrom(value);
} else {
similarityMetric_ = value;
}
} else {
similarityMetricBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
public Builder clearSimilarityMetric() {
bitField0_ = (bitField0_ & ~0x00000004);
similarityMetric_ = null;
if (similarityMetricBuilder_ != null) {
similarityMetricBuilder_.dispose();
similarityMetricBuilder_ = null;
}
onChanged();
return this;
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
public grpc.control_client._SimilarityMetric.Builder getSimilarityMetricBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getSimilarityMetricFieldBuilder().getBuilder();
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
public grpc.control_client._SimilarityMetricOrBuilder getSimilarityMetricOrBuilder() {
if (similarityMetricBuilder_ != null) {
return similarityMetricBuilder_.getMessageOrBuilder();
} else {
return similarityMetric_ == null ?
grpc.control_client._SimilarityMetric.getDefaultInstance() : similarityMetric_;
}
}
/**
* .control_client._SimilarityMetric similarity_metric = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.control_client._SimilarityMetric, grpc.control_client._SimilarityMetric.Builder, grpc.control_client._SimilarityMetricOrBuilder>
getSimilarityMetricFieldBuilder() {
if (similarityMetricBuilder_ == null) {
similarityMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.control_client._SimilarityMetric, grpc.control_client._SimilarityMetric.Builder, grpc.control_client._SimilarityMetricOrBuilder>(
getSimilarityMetric(),
getParentForChildren(),
isClean());
similarityMetric_ = null;
}
return similarityMetricBuilder_;
}
@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:control_client._ListIndexesResponse._Index)
}
// @@protoc_insertion_point(class_scope:control_client._ListIndexesResponse._Index)
private static final grpc.control_client._ListIndexesResponse._Index DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.control_client._ListIndexesResponse._Index();
}
public static grpc.control_client._ListIndexesResponse._Index getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_Index>
PARSER = new com.google.protobuf.AbstractParser<_Index>() {
@java.lang.Override
public _Index 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<_Index> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_Index> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse._Index getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int INDEXES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List indexes_;
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
@java.lang.Override
public java.util.List getIndexesList() {
return indexes_;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
@java.lang.Override
public java.util.List extends grpc.control_client._ListIndexesResponse._IndexOrBuilder>
getIndexesOrBuilderList() {
return indexes_;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
@java.lang.Override
public int getIndexesCount() {
return indexes_.size();
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
@java.lang.Override
public grpc.control_client._ListIndexesResponse._Index getIndexes(int index) {
return indexes_.get(index);
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
@java.lang.Override
public grpc.control_client._ListIndexesResponse._IndexOrBuilder getIndexesOrBuilder(
int index) {
return indexes_.get(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 < indexes_.size(); i++) {
output.writeMessage(1, indexes_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < indexes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, indexes_.get(i));
}
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.control_client._ListIndexesResponse)) {
return super.equals(obj);
}
grpc.control_client._ListIndexesResponse other = (grpc.control_client._ListIndexesResponse) obj;
if (!getIndexesList()
.equals(other.getIndexesList())) 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 (getIndexesCount() > 0) {
hash = (37 * hash) + INDEXES_FIELD_NUMBER;
hash = (53 * hash) + getIndexesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.control_client._ListIndexesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.control_client._ListIndexesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.control_client._ListIndexesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.control_client._ListIndexesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.control_client._ListIndexesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.control_client._ListIndexesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.control_client._ListIndexesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.control_client._ListIndexesResponse 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.control_client._ListIndexesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.control_client._ListIndexesResponse 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.control_client._ListIndexesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.control_client._ListIndexesResponse 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.control_client._ListIndexesResponse 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 control_client._ListIndexesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:control_client._ListIndexesResponse)
grpc.control_client._ListIndexesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.control_client._ListIndexesResponse.class, grpc.control_client._ListIndexesResponse.Builder.class);
}
// Construct using grpc.control_client._ListIndexesResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (indexesBuilder_ == null) {
indexes_ = java.util.Collections.emptyList();
} else {
indexes_ = null;
indexesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.control_client.Controlclient.internal_static_control_client__ListIndexesResponse_descriptor;
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse getDefaultInstanceForType() {
return grpc.control_client._ListIndexesResponse.getDefaultInstance();
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse build() {
grpc.control_client._ListIndexesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse buildPartial() {
grpc.control_client._ListIndexesResponse result = new grpc.control_client._ListIndexesResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(grpc.control_client._ListIndexesResponse result) {
if (indexesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
indexes_ = java.util.Collections.unmodifiableList(indexes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.indexes_ = indexes_;
} else {
result.indexes_ = indexesBuilder_.build();
}
}
private void buildPartial0(grpc.control_client._ListIndexesResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.control_client._ListIndexesResponse) {
return mergeFrom((grpc.control_client._ListIndexesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.control_client._ListIndexesResponse other) {
if (other == grpc.control_client._ListIndexesResponse.getDefaultInstance()) return this;
if (indexesBuilder_ == null) {
if (!other.indexes_.isEmpty()) {
if (indexes_.isEmpty()) {
indexes_ = other.indexes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIndexesIsMutable();
indexes_.addAll(other.indexes_);
}
onChanged();
}
} else {
if (!other.indexes_.isEmpty()) {
if (indexesBuilder_.isEmpty()) {
indexesBuilder_.dispose();
indexesBuilder_ = null;
indexes_ = other.indexes_;
bitField0_ = (bitField0_ & ~0x00000001);
indexesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIndexesFieldBuilder() : null;
} else {
indexesBuilder_.addAllMessages(other.indexes_);
}
}
}
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: {
grpc.control_client._ListIndexesResponse._Index m =
input.readMessage(
grpc.control_client._ListIndexesResponse._Index.parser(),
extensionRegistry);
if (indexesBuilder_ == null) {
ensureIndexesIsMutable();
indexes_.add(m);
} else {
indexesBuilder_.addMessage(m);
}
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 java.util.List indexes_ =
java.util.Collections.emptyList();
private void ensureIndexesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
indexes_ = new java.util.ArrayList(indexes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
grpc.control_client._ListIndexesResponse._Index, grpc.control_client._ListIndexesResponse._Index.Builder, grpc.control_client._ListIndexesResponse._IndexOrBuilder> indexesBuilder_;
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public java.util.List getIndexesList() {
if (indexesBuilder_ == null) {
return java.util.Collections.unmodifiableList(indexes_);
} else {
return indexesBuilder_.getMessageList();
}
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public int getIndexesCount() {
if (indexesBuilder_ == null) {
return indexes_.size();
} else {
return indexesBuilder_.getCount();
}
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public grpc.control_client._ListIndexesResponse._Index getIndexes(int index) {
if (indexesBuilder_ == null) {
return indexes_.get(index);
} else {
return indexesBuilder_.getMessage(index);
}
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder setIndexes(
int index, grpc.control_client._ListIndexesResponse._Index value) {
if (indexesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexesIsMutable();
indexes_.set(index, value);
onChanged();
} else {
indexesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder setIndexes(
int index, grpc.control_client._ListIndexesResponse._Index.Builder builderForValue) {
if (indexesBuilder_ == null) {
ensureIndexesIsMutable();
indexes_.set(index, builderForValue.build());
onChanged();
} else {
indexesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder addIndexes(grpc.control_client._ListIndexesResponse._Index value) {
if (indexesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexesIsMutable();
indexes_.add(value);
onChanged();
} else {
indexesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder addIndexes(
int index, grpc.control_client._ListIndexesResponse._Index value) {
if (indexesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexesIsMutable();
indexes_.add(index, value);
onChanged();
} else {
indexesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder addIndexes(
grpc.control_client._ListIndexesResponse._Index.Builder builderForValue) {
if (indexesBuilder_ == null) {
ensureIndexesIsMutable();
indexes_.add(builderForValue.build());
onChanged();
} else {
indexesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder addIndexes(
int index, grpc.control_client._ListIndexesResponse._Index.Builder builderForValue) {
if (indexesBuilder_ == null) {
ensureIndexesIsMutable();
indexes_.add(index, builderForValue.build());
onChanged();
} else {
indexesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder addAllIndexes(
java.lang.Iterable extends grpc.control_client._ListIndexesResponse._Index> values) {
if (indexesBuilder_ == null) {
ensureIndexesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexes_);
onChanged();
} else {
indexesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder clearIndexes() {
if (indexesBuilder_ == null) {
indexes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
indexesBuilder_.clear();
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public Builder removeIndexes(int index) {
if (indexesBuilder_ == null) {
ensureIndexesIsMutable();
indexes_.remove(index);
onChanged();
} else {
indexesBuilder_.remove(index);
}
return this;
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public grpc.control_client._ListIndexesResponse._Index.Builder getIndexesBuilder(
int index) {
return getIndexesFieldBuilder().getBuilder(index);
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public grpc.control_client._ListIndexesResponse._IndexOrBuilder getIndexesOrBuilder(
int index) {
if (indexesBuilder_ == null) {
return indexes_.get(index); } else {
return indexesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public java.util.List extends grpc.control_client._ListIndexesResponse._IndexOrBuilder>
getIndexesOrBuilderList() {
if (indexesBuilder_ != null) {
return indexesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(indexes_);
}
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public grpc.control_client._ListIndexesResponse._Index.Builder addIndexesBuilder() {
return getIndexesFieldBuilder().addBuilder(
grpc.control_client._ListIndexesResponse._Index.getDefaultInstance());
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public grpc.control_client._ListIndexesResponse._Index.Builder addIndexesBuilder(
int index) {
return getIndexesFieldBuilder().addBuilder(
index, grpc.control_client._ListIndexesResponse._Index.getDefaultInstance());
}
/**
* repeated .control_client._ListIndexesResponse._Index indexes = 1;
*/
public java.util.List
getIndexesBuilderList() {
return getIndexesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
grpc.control_client._ListIndexesResponse._Index, grpc.control_client._ListIndexesResponse._Index.Builder, grpc.control_client._ListIndexesResponse._IndexOrBuilder>
getIndexesFieldBuilder() {
if (indexesBuilder_ == null) {
indexesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
grpc.control_client._ListIndexesResponse._Index, grpc.control_client._ListIndexesResponse._Index.Builder, grpc.control_client._ListIndexesResponse._IndexOrBuilder>(
indexes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
indexes_ = null;
}
return indexesBuilder_;
}
@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:control_client._ListIndexesResponse)
}
// @@protoc_insertion_point(class_scope:control_client._ListIndexesResponse)
private static final grpc.control_client._ListIndexesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.control_client._ListIndexesResponse();
}
public static grpc.control_client._ListIndexesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_ListIndexesResponse>
PARSER = new com.google.protobuf.AbstractParser<_ListIndexesResponse>() {
@java.lang.Override
public _ListIndexesResponse 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<_ListIndexesResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_ListIndexesResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.control_client._ListIndexesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}