Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* optional string error_detail = 2;
* @param value The bytes for errorDetail to set.
* @return This builder for chaining.
*/
public Builder setErrorDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
errorDetail_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int canonicalCode_ ;
/**
*
* Canonical error code.
*
*
* optional int32 canonical_code = 3;
* @return Whether the canonicalCode field is set.
*/
@java.lang.Override
public boolean hasCanonicalCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Canonical error code.
*
*
* optional int32 canonical_code = 3;
* @return The canonicalCode.
*/
@java.lang.Override
public int getCanonicalCode() {
return canonicalCode_;
}
/**
*
* Canonical error code.
*
*
* optional int32 canonical_code = 3;
* @param value The canonicalCode to set.
* @return This builder for chaining.
*/
public Builder setCanonicalCode(int value) {
canonicalCode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Canonical error code.
*
*
* optional int32 canonical_code = 3;
* @return This builder for chaining.
*/
public Builder clearCanonicalCode() {
bitField0_ = (bitField0_ & ~0x00000004);
canonicalCode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.RequestStatus)
}
// @@protoc_insertion_point(class_scope:java.apphosting.RequestStatus)
private static final com.google.appengine.api.search.proto.SearchServicePb.RequestStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.RequestStatus();
}
public static com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestStatus 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.google.appengine.api.search.proto.SearchServicePb.RequestStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IndexSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.IndexSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
*
* optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT];
* @return Whether the consistency field is set.
*/
boolean hasConsistency();
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
* Full specification of an index. An index is uniquely identified by source,
* application name (not part of index spec), namespace, and name of the index.
* The index consistency impacts how documents are added to the index and how
* searches are performed on the index. The mode defines how urgent a given
* operation is and currently, only impacts addition and deletion.
*
*
* Protobuf type {@code java.apphosting.IndexSpec}
*/
public static final class IndexSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.IndexSpec)
IndexSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexSpec.newBuilder() to construct.
private IndexSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexSpec() {
name_ = "";
consistency_ = 1;
namespace_ = "";
source_ = 0;
mode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.class, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder.class);
}
/**
*
* The index is only consistent on a document level.
*
*
* PER_DOCUMENT = 1;
*/
PER_DOCUMENT(1),
;
/**
*
* The index is globally consistent.
*
*
* GLOBAL = 0;
*/
public static final int GLOBAL_VALUE = 0;
/**
*
* The index is only consistent on a document level.
*
*
* PER_DOCUMENT = 1;
*/
public static final int PER_DOCUMENT_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Consistency valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Consistency forNumber(int value) {
switch (value) {
case 0: return GLOBAL;
case 1: return PER_DOCUMENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Consistency> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Consistency findValueByNumber(int number) {
return Consistency.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDescriptor().getEnumTypes().get(0);
}
private static final Consistency[] VALUES = values();
public static Consistency valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Consistency(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.IndexSpec.Consistency)
}
/**
*
* The documents were indexed using the Search API.
*
*
* SEARCH = 0;
*/
public static final int SEARCH_VALUE = 0;
/**
*
* The documents are automatic conversions of Datastore Entities.
*
*
* DATASTORE = 1;
*/
public static final int DATASTORE_VALUE = 1;
/**
*
* The documents are automatic conversions of Cloud Storage Objects.
*
*
* CLOUD_STORAGE = 2;
*/
public static final int CLOUD_STORAGE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Source valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Source forNumber(int value) {
switch (value) {
case 0: return SEARCH;
case 1: return DATASTORE;
case 2: return CLOUD_STORAGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Source> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Source findValueByNumber(int number) {
return Source.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDescriptor().getEnumTypes().get(1);
}
private static final Source[] VALUES = values();
public static Source valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Source(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.IndexSpec.Source)
}
/**
*
* The mode in which the index is to operate. This currently
* impacts only add and remove operations on the index.
*
* Indicates that index operations should be executed as promptly as
* possible. For GLOBAL indexes, this means that adding or removing
* documents should block until the changes are visible in search.
* For PER_DOCUMENT indexes tokenization is started by the time the
* Index.add() method returns and finishes in time proportional
* to the complexity of the task, rather than the number of free
* cycles available to the backend.
*
*
* PRIORITY = 0;
*/
PRIORITY(0),
/**
*
* Returns as soon as possible. This mode does not offer any guarantees
* as to how fast the backend commits the results of the operation. In
* particular, there may be a significant delay between adding a document
* to an index and that document being retured in search results.
*
*
* BACKGROUND = 1;
*/
BACKGROUND(1),
;
/**
*
* Indicates that index operations should be executed as promptly as
* possible. For GLOBAL indexes, this means that adding or removing
* documents should block until the changes are visible in search.
* For PER_DOCUMENT indexes tokenization is started by the time the
* Index.add() method returns and finishes in time proportional
* to the complexity of the task, rather than the number of free
* cycles available to the backend.
*
*
* PRIORITY = 0;
*/
public static final int PRIORITY_VALUE = 0;
/**
*
* Returns as soon as possible. This mode does not offer any guarantees
* as to how fast the backend commits the results of the operation. In
* particular, there may be a significant delay between adding a document
* to an index and that document being retured in search results.
*
*
* BACKGROUND = 1;
*/
public static final int BACKGROUND_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Mode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Mode forNumber(int value) {
switch (value) {
case 0: return PRIORITY;
case 1: return BACKGROUND;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDescriptor().getEnumTypes().get(2);
}
private static final Mode[] VALUES = values();
public static Mode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.IndexSpec.Mode)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONSISTENCY_FIELD_NUMBER = 2;
private int consistency_ = 1;
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
*
* optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT];
* @return Whether the consistency field is set.
*/
@java.lang.Override public boolean hasConsistency() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
*
* optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT];
* @return The consistency.
*/
@java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency getConsistency() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency.forNumber(consistency_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency.PER_DOCUMENT : result;
}
public static final int NAMESPACE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object namespace_ = "";
/**
*
* The namespace associated with this index; if not specified we
* assume the default namespace.
*
*
* optional string namespace = 3;
* @return Whether the namespace field is set.
*/
@java.lang.Override
public boolean hasNamespace() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The namespace associated with this index; if not specified we
* assume the default namespace.
*
* The namespace associated with this index; if not specified we
* assume the default namespace.
*
*
* optional string namespace = 3;
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 4;
private int version_ = 0;
/**
*
* The version of the index on which we wish to operate; if
* not specified we assume the active version. NOT USED.
*
*
* optional int32 version = 4;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The version of the index on which we wish to operate; if
* not specified we assume the active version. NOT USED.
*
*
* optional int32 version = 4;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
public static final int SOURCE_FIELD_NUMBER = 5;
private int source_ = 0;
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH];
* @return Whether the source field is set.
*/
@java.lang.Override public boolean hasSource() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH];
* @return The source.
*/
@java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source getSource() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.forNumber(source_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.SEARCH : result;
}
public static final int MODE_FIELD_NUMBER = 6;
private int mode_ = 0;
/**
*
* The mode in which index operations are committed. The mode is not
* persisted and can be changed from one RPC call to the next.
*
*
* optional .java.apphosting.IndexSpec.Mode mode = 6 [default = PRIORITY];
* @return Whether the mode field is set.
*/
@java.lang.Override public boolean hasMode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The mode in which index operations are committed. The mode is not
* persisted and can be changed from one RPC call to the next.
*
*
* optional .java.apphosting.IndexSpec.Mode mode = 6 [default = PRIORITY];
* @return The mode.
*/
@java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode getMode() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode.forNumber(mode_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode.PRIORITY : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, consistency_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(4, version_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeEnum(5, source_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeEnum(6, mode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, consistency_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, version_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, source_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, mode_);
}
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.google.appengine.api.search.proto.SearchServicePb.IndexSpec)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec other = (com.google.appengine.api.search.proto.SearchServicePb.IndexSpec) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasConsistency() != other.hasConsistency()) return false;
if (hasConsistency()) {
if (consistency_ != other.consistency_) return false;
}
if (hasNamespace() != other.hasNamespace()) return false;
if (hasNamespace()) {
if (!getNamespace()
.equals(other.getNamespace())) return false;
}
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (getVersion()
!= other.getVersion()) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (source_ != other.source_) return false;
}
if (hasMode() != other.hasMode()) return false;
if (hasMode()) {
if (mode_ != other.mode_) 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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasConsistency()) {
hash = (37 * hash) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + consistency_;
}
if (hasNamespace()) {
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + source_;
}
if (hasMode()) {
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec 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.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec 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.google.appengine.api.search.proto.SearchServicePb.IndexSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec 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.google.appengine.api.search.proto.SearchServicePb.IndexSpec 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;
}
/**
*
* Full specification of an index. An index is uniquely identified by source,
* application name (not part of index spec), namespace, and name of the index.
* The index consistency impacts how documents are added to the index and how
* searches are performed on the index. The mode defines how urgent a given
* operation is and currently, only impacts addition and deletion.
*
*
* Protobuf type {@code java.apphosting.IndexSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.IndexSpec)
com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.class, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
consistency_ = 1;
namespace_ = "";
version_ = 0;
source_ = 0;
mode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexSpec_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec build() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec result = new com.google.appengine.api.search.proto.SearchServicePb.IndexSpec(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.consistency_ = consistency_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.namespace_ = namespace_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.version_ = version_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.source_ = source_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.mode_ = mode_;
to_bitField0_ |= 0x00000020;
}
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.google.appengine.api.search.proto.SearchServicePb.IndexSpec) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.IndexSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) return this;
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasConsistency()) {
setConsistency(other.getConsistency());
}
if (other.hasNamespace()) {
namespace_ = other.namespace_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasVersion()) {
setVersion(other.getVersion());
}
if (other.hasSource()) {
setSource(other.getSource());
}
if (other.hasMode()) {
setMode(other.getMode());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
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: {
name_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
int tmpRaw = input.readEnum();
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency tmpValue =
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
consistency_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 16
case 26: {
namespace_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
version_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
int tmpRaw = input.readEnum();
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source tmpValue =
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(5, tmpRaw);
} else {
source_ = tmpRaw;
bitField0_ |= 0x00000010;
}
break;
} // case 40
case 48: {
int tmpRaw = input.readEnum();
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode tmpValue =
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(6, tmpRaw);
} else {
mode_ = tmpRaw;
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 name_ = "";
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the index.
*
*
* required string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The name of the index.
*
*
* required string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The name of the index.
*
*
* required string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int consistency_ = 1;
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
*
* optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT];
* @return Whether the consistency field is set.
*/
@java.lang.Override public boolean hasConsistency() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
*
* optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT];
* @return The consistency.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency getConsistency() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency.forNumber(consistency_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency.PER_DOCUMENT : result;
}
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
*
* optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT];
* @param value The consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistency(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
consistency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The consistency mode (either local or global) for this index.
* Once set, the consistency is fixed for the life of the index.
* It is set on the first indexing call and only checked subsequently.
*
* The namespace associated with this index; if not specified we
* assume the default namespace.
*
*
* optional string namespace = 3;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
namespace_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int version_ ;
/**
*
* The version of the index on which we wish to operate; if
* not specified we assume the active version. NOT USED.
*
*
* optional int32 version = 4;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The version of the index on which we wish to operate; if
* not specified we assume the active version. NOT USED.
*
*
* optional int32 version = 4;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
/**
*
* The version of the index on which we wish to operate; if
* not specified we assume the active version. NOT USED.
*
*
* optional int32 version = 4;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The version of the index on which we wish to operate; if
* not specified we assume the active version. NOT USED.
*
*
* optional int32 version = 4;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
version_ = 0;
onChanged();
return this;
}
private int source_ = 0;
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH];
* @return Whether the source field is set.
*/
@java.lang.Override public boolean hasSource() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH];
* @return The source.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source getSource() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.forNumber(source_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.SEARCH : result;
}
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH];
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
source_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH];
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000010);
source_ = 0;
onChanged();
return this;
}
private int mode_ = 0;
/**
*
* The mode in which index operations are committed. The mode is not
* persisted and can be changed from one RPC call to the next.
*
*
* optional .java.apphosting.IndexSpec.Mode mode = 6 [default = PRIORITY];
* @return Whether the mode field is set.
*/
@java.lang.Override public boolean hasMode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The mode in which index operations are committed. The mode is not
* persisted and can be changed from one RPC call to the next.
*
*
* optional .java.apphosting.IndexSpec.Mode mode = 6 [default = PRIORITY];
* @return The mode.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode getMode() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode.forNumber(mode_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode.PRIORITY : result;
}
/**
*
* The mode in which index operations are committed. The mode is not
* persisted and can be changed from one RPC call to the next.
*
*
* optional .java.apphosting.IndexSpec.Mode mode = 6 [default = PRIORITY];
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The mode in which index operations are committed. The mode is not
* persisted and can be changed from one RPC call to the next.
*
*
* optional .java.apphosting.IndexSpec.Mode mode = 6 [default = PRIORITY];
* @return This builder for chaining.
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000020);
mode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.IndexSpec)
}
// @@protoc_insertion_point(class_scope:java.apphosting.IndexSpec)
private static final com.google.appengine.api.search.proto.SearchServicePb.IndexSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.IndexSpec();
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexSpec 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.google.appengine.api.search.proto.SearchServicePb.IndexSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IndexMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.IndexMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* Index specification (fully qualified name).
*
*
* required .java.apphosting.IndexSpec index_spec = 1;
* @return Whether the indexSpec field is set.
*/
boolean hasIndexSpec();
/**
*
* Index schema. Can be optionally returned in response to ListIndexesRequest.
* It will be ignored in other requests for now.
*
*
* repeated .storage_onestore_v3.FieldTypes field = 2;
*/
com.google.apphosting.api.search.DocumentPb.FieldTypesOrBuilder getFieldOrBuilder(
int index);
/**
* optional .java.apphosting.IndexMetadata.Storage storage = 3;
* @return Whether the storage field is set.
*/
boolean hasStorage();
/**
* optional .java.apphosting.IndexMetadata.Storage storage = 3;
* @return The storage.
*/
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage getStorage();
/**
* optional .java.apphosting.IndexMetadata.Storage storage = 3;
*/
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.StorageOrBuilder getStorageOrBuilder();
/**
* optional .java.apphosting.IndexMetadata.IndexState index_state = 4 [default = ACTIVE];
* @return Whether the indexState field is set.
*/
boolean hasIndexState();
/**
* optional .java.apphosting.IndexMetadata.IndexState index_state = 4 [default = ACTIVE];
* @return The indexState.
*/
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState getIndexState();
/**
*
* The scheduled deletion time, in milliseconds from 1970-01-01T00:00:00Z
* Present iff index_state is SOFT_DELETED or PURGING.
*
*
* optional int64 index_delete_time = 5;
* @return Whether the indexDeleteTime field is set.
*/
boolean hasIndexDeleteTime();
/**
*
* The scheduled deletion time, in milliseconds from 1970-01-01T00:00:00Z
* Present iff index_state is SOFT_DELETED or PURGING.
*
*
* optional int64 index_delete_time = 5;
* @return The indexDeleteTime.
*/
long getIndexDeleteTime();
/**
*
* Number of shards in index.
*
*
* optional int32 num_shards = 6 [default = 1];
* @return Whether the numShards field is set.
*/
boolean hasNumShards();
/**
*
* Number of shards in index.
*
*
* optional int32 num_shards = 6 [default = 1];
* @return The numShards.
*/
int getNumShards();
}
/**
*
* Extended information about an index.
*
*
* Protobuf type {@code java.apphosting.IndexMetadata}
*/
public static final class IndexMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.IndexMetadata)
IndexMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexMetadata.newBuilder() to construct.
private IndexMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexMetadata() {
field_ = java.util.Collections.emptyList();
indexState_ = 0;
numShards_ = 1;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.class, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder.class);
}
/**
*
* The index state could be modified upon a user request or a scanner.
* When user issues a delete request, the state is set to SOFT_DELETED,
* while it is still possible for user to cancel that deletion.
* When the scanner finds out that index_delete_time has passed,
* or a Dexter instance finds out index_delete_time has passed upon a RPC,
* it sets the index's state to PURGING by writing to Megastore.
* User is now not able to cancel the deletion.
* When the scanner sees that all traces of the index are deleted,
* it removes the index metadata row.
* We transition between state as follows:
* Index
* +--------+ Created +---------+
* start----->| Non- |------------>| ACTIVE |
* |existent| | |
* Scanner +--------+ +---------+
* finds out ^ ^ |
* all deletes | User cancels | | User issues
* completed | index deletion | | index deletion
* | | v
* +--------+ +---------+
* | PURGE- |<------------| SOFT_ |
* | ING | Scanner/ | DELETED |
* +--------+ Dexter +---------+
* finds out
* index_delete_time
* passed
*
* Index seen as marked deleted; purge trigger time not yet seen.
* The deletion could still be cancelled at this point.
*
*
* SOFT_DELETED = 1;
*/
SOFT_DELETED(1),
/**
*
* Purge trigger time seen, purge processes should run.
*
*
* PURGING = 2;
*/
PURGING(2),
;
/**
*
* Index is active.
*
*
* ACTIVE = 0;
*/
public static final int ACTIVE_VALUE = 0;
/**
*
* Index seen as marked deleted; purge trigger time not yet seen.
* The deletion could still be cancelled at this point.
*
*
* SOFT_DELETED = 1;
*/
public static final int SOFT_DELETED_VALUE = 1;
/**
*
* Purge trigger time seen, purge processes should run.
*
*
* PURGING = 2;
*/
public static final int PURGING_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IndexState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static IndexState forNumber(int value) {
switch (value) {
case 0: return ACTIVE;
case 1: return SOFT_DELETED;
case 2: return PURGING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IndexState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IndexState findValueByNumber(int number) {
return IndexState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.getDescriptor().getEnumTypes().get(0);
}
private static final IndexState[] VALUES = values();
public static IndexState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private IndexState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.IndexMetadata.IndexState)
}
public interface StorageOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.IndexMetadata.Storage)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 amount_used = 1;
* @return Whether the amountUsed field is set.
*/
boolean hasAmountUsed();
/**
* optional int64 amount_used = 1;
* @return The amountUsed.
*/
long getAmountUsed();
/**
* optional int64 limit = 2;
* @return Whether the limit field is set.
*/
boolean hasLimit();
/**
* optional int64 limit = 2;
* @return The limit.
*/
long getLimit();
}
/**
*
* Amount of storage currently used by this index. Note that in
* unusual circumstances the amount_used could be more than the
* limit, either because the quota enforcement mechanism sacrifices
* accuracy for throughput, or in a case where the limit were
* initially high but then was subsequently changed to become lower.
*
*
* Protobuf type {@code java.apphosting.IndexMetadata.Storage}
*/
public static final class Storage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.IndexMetadata.Storage)
StorageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Storage.newBuilder() to construct.
private Storage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Storage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Storage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_Storage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_Storage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.class, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.Builder.class);
}
private int bitField0_;
public static final int AMOUNT_USED_FIELD_NUMBER = 1;
private long amountUsed_ = 0L;
/**
* optional int64 amount_used = 1;
* @return Whether the amountUsed field is set.
*/
@java.lang.Override
public boolean hasAmountUsed() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 amount_used = 1;
* @return The amountUsed.
*/
@java.lang.Override
public long getAmountUsed() {
return amountUsed_;
}
public static final int LIMIT_FIELD_NUMBER = 2;
private long limit_ = 0L;
/**
* optional int64 limit = 2;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 limit = 2;
* @return The limit.
*/
@java.lang.Override
public long getLimit() {
return limit_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, amountUsed_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, limit_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, amountUsed_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, limit_);
}
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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage other = (com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage) obj;
if (hasAmountUsed() != other.hasAmountUsed()) return false;
if (hasAmountUsed()) {
if (getAmountUsed()
!= other.getAmountUsed()) return false;
}
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (getLimit()
!= other.getLimit()) 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 (hasAmountUsed()) {
hash = (37 * hash) + AMOUNT_USED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmountUsed());
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLimit());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage 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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage 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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage 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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage 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;
}
/**
*
* Amount of storage currently used by this index. Note that in
* unusual circumstances the amount_used could be more than the
* limit, either because the quota enforcement mechanism sacrifices
* accuracy for throughput, or in a case where the limit were
* initially high but then was subsequently changed to become lower.
*
*
* Protobuf type {@code java.apphosting.IndexMetadata.Storage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.IndexMetadata.Storage)
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.StorageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_Storage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_Storage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.class, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
amountUsed_ = 0L;
limit_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_Storage_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage build() {
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage result = new com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.amountUsed_ = amountUsed_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.limit_ = limit_;
to_bitField0_ |= 0x00000002;
}
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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.getDefaultInstance()) return this;
if (other.hasAmountUsed()) {
setAmountUsed(other.getAmountUsed());
}
if (other.hasLimit()) {
setLimit(other.getLimit());
}
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 8: {
amountUsed_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
limit_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
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 long amountUsed_ ;
/**
* optional int64 amount_used = 1;
* @return Whether the amountUsed field is set.
*/
@java.lang.Override
public boolean hasAmountUsed() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 amount_used = 1;
* @return The amountUsed.
*/
@java.lang.Override
public long getAmountUsed() {
return amountUsed_;
}
/**
* optional int64 amount_used = 1;
* @param value The amountUsed to set.
* @return This builder for chaining.
*/
public Builder setAmountUsed(long value) {
amountUsed_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int64 amount_used = 1;
* @return This builder for chaining.
*/
public Builder clearAmountUsed() {
bitField0_ = (bitField0_ & ~0x00000001);
amountUsed_ = 0L;
onChanged();
return this;
}
private long limit_ ;
/**
* optional int64 limit = 2;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 limit = 2;
* @return The limit.
*/
@java.lang.Override
public long getLimit() {
return limit_;
}
/**
* optional int64 limit = 2;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(long value) {
limit_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int64 limit = 2;
* @return This builder for chaining.
*/
public Builder clearLimit() {
bitField0_ = (bitField0_ & ~0x00000002);
limit_ = 0L;
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:java.apphosting.IndexMetadata.Storage)
}
// @@protoc_insertion_point(class_scope:java.apphosting.IndexMetadata.Storage)
private static final com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage();
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Storage 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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int INDEX_SPEC_FIELD_NUMBER = 1;
private com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_;
/**
*
* Index specification (fully qualified name).
*
*
* required .java.apphosting.IndexSpec index_spec = 1;
* @return Whether the indexSpec field is set.
*/
@java.lang.Override
public boolean hasIndexSpec() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* required .java.apphosting.IndexSpec index_spec = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() {
return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_;
}
public static final int FIELD_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List field_;
/**
*
* Index schema. Can be optionally returned in response to ListIndexesRequest.
* It will be ignored in other requests for now.
*
*
* repeated .storage_onestore_v3.FieldTypes field = 2;
*/
@java.lang.Override
public java.util.List getFieldList() {
return field_;
}
/**
*
* Index schema. Can be optionally returned in response to ListIndexesRequest.
* It will be ignored in other requests for now.
*
*
* repeated .storage_onestore_v3.FieldTypes field = 2;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.api.search.DocumentPb.FieldTypesOrBuilder>
getFieldOrBuilderList() {
return field_;
}
/**
*
* Index schema. Can be optionally returned in response to ListIndexesRequest.
* It will be ignored in other requests for now.
*
*
* repeated .storage_onestore_v3.FieldTypes field = 2;
*/
@java.lang.Override
public int getFieldCount() {
return field_.size();
}
/**
*
* Index schema. Can be optionally returned in response to ListIndexesRequest.
* It will be ignored in other requests for now.
*
*
* repeated .storage_onestore_v3.FieldTypes field = 2;
*/
@java.lang.Override
public com.google.apphosting.api.search.DocumentPb.FieldTypes getField(int index) {
return field_.get(index);
}
/**
*
* Index schema. Can be optionally returned in response to ListIndexesRequest.
* It will be ignored in other requests for now.
*
*
* repeated .storage_onestore_v3.FieldTypes field = 2;
*/
@java.lang.Override
public com.google.apphosting.api.search.DocumentPb.FieldTypesOrBuilder getFieldOrBuilder(
int index) {
return field_.get(index);
}
public static final int STORAGE_FIELD_NUMBER = 3;
private com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage storage_;
/**
* optional .java.apphosting.IndexMetadata.Storage storage = 3;
* @return Whether the storage field is set.
*/
@java.lang.Override
public boolean hasStorage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .java.apphosting.IndexMetadata.Storage storage = 3;
* @return The storage.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage getStorage() {
return storage_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.getDefaultInstance() : storage_;
}
/**
* optional .java.apphosting.IndexMetadata.Storage storage = 3;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.StorageOrBuilder getStorageOrBuilder() {
return storage_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.getDefaultInstance() : storage_;
}
public static final int INDEX_STATE_FIELD_NUMBER = 4;
private int indexState_ = 0;
/**
* optional .java.apphosting.IndexMetadata.IndexState index_state = 4 [default = ACTIVE];
* @return Whether the indexState field is set.
*/
@java.lang.Override public boolean hasIndexState() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .java.apphosting.IndexMetadata.IndexState index_state = 4 [default = ACTIVE];
* @return The indexState.
*/
@java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState getIndexState() {
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState result = com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState.forNumber(indexState_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState.ACTIVE : result;
}
public static final int INDEX_DELETE_TIME_FIELD_NUMBER = 5;
private long indexDeleteTime_ = 0L;
/**
*
* The scheduled deletion time, in milliseconds from 1970-01-01T00:00:00Z
* Present iff index_state is SOFT_DELETED or PURGING.
*
*
* optional int64 index_delete_time = 5;
* @return Whether the indexDeleteTime field is set.
*/
@java.lang.Override
public boolean hasIndexDeleteTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The scheduled deletion time, in milliseconds from 1970-01-01T00:00:00Z
* Present iff index_state is SOFT_DELETED or PURGING.
*
*
* optional int64 index_delete_time = 5;
* @return The indexDeleteTime.
*/
@java.lang.Override
public long getIndexDeleteTime() {
return indexDeleteTime_;
}
public static final int NUM_SHARDS_FIELD_NUMBER = 6;
private int numShards_ = 1;
/**
*
* Number of shards in index.
*
*
* optional int32 num_shards = 6 [default = 1];
* @return Whether the numShards field is set.
*/
@java.lang.Override
public boolean hasNumShards() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Number of shards in index.
*
*
* optional int32 num_shards = 6 [default = 1];
* @return The numShards.
*/
@java.lang.Override
public int getNumShards() {
return numShards_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexSpec()) {
memoizedIsInitialized = 0;
return false;
}
if (!getIndexSpec().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getFieldCount(); i++) {
if (!getField(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getIndexSpec());
}
for (int i = 0; i < field_.size(); i++) {
output.writeMessage(2, field_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getStorage());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(4, indexState_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(5, indexDeleteTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt32(6, numShards_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIndexSpec());
}
for (int i = 0; i < field_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, field_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStorage());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, indexState_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, indexDeleteTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, numShards_);
}
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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata other = (com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata) obj;
if (hasIndexSpec() != other.hasIndexSpec()) return false;
if (hasIndexSpec()) {
if (!getIndexSpec()
.equals(other.getIndexSpec())) return false;
}
if (!getFieldList()
.equals(other.getFieldList())) return false;
if (hasStorage() != other.hasStorage()) return false;
if (hasStorage()) {
if (!getStorage()
.equals(other.getStorage())) return false;
}
if (hasIndexState() != other.hasIndexState()) return false;
if (hasIndexState()) {
if (indexState_ != other.indexState_) return false;
}
if (hasIndexDeleteTime() != other.hasIndexDeleteTime()) return false;
if (hasIndexDeleteTime()) {
if (getIndexDeleteTime()
!= other.getIndexDeleteTime()) return false;
}
if (hasNumShards() != other.hasNumShards()) return false;
if (hasNumShards()) {
if (getNumShards()
!= other.getNumShards()) 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 (hasIndexSpec()) {
hash = (37 * hash) + INDEX_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getIndexSpec().hashCode();
}
if (getFieldCount() > 0) {
hash = (37 * hash) + FIELD_FIELD_NUMBER;
hash = (53 * hash) + getFieldList().hashCode();
}
if (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + getStorage().hashCode();
}
if (hasIndexState()) {
hash = (37 * hash) + INDEX_STATE_FIELD_NUMBER;
hash = (53 * hash) + indexState_;
}
if (hasIndexDeleteTime()) {
hash = (37 * hash) + INDEX_DELETE_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndexDeleteTime());
}
if (hasNumShards()) {
hash = (37 * hash) + NUM_SHARDS_FIELD_NUMBER;
hash = (53 * hash) + getNumShards();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata 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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata 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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata 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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata 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;
}
/**
*
* Extended information about an index.
*
*
* Protobuf type {@code java.apphosting.IndexMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.IndexMetadata)
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.class, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIndexSpecFieldBuilder();
getFieldFieldBuilder();
getStorageFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexSpec_ = null;
if (indexSpecBuilder_ != null) {
indexSpecBuilder_.dispose();
indexSpecBuilder_ = null;
}
if (fieldBuilder_ == null) {
field_ = java.util.Collections.emptyList();
} else {
field_ = null;
fieldBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
storage_ = null;
if (storageBuilder_ != null) {
storageBuilder_.dispose();
storageBuilder_ = null;
}
indexState_ = 0;
indexDeleteTime_ = 0L;
numShards_ = 1;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexMetadata_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata build() {
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata result = new com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata result) {
if (fieldBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
field_ = java.util.Collections.unmodifiableList(field_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.field_ = field_;
} else {
result.field_ = fieldBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexSpec_ = indexSpecBuilder_ == null
? indexSpec_
: indexSpecBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.storage_ = storageBuilder_ == null
? storage_
: storageBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.indexState_ = indexState_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.indexDeleteTime_ = indexDeleteTime_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.numShards_ = numShards_;
to_bitField0_ |= 0x00000010;
}
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.google.appengine.api.search.proto.SearchServicePb.IndexMetadata) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.getDefaultInstance()) return this;
if (other.hasIndexSpec()) {
mergeIndexSpec(other.getIndexSpec());
}
if (fieldBuilder_ == null) {
if (!other.field_.isEmpty()) {
if (field_.isEmpty()) {
field_ = other.field_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFieldIsMutable();
field_.addAll(other.field_);
}
onChanged();
}
} else {
if (!other.field_.isEmpty()) {
if (fieldBuilder_.isEmpty()) {
fieldBuilder_.dispose();
fieldBuilder_ = null;
field_ = other.field_;
bitField0_ = (bitField0_ & ~0x00000002);
fieldBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldFieldBuilder() : null;
} else {
fieldBuilder_.addAllMessages(other.field_);
}
}
}
if (other.hasStorage()) {
mergeStorage(other.getStorage());
}
if (other.hasIndexState()) {
setIndexState(other.getIndexState());
}
if (other.hasIndexDeleteTime()) {
setIndexDeleteTime(other.getIndexDeleteTime());
}
if (other.hasNumShards()) {
setNumShards(other.getNumShards());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasIndexSpec()) {
return false;
}
if (!getIndexSpec().isInitialized()) {
return false;
}
for (int i = 0; i < getFieldCount(); i++) {
if (!getField(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getIndexSpecFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.apphosting.api.search.DocumentPb.FieldTypes m =
input.readMessage(
com.google.apphosting.api.search.DocumentPb.FieldTypes.PARSER,
extensionRegistry);
if (fieldBuilder_ == null) {
ensureFieldIsMutable();
field_.add(m);
} else {
fieldBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getStorageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
int tmpRaw = input.readEnum();
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState tmpValue =
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(4, tmpRaw);
} else {
indexState_ = tmpRaw;
bitField0_ |= 0x00000008;
}
break;
} // case 32
case 40: {
indexDeleteTime_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
numShards_ = input.readInt32();
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 com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder> indexSpecBuilder_;
/**
*
* Index specification (fully qualified name).
*
*
* required .java.apphosting.IndexSpec index_spec = 1;
* @return Whether the indexSpec field is set.
*/
public boolean hasIndexSpec() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* SYNCHRONOUSLY = 0;
*/
public static final int SYNCHRONOUSLY_VALUE = 0;
/**
*
* Inserts documents when convenient for the back end.
*
*
* WHEN_CONVENIENT = 1;
*/
public static final int WHEN_CONVENIENT_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Freshness valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Freshness forNumber(int value) {
switch (value) {
case 0: return SYNCHRONOUSLY;
case 1: return WHEN_CONVENIENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Freshness> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Freshness findValueByNumber(int number) {
return Freshness.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDescriptor().getEnumTypes().get(0);
}
private static final Freshness[] VALUES = values();
public static Freshness valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Freshness(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.IndexDocumentParams.Freshness)
}
private int bitField0_;
public static final int DOCUMENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List document_;
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(
int index);
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @return A list containing the docId.
*/
java.util.List
getDocIdList();
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @return The count of docId.
*/
int getDocIdCount();
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param index The index of the element to return.
* @return The docId at the given index.
*/
java.lang.String getDocId(int index);
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param index The index of the value to return.
* @return The bytes of the docId at the given index.
*/
com.google.protobuf.ByteString
getDocIdBytes(int index);
}
/**
*
* A response to an index document request.
*
*
* Protobuf type {@code java.apphosting.IndexDocumentResponse}
*/
public static final class IndexDocumentResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.IndexDocumentResponse)
IndexDocumentResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexDocumentResponse.newBuilder() to construct.
private IndexDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexDocumentResponse() {
status_ = java.util.Collections.emptyList();
docId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexDocumentResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse.class, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List status_;
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public java.util.List getStatusList() {
return status_;
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public java.util.List extends com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder>
getStatusOrBuilderList() {
return status_;
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public int getStatusCount() {
return status_.size();
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(int index) {
return status_.get(index);
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(
int index) {
return status_.get(index);
}
public static final int DOC_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList docId_;
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @return A list containing the docId.
*/
public com.google.protobuf.ProtocolStringList
getDocIdList() {
return docId_;
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @return The count of docId.
*/
public int getDocIdCount() {
return docId_.size();
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param index The index of the element to return.
* @return The docId at the given index.
*/
public java.lang.String getDocId(int index) {
return docId_.get(index);
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param index The index of the value to return.
* @return The bytes of the docId at the given index.
*/
public com.google.protobuf.ByteString
getDocIdBytes(int index) {
return docId_.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;
for (int i = 0; i < getStatusCount(); i++) {
if (!getStatus(i).isInitialized()) {
memoizedIsInitialized = 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 < status_.size(); i++) {
output.writeMessage(1, status_.get(i));
}
for (int i = 0; i < docId_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, docId_.getRaw(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 < status_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, status_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < docId_.size(); i++) {
dataSize += computeStringSizeNoTag(docId_.getRaw(i));
}
size += dataSize;
size += 1 * getDocIdList().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 com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse other = (com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse) obj;
if (!getStatusList()
.equals(other.getStatusList())) return false;
if (!getDocIdList()
.equals(other.getDocIdList())) 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 (getStatusCount() > 0) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatusList().hashCode();
}
if (getDocIdCount() > 0) {
hash = (37 * hash) + DOC_ID_FIELD_NUMBER;
hash = (53 * hash) + getDocIdList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse 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.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse 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.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse 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.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse 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;
}
/**
*
* A response to an index document request.
*
*
* Protobuf type {@code java.apphosting.IndexDocumentResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.IndexDocumentResponse)
com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse.class, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (statusBuilder_ == null) {
status_ = java.util.Collections.emptyList();
} else {
status_ = null;
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
docId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse build() {
com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse result = new com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse result) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
status_ = java.util.Collections.unmodifiableList(status_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
docId_ = docId_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.docId_ = docId_;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse result) {
int from_bitField0_ = 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.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse.getDefaultInstance()) return this;
if (statusBuilder_ == null) {
if (!other.status_.isEmpty()) {
if (status_.isEmpty()) {
status_ = other.status_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatusIsMutable();
status_.addAll(other.status_);
}
onChanged();
}
} else {
if (!other.status_.isEmpty()) {
if (statusBuilder_.isEmpty()) {
statusBuilder_.dispose();
statusBuilder_ = null;
status_ = other.status_;
bitField0_ = (bitField0_ & ~0x00000001);
statusBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStatusFieldBuilder() : null;
} else {
statusBuilder_.addAllMessages(other.status_);
}
}
}
if (!other.docId_.isEmpty()) {
if (docId_.isEmpty()) {
docId_ = other.docId_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDocIdIsMutable();
docId_.addAll(other.docId_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getStatusCount(); i++) {
if (!getStatus(i).isInitialized()) {
return false;
}
}
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: {
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus m =
input.readMessage(
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.PARSER,
extensionRegistry);
if (statusBuilder_ == null) {
ensureStatusIsMutable();
status_.add(m);
} else {
statusBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureDocIdIsMutable();
docId_.add(bs);
break;
} // case 18
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 status_ =
java.util.Collections.emptyList();
private void ensureStatusIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList(status_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder, com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder> statusBuilder_;
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public java.util.List getStatusList() {
if (statusBuilder_ == null) {
return java.util.Collections.unmodifiableList(status_);
} else {
return statusBuilder_.getMessageList();
}
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public int getStatusCount() {
if (statusBuilder_ == null) {
return status_.size();
} else {
return statusBuilder_.getCount();
}
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(int index) {
if (statusBuilder_ == null) {
return status_.get(index);
} else {
return statusBuilder_.getMessage(index);
}
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public Builder setStatus(
int index, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.set(index, value);
onChanged();
} else {
statusBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public Builder setStatus(
int index, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
ensureStatusIsMutable();
status_.set(index, builderForValue.build());
onChanged();
} else {
statusBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public Builder addStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.add(value);
onChanged();
} else {
statusBuilder_.addMessage(value);
}
return this;
}
/**
*
* The status of a individual document index request.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public Builder addStatus(
int index, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.add(index, value);
onChanged();
} else {
statusBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The status of a individual document index request.
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @return A list containing the docId.
*/
public com.google.protobuf.ProtocolStringList
getDocIdList() {
return docId_.getUnmodifiableView();
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @return The count of docId.
*/
public int getDocIdCount() {
return docId_.size();
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param index The index of the element to return.
* @return The docId at the given index.
*/
public java.lang.String getDocId(int index) {
return docId_.get(index);
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param index The index of the value to return.
* @return The bytes of the docId at the given index.
*/
public com.google.protobuf.ByteString
getDocIdBytes(int index) {
return docId_.getByteString(index);
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param index The index to set the value at.
* @param value The docId to set.
* @return This builder for chaining.
*/
public Builder setDocId(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDocIdIsMutable();
docId_.set(index, value);
onChanged();
return this;
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param value The docId to add.
* @return This builder for chaining.
*/
public Builder addDocId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDocIdIsMutable();
docId_.add(value);
onChanged();
return this;
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param values The docId to add.
* @return This builder for chaining.
*/
public Builder addAllDocId(
java.lang.Iterable values) {
ensureDocIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, docId_);
onChanged();
return this;
}
/**
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
* The id of the document indexed. If the id was missing,
* then will be the id chosen by the service for the Document.
*
*
* repeated string doc_id = 2;
* @param value The bytes of the docId to add.
* @return This builder for chaining.
*/
public Builder addDocIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureDocIdIsMutable();
docId_.add(value);
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:java.apphosting.IndexDocumentResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.IndexDocumentResponse)
private static final com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse();
}
public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexDocumentResponse 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.google.appengine.api.search.proto.SearchServicePb.IndexDocumentResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteDocumentParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.DeleteDocumentParams)
com.google.protobuf.MessageOrBuilder {
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @return A list containing the docId.
*/
java.util.List
getDocIdList();
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @return The count of docId.
*/
int getDocIdCount();
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param index The index of the element to return.
* @return The docId at the given index.
*/
java.lang.String getDocId(int index);
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param index The index of the value to return.
* @return The bytes of the docId at the given index.
*/
com.google.protobuf.ByteString
getDocIdBytes(int index);
/**
*
* The specification of the index.
*
*
* required .java.apphosting.IndexSpec index_spec = 2;
* @return Whether the indexSpec field is set.
*/
boolean hasIndexSpec();
/**
*
* Delete the specified documents from a named index.
*
*
* Protobuf type {@code java.apphosting.DeleteDocumentParams}
*/
public static final class DeleteDocumentParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.DeleteDocumentParams)
DeleteDocumentParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteDocumentParams.newBuilder() to construct.
private DeleteDocumentParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteDocumentParams() {
docId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteDocumentParams();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.Builder.class);
}
private int bitField0_;
public static final int DOC_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList docId_;
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @return A list containing the docId.
*/
public com.google.protobuf.ProtocolStringList
getDocIdList() {
return docId_;
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @return The count of docId.
*/
public int getDocIdCount() {
return docId_.size();
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param index The index of the element to return.
* @return The docId at the given index.
*/
public java.lang.String getDocId(int index) {
return docId_.get(index);
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param index The index of the value to return.
* @return The bytes of the docId at the given index.
*/
public com.google.protobuf.ByteString
getDocIdBytes(int index) {
return docId_.getByteString(index);
}
public static final int INDEX_SPEC_FIELD_NUMBER = 2;
private com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_;
/**
*
* The specification of the index.
*
*
* required .java.apphosting.IndexSpec index_spec = 2;
* @return Whether the indexSpec field is set.
*/
@java.lang.Override
public boolean hasIndexSpec() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* required .java.apphosting.IndexSpec index_spec = 2;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() {
return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexSpec()) {
memoizedIsInitialized = 0;
return false;
}
if (!getIndexSpec().isInitialized()) {
memoizedIsInitialized = 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 < docId_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, docId_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getIndexSpec());
}
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 < docId_.size(); i++) {
dataSize += computeStringSizeNoTag(docId_.getRaw(i));
}
size += dataSize;
size += 1 * getDocIdList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getIndexSpec());
}
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.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams) obj;
if (!getDocIdList()
.equals(other.getDocIdList())) return false;
if (hasIndexSpec() != other.hasIndexSpec()) return false;
if (hasIndexSpec()) {
if (!getIndexSpec()
.equals(other.getIndexSpec())) 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 (getDocIdCount() > 0) {
hash = (37 * hash) + DOC_ID_FIELD_NUMBER;
hash = (53 * hash) + getDocIdList().hashCode();
}
if (hasIndexSpec()) {
hash = (37 * hash) + INDEX_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getIndexSpec().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams 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.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams 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.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams 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.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams 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;
}
/**
*
* Delete the specified documents from a named index.
*
*
* Protobuf type {@code java.apphosting.DeleteDocumentParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.DeleteDocumentParams)
com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIndexSpecFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
docId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
indexSpec_ = null;
if (indexSpecBuilder_ != null) {
indexSpecBuilder_.dispose();
indexSpecBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentParams_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams build() {
com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams result) {
if (((bitField0_ & 0x00000001) != 0)) {
docId_ = docId_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.docId_ = docId_;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.indexSpec_ = indexSpecBuilder_ == null
? indexSpec_
: indexSpecBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.getDefaultInstance()) return this;
if (!other.docId_.isEmpty()) {
if (docId_.isEmpty()) {
docId_ = other.docId_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDocIdIsMutable();
docId_.addAll(other.docId_);
}
onChanged();
}
if (other.hasIndexSpec()) {
mergeIndexSpec(other.getIndexSpec());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasIndexSpec()) {
return false;
}
if (!getIndexSpec().isInitialized()) {
return false;
}
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: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureDocIdIsMutable();
docId_.add(bs);
break;
} // case 10
case 18: {
input.readMessage(
getIndexSpecFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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.LazyStringList docId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDocIdIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
docId_ = new com.google.protobuf.LazyStringArrayList(docId_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @return A list containing the docId.
*/
public com.google.protobuf.ProtocolStringList
getDocIdList() {
return docId_.getUnmodifiableView();
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @return The count of docId.
*/
public int getDocIdCount() {
return docId_.size();
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param index The index of the element to return.
* @return The docId at the given index.
*/
public java.lang.String getDocId(int index) {
return docId_.get(index);
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param index The index of the value to return.
* @return The bytes of the docId at the given index.
*/
public com.google.protobuf.ByteString
getDocIdBytes(int index) {
return docId_.getByteString(index);
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param index The index to set the value at.
* @param value The docId to set.
* @return This builder for chaining.
*/
public Builder setDocId(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDocIdIsMutable();
docId_.set(index, value);
onChanged();
return this;
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param value The docId to add.
* @return This builder for chaining.
*/
public Builder addDocId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDocIdIsMutable();
docId_.add(value);
onChanged();
return this;
}
/**
*
* The identifiers of the documents to delete.
*
*
* repeated string doc_id = 1;
* @param values The docId to add.
* @return This builder for chaining.
*/
public Builder addAllDocId(
java.lang.Iterable values) {
ensureDocIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, docId_);
onChanged();
return this;
}
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @return Whether the startDocId field is set.
*/
boolean hasStartDocId();
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @return The bytes for startDocId.
*/
com.google.protobuf.ByteString
getStartDocIdBytes();
/**
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
*
* optional bool include_start_doc = 3 [default = true];
* @return Whether the includeStartDoc field is set.
*/
boolean hasIncludeStartDoc();
/**
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
*
* required .java.apphosting.IndexSpec index_spec = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() {
return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_;
}
public static final int START_DOC_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object startDocId_ = "";
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @return Whether the startDocId field is set.
*/
@java.lang.Override
public boolean hasStartDocId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @return The bytes for startDocId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDocIdBytes() {
java.lang.Object ref = startDocId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDocId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INCLUDE_START_DOC_FIELD_NUMBER = 3;
private boolean includeStartDoc_ = true;
/**
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
*
* optional bool include_start_doc = 3 [default = true];
* @return Whether the includeStartDoc field is set.
*/
@java.lang.Override
public boolean hasIncludeStartDoc() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
*
* optional bool include_start_doc = 3 [default = true];
* @return The includeStartDoc.
*/
@java.lang.Override
public boolean getIncludeStartDoc() {
return includeStartDoc_;
}
public static final int LIMIT_FIELD_NUMBER = 4;
private int limit_ = 100;
/**
*
* The maximum number of documents to return.
*
*
* optional int32 limit = 4 [default = 100];
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The maximum number of documents to return.
*
*
* optional int32 limit = 4 [default = 100];
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int KEYS_ONLY_FIELD_NUMBER = 5;
private boolean keysOnly_ = false;
/**
*
* Specifies whether complete documents are returned, or just their keys.
*
*
* optional bool keys_only = 5;
* @return Whether the keysOnly field is set.
*/
@java.lang.Override
public boolean hasKeysOnly() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Specifies whether complete documents are returned, or just their keys.
*
*
* optional bool keys_only = 5;
* @return The keysOnly.
*/
@java.lang.Override
public boolean getKeysOnly() {
return keysOnly_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexSpec()) {
memoizedIsInitialized = 0;
return false;
}
if (!getIndexSpec().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getIndexSpec());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startDocId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, includeStartDoc_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(4, limit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, keysOnly_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIndexSpec());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startDocId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, includeStartDoc_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, limit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, keysOnly_);
}
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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams other = (com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams) obj;
if (hasIndexSpec() != other.hasIndexSpec()) return false;
if (hasIndexSpec()) {
if (!getIndexSpec()
.equals(other.getIndexSpec())) return false;
}
if (hasStartDocId() != other.hasStartDocId()) return false;
if (hasStartDocId()) {
if (!getStartDocId()
.equals(other.getStartDocId())) return false;
}
if (hasIncludeStartDoc() != other.hasIncludeStartDoc()) return false;
if (hasIncludeStartDoc()) {
if (getIncludeStartDoc()
!= other.getIncludeStartDoc()) return false;
}
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (getLimit()
!= other.getLimit()) return false;
}
if (hasKeysOnly() != other.hasKeysOnly()) return false;
if (hasKeysOnly()) {
if (getKeysOnly()
!= other.getKeysOnly()) 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 (hasIndexSpec()) {
hash = (37 * hash) + INDEX_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getIndexSpec().hashCode();
}
if (hasStartDocId()) {
hash = (37 * hash) + START_DOC_ID_FIELD_NUMBER;
hash = (53 * hash) + getStartDocId().hashCode();
}
if (hasIncludeStartDoc()) {
hash = (37 * hash) + INCLUDE_START_DOC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeStartDoc());
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
}
if (hasKeysOnly()) {
hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getKeysOnly());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams 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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams 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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams 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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams 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;
}
/**
*
* The parameters for listing documents in an index.
*
*
* Protobuf type {@code java.apphosting.ListDocumentsParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ListDocumentsParams)
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.class, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIndexSpecFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexSpec_ = null;
if (indexSpecBuilder_ != null) {
indexSpecBuilder_.dispose();
indexSpecBuilder_ = null;
}
startDocId_ = "";
includeStartDoc_ = true;
limit_ = 100;
keysOnly_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsParams_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams build() {
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams result = new com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexSpec_ = indexSpecBuilder_ == null
? indexSpec_
: indexSpecBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startDocId_ = startDocId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.includeStartDoc_ = includeStartDoc_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.limit_ = limit_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.keysOnly_ = keysOnly_;
to_bitField0_ |= 0x00000010;
}
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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.getDefaultInstance()) return this;
if (other.hasIndexSpec()) {
mergeIndexSpec(other.getIndexSpec());
}
if (other.hasStartDocId()) {
startDocId_ = other.startDocId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasIncludeStartDoc()) {
setIncludeStartDoc(other.getIncludeStartDoc());
}
if (other.hasLimit()) {
setLimit(other.getLimit());
}
if (other.hasKeysOnly()) {
setKeysOnly(other.getKeysOnly());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasIndexSpec()) {
return false;
}
if (!getIndexSpec().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getIndexSpecFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
startDocId_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
includeStartDoc_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
limit_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
keysOnly_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder> indexSpecBuilder_;
/**
*
* The index from which to list documents.
*
*
* required .java.apphosting.IndexSpec index_spec = 1;
* @return Whether the indexSpec field is set.
*/
public boolean hasIndexSpec() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @return Whether the startDocId field is set.
*/
public boolean hasStartDocId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @return The bytes for startDocId.
*/
public com.google.protobuf.ByteString
getStartDocIdBytes() {
java.lang.Object ref = startDocId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDocId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @param value The startDocId to set.
* @return This builder for chaining.
*/
public Builder setStartDocId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startDocId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
* The doc_id from which to list documents from. Only documents with Ids
* greater than or equal to start_doc_id are returned, and they are returned
* in doc_id order.
*
*
* optional string start_doc_id = 2;
* @param value The bytes for startDocId to set.
* @return This builder for chaining.
*/
public Builder setStartDocIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
startDocId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean includeStartDoc_ = true;
/**
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
*
* optional bool include_start_doc = 3 [default = true];
* @return Whether the includeStartDoc field is set.
*/
@java.lang.Override
public boolean hasIncludeStartDoc() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
*
* optional bool include_start_doc = 3 [default = true];
* @param value The includeStartDoc to set.
* @return This builder for chaining.
*/
public Builder setIncludeStartDoc(boolean value) {
includeStartDoc_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Whether or not to include the document with the name
* specified by the start_doc_id parameter. By default
* we return the document with the name matching start_doc_id.
*
*
* optional bool include_start_doc = 3 [default = true];
* @return This builder for chaining.
*/
public Builder clearIncludeStartDoc() {
bitField0_ = (bitField0_ & ~0x00000004);
includeStartDoc_ = true;
onChanged();
return this;
}
private int limit_ = 100;
/**
*
* The maximum number of documents to return.
*
*
* optional int32 limit = 4 [default = 100];
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The maximum number of documents to return.
*
*
* optional int32 limit = 4 [default = 100];
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
/**
*
* The maximum number of documents to return.
*
*
* optional int32 limit = 4 [default = 100];
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
* Protobuf type {@code java.apphosting.ListDocumentsResponse}
*/
public static final class ListDocumentsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.ListDocumentsResponse)
ListDocumentsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDocumentsResponse.newBuilder() to construct.
private ListDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDocumentsResponse() {
document_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDocumentsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse.class, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private com.google.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
/**
*
* The status of the list documents request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of the list documents request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
/**
*
* The status of the list documents request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
public static final int DOCUMENT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List document_;
/**
*
*
* repeated .storage_onestore_v3.Document document = 2;
*/
@java.lang.Override
public com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder(
int index) {
return document_.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;
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
if (!getStatus().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getDocumentCount(); i++) {
if (!getDocument(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStatus());
}
for (int i = 0; i < document_.size(); i++) {
output.writeMessage(2, document_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
for (int i = 0; i < document_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, document_.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 com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse other = (com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getDocumentList()
.equals(other.getDocumentList())) 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 (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (getDocumentCount() > 0) {
hash = (37 * hash) + DOCUMENT_FIELD_NUMBER;
hash = (53 * hash) + getDocumentList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse 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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse 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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse 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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse 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;
}
/**
*
* The response to a request to list documents.
*
*
* Protobuf type {@code java.apphosting.ListDocumentsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ListDocumentsResponse)
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse.class, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
getDocumentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
if (documentBuilder_ == null) {
document_ = java.util.Collections.emptyList();
} else {
document_ = null;
documentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse build() {
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse result = new com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse result) {
if (documentBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
document_ = java.util.Collections.unmodifiableList(document_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.document_ = document_;
} else {
result.document_ = documentBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (documentBuilder_ == null) {
if (!other.document_.isEmpty()) {
if (document_.isEmpty()) {
document_ = other.document_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDocumentIsMutable();
document_.addAll(other.document_);
}
onChanged();
}
} else {
if (!other.document_.isEmpty()) {
if (documentBuilder_.isEmpty()) {
documentBuilder_.dispose();
documentBuilder_ = null;
document_ = other.document_;
bitField0_ = (bitField0_ & ~0x00000002);
documentBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDocumentFieldBuilder() : null;
} else {
documentBuilder_.addAllMessages(other.document_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasStatus()) {
return false;
}
if (!getStatus().isInitialized()) {
return false;
}
for (int i = 0; i < getDocumentCount(); i++) {
if (!getDocument(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.apphosting.api.search.DocumentPb.Document m =
input.readMessage(
com.google.apphosting.api.search.DocumentPb.Document.PARSER,
extensionRegistry);
if (documentBuilder_ == null) {
ensureDocumentIsMutable();
document_.add(m);
} else {
documentBuilder_.addMessage(m);
}
break;
} // case 18
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.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder, com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder> statusBuilder_;
/**
*
* The status of the list documents request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of the list documents request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* The status of the list documents request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
public Builder setStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* Protobuf type {@code java.apphosting.DeleteIndexResponse}
*/
public static final class DeleteIndexResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.DeleteIndexResponse)
DeleteIndexResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteIndexResponse.newBuilder() to construct.
private DeleteIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteIndexResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteIndexResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private com.google.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
/**
*
* The status of the delete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of the delete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
/**
*
* The status of the delete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
if (!getStatus().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStatus());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
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.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) 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 (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse 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.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse 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.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse 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.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse 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;
}
/**
*
* The response to a request to delete an index.
*
*
* Protobuf type {@code java.apphosting.DeleteIndexResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.DeleteIndexResponse)
com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse build() {
com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasStatus()) {
return false;
}
if (!getStatus().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
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.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder, com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder> statusBuilder_;
/**
*
* The status of the delete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of the delete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* The status of the delete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
public Builder setStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* Protobuf type {@code java.apphosting.CancelDeleteIndexResponse}
*/
public static final class CancelDeleteIndexResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.CancelDeleteIndexResponse)
CancelDeleteIndexResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CancelDeleteIndexResponse.newBuilder() to construct.
private CancelDeleteIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CancelDeleteIndexResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CancelDeleteIndexResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse.class, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private com.google.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
/**
*
* The status of the undelete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of the undelete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
/**
*
* The status of the undelete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
if (!getStatus().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStatus());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
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.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse other = (com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) 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 (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse 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.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse 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.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse 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.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse 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;
}
/**
*
* The response to a request to undelete index.
*
*
* Protobuf type {@code java.apphosting.CancelDeleteIndexResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.CancelDeleteIndexResponse)
com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse.class, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse build() {
com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse result = new com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasStatus()) {
return false;
}
if (!getStatus().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
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.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder, com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder> statusBuilder_;
/**
*
* The status of the undelete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of the undelete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* The status of the undelete index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
public Builder setStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The namespace of indexes to returned. If not specified
* we return indexes that belong to the default namespace.
*
*
* optional string namespace = 3;
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @return Whether the startIndexName field is set.
*/
boolean hasStartIndexName();
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @return The bytes for startIndexName.
*/
com.google.protobuf.ByteString
getStartIndexNameBytes();
/**
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
*
* optional bool include_start_index = 5 [default = true];
* @return Whether the includeStartIndex field is set.
*/
boolean hasIncludeStartIndex();
/**
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
*
* optional bool all_namespaces = 9;
* @return Whether the allNamespaces field is set.
*/
boolean hasAllNamespaces();
/**
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
* The namespace of indexes to returned. If not specified
* we return indexes that belong to the default namespace.
*
*
* optional string namespace = 3;
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_INDEX_NAME_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object startIndexName_ = "";
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @return Whether the startIndexName field is set.
*/
@java.lang.Override
public boolean hasStartIndexName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @return The bytes for startIndexName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartIndexNameBytes() {
java.lang.Object ref = startIndexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startIndexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INCLUDE_START_INDEX_FIELD_NUMBER = 5;
private boolean includeStartIndex_ = true;
/**
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
*
* optional bool include_start_index = 5 [default = true];
* @return Whether the includeStartIndex field is set.
*/
@java.lang.Override
public boolean hasIncludeStartIndex() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
*
* optional bool include_start_index = 5 [default = true];
* @return The includeStartIndex.
*/
@java.lang.Override
public boolean getIncludeStartIndex() {
return includeStartIndex_;
}
public static final int INDEX_NAME_PREFIX_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object indexNamePrefix_ = "";
/**
*
* The prefix of the index name. This parameter can be used to
* request all indexes with names that have this prefix.
*
*
* optional string index_name_prefix = 6;
* @return Whether the indexNamePrefix field is set.
*/
@java.lang.Override
public boolean hasIndexNamePrefix() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The prefix of the index name. This parameter can be used to
* request all indexes with names that have this prefix.
*
* The prefix of the index name. This parameter can be used to
* request all indexes with names that have this prefix.
*
*
* optional string index_name_prefix = 6;
* @return The bytes for indexNamePrefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexNamePrefixBytes() {
java.lang.Object ref = indexNamePrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexNamePrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OFFSET_FIELD_NUMBER = 7;
private int offset_ = 0;
/**
*
* The offset to be used with limit for arbitrary paging.
*
*
* optional int32 offset = 7;
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The offset to be used with limit for arbitrary paging.
*
*
* optional int32 offset = 7;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
public static final int SOURCE_FIELD_NUMBER = 8;
private int source_ = 0;
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 8 [default = SEARCH];
* @return Whether the source field is set.
*/
@java.lang.Override public boolean hasSource() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* The source of the documents being indexed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 8 [default = SEARCH];
* @return The source.
*/
@java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source getSource() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.forNumber(source_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.SEARCH : result;
}
public static final int ALL_NAMESPACES_FIELD_NUMBER = 9;
private boolean allNamespaces_ = false;
/**
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
*
* optional bool all_namespaces = 9;
* @return Whether the allNamespaces field is set.
*/
@java.lang.Override
public boolean hasAllNamespaces() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
*
* optional bool all_namespaces = 9;
* @return The allNamespaces.
*/
@java.lang.Override
public boolean getAllNamespaces() {
return allNamespaces_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, fetchSchema_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, limit_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, startIndexName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, includeStartIndex_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, indexNamePrefix_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt32(7, offset_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeEnum(8, source_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(9, allNamespaces_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, fetchSchema_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, limit_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, startIndexName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, includeStartIndex_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, indexNamePrefix_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, offset_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, source_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, allNamespaces_);
}
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.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams other = (com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams) obj;
if (hasFetchSchema() != other.hasFetchSchema()) return false;
if (hasFetchSchema()) {
if (getFetchSchema()
!= other.getFetchSchema()) return false;
}
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (getLimit()
!= other.getLimit()) return false;
}
if (hasNamespace() != other.hasNamespace()) return false;
if (hasNamespace()) {
if (!getNamespace()
.equals(other.getNamespace())) return false;
}
if (hasStartIndexName() != other.hasStartIndexName()) return false;
if (hasStartIndexName()) {
if (!getStartIndexName()
.equals(other.getStartIndexName())) return false;
}
if (hasIncludeStartIndex() != other.hasIncludeStartIndex()) return false;
if (hasIncludeStartIndex()) {
if (getIncludeStartIndex()
!= other.getIncludeStartIndex()) return false;
}
if (hasIndexNamePrefix() != other.hasIndexNamePrefix()) return false;
if (hasIndexNamePrefix()) {
if (!getIndexNamePrefix()
.equals(other.getIndexNamePrefix())) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (getOffset()
!= other.getOffset()) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (source_ != other.source_) return false;
}
if (hasAllNamespaces() != other.hasAllNamespaces()) return false;
if (hasAllNamespaces()) {
if (getAllNamespaces()
!= other.getAllNamespaces()) 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 (hasFetchSchema()) {
hash = (37 * hash) + FETCH_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFetchSchema());
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
}
if (hasNamespace()) {
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
}
if (hasStartIndexName()) {
hash = (37 * hash) + START_INDEX_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStartIndexName().hashCode();
}
if (hasIncludeStartIndex()) {
hash = (37 * hash) + INCLUDE_START_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeStartIndex());
}
if (hasIndexNamePrefix()) {
hash = (37 * hash) + INDEX_NAME_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getIndexNamePrefix().hashCode();
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + source_;
}
if (hasAllNamespaces()) {
hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllNamespaces());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams 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.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams 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.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams 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.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams 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;
}
/**
*
* Get a list of indexes available.
*
*
* Protobuf type {@code java.apphosting.ListIndexesParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ListIndexesParams)
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.class, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fetchSchema_ = false;
limit_ = 20;
namespace_ = "";
startIndexName_ = "";
includeStartIndex_ = true;
indexNamePrefix_ = "";
offset_ = 0;
source_ = 0;
allNamespaces_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesParams_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams build() {
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams result = new com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fetchSchema_ = fetchSchema_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.limit_ = limit_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.namespace_ = namespace_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.startIndexName_ = startIndexName_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.includeStartIndex_ = includeStartIndex_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.indexNamePrefix_ = indexNamePrefix_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.source_ = source_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.allNamespaces_ = allNamespaces_;
to_bitField0_ |= 0x00000100;
}
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.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.getDefaultInstance()) return this;
if (other.hasFetchSchema()) {
setFetchSchema(other.getFetchSchema());
}
if (other.hasLimit()) {
setLimit(other.getLimit());
}
if (other.hasNamespace()) {
namespace_ = other.namespace_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasStartIndexName()) {
startIndexName_ = other.startIndexName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasIncludeStartIndex()) {
setIncludeStartIndex(other.getIncludeStartIndex());
}
if (other.hasIndexNamePrefix()) {
indexNamePrefix_ = other.indexNamePrefix_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasSource()) {
setSource(other.getSource());
}
if (other.hasAllNamespaces()) {
setAllNamespaces(other.getAllNamespaces());
}
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 8: {
fetchSchema_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
limit_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
namespace_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
startIndexName_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
includeStartIndex_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
indexNamePrefix_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
offset_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
int tmpRaw = input.readEnum();
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source tmpValue =
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(8, tmpRaw);
} else {
source_ = tmpRaw;
bitField0_ |= 0x00000080;
}
break;
} // case 64
case 72: {
allNamespaces_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
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 boolean fetchSchema_ ;
/**
*
* Fetch schema of corresponding indexes if the flag is true.
*
*
* optional bool fetch_schema = 1;
* @return Whether the fetchSchema field is set.
*/
@java.lang.Override
public boolean hasFetchSchema() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Fetch schema of corresponding indexes if the flag is true.
*
* The namespace of indexes to returned. If not specified
* we return indexes that belong to the default namespace.
*
*
* optional string namespace = 3;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
namespace_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object startIndexName_ = "";
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @return Whether the startIndexName field is set.
*/
public boolean hasStartIndexName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @return The bytes for startIndexName.
*/
public com.google.protobuf.ByteString
getStartIndexNameBytes() {
java.lang.Object ref = startIndexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startIndexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @param value The startIndexName to set.
* @return This builder for chaining.
*/
public Builder setStartIndexName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startIndexName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
* The name of the first index to be returned by the list
* indexes operation. If the exclude_start_index is set
* to true, we return the index with the name following
* the start_index_name.
*
*
* optional string start_index_name = 4;
* @param value The bytes for startIndexName to set.
* @return This builder for chaining.
*/
public Builder setStartIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
startIndexName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private boolean includeStartIndex_ = true;
/**
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
*
* optional bool include_start_index = 5 [default = true];
* @return Whether the includeStartIndex field is set.
*/
@java.lang.Override
public boolean hasIncludeStartIndex() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
*
* optional bool include_start_index = 5 [default = true];
* @param value The includeStartIndex to set.
* @return This builder for chaining.
*/
public Builder setIncludeStartIndex(boolean value) {
includeStartIndex_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Whether or not to include the index with the name
* specified via start_index_name parameter. By default
* we return the index with the name matching start_index_name.
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
*
* optional bool all_namespaces = 9;
* @return Whether the allNamespaces field is set.
*/
@java.lang.Override
public boolean hasAllNamespaces() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
*
* optional bool all_namespaces = 9;
* @param value The allNamespaces to set.
* @return This builder for chaining.
*/
public Builder setAllNamespaces(boolean value) {
allNamespaces_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Whether to return indexes belonging to all namespaces instead of only
* returning indexes belonging to the namespace specified via the namespace
* parameter. Cannot be combined with index_name_prefix. If true, the
* namespace parameter is used only to determine the first index to be
* returned (in conjunction with the start_index_name parameter).
*
*
* optional bool all_namespaces = 9;
* @return This builder for chaining.
*/
public Builder clearAllNamespaces() {
bitField0_ = (bitField0_ & ~0x00000100);
allNamespaces_ = 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:java.apphosting.ListIndexesParams)
}
// @@protoc_insertion_point(class_scope:java.apphosting.ListIndexesParams)
private static final com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams();
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListIndexesParams 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.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListIndexesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.ListIndexesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The parameters of indexes to be listed.
*
*
* required .java.apphosting.ListIndexesParams params = 1;
* @return Whether the params field is set.
*/
boolean hasParams();
/**
*
* The response to a request to list the indexes available.
*
*
* Protobuf type {@code java.apphosting.ListIndexesResponse}
*/
public static final class ListIndexesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.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() {
indexMetadata_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListIndexesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse.class, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private com.google.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
/**
*
* The status of a individual document index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of a individual document index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
/**
*
* The status of a individual document index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
}
public static final int INDEX_METADATA_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List indexMetadata_;
/**
*
*
* repeated .java.apphosting.IndexMetadata index_metadata = 2;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadataOrBuilder getIndexMetadataOrBuilder(
int index) {
return indexMetadata_.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;
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
if (!getStatus().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getIndexMetadataCount(); i++) {
if (!getIndexMetadata(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStatus());
}
for (int i = 0; i < indexMetadata_.size(); i++) {
output.writeMessage(2, indexMetadata_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
for (int i = 0; i < indexMetadata_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, indexMetadata_.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 com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse other = (com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getIndexMetadataList()
.equals(other.getIndexMetadataList())) 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 (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (getIndexMetadataCount() > 0) {
hash = (37 * hash) + INDEX_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getIndexMetadataList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.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 com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.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 com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.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(com.google.appengine.api.search.proto.SearchServicePb.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;
}
/**
*
* The response to a request to list the indexes available.
*
*
* Protobuf type {@code java.apphosting.ListIndexesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ListIndexesResponse)
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse.class, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
getIndexMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
if (indexMetadataBuilder_ == null) {
indexMetadata_ = java.util.Collections.emptyList();
} else {
indexMetadata_ = null;
indexMetadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse build() {
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse result = new com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse result) {
if (indexMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
indexMetadata_ = java.util.Collections.unmodifiableList(indexMetadata_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.indexMetadata_ = indexMetadata_;
} else {
result.indexMetadata_ = indexMetadataBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (indexMetadataBuilder_ == null) {
if (!other.indexMetadata_.isEmpty()) {
if (indexMetadata_.isEmpty()) {
indexMetadata_ = other.indexMetadata_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIndexMetadataIsMutable();
indexMetadata_.addAll(other.indexMetadata_);
}
onChanged();
}
} else {
if (!other.indexMetadata_.isEmpty()) {
if (indexMetadataBuilder_.isEmpty()) {
indexMetadataBuilder_.dispose();
indexMetadataBuilder_ = null;
indexMetadata_ = other.indexMetadata_;
bitField0_ = (bitField0_ & ~0x00000002);
indexMetadataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIndexMetadataFieldBuilder() : null;
} else {
indexMetadataBuilder_.addAllMessages(other.indexMetadata_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasStatus()) {
return false;
}
if (!getStatus().isInitialized()) {
return false;
}
for (int i = 0; i < getIndexMetadataCount(); i++) {
if (!getIndexMetadata(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata m =
input.readMessage(
com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.PARSER,
extensionRegistry);
if (indexMetadataBuilder_ == null) {
ensureIndexMetadataIsMutable();
indexMetadata_.add(m);
} else {
indexMetadataBuilder_.addMessage(m);
}
break;
} // case 18
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.appengine.api.search.proto.SearchServicePb.RequestStatus status_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder, com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder> statusBuilder_;
/**
*
* The status of a individual document index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The status of a individual document index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
* @return The status.
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* The status of a individual document index request.
*
*
* required .java.apphosting.RequestStatus status = 1;
*/
public Builder setStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The status of a individual document index request.
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
*
* optional bool require_empty_index = 3;
* @return Whether the requireEmptyIndex field is set.
*/
boolean hasRequireEmptyIndex();
/**
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
* The specification of indexes to have their schema deleted.
*
*
* repeated .java.apphosting.IndexSpec index_spec = 2;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(
int index) {
return indexSpec_.get(index);
}
public static final int REQUIRE_EMPTY_INDEX_FIELD_NUMBER = 3;
private boolean requireEmptyIndex_ = false;
/**
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
*
* optional bool require_empty_index = 3;
* @return Whether the requireEmptyIndex field is set.
*/
@java.lang.Override
public boolean hasRequireEmptyIndex() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
*
* optional bool require_empty_index = 3;
* @return The requireEmptyIndex.
*/
@java.lang.Override
public boolean getRequireEmptyIndex() {
return requireEmptyIndex_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getIndexSpecCount(); i++) {
if (!getIndexSpec(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, source_);
}
for (int i = 0; i < indexSpec_.size(); i++) {
output.writeMessage(2, indexSpec_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(3, requireEmptyIndex_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, source_);
}
for (int i = 0; i < indexSpec_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, indexSpec_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, requireEmptyIndex_);
}
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.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams) obj;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (source_ != other.source_) return false;
}
if (!getIndexSpecList()
.equals(other.getIndexSpecList())) return false;
if (hasRequireEmptyIndex() != other.hasRequireEmptyIndex()) return false;
if (hasRequireEmptyIndex()) {
if (getRequireEmptyIndex()
!= other.getRequireEmptyIndex()) 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 (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + source_;
}
if (getIndexSpecCount() > 0) {
hash = (37 * hash) + INDEX_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getIndexSpecList().hashCode();
}
if (hasRequireEmptyIndex()) {
hash = (37 * hash) + REQUIRE_EMPTY_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequireEmptyIndex());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams 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.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams 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.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams 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.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams 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;
}
/**
*
* Delete the schemas from the specified indexes.
*
*
* Protobuf type {@code java.apphosting.DeleteSchemaParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.DeleteSchemaParams)
com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
source_ = 0;
if (indexSpecBuilder_ == null) {
indexSpec_ = java.util.Collections.emptyList();
} else {
indexSpec_ = null;
indexSpecBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
requireEmptyIndex_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaParams_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams build() {
com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams result) {
if (indexSpecBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
indexSpec_ = java.util.Collections.unmodifiableList(indexSpec_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.indexSpec_ = indexSpec_;
} else {
result.indexSpec_ = indexSpecBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.source_ = source_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.requireEmptyIndex_ = requireEmptyIndex_;
to_bitField0_ |= 0x00000002;
}
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.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.getDefaultInstance()) return this;
if (other.hasSource()) {
setSource(other.getSource());
}
if (indexSpecBuilder_ == null) {
if (!other.indexSpec_.isEmpty()) {
if (indexSpec_.isEmpty()) {
indexSpec_ = other.indexSpec_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIndexSpecIsMutable();
indexSpec_.addAll(other.indexSpec_);
}
onChanged();
}
} else {
if (!other.indexSpec_.isEmpty()) {
if (indexSpecBuilder_.isEmpty()) {
indexSpecBuilder_.dispose();
indexSpecBuilder_ = null;
indexSpec_ = other.indexSpec_;
bitField0_ = (bitField0_ & ~0x00000002);
indexSpecBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIndexSpecFieldBuilder() : null;
} else {
indexSpecBuilder_.addAllMessages(other.indexSpec_);
}
}
}
if (other.hasRequireEmptyIndex()) {
setRequireEmptyIndex(other.getRequireEmptyIndex());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getIndexSpecCount(); i++) {
if (!getIndexSpec(i).isInitialized()) {
return false;
}
}
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 8: {
int tmpRaw = input.readEnum();
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source tmpValue =
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
source_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 18: {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec m =
input.readMessage(
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.PARSER,
extensionRegistry);
if (indexSpecBuilder_ == null) {
ensureIndexSpecIsMutable();
indexSpec_.add(m);
} else {
indexSpecBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
requireEmptyIndex_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
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 int source_ = 0;
/**
*
* The source of the indexes having schemas removed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 1 [default = SEARCH];
* @return Whether the source field is set.
*/
@java.lang.Override public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The source of the indexes having schemas removed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 1 [default = SEARCH];
* @return The source.
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source getSource() {
com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source result = com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.forNumber(source_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source.SEARCH : result;
}
/**
*
* The source of the indexes having schemas removed.
*
*
* optional .java.apphosting.IndexSpec.Source source = 1 [default = SEARCH];
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
source_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The source of the indexes having schemas removed.
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
*
* optional bool require_empty_index = 3;
* @return Whether the requireEmptyIndex field is set.
*/
@java.lang.Override
public boolean hasRequireEmptyIndex() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
*
* optional bool require_empty_index = 3;
* @param value The requireEmptyIndex to set.
* @return This builder for chaining.
*/
public Builder setRequireEmptyIndex(boolean value) {
requireEmptyIndex_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Require the index to be empty (contain no documents) before
* allowing DeleteSchema. If true and documents exist, DeleteSchema will
* usually fail. However, due to search's eventual consistency, a successful
* DeleteSchema with require_empty_index true may leave behind documents. For
* example, a customer may write new documents in one thread while calling
* DeleteSchema in another. DeleteSchema will not see a
* written-but-not-applied document and succeed, leaving the newly-written
* document in an "orphaned" state (this document can be found later via
* ListDocuments). This flag's goal is to prevent customers from orphaning
* large numbers of documents they will get billed for.
*
*
* optional bool require_empty_index = 3;
* @return This builder for chaining.
*/
public Builder clearRequireEmptyIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
requireEmptyIndex_ = 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:java.apphosting.DeleteSchemaParams)
}
// @@protoc_insertion_point(class_scope:java.apphosting.DeleteSchemaParams)
private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams();
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSchemaParams 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.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSchemaRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.DeleteSchemaRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The parameters describing schemas to delete.
*
*
* required .java.apphosting.DeleteSchemaParams params = 1;
* @return Whether the params field is set.
*/
boolean hasParams();
/**
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder getStatusBuilder(
int index) {
return getStatusFieldBuilder().getBuilder(index);
}
/**
*
* The status of a schema delete.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(
int index) {
if (statusBuilder_ == null) {
return status_.get(index); } else {
return statusBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The status of a schema delete.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public java.util.List extends com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder>
getStatusOrBuilderList() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(status_);
}
}
/**
*
* The status of a schema delete.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder addStatusBuilder() {
return getStatusFieldBuilder().addBuilder(
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance());
}
/**
*
* The status of a schema delete.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder addStatusBuilder(
int index) {
return getStatusFieldBuilder().addBuilder(
index, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance());
}
/**
*
* The status of a schema delete.
*
*
* repeated .java.apphosting.RequestStatus status = 1;
*/
public java.util.List
getStatusBuilderList() {
return getStatusFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder, com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.RequestStatus, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder, com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder>(
status_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
@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:java.apphosting.DeleteSchemaResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.DeleteSchemaResponse)
private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse();
}
public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSchemaResponse 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.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SortSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.SortSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @return Whether the sortExpression field is set.
*/
boolean hasSortExpression();
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @return The bytes for sortExpression.
*/
com.google.protobuf.ByteString
getSortExpressionBytes();
/**
*
* Indicates whether the search results are returned in "descending order"
* of their "sorting score".
*
*
* optional bool sort_descending = 2 [default = true];
* @return Whether the sortDescending field is set.
*/
boolean hasSortDescending();
/**
*
* Indicates whether the search results are returned in "descending order"
* of their "sorting score".
*
* Sorting specification for a single dimension. Multi-dimenionsal sorting
* is supported by a collection of SortSpecs.
*
*
* Protobuf type {@code java.apphosting.SortSpec}
*/
public static final class SortSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.SortSpec)
SortSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use SortSpec.newBuilder() to construct.
private SortSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SortSpec() {
sortExpression_ = "";
sortDescending_ = true;
defaultValueText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SortSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SortSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SortSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.SortSpec.class, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder.class);
}
private int bitField0_;
public static final int SORT_EXPRESSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sortExpression_ = "";
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @return Whether the sortExpression field is set.
*/
@java.lang.Override
public boolean hasSortExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @return The bytes for sortExpression.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSortExpressionBytes() {
java.lang.Object ref = sortExpression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sortExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SORT_DESCENDING_FIELD_NUMBER = 2;
private boolean sortDescending_ = true;
/**
*
* Indicates whether the search results are returned in "descending order"
* of their "sorting score".
*
*
* optional bool sort_descending = 2 [default = true];
* @return Whether the sortDescending field is set.
*/
@java.lang.Override
public boolean hasSortDescending() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Indicates whether the search results are returned in "descending order"
* of their "sorting score".
*
*
* optional bool sort_descending = 2 [default = true];
* @return The sortDescending.
*/
@java.lang.Override
public boolean getSortDescending() {
return sortDescending_;
}
public static final int DEFAULT_VALUE_TEXT_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultValueText_ = "";
/**
*
* Default value to use in case the sort expression evaluation results
* in a runtime error. Must provide for text sorts.
*
*
* optional string default_value_text = 4;
* @return Whether the defaultValueText field is set.
*/
@java.lang.Override
public boolean hasDefaultValueText() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Default value to use in case the sort expression evaluation results
* in a runtime error. Must provide for text sorts.
*
* Default value to use in case the sort expression evaluation results
* in a runtime error. Must provide for text sorts.
*
*
* optional string default_value_text = 4;
* @return The bytes for defaultValueText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultValueTextBytes() {
java.lang.Object ref = defaultValueText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultValueText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_VALUE_NUMERIC_FIELD_NUMBER = 5;
private double defaultValueNumeric_ = 0D;
/**
*
* Default value to use in case the sort expression evaluation results
* in a runtime error. Must provide for numeric sorts.
*
*
* optional double default_value_numeric = 5;
* @return Whether the defaultValueNumeric field is set.
*/
@java.lang.Override
public boolean hasDefaultValueNumeric() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Default value to use in case the sort expression evaluation results
* in a runtime error. Must provide for numeric sorts.
*
*
* optional double default_value_numeric = 5;
* @return The defaultValueNumeric.
*/
@java.lang.Override
public double getDefaultValueNumeric() {
return defaultValueNumeric_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSortExpression()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sortExpression_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, sortDescending_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultValueText_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(5, defaultValueNumeric_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sortExpression_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, sortDescending_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultValueText_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, defaultValueNumeric_);
}
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.google.appengine.api.search.proto.SearchServicePb.SortSpec)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.SortSpec other = (com.google.appengine.api.search.proto.SearchServicePb.SortSpec) obj;
if (hasSortExpression() != other.hasSortExpression()) return false;
if (hasSortExpression()) {
if (!getSortExpression()
.equals(other.getSortExpression())) return false;
}
if (hasSortDescending() != other.hasSortDescending()) return false;
if (hasSortDescending()) {
if (getSortDescending()
!= other.getSortDescending()) return false;
}
if (hasDefaultValueText() != other.hasDefaultValueText()) return false;
if (hasDefaultValueText()) {
if (!getDefaultValueText()
.equals(other.getDefaultValueText())) return false;
}
if (hasDefaultValueNumeric() != other.hasDefaultValueNumeric()) return false;
if (hasDefaultValueNumeric()) {
if (java.lang.Double.doubleToLongBits(getDefaultValueNumeric())
!= java.lang.Double.doubleToLongBits(
other.getDefaultValueNumeric())) 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 (hasSortExpression()) {
hash = (37 * hash) + SORT_EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getSortExpression().hashCode();
}
if (hasSortDescending()) {
hash = (37 * hash) + SORT_DESCENDING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSortDescending());
}
if (hasDefaultValueText()) {
hash = (37 * hash) + DEFAULT_VALUE_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getDefaultValueText().hashCode();
}
if (hasDefaultValueNumeric()) {
hash = (37 * hash) + DEFAULT_VALUE_NUMERIC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDefaultValueNumeric()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec 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.google.appengine.api.search.proto.SearchServicePb.SortSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec 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.google.appengine.api.search.proto.SearchServicePb.SortSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec 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.google.appengine.api.search.proto.SearchServicePb.SortSpec 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;
}
/**
*
* Sorting specification for a single dimension. Multi-dimenionsal sorting
* is supported by a collection of SortSpecs.
*
*
* Protobuf type {@code java.apphosting.SortSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.SortSpec)
com.google.appengine.api.search.proto.SearchServicePb.SortSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SortSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SortSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.SortSpec.class, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.SortSpec.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sortExpression_ = "";
sortDescending_ = true;
defaultValueText_ = "";
defaultValueNumeric_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SortSpec_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.SortSpec getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.SortSpec.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.SortSpec build() {
com.google.appengine.api.search.proto.SearchServicePb.SortSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.SortSpec buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.SortSpec result = new com.google.appengine.api.search.proto.SearchServicePb.SortSpec(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.SortSpec result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sortExpression_ = sortExpression_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sortDescending_ = sortDescending_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.defaultValueText_ = defaultValueText_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.defaultValueNumeric_ = defaultValueNumeric_;
to_bitField0_ |= 0x00000008;
}
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.google.appengine.api.search.proto.SearchServicePb.SortSpec) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.SortSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.SortSpec other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.SortSpec.getDefaultInstance()) return this;
if (other.hasSortExpression()) {
sortExpression_ = other.sortExpression_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasSortDescending()) {
setSortDescending(other.getSortDescending());
}
if (other.hasDefaultValueText()) {
defaultValueText_ = other.defaultValueText_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasDefaultValueNumeric()) {
setDefaultValueNumeric(other.getDefaultValueNumeric());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasSortExpression()) {
return false;
}
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: {
sortExpression_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
sortDescending_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 34: {
defaultValueText_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 34
case 41: {
defaultValueNumeric_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 41
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 sortExpression_ = "";
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @return Whether the sortExpression field is set.
*/
public boolean hasSortExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @return The bytes for sortExpression.
*/
public com.google.protobuf.ByteString
getSortExpressionBytes() {
java.lang.Object ref = sortExpression_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sortExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @param value The sortExpression to set.
* @return This builder for chaining.
*/
public Builder setSortExpression(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sortExpression_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
* An expression that assigns a "sorting score" to a document, i.e.
* the position in the sorted list. A corresponding default must be
* provided below.
*
*
* required string sort_expression = 1;
* @param value The bytes for sortExpression to set.
* @return This builder for chaining.
*/
public Builder setSortExpressionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
sortExpression_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean sortDescending_ = true;
/**
*
* Indicates whether the search results are returned in "descending order"
* of their "sorting score".
*
*
* optional bool sort_descending = 2 [default = true];
* @return Whether the sortDescending field is set.
*/
@java.lang.Override
public boolean hasSortDescending() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Indicates whether the search results are returned in "descending order"
* of their "sorting score".
*
* A scorer that returns a score based on term frequency divided by document
* frequency.
*
*
* MATCH_SCORER = 2;
*/
MATCH_SCORER(2),
;
/**
*
* A generic scorer that uses match scoring and rescoring.
*
*
* RESCORING_MATCH_SCORER = 0;
*/
public static final int RESCORING_MATCH_SCORER_VALUE = 0;
/**
*
* A scorer that returns a score based on term frequency divided by document
* frequency.
*
*
* MATCH_SCORER = 2;
*/
public static final int MATCH_SCORER_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Scorer valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Scorer forNumber(int value) {
switch (value) {
case 0: return RESCORING_MATCH_SCORER;
case 2: return MATCH_SCORER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Scorer> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Scorer findValueByNumber(int number) {
return Scorer.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDescriptor().getEnumTypes().get(0);
}
private static final Scorer[] VALUES = values();
public static Scorer valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Scorer(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.ScorerSpec.Scorer)
}
private int bitField0_;
public static final int SCORER_FIELD_NUMBER = 1;
private int scorer_ = 2;
/**
*
* The type of scorer to invoke.
*
*
* optional .java.apphosting.ScorerSpec.Scorer scorer = 1 [default = MATCH_SCORER];
* @return Whether the scorer field is set.
*/
@java.lang.Override public boolean hasScorer() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The type of scorer to invoke.
*
*
* optional .java.apphosting.ScorerSpec.Scorer scorer = 1 [default = MATCH_SCORER];
* @return The scorer.
*/
@java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer getScorer() {
com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer result = com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer.forNumber(scorer_);
return result == null ? com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer.MATCH_SCORER : result;
}
public static final int LIMIT_FIELD_NUMBER = 2;
private int limit_ = 1000;
/**
*
* Limit on number of top retrieved results to score.
*
*
* optional int32 limit = 2 [default = 1000];
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Limit on number of top retrieved results to score.
*
*
* optional int32 limit = 2 [default = 1000];
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int MATCH_SCORER_PARAMETERS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object matchScorerParameters_ = "";
/**
*
* Parameters for the match scorer encoded in a string.
*
*
* optional string match_scorer_parameters = 9;
* @return Whether the matchScorerParameters field is set.
*/
@java.lang.Override
public boolean hasMatchScorerParameters() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Parameters for the match scorer encoded in a string.
*
* Parameters for the match scorer encoded in a string.
*
*
* optional string match_scorer_parameters = 9;
* @param value The bytes for matchScorerParameters to set.
* @return This builder for chaining.
*/
public Builder setMatchScorerParametersBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
matchScorerParameters_ = value;
bitField0_ |= 0x00000004;
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:java.apphosting.ScorerSpec)
}
// @@protoc_insertion_point(class_scope:java.apphosting.ScorerSpec)
private static final com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec();
}
public static com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScorerSpec 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.google.appengine.api.search.proto.SearchServicePb.ScorerSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.FieldSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @return A list containing the name.
*/
java.util.List
getNameList();
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @return The count of name.
*/
int getNameCount();
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param index The index of the element to return.
* @return The name at the given index.
*/
java.lang.String getName(int index);
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param index The index of the value to return.
* @return The bytes of the name at the given index.
*/
com.google.protobuf.ByteString
getNameBytes(int index);
/**
* repeated group Expression = 2 { ... }
*/
java.util.List
getExpressionList();
/**
* repeated group Expression = 2 { ... }
*/
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression getExpression(int index);
/**
* repeated group Expression = 2 { ... }
*/
int getExpressionCount();
/**
* repeated group Expression = 2 { ... }
*/
java.util.List extends com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder>
getExpressionOrBuilderList();
/**
* repeated group Expression = 2 { ... }
*/
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder getExpressionOrBuilder(
int index);
}
/**
*
* Defines which fields will be returned.
*
*
* Protobuf type {@code java.apphosting.FieldSpec}
*/
public static final class FieldSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.FieldSpec)
FieldSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldSpec.newBuilder() to construct.
private FieldSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldSpec() {
name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
expression_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.class, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Builder.class);
}
public interface ExpressionOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.FieldSpec.Expression)
com.google.protobuf.MessageOrBuilder {
/**
* required string name = 3;
* @return Whether the name field is set.
*/
boolean hasName();
/**
* required string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
* required string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* required string expression = 4;
* @return Whether the expression field is set.
*/
boolean hasExpression();
/**
* required string expression = 4;
* @return The expression.
*/
java.lang.String getExpression();
/**
* required string expression = 4;
* @return The bytes for expression.
*/
com.google.protobuf.ByteString
getExpressionBytes();
}
/**
*
* An expression that will be computed for each result returned. For
* example, if the client wants the total price, the expression might
* be "Price + Tax" and the name might be TotalPrice. If the client
* wants a snippet of field named "content" matching a query "good times",
* the expression would be "snippet(\"good times\", content)"
* and the name might be snippet.
*
*
* Protobuf type {@code java.apphosting.FieldSpec.Expression}
*/
public static final class Expression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.FieldSpec.Expression)
ExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Expression.newBuilder() to construct.
private Expression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Expression() {
name_ = "";
expression_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Expression();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_Expression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_Expression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.class, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* required string name = 3;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPRESSION_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object expression_ = "";
/**
* required string expression = 4;
* @return Whether the expression field is set.
*/
@java.lang.Override
public boolean hasExpression() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string expression = 4;
* @return The expression.
*/
@java.lang.Override
public java.lang.String getExpression() {
java.lang.Object ref = expression_;
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();
if (bs.isValidUtf8()) {
expression_ = s;
}
return s;
}
}
/**
* required string expression = 4;
* @return The bytes for expression.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpressionBytes() {
java.lang.Object ref = expression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasExpression()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expression_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expression_);
}
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.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression other = (com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasExpression() != other.hasExpression()) return false;
if (hasExpression()) {
if (!getExpression()
.equals(other.getExpression())) 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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasExpression()) {
hash = (37 * hash) + EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getExpression().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression 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;
}
/**
*
* An expression that will be computed for each result returned. For
* example, if the client wants the total price, the expression might
* be "Price + Tax" and the name might be TotalPrice. If the client
* wants a snippet of field named "content" matching a query "good times",
* the expression would be "snippet(\"good times\", content)"
* and the name might be snippet.
*
*
* Protobuf type {@code java.apphosting.FieldSpec.Expression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.FieldSpec.Expression)
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_Expression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_Expression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.class, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
expression_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_Expression_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression build() {
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression result = new com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.expression_ = expression_;
to_bitField0_ |= 0x00000002;
}
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.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.getDefaultInstance()) return this;
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasExpression()) {
expression_ = other.expression_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasExpression()) {
return false;
}
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 26: {
name_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 26
case 34: {
expression_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 34
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 name_ = "";
/**
* required string name = 3;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object expression_ = "";
/**
* required string expression = 4;
* @return Whether the expression field is set.
*/
public boolean hasExpression() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string expression = 4;
* @return The expression.
*/
public java.lang.String getExpression() {
java.lang.Object ref = expression_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
expression_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string expression = 4;
* @return The bytes for expression.
*/
public com.google.protobuf.ByteString
getExpressionBytes() {
java.lang.Object ref = expression_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string expression = 4;
* @param value The expression to set.
* @return This builder for chaining.
*/
public Builder setExpression(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
expression_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required string expression = 4;
* @return This builder for chaining.
*/
public Builder clearExpression() {
expression_ = getDefaultInstance().getExpression();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* required string expression = 4;
* @param value The bytes for expression to set.
* @return This builder for chaining.
*/
public Builder setExpressionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
expression_ = value;
bitField0_ |= 0x00000002;
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:java.apphosting.FieldSpec.Expression)
}
// @@protoc_insertion_point(class_scope:java.apphosting.FieldSpec.Expression)
private static final com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression();
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Expression 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList name_;
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @return A list containing the name.
*/
public com.google.protobuf.ProtocolStringList
getNameList() {
return name_;
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @return The count of name.
*/
public int getNameCount() {
return name_.size();
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param index The index of the element to return.
* @return The name at the given index.
*/
public java.lang.String getName(int index) {
return name_.get(index);
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param index The index of the value to return.
* @return The bytes of the name at the given index.
*/
public com.google.protobuf.ByteString
getNameBytes(int index) {
return name_.getByteString(index);
}
public static final int EXPRESSION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List expression_;
/**
* repeated group Expression = 2 { ... }
*/
@java.lang.Override
public java.util.List getExpressionList() {
return expression_;
}
/**
* repeated group Expression = 2 { ... }
*/
@java.lang.Override
public java.util.List extends com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder>
getExpressionOrBuilderList() {
return expression_;
}
/**
* repeated group Expression = 2 { ... }
*/
@java.lang.Override
public int getExpressionCount() {
return expression_.size();
}
/**
* repeated group Expression = 2 { ... }
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression getExpression(int index) {
return expression_.get(index);
}
/**
* repeated group Expression = 2 { ... }
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder getExpressionOrBuilder(
int index) {
return expression_.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;
for (int i = 0; i < getExpressionCount(); i++) {
if (!getExpression(i).isInitialized()) {
memoizedIsInitialized = 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 < name_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_.getRaw(i));
}
for (int i = 0; i < expression_.size(); i++) {
output.writeGroup(2, expression_.get(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 < name_.size(); i++) {
dataSize += computeStringSizeNoTag(name_.getRaw(i));
}
size += dataSize;
size += 1 * getNameList().size();
}
for (int i = 0; i < expression_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(2, expression_.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 com.google.appengine.api.search.proto.SearchServicePb.FieldSpec)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec other = (com.google.appengine.api.search.proto.SearchServicePb.FieldSpec) obj;
if (!getNameList()
.equals(other.getNameList())) return false;
if (!getExpressionList()
.equals(other.getExpressionList())) 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 (getNameCount() > 0) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getNameList().hashCode();
}
if (getExpressionCount() > 0) {
hash = (37 * hash) + EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getExpressionList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec 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;
}
/**
*
* Defines which fields will be returned.
*
*
* Protobuf type {@code java.apphosting.FieldSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.FieldSpec)
com.google.appengine.api.search.proto.SearchServicePb.FieldSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.class, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (expressionBuilder_ == null) {
expression_ = java.util.Collections.emptyList();
} else {
expression_ = null;
expressionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FieldSpec_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec build() {
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec result = new com.google.appengine.api.search.proto.SearchServicePb.FieldSpec(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec result) {
if (((bitField0_ & 0x00000001) != 0)) {
name_ = name_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.name_ = name_;
if (expressionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
expression_ = java.util.Collections.unmodifiableList(expression_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.expression_ = expression_;
} else {
result.expression_ = expressionBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec result) {
int from_bitField0_ = 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FieldSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.getDefaultInstance()) return this;
if (!other.name_.isEmpty()) {
if (name_.isEmpty()) {
name_ = other.name_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNameIsMutable();
name_.addAll(other.name_);
}
onChanged();
}
if (expressionBuilder_ == null) {
if (!other.expression_.isEmpty()) {
if (expression_.isEmpty()) {
expression_ = other.expression_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureExpressionIsMutable();
expression_.addAll(other.expression_);
}
onChanged();
}
} else {
if (!other.expression_.isEmpty()) {
if (expressionBuilder_.isEmpty()) {
expressionBuilder_.dispose();
expressionBuilder_ = null;
expression_ = other.expression_;
bitField0_ = (bitField0_ & ~0x00000002);
expressionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExpressionFieldBuilder() : null;
} else {
expressionBuilder_.addAllMessages(other.expression_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getExpressionCount(); i++) {
if (!getExpression(i).isInitialized()) {
return false;
}
}
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: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureNameIsMutable();
name_.add(bs);
break;
} // case 10
case 19: {
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression m =
input.readGroup(2,
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.PARSER,
extensionRegistry);
if (expressionBuilder_ == null) {
ensureExpressionIsMutable();
expression_.add(m);
} else {
expressionBuilder_.addMessage(m);
}
break;
} // case 19
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.LazyStringList name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNameIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
name_ = new com.google.protobuf.LazyStringArrayList(name_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @return A list containing the name.
*/
public com.google.protobuf.ProtocolStringList
getNameList() {
return name_.getUnmodifiableView();
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @return The count of name.
*/
public int getNameCount() {
return name_.size();
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param index The index of the element to return.
* @return The name at the given index.
*/
public java.lang.String getName(int index) {
return name_.get(index);
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param index The index of the value to return.
* @return The bytes of the name at the given index.
*/
public com.google.protobuf.ByteString
getNameBytes(int index) {
return name_.getByteString(index);
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param index The index to set the value at.
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNameIsMutable();
name_.set(index, value);
onChanged();
return this;
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param value The name to add.
* @return This builder for chaining.
*/
public Builder addName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNameIsMutable();
name_.add(value);
onChanged();
return this;
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param values The name to add.
* @return This builder for chaining.
*/
public Builder addAllName(
java.lang.Iterable values) {
ensureNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, name_);
onChanged();
return this;
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The name of each field to be returned in documents in the search results,
* such as "location" or "price" or "title".
*
*
* repeated string name = 1;
* @param value The bytes of the name to add.
* @return This builder for chaining.
*/
public Builder addNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureNameIsMutable();
name_.add(value);
onChanged();
return this;
}
private java.util.List expression_ =
java.util.Collections.emptyList();
private void ensureExpressionIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
expression_ = new java.util.ArrayList(expression_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder> expressionBuilder_;
/**
* repeated group Expression = 2 { ... }
*/
public java.util.List getExpressionList() {
if (expressionBuilder_ == null) {
return java.util.Collections.unmodifiableList(expression_);
} else {
return expressionBuilder_.getMessageList();
}
}
/**
* repeated group Expression = 2 { ... }
*/
public int getExpressionCount() {
if (expressionBuilder_ == null) {
return expression_.size();
} else {
return expressionBuilder_.getCount();
}
}
/**
* repeated group Expression = 2 { ... }
*/
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression getExpression(int index) {
if (expressionBuilder_ == null) {
return expression_.get(index);
} else {
return expressionBuilder_.getMessage(index);
}
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder setExpression(
int index, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression value) {
if (expressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionIsMutable();
expression_.set(index, value);
onChanged();
} else {
expressionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder setExpression(
int index, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder builderForValue) {
if (expressionBuilder_ == null) {
ensureExpressionIsMutable();
expression_.set(index, builderForValue.build());
onChanged();
} else {
expressionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder addExpression(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression value) {
if (expressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionIsMutable();
expression_.add(value);
onChanged();
} else {
expressionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder addExpression(
int index, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression value) {
if (expressionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionIsMutable();
expression_.add(index, value);
onChanged();
} else {
expressionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder addExpression(
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder builderForValue) {
if (expressionBuilder_ == null) {
ensureExpressionIsMutable();
expression_.add(builderForValue.build());
onChanged();
} else {
expressionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder addExpression(
int index, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder builderForValue) {
if (expressionBuilder_ == null) {
ensureExpressionIsMutable();
expression_.add(index, builderForValue.build());
onChanged();
} else {
expressionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder addAllExpression(
java.lang.Iterable extends com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression> values) {
if (expressionBuilder_ == null) {
ensureExpressionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, expression_);
onChanged();
} else {
expressionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder clearExpression() {
if (expressionBuilder_ == null) {
expression_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
expressionBuilder_.clear();
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public Builder removeExpression(int index) {
if (expressionBuilder_ == null) {
ensureExpressionIsMutable();
expression_.remove(index);
onChanged();
} else {
expressionBuilder_.remove(index);
}
return this;
}
/**
* repeated group Expression = 2 { ... }
*/
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder getExpressionBuilder(
int index) {
return getExpressionFieldBuilder().getBuilder(index);
}
/**
* repeated group Expression = 2 { ... }
*/
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder getExpressionOrBuilder(
int index) {
if (expressionBuilder_ == null) {
return expression_.get(index); } else {
return expressionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group Expression = 2 { ... }
*/
public java.util.List extends com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder>
getExpressionOrBuilderList() {
if (expressionBuilder_ != null) {
return expressionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(expression_);
}
}
/**
* repeated group Expression = 2 { ... }
*/
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder addExpressionBuilder() {
return getExpressionFieldBuilder().addBuilder(
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.getDefaultInstance());
}
/**
* repeated group Expression = 2 { ... }
*/
public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder addExpressionBuilder(
int index) {
return getExpressionFieldBuilder().addBuilder(
index, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.getDefaultInstance());
}
/**
* repeated group Expression = 2 { ... }
*/
public java.util.List
getExpressionBuilderList() {
return getExpressionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder>
getExpressionFieldBuilder() {
if (expressionBuilder_ == null) {
expressionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Expression.Builder, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.ExpressionOrBuilder>(
expression_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
expression_ = null;
}
return expressionBuilder_;
}
@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:java.apphosting.FieldSpec)
}
// @@protoc_insertion_point(class_scope:java.apphosting.FieldSpec)
private static final com.google.appengine.api.search.proto.SearchServicePb.FieldSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FieldSpec();
}
public static com.google.appengine.api.search.proto.SearchServicePb.FieldSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldSpec 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.google.appengine.api.search.proto.SearchServicePb.FieldSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FacetRangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.FacetRange)
com.google.protobuf.MessageOrBuilder {
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* start and end of the range. At least one of these must be supplied.
*
*
* optional string start = 2;
* @return Whether the start field is set.
*/
boolean hasStart();
/**
*
* start and end of the range. At least one of these must be supplied.
*
* start and end of the range. At least one of these must be supplied.
*
*
* optional string start = 2;
* @return The bytes for start.
*/
com.google.protobuf.ByteString
getStartBytes();
/**
* optional string end = 3;
* @return Whether the end field is set.
*/
boolean hasEnd();
/**
* optional string end = 3;
* @return The end.
*/
java.lang.String getEnd();
/**
* optional string end = 3;
* @return The bytes for end.
*/
com.google.protobuf.ByteString
getEndBytes();
}
/**
* Protobuf type {@code java.apphosting.FacetRange}
*/
public static final class FacetRange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.FacetRange)
FacetRangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use FacetRange.newBuilder() to construct.
private FacetRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FacetRange() {
name_ = "";
start_ = "";
end_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FacetRange();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FacetRange.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object start_ = "";
/**
*
* start and end of the range. At least one of these must be supplied.
*
*
* optional string start = 2;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* start and end of the range. At least one of these must be supplied.
*
* start and end of the range. At least one of these must be supplied.
*
*
* optional string start = 2;
* @return The bytes for start.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartBytes() {
java.lang.Object ref = start_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
start_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object end_ = "";
/**
* optional string end = 3;
* @return Whether the end field is set.
*/
@java.lang.Override
public boolean hasEnd() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string end = 3;
* @return The end.
*/
@java.lang.Override
public java.lang.String getEnd() {
java.lang.Object ref = end_;
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();
if (bs.isValidUtf8()) {
end_ = s;
}
return s;
}
}
/**
* optional string end = 3;
* @return The bytes for end.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndBytes() {
java.lang.Object ref = end_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
end_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, start_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, end_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, start_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, end_);
}
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.google.appengine.api.search.proto.SearchServicePb.FacetRange)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.FacetRange other = (com.google.appengine.api.search.proto.SearchServicePb.FacetRange) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasStart() != other.hasStart()) return false;
if (hasStart()) {
if (!getStart()
.equals(other.getStart())) return false;
}
if (hasEnd() != other.hasEnd()) return false;
if (hasEnd()) {
if (!getEnd()
.equals(other.getEnd())) 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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasStart()) {
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart().hashCode();
}
if (hasEnd()) {
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + getEnd().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange 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.google.appengine.api.search.proto.SearchServicePb.FacetRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange 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.google.appengine.api.search.proto.SearchServicePb.FacetRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange 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.google.appengine.api.search.proto.SearchServicePb.FacetRange 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 java.apphosting.FacetRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.FacetRange)
com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FacetRange.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetRange.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
start_ = "";
end_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRange_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.FacetRange.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange build() {
com.google.appengine.api.search.proto.SearchServicePb.FacetRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.FacetRange result = new com.google.appengine.api.search.proto.SearchServicePb.FacetRange(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetRange result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.start_ = start_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.end_ = end_;
to_bitField0_ |= 0x00000004;
}
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.google.appengine.api.search.proto.SearchServicePb.FacetRange) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetRange other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetRange.getDefaultInstance()) return this;
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasStart()) {
start_ = other.start_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasEnd()) {
end_ = other.end_;
bitField0_ |= 0x00000004;
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: {
name_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
start_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
end_ = input.readBytes();
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 name_ = "";
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Label of the range. could be (start)...(end) or a custom name
*
*
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object start_ = "";
/**
*
* start and end of the range. At least one of these must be supplied.
*
*
* optional string start = 2;
* @return Whether the start field is set.
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* start and end of the range. At least one of these must be supplied.
*
* start and end of the range. At least one of these must be supplied.
*
*
* optional string start = 2;
* @param value The bytes for start to set.
* @return This builder for chaining.
*/
public Builder setStartBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
start_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object end_ = "";
/**
* optional string end = 3;
* @return Whether the end field is set.
*/
public boolean hasEnd() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string end = 3;
* @return The end.
*/
public java.lang.String getEnd() {
java.lang.Object ref = end_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
end_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string end = 3;
* @return The bytes for end.
*/
public com.google.protobuf.ByteString
getEndBytes() {
java.lang.Object ref = end_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
end_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string end = 3;
* @param value The end to set.
* @return This builder for chaining.
*/
public Builder setEnd(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
end_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string end = 3;
* @return This builder for chaining.
*/
public Builder clearEnd() {
end_ = getDefaultInstance().getEnd();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string end = 3;
* @param value The bytes for end to set.
* @return This builder for chaining.
*/
public Builder setEndBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
end_ = value;
bitField0_ |= 0x00000004;
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:java.apphosting.FacetRange)
}
// @@protoc_insertion_point(class_scope:java.apphosting.FacetRange)
private static final com.google.appengine.api.search.proto.SearchServicePb.FacetRange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetRange();
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FacetRange 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.google.appengine.api.search.proto.SearchServicePb.FacetRange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FacetRequestParamOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.FacetRequestParam)
com.google.protobuf.MessageOrBuilder {
/**
*
* how many facet values should be returned for this facet
*
*
* optional int32 value_limit = 1;
* @return Whether the valueLimit field is set.
*/
boolean hasValueLimit();
/**
*
* how many facet values should be returned for this facet
*
*
* optional int32 value_limit = 1;
* @return The valueLimit.
*/
int getValueLimit();
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
int getRangeCount();
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder getRangeOrBuilder(
int index);
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @return A list containing the valueConstraint.
*/
java.util.List
getValueConstraintList();
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @return The count of valueConstraint.
*/
int getValueConstraintCount();
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param index The index of the element to return.
* @return The valueConstraint at the given index.
*/
java.lang.String getValueConstraint(int index);
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param index The index of the value to return.
* @return The bytes of the valueConstraint at the given index.
*/
com.google.protobuf.ByteString
getValueConstraintBytes(int index);
}
/**
* Protobuf type {@code java.apphosting.FacetRequestParam}
*/
public static final class FacetRequestParam extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.FacetRequestParam)
FacetRequestParamOrBuilder {
private static final long serialVersionUID = 0L;
// Use FacetRequestParam.newBuilder() to construct.
private FacetRequestParam(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FacetRequestParam() {
range_ = java.util.Collections.emptyList();
valueConstraint_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FacetRequestParam();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequestParam_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequestParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.Builder.class);
}
private int bitField0_;
public static final int VALUE_LIMIT_FIELD_NUMBER = 1;
private int valueLimit_ = 0;
/**
*
* how many facet values should be returned for this facet
*
*
* optional int32 value_limit = 1;
* @return Whether the valueLimit field is set.
*/
@java.lang.Override
public boolean hasValueLimit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* how many facet values should be returned for this facet
*
*
* optional int32 value_limit = 1;
* @return The valueLimit.
*/
@java.lang.Override
public int getValueLimit() {
return valueLimit_;
}
public static final int RANGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List range_;
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
@java.lang.Override
public java.util.List getRangeList() {
return range_;
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
@java.lang.Override
public java.util.List extends com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder>
getRangeOrBuilderList() {
return range_;
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
@java.lang.Override
public int getRangeCount() {
return range_.size();
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange getRange(int index) {
return range_.get(index);
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder getRangeOrBuilder(
int index) {
return range_.get(index);
}
public static final int VALUE_CONSTRAINT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList valueConstraint_;
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @return A list containing the valueConstraint.
*/
public com.google.protobuf.ProtocolStringList
getValueConstraintList() {
return valueConstraint_;
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @return The count of valueConstraint.
*/
public int getValueConstraintCount() {
return valueConstraint_.size();
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param index The index of the element to return.
* @return The valueConstraint at the given index.
*/
public java.lang.String getValueConstraint(int index) {
return valueConstraint_.get(index);
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param index The index of the value to return.
* @return The bytes of the valueConstraint at the given index.
*/
public com.google.protobuf.ByteString
getValueConstraintBytes(int index) {
return valueConstraint_.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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, valueLimit_);
}
for (int i = 0; i < range_.size(); i++) {
output.writeMessage(2, range_.get(i));
}
for (int i = 0; i < valueConstraint_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, valueConstraint_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, valueLimit_);
}
for (int i = 0; i < range_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, range_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < valueConstraint_.size(); i++) {
dataSize += computeStringSizeNoTag(valueConstraint_.getRaw(i));
}
size += dataSize;
size += 1 * getValueConstraintList().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 com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam)) {
return super.equals(obj);
}
com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam other = (com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam) obj;
if (hasValueLimit() != other.hasValueLimit()) return false;
if (hasValueLimit()) {
if (getValueLimit()
!= other.getValueLimit()) return false;
}
if (!getRangeList()
.equals(other.getRangeList())) return false;
if (!getValueConstraintList()
.equals(other.getValueConstraintList())) 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 (hasValueLimit()) {
hash = (37 * hash) + VALUE_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getValueLimit();
}
if (getRangeCount() > 0) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRangeList().hashCode();
}
if (getValueConstraintCount() > 0) {
hash = (37 * hash) + VALUE_CONSTRAINT_FIELD_NUMBER;
hash = (53 * hash) + getValueConstraintList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam 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.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam 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.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam 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.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam 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 java.apphosting.FacetRequestParam}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.FacetRequestParam)
com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequestParam_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequestParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.Builder.class);
}
// Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
valueLimit_ = 0;
if (rangeBuilder_ == null) {
range_ = java.util.Collections.emptyList();
} else {
range_ = null;
rangeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
valueConstraint_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequestParam_descriptor;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam getDefaultInstanceForType() {
return com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam build() {
com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam buildPartial() {
com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam result = new com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam result) {
if (rangeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
range_ = java.util.Collections.unmodifiableList(range_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.range_ = range_;
} else {
result.range_ = rangeBuilder_.build();
}
if (((bitField0_ & 0x00000004) != 0)) {
valueConstraint_ = valueConstraint_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.valueConstraint_ = valueConstraint_;
}
private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.valueLimit_ = valueLimit_;
to_bitField0_ |= 0x00000001;
}
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.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam) {
return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam other) {
if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.getDefaultInstance()) return this;
if (other.hasValueLimit()) {
setValueLimit(other.getValueLimit());
}
if (rangeBuilder_ == null) {
if (!other.range_.isEmpty()) {
if (range_.isEmpty()) {
range_ = other.range_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRangeIsMutable();
range_.addAll(other.range_);
}
onChanged();
}
} else {
if (!other.range_.isEmpty()) {
if (rangeBuilder_.isEmpty()) {
rangeBuilder_.dispose();
rangeBuilder_ = null;
range_ = other.range_;
bitField0_ = (bitField0_ & ~0x00000002);
rangeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRangeFieldBuilder() : null;
} else {
rangeBuilder_.addAllMessages(other.range_);
}
}
}
if (!other.valueConstraint_.isEmpty()) {
if (valueConstraint_.isEmpty()) {
valueConstraint_ = other.valueConstraint_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureValueConstraintIsMutable();
valueConstraint_.addAll(other.valueConstraint_);
}
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 8: {
valueLimit_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
com.google.appengine.api.search.proto.SearchServicePb.FacetRange m =
input.readMessage(
com.google.appengine.api.search.proto.SearchServicePb.FacetRange.PARSER,
extensionRegistry);
if (rangeBuilder_ == null) {
ensureRangeIsMutable();
range_.add(m);
} else {
rangeBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureValueConstraintIsMutable();
valueConstraint_.add(bs);
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 int valueLimit_ ;
/**
*
* how many facet values should be returned for this facet
*
*
* optional int32 value_limit = 1;
* @return Whether the valueLimit field is set.
*/
@java.lang.Override
public boolean hasValueLimit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* how many facet values should be returned for this facet
*
*
* optional int32 value_limit = 1;
* @return The valueLimit.
*/
@java.lang.Override
public int getValueLimit() {
return valueLimit_;
}
/**
*
* how many facet values should be returned for this facet
*
*
* optional int32 value_limit = 1;
* @param value The valueLimit to set.
* @return This builder for chaining.
*/
public Builder setValueLimit(int value) {
valueLimit_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* how many facet values should be returned for this facet
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public java.util.List getRangeList() {
if (rangeBuilder_ == null) {
return java.util.Collections.unmodifiableList(range_);
} else {
return rangeBuilder_.getMessageList();
}
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public int getRangeCount() {
if (rangeBuilder_ == null) {
return range_.size();
} else {
return rangeBuilder_.getCount();
}
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange getRange(int index) {
if (rangeBuilder_ == null) {
return range_.get(index);
} else {
return rangeBuilder_.getMessage(index);
}
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public Builder setRange(
int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRange value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangeIsMutable();
range_.set(index, value);
onChanged();
} else {
rangeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public Builder setRange(
int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder builderForValue) {
if (rangeBuilder_ == null) {
ensureRangeIsMutable();
range_.set(index, builderForValue.build());
onChanged();
} else {
rangeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public Builder addRange(com.google.appengine.api.search.proto.SearchServicePb.FacetRange value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangeIsMutable();
range_.add(value);
onChanged();
} else {
rangeBuilder_.addMessage(value);
}
return this;
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public Builder addRange(
int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRange value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangeIsMutable();
range_.add(index, value);
onChanged();
} else {
rangeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public Builder addRange(
int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder builderForValue) {
if (rangeBuilder_ == null) {
ensureRangeIsMutable();
range_.add(index, builderForValue.build());
onChanged();
} else {
rangeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder getRangeBuilder(
int index) {
return getRangeFieldBuilder().getBuilder(index);
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder getRangeOrBuilder(
int index) {
if (rangeBuilder_ == null) {
return range_.get(index); } else {
return rangeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public java.util.List extends com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder>
getRangeOrBuilderList() {
if (rangeBuilder_ != null) {
return rangeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(range_);
}
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder addRangeBuilder() {
return getRangeFieldBuilder().addBuilder(
com.google.appengine.api.search.proto.SearchServicePb.FacetRange.getDefaultInstance());
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
*
* repeated .java.apphosting.FacetRange range = 2;
*/
public com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder addRangeBuilder(
int index) {
return getRangeFieldBuilder().addBuilder(
index, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.getDefaultInstance());
}
/**
*
* if provided, return values in range instead of single values
* Note: number fields should always have range, otherwise
* one single range min...max will be created for them
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @return A list containing the valueConstraint.
*/
public com.google.protobuf.ProtocolStringList
getValueConstraintList() {
return valueConstraint_.getUnmodifiableView();
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @return The count of valueConstraint.
*/
public int getValueConstraintCount() {
return valueConstraint_.size();
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param index The index of the element to return.
* @return The valueConstraint at the given index.
*/
public java.lang.String getValueConstraint(int index) {
return valueConstraint_.get(index);
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param index The index of the value to return.
* @return The bytes of the valueConstraint at the given index.
*/
public com.google.protobuf.ByteString
getValueConstraintBytes(int index) {
return valueConstraint_.getByteString(index);
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param index The index to set the value at.
* @param value The valueConstraint to set.
* @return This builder for chaining.
*/
public Builder setValueConstraint(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureValueConstraintIsMutable();
valueConstraint_.set(index, value);
onChanged();
return this;
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param value The valueConstraint to add.
* @return This builder for chaining.
*/
public Builder addValueConstraint(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureValueConstraintIsMutable();
valueConstraint_.add(value);
onChanged();
return this;
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*
*
* repeated string value_constraint = 3;
* @param values The valueConstraint to add.
* @return This builder for chaining.
*/
public Builder addAllValueConstraint(
java.lang.Iterable values) {
ensureValueConstraintIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, valueConstraint_);
onChanged();
return this;
}
/**
*
* if provided, only count these values. Cannot be used
* with ranges
*