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

com.yelp.nrtsearch.server.grpc.CreateIndexRequest Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yelp/nrtsearch/luceneserver.proto

// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;

/**
 * 
 * Input to createIndex 
 * 
* * Protobuf type {@code luceneserver.CreateIndexRequest} */ public final class CreateIndexRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.CreateIndexRequest) CreateIndexRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateIndexRequest.newBuilder() to construct. private CreateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateIndexRequest() { indexName_ = ""; existsWithId_ = ""; fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateIndexRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.CreateIndexRequest.class, com.yelp.nrtsearch.server.grpc.CreateIndexRequest.Builder.class); } private int bitField0_; public static final int INDEXNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object indexName_ = ""; /** *
   * name of the index to be created. [a-zA-Z0-9]*
   * 
* * string indexName = 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; } } /** *
   * name of the index to be created. [a-zA-Z0-9]*
   * 
* * string indexName = 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 EXISTSWITHID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object existsWithId_ = ""; /** *
   * Set if state/data already exists in the data backend. Provides the yyyyMMddHHmmssSSS formatted date-time string to identify and load the index.
   * 
* * string existsWithId = 2; * @return The existsWithId. */ @java.lang.Override public java.lang.String getExistsWithId() { java.lang.Object ref = existsWithId_; 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(); existsWithId_ = s; return s; } } /** *
   * Set if state/data already exists in the data backend. Provides the yyyyMMddHHmmssSSS formatted date-time string to identify and load the index.
   * 
* * string existsWithId = 2; * @return The bytes for existsWithId. */ @java.lang.Override public com.google.protobuf.ByteString getExistsWithIdBytes() { java.lang.Object ref = existsWithId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); existsWithId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SETTINGS_FIELD_NUMBER = 3; private com.yelp.nrtsearch.server.grpc.IndexSettings settings_; /** *
   * Optional initial index settings
   * 
* * .luceneserver.IndexSettings settings = 3; * @return Whether the settings field is set. */ @java.lang.Override public boolean hasSettings() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Optional initial index settings
   * 
* * .luceneserver.IndexSettings settings = 3; * @return The settings. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.IndexSettings getSettings() { return settings_ == null ? com.yelp.nrtsearch.server.grpc.IndexSettings.getDefaultInstance() : settings_; } /** *
   * Optional initial index settings
   * 
* * .luceneserver.IndexSettings settings = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.IndexSettingsOrBuilder getSettingsOrBuilder() { return settings_ == null ? com.yelp.nrtsearch.server.grpc.IndexSettings.getDefaultInstance() : settings_; } public static final int LIVESETTINGS_FIELD_NUMBER = 4; private com.yelp.nrtsearch.server.grpc.IndexLiveSettings liveSettings_; /** *
   * Optional initial index live settings
   * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; * @return Whether the liveSettings field is set. */ @java.lang.Override public boolean hasLiveSettings() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Optional initial index live settings
   * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; * @return The liveSettings. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.IndexLiveSettings getLiveSettings() { return liveSettings_ == null ? com.yelp.nrtsearch.server.grpc.IndexLiveSettings.getDefaultInstance() : liveSettings_; } /** *
   * Optional initial index live settings
   * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.IndexLiveSettingsOrBuilder getLiveSettingsOrBuilder() { return liveSettings_ == null ? com.yelp.nrtsearch.server.grpc.IndexLiveSettings.getDefaultInstance() : liveSettings_; } public static final int FIELDS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List fields_; /** *
   * Optional initial index fields
   * 
* * repeated .luceneserver.Field fields = 5; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** *
   * Optional initial index fields
   * 
* * repeated .luceneserver.Field fields = 5; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
   * Optional initial index fields
   * 
* * repeated .luceneserver.Field fields = 5; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** *
   * Optional initial index fields
   * 
* * repeated .luceneserver.Field fields = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Field getFields(int index) { return fields_.get(index); } /** *
   * Optional initial index fields
   * 
* * repeated .luceneserver.Field fields = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FieldOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } public static final int START_FIELD_NUMBER = 6; private boolean start_ = false; /** *
   * If this index should also be started, using IndexStartConfig configuration
   * 
* * bool start = 6; * @return The start. */ @java.lang.Override public boolean getStart() { return start_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(existsWithId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, existsWithId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getSettings()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getLiveSettings()); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(5, fields_.get(i)); } if (start_ != false) { output.writeBool(6, start_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(existsWithId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, existsWithId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSettings()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLiveSettings()); } for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, fields_.get(i)); } if (start_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, start_); } 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 com.yelp.nrtsearch.server.grpc.CreateIndexRequest)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.CreateIndexRequest other = (com.yelp.nrtsearch.server.grpc.CreateIndexRequest) obj; if (!getIndexName() .equals(other.getIndexName())) return false; if (!getExistsWithId() .equals(other.getExistsWithId())) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { if (!getSettings() .equals(other.getSettings())) return false; } if (hasLiveSettings() != other.hasLiveSettings()) return false; if (hasLiveSettings()) { if (!getLiveSettings() .equals(other.getLiveSettings())) return false; } if (!getFieldsList() .equals(other.getFieldsList())) return false; if (getStart() != other.getStart()) 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) + INDEXNAME_FIELD_NUMBER; hash = (53 * hash) + getIndexName().hashCode(); hash = (37 * hash) + EXISTSWITHID_FIELD_NUMBER; hash = (53 * hash) + getExistsWithId().hashCode(); if (hasSettings()) { hash = (37 * hash) + SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSettings().hashCode(); } if (hasLiveSettings()) { hash = (37 * hash) + LIVESETTINGS_FIELD_NUMBER; hash = (53 * hash) + getLiveSettings().hashCode(); } if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStart()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.yelp.nrtsearch.server.grpc.CreateIndexRequest 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; } /** *
   * Input to createIndex 
   * 
* * Protobuf type {@code luceneserver.CreateIndexRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.CreateIndexRequest) com.yelp.nrtsearch.server.grpc.CreateIndexRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.CreateIndexRequest.class, com.yelp.nrtsearch.server.grpc.CreateIndexRequest.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.CreateIndexRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSettingsFieldBuilder(); getLiveSettingsFieldBuilder(); getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexName_ = ""; existsWithId_ = ""; settings_ = null; if (settingsBuilder_ != null) { settingsBuilder_.dispose(); settingsBuilder_ = null; } liveSettings_ = null; if (liveSettingsBuilder_ != null) { liveSettingsBuilder_.dispose(); liveSettingsBuilder_ = null; } if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); start_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateIndexRequest_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.CreateIndexRequest getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.CreateIndexRequest.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.CreateIndexRequest build() { com.yelp.nrtsearch.server.grpc.CreateIndexRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.CreateIndexRequest buildPartial() { com.yelp.nrtsearch.server.grpc.CreateIndexRequest result = new com.yelp.nrtsearch.server.grpc.CreateIndexRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.CreateIndexRequest result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000010); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.CreateIndexRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.indexName_ = indexName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.existsWithId_ = existsWithId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.settings_ = settingsBuilder_ == null ? settings_ : settingsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.liveSettings_ = liveSettingsBuilder_ == null ? liveSettings_ : liveSettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.start_ = start_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yelp.nrtsearch.server.grpc.CreateIndexRequest) { return mergeFrom((com.yelp.nrtsearch.server.grpc.CreateIndexRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.CreateIndexRequest other) { if (other == com.yelp.nrtsearch.server.grpc.CreateIndexRequest.getDefaultInstance()) return this; if (!other.getIndexName().isEmpty()) { indexName_ = other.indexName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getExistsWithId().isEmpty()) { existsWithId_ = other.existsWithId_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasSettings()) { mergeSettings(other.getSettings()); } if (other.hasLiveSettings()) { mergeLiveSettings(other.getLiveSettings()); } if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000010); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } if (other.getStart() != false) { setStart(other.getStart()); } 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 18: { existsWithId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getLiveSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.yelp.nrtsearch.server.grpc.Field m = input.readMessage( com.yelp.nrtsearch.server.grpc.Field.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 42 case 48: { start_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 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_ = ""; /** *
     * name of the index to be created. [a-zA-Z0-9]*
     * 
* * string indexName = 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; } } /** *
     * name of the index to be created. [a-zA-Z0-9]*
     * 
* * string indexName = 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; } } /** *
     * name of the index to be created. [a-zA-Z0-9]*
     * 
* * string indexName = 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; } /** *
     * name of the index to be created. [a-zA-Z0-9]*
     * 
* * string indexName = 1; * @return This builder for chaining. */ public Builder clearIndexName() { indexName_ = getDefaultInstance().getIndexName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * name of the index to be created. [a-zA-Z0-9]*
     * 
* * string indexName = 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 java.lang.Object existsWithId_ = ""; /** *
     * Set if state/data already exists in the data backend. Provides the yyyyMMddHHmmssSSS formatted date-time string to identify and load the index.
     * 
* * string existsWithId = 2; * @return The existsWithId. */ public java.lang.String getExistsWithId() { java.lang.Object ref = existsWithId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); existsWithId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Set if state/data already exists in the data backend. Provides the yyyyMMddHHmmssSSS formatted date-time string to identify and load the index.
     * 
* * string existsWithId = 2; * @return The bytes for existsWithId. */ public com.google.protobuf.ByteString getExistsWithIdBytes() { java.lang.Object ref = existsWithId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); existsWithId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Set if state/data already exists in the data backend. Provides the yyyyMMddHHmmssSSS formatted date-time string to identify and load the index.
     * 
* * string existsWithId = 2; * @param value The existsWithId to set. * @return This builder for chaining. */ public Builder setExistsWithId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } existsWithId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Set if state/data already exists in the data backend. Provides the yyyyMMddHHmmssSSS formatted date-time string to identify and load the index.
     * 
* * string existsWithId = 2; * @return This builder for chaining. */ public Builder clearExistsWithId() { existsWithId_ = getDefaultInstance().getExistsWithId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Set if state/data already exists in the data backend. Provides the yyyyMMddHHmmssSSS formatted date-time string to identify and load the index.
     * 
* * string existsWithId = 2; * @param value The bytes for existsWithId to set. * @return This builder for chaining. */ public Builder setExistsWithIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); existsWithId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.IndexSettings settings_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.IndexSettings, com.yelp.nrtsearch.server.grpc.IndexSettings.Builder, com.yelp.nrtsearch.server.grpc.IndexSettingsOrBuilder> settingsBuilder_; /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; * @return Whether the settings field is set. */ public boolean hasSettings() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; * @return The settings. */ public com.yelp.nrtsearch.server.grpc.IndexSettings getSettings() { if (settingsBuilder_ == null) { return settings_ == null ? com.yelp.nrtsearch.server.grpc.IndexSettings.getDefaultInstance() : settings_; } else { return settingsBuilder_.getMessage(); } } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; */ public Builder setSettings(com.yelp.nrtsearch.server.grpc.IndexSettings value) { if (settingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } settings_ = value; } else { settingsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; */ public Builder setSettings( com.yelp.nrtsearch.server.grpc.IndexSettings.Builder builderForValue) { if (settingsBuilder_ == null) { settings_ = builderForValue.build(); } else { settingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; */ public Builder mergeSettings(com.yelp.nrtsearch.server.grpc.IndexSettings value) { if (settingsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && settings_ != null && settings_ != com.yelp.nrtsearch.server.grpc.IndexSettings.getDefaultInstance()) { getSettingsBuilder().mergeFrom(value); } else { settings_ = value; } } else { settingsBuilder_.mergeFrom(value); } if (settings_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; */ public Builder clearSettings() { bitField0_ = (bitField0_ & ~0x00000004); settings_ = null; if (settingsBuilder_ != null) { settingsBuilder_.dispose(); settingsBuilder_ = null; } onChanged(); return this; } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; */ public com.yelp.nrtsearch.server.grpc.IndexSettings.Builder getSettingsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; */ public com.yelp.nrtsearch.server.grpc.IndexSettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { return settings_ == null ? com.yelp.nrtsearch.server.grpc.IndexSettings.getDefaultInstance() : settings_; } } /** *
     * Optional initial index settings
     * 
* * .luceneserver.IndexSettings settings = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.IndexSettings, com.yelp.nrtsearch.server.grpc.IndexSettings.Builder, com.yelp.nrtsearch.server.grpc.IndexSettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.IndexSettings, com.yelp.nrtsearch.server.grpc.IndexSettings.Builder, com.yelp.nrtsearch.server.grpc.IndexSettingsOrBuilder>( getSettings(), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; } private com.yelp.nrtsearch.server.grpc.IndexLiveSettings liveSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.IndexLiveSettings, com.yelp.nrtsearch.server.grpc.IndexLiveSettings.Builder, com.yelp.nrtsearch.server.grpc.IndexLiveSettingsOrBuilder> liveSettingsBuilder_; /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; * @return Whether the liveSettings field is set. */ public boolean hasLiveSettings() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; * @return The liveSettings. */ public com.yelp.nrtsearch.server.grpc.IndexLiveSettings getLiveSettings() { if (liveSettingsBuilder_ == null) { return liveSettings_ == null ? com.yelp.nrtsearch.server.grpc.IndexLiveSettings.getDefaultInstance() : liveSettings_; } else { return liveSettingsBuilder_.getMessage(); } } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ public Builder setLiveSettings(com.yelp.nrtsearch.server.grpc.IndexLiveSettings value) { if (liveSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } liveSettings_ = value; } else { liveSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ public Builder setLiveSettings( com.yelp.nrtsearch.server.grpc.IndexLiveSettings.Builder builderForValue) { if (liveSettingsBuilder_ == null) { liveSettings_ = builderForValue.build(); } else { liveSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ public Builder mergeLiveSettings(com.yelp.nrtsearch.server.grpc.IndexLiveSettings value) { if (liveSettingsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && liveSettings_ != null && liveSettings_ != com.yelp.nrtsearch.server.grpc.IndexLiveSettings.getDefaultInstance()) { getLiveSettingsBuilder().mergeFrom(value); } else { liveSettings_ = value; } } else { liveSettingsBuilder_.mergeFrom(value); } if (liveSettings_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ public Builder clearLiveSettings() { bitField0_ = (bitField0_ & ~0x00000008); liveSettings_ = null; if (liveSettingsBuilder_ != null) { liveSettingsBuilder_.dispose(); liveSettingsBuilder_ = null; } onChanged(); return this; } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ public com.yelp.nrtsearch.server.grpc.IndexLiveSettings.Builder getLiveSettingsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLiveSettingsFieldBuilder().getBuilder(); } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ public com.yelp.nrtsearch.server.grpc.IndexLiveSettingsOrBuilder getLiveSettingsOrBuilder() { if (liveSettingsBuilder_ != null) { return liveSettingsBuilder_.getMessageOrBuilder(); } else { return liveSettings_ == null ? com.yelp.nrtsearch.server.grpc.IndexLiveSettings.getDefaultInstance() : liveSettings_; } } /** *
     * Optional initial index live settings
     * 
* * .luceneserver.IndexLiveSettings liveSettings = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.IndexLiveSettings, com.yelp.nrtsearch.server.grpc.IndexLiveSettings.Builder, com.yelp.nrtsearch.server.grpc.IndexLiveSettingsOrBuilder> getLiveSettingsFieldBuilder() { if (liveSettingsBuilder_ == null) { liveSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.IndexLiveSettings, com.yelp.nrtsearch.server.grpc.IndexLiveSettings.Builder, com.yelp.nrtsearch.server.grpc.IndexLiveSettingsOrBuilder>( getLiveSettings(), getParentForChildren(), isClean()); liveSettings_ = null; } return liveSettingsBuilder_; } private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Field, com.yelp.nrtsearch.server.grpc.Field.Builder, com.yelp.nrtsearch.server.grpc.FieldOrBuilder> fieldsBuilder_; /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public com.yelp.nrtsearch.server.grpc.Field getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder setFields( int index, com.yelp.nrtsearch.server.grpc.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder setFields( int index, com.yelp.nrtsearch.server.grpc.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder addFields(com.yelp.nrtsearch.server.grpc.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder addFields( int index, com.yelp.nrtsearch.server.grpc.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder addFields( com.yelp.nrtsearch.server.grpc.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder addFields( int index, com.yelp.nrtsearch.server.grpc.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public com.yelp.nrtsearch.server.grpc.Field.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public com.yelp.nrtsearch.server.grpc.FieldOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public com.yelp.nrtsearch.server.grpc.Field.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.Field.getDefaultInstance()); } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public com.yelp.nrtsearch.server.grpc.Field.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.Field.getDefaultInstance()); } /** *
     * Optional initial index fields
     * 
* * repeated .luceneserver.Field fields = 5; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Field, com.yelp.nrtsearch.server.grpc.Field.Builder, com.yelp.nrtsearch.server.grpc.FieldOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Field, com.yelp.nrtsearch.server.grpc.Field.Builder, com.yelp.nrtsearch.server.grpc.FieldOrBuilder>( fields_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } private boolean start_ ; /** *
     * If this index should also be started, using IndexStartConfig configuration
     * 
* * bool start = 6; * @return The start. */ @java.lang.Override public boolean getStart() { return start_; } /** *
     * If this index should also be started, using IndexStartConfig configuration
     * 
* * bool start = 6; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(boolean value) { start_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * If this index should also be started, using IndexStartConfig configuration
     * 
* * bool start = 6; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000020); start_ = false; 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:luceneserver.CreateIndexRequest) } // @@protoc_insertion_point(class_scope:luceneserver.CreateIndexRequest) private static final com.yelp.nrtsearch.server.grpc.CreateIndexRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.CreateIndexRequest(); } public static com.yelp.nrtsearch.server.grpc.CreateIndexRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateIndexRequest 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 com.yelp.nrtsearch.server.grpc.CreateIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy