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

com.google.appengine.api.search.proto.SearchServicePb Maven / Gradle / Ivy

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

package com.google.appengine.api.search.proto;

public final class SearchServicePb {
  private SearchServicePb() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SearchServiceErrorOrBuilder extends
      // @@protoc_insertion_point(interface_extends:java.apphosting.SearchServiceError)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * 
   * A protocol buffer which contains an enumeration of errors.
   * 
* * Protobuf type {@code java.apphosting.SearchServiceError} */ public static final class SearchServiceError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.SearchServiceError) SearchServiceErrorOrBuilder { private static final long serialVersionUID = 0L; // Use SearchServiceError.newBuilder() to construct. private SearchServiceError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchServiceError() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchServiceError(); } @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_SearchServiceError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchServiceError_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.class, com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.Builder.class); } /** *
     * Errors that are generated for each document contained in a
     * IndexDocumentRequest or DeleteDocumentRequest.
     * 
* * Protobuf enum {@code java.apphosting.SearchServiceError.ErrorCode} */ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Not an error.
       * 
* * OK = 0; */ OK(0), /** *
       * The client made an invalid request, something about the request
       * needs to be changed.
       * 
* * INVALID_REQUEST = 1; */ INVALID_REQUEST(1), /** *
       * A transient problem occurred. Try again later.
       * 
* * TRANSIENT_ERROR = 2; */ TRANSIENT_ERROR(2), /** *
       * An internal error occurred.
       * 
* * INTERNAL_ERROR = 3; */ INTERNAL_ERROR(3), /** *
       * Client does not have permission to make the request.
       * 
* * PERMISSION_DENIED = 4; */ PERMISSION_DENIED(4), /** *
       * Operation could not finish within the deadline.
       * 
* * TIMEOUT = 5; */ TIMEOUT(5), /** *
       * Multiple updates to the same document at the same time.
       * 
* * CONCURRENT_TRANSACTION = 6; */ CONCURRENT_TRANSACTION(6), ; /** *
       * Not an error.
       * 
* * OK = 0; */ public static final int OK_VALUE = 0; /** *
       * The client made an invalid request, something about the request
       * needs to be changed.
       * 
* * INVALID_REQUEST = 1; */ public static final int INVALID_REQUEST_VALUE = 1; /** *
       * A transient problem occurred. Try again later.
       * 
* * TRANSIENT_ERROR = 2; */ public static final int TRANSIENT_ERROR_VALUE = 2; /** *
       * An internal error occurred.
       * 
* * INTERNAL_ERROR = 3; */ public static final int INTERNAL_ERROR_VALUE = 3; /** *
       * Client does not have permission to make the request.
       * 
* * PERMISSION_DENIED = 4; */ public static final int PERMISSION_DENIED_VALUE = 4; /** *
       * Operation could not finish within the deadline.
       * 
* * TIMEOUT = 5; */ public static final int TIMEOUT_VALUE = 5; /** *
       * Multiple updates to the same document at the same time.
       * 
* * CONCURRENT_TRANSACTION = 6; */ public static final int CONCURRENT_TRANSACTION_VALUE = 6; 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 ErrorCode 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 ErrorCode forNumber(int value) { switch (value) { case 0: return OK; case 1: return INVALID_REQUEST; case 2: return TRANSIENT_ERROR; case 3: return INTERNAL_ERROR; case 4: return PERMISSION_DENIED; case 5: return TIMEOUT; case 6: return CONCURRENT_TRANSACTION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ErrorCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ErrorCode findValueByNumber(int number) { return ErrorCode.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.SearchServiceError.getDescriptor().getEnumTypes().get(0); } private static final ErrorCode[] VALUES = values(); public static ErrorCode 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 ErrorCode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:java.apphosting.SearchServiceError.ErrorCode) } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError other = (com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError 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.SearchServiceError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError 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.SearchServiceError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError 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.SearchServiceError 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.SearchServiceError 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.SearchServiceError 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.SearchServiceError 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.SearchServiceError 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.SearchServiceError 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.SearchServiceError 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 protocol buffer which contains an enumeration of errors.
     * 
* * Protobuf type {@code java.apphosting.SearchServiceError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.SearchServiceError) com.google.appengine.api.search.proto.SearchServicePb.SearchServiceErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchServiceError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchServiceError_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.class, com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchServiceError_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError build() { com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError result = new com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:java.apphosting.SearchServiceError) } // @@protoc_insertion_point(class_scope:java.apphosting.SearchServiceError) private static final com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError(); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchServiceError 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.SearchServiceError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.RequestStatus) com.google.protobuf.MessageOrBuilder { /** *
     * An error that occurred on processing a request or element
     * of a request.
     * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @return Whether the code field is set. */ boolean hasCode(); /** *
     * An error that occurred on processing a request or element
     * of a request.
     * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @return The code. */ com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode getCode(); /** *
     * Any detail about the error.
     * 
* * optional string error_detail = 2; * @return Whether the errorDetail field is set. */ boolean hasErrorDetail(); /** *
     * Any detail about the error.
     * 
* * optional string error_detail = 2; * @return The errorDetail. */ java.lang.String getErrorDetail(); /** *
     * Any detail about the error.
     * 
* * optional string error_detail = 2; * @return The bytes for errorDetail. */ com.google.protobuf.ByteString getErrorDetailBytes(); /** *
     * Canonical error code.
     * 
* * optional int32 canonical_code = 3; * @return Whether the canonicalCode field is set. */ boolean hasCanonicalCode(); /** *
     * Canonical error code.
     * 
* * optional int32 canonical_code = 3; * @return The canonicalCode. */ int getCanonicalCode(); } /** *
   * The processed status of a request or element of a request.
   * 
* * Protobuf type {@code java.apphosting.RequestStatus} */ public static final class RequestStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.RequestStatus) RequestStatusOrBuilder { private static final long serialVersionUID = 0L; // Use RequestStatus.newBuilder() to construct. private RequestStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestStatus() { code_ = 0; errorDetail_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestStatus(); } @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_RequestStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_RequestStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.class, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder.class); } private int bitField0_; public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** *
     * An error that occurred on processing a request or element
     * of a request.
     * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @return Whether the code field is set. */ @java.lang.Override public boolean hasCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * An error that occurred on processing a request or element
     * of a request.
     * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @return The code. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode getCode() { com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode result = com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode.forNumber(code_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode.OK : result; } public static final int ERROR_DETAIL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object errorDetail_ = ""; /** *
     * Any detail about the error.
     * 
* * optional string error_detail = 2; * @return Whether the errorDetail field is set. */ @java.lang.Override public boolean hasErrorDetail() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Any detail about the error.
     * 
* * optional string error_detail = 2; * @return The errorDetail. */ @java.lang.Override public java.lang.String getErrorDetail() { java.lang.Object ref = errorDetail_; 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()) { errorDetail_ = s; } return s; } } /** *
     * Any detail about the error.
     * 
* * optional string error_detail = 2; * @return The bytes for errorDetail. */ @java.lang.Override public com.google.protobuf.ByteString getErrorDetailBytes() { java.lang.Object ref = errorDetail_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CANONICAL_CODE_FIELD_NUMBER = 3; private int canonicalCode_ = 0; /** *
     * 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_; } 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 (!hasCode()) { 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, code_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorDetail_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, canonicalCode_); } 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, code_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorDetail_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, canonicalCode_); } 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.RequestStatus)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.RequestStatus other = (com.google.appengine.api.search.proto.SearchServicePb.RequestStatus) obj; if (hasCode() != other.hasCode()) return false; if (hasCode()) { if (code_ != other.code_) return false; } if (hasErrorDetail() != other.hasErrorDetail()) return false; if (hasErrorDetail()) { if (!getErrorDetail() .equals(other.getErrorDetail())) return false; } if (hasCanonicalCode() != other.hasCanonicalCode()) return false; if (hasCanonicalCode()) { if (getCanonicalCode() != other.getCanonicalCode()) 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 (hasCode()) { hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; } if (hasErrorDetail()) { hash = (37 * hash) + ERROR_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getErrorDetail().hashCode(); } if (hasCanonicalCode()) { hash = (37 * hash) + CANONICAL_CODE_FIELD_NUMBER; hash = (53 * hash) + getCanonicalCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.RequestStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.RequestStatus 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.RequestStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.RequestStatus 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.RequestStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.RequestStatus 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.RequestStatus 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.RequestStatus 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.RequestStatus 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.RequestStatus 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.RequestStatus 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.RequestStatus 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.RequestStatus 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 processed status of a request or element of a request.
     * 
* * Protobuf type {@code java.apphosting.RequestStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.RequestStatus) com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_RequestStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_RequestStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.class, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; code_ = 0; errorDetail_ = ""; canonicalCode_ = 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_RequestStatus_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus build() { com.google.appengine.api.search.proto.SearchServicePb.RequestStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.RequestStatus result = new com.google.appengine.api.search.proto.SearchServicePb.RequestStatus(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.errorDetail_ = errorDetail_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.canonicalCode_ = canonicalCode_; 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.RequestStatus) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.RequestStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance()) return this; if (other.hasCode()) { setCode(other.getCode()); } if (other.hasErrorDetail()) { errorDetail_ = other.errorDetail_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCanonicalCode()) { setCanonicalCode(other.getCanonicalCode()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCode()) { 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.SearchServiceError.ErrorCode tmpValue = com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { code_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 18: { errorDetail_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { canonicalCode_ = input.readInt32(); 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 code_ = 0; /** *
       * An error that occurred on processing a request or element
       * of a request.
       * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @return Whether the code field is set. */ @java.lang.Override public boolean hasCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * An error that occurred on processing a request or element
       * of a request.
       * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @return The code. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode getCode() { com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode result = com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode.forNumber(code_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode.OK : result; } /** *
       * An error that occurred on processing a request or element
       * of a request.
       * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(com.google.appengine.api.search.proto.SearchServicePb.SearchServiceError.ErrorCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; code_ = value.getNumber(); onChanged(); return this; } /** *
       * An error that occurred on processing a request or element
       * of a request.
       * 
* * required .java.apphosting.SearchServiceError.ErrorCode code = 1; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); code_ = 0; onChanged(); return this; } private java.lang.Object errorDetail_ = ""; /** *
       * Any detail about the error.
       * 
* * optional string error_detail = 2; * @return Whether the errorDetail field is set. */ public boolean hasErrorDetail() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Any detail about the error.
       * 
* * optional string error_detail = 2; * @return The errorDetail. */ public java.lang.String getErrorDetail() { java.lang.Object ref = errorDetail_; 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()) { errorDetail_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Any detail about the error.
       * 
* * optional string error_detail = 2; * @return The bytes for errorDetail. */ public com.google.protobuf.ByteString getErrorDetailBytes() { java.lang.Object ref = errorDetail_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Any detail about the error.
       * 
* * optional string error_detail = 2; * @param value The errorDetail to set. * @return This builder for chaining. */ public Builder setErrorDetail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } errorDetail_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Any detail about the error.
       * 
* * optional string error_detail = 2; * @return This builder for chaining. */ public Builder clearErrorDetail() { errorDetail_ = getDefaultInstance().getErrorDetail(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Any detail about the error.
       * 
* * 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.
     * 
* * optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT]; * @return The consistency. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Consistency getConsistency(); /** *
     * 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. */ boolean hasNamespace(); /** *
     * The namespace associated with this index; if not specified we
     * assume the default namespace.
     * 
* * optional string namespace = 3; * @return The namespace. */ java.lang.String getNamespace(); /** *
     * The namespace associated with this index; if not specified we
     * assume the default namespace.
     * 
* * optional string namespace = 3; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** *
     * 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. */ boolean hasVersion(); /** *
     * 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. */ int getVersion(); /** *
     * The source of the documents being indexed.
     * 
* * optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH]; * @return Whether the source field is set. */ boolean hasSource(); /** *
     * The source of the documents being indexed.
     * 
* * optional .java.apphosting.IndexSpec.Source source = 5 [default = SEARCH]; * @return The source. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source getSource(); /** *
     * 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. */ boolean hasMode(); /** *
     * 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. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Mode getMode(); } /** *
   * 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 consistency requirement on the index.
     * 
* * Protobuf enum {@code java.apphosting.IndexSpec.Consistency} */ public enum Consistency implements com.google.protobuf.ProtocolMessageEnum { /** *
       * The index is globally consistent.
       * 
* * GLOBAL = 0; */ GLOBAL(0), /** *
       * 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 source of documents being indexed.
     * 
* * Protobuf enum {@code java.apphosting.IndexSpec.Source} */ public enum Source implements com.google.protobuf.ProtocolMessageEnum { /** *
       * The documents were indexed using the Search API.
       * 
* * SEARCH = 0; */ SEARCH(0), /** *
       * The documents are automatic conversions of Datastore Entities.
       * 
* * DATASTORE = 1; */ DATASTORE(1), /** *
       * The documents are automatic conversions of Cloud Storage Objects.
       * 
* * CLOUD_STORAGE = 2; */ CLOUD_STORAGE(2), ; /** *
       * 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.
     * 
* * Protobuf enum {@code java.apphosting.IndexSpec.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * 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.
     * 
* * optional string namespace = 3; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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()) { namespace_ = s; } return s; } } /** *
     * 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.
       * 
* * optional .java.apphosting.IndexSpec.Consistency consistency = 2 [default = PER_DOCUMENT]; * @return This builder for chaining. */ public Builder clearConsistency() { bitField0_ = (bitField0_ & ~0x00000002); consistency_ = 1; onChanged(); return this; } private 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. */ public boolean hasNamespace() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The namespace associated with this index; if not specified we
       * assume the default namespace.
       * 
* * optional string namespace = 3; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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()) { namespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The namespace associated with this index; if not specified we
       * assume the default namespace.
       * 
* * optional string namespace = 3; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof 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; } } /** *
       * The namespace associated with this index; if not specified we
       * assume the default namespace.
       * 
* * optional string namespace = 3; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The namespace associated with this index; if not specified we
       * assume the default namespace.
       * 
* * optional string namespace = 3; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * 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 specification (fully qualified name).
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(); /** *
     * Index specification (fully qualified name).
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(); /** *
     * 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.util.List getFieldList(); /** *
     * 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.FieldTypes getField(int 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; */ int getFieldCount(); /** *
     * 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.util.List getFieldOrBuilderList(); /** *
     * 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
     * 
* * Protobuf enum {@code java.apphosting.IndexMetadata.IndexState} */ public enum IndexState implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Index is active.
       * 
* * ACTIVE = 0; */ ACTIVE(0), /** *
       * 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); } /** *
     * Index specification (fully qualified name).
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } /** *
     * Index specification (fully qualified name).
     * 
* * 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 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); } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { if (indexSpecBuilder_ == null) { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } else { return indexSpecBuilder_.getMessage(); } } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSpec_ = value; } else { indexSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { indexSpec_ = builderForValue.build(); } else { indexSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder mergeIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && indexSpec_ != null && indexSpec_ != com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) { getIndexSpecBuilder().mergeFrom(value); } else { indexSpec_ = value; } } else { indexSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder clearIndexSpec() { bitField0_ = (bitField0_ & ~0x00000001); indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } onChanged(); return this; } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIndexSpecFieldBuilder().getBuilder(); } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilder(); } else { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } } /** *
       * Index specification (fully qualified name).
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new 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>( getIndexSpec(), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } private java.util.List field_ = java.util.Collections.emptyList(); private void ensureFieldIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { field_ = new java.util.ArrayList(field_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.FieldTypes, com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder, com.google.apphosting.api.search.DocumentPb.FieldTypesOrBuilder> fieldBuilder_; /** *
       * 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; */ public java.util.List getFieldList() { if (fieldBuilder_ == null) { return java.util.Collections.unmodifiableList(field_); } else { return fieldBuilder_.getMessageList(); } } /** *
       * 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; */ public int getFieldCount() { if (fieldBuilder_ == null) { return field_.size(); } else { return fieldBuilder_.getCount(); } } /** *
       * 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; */ public com.google.apphosting.api.search.DocumentPb.FieldTypes getField(int index) { if (fieldBuilder_ == null) { return field_.get(index); } else { return fieldBuilder_.getMessage(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; */ public Builder setField( int index, com.google.apphosting.api.search.DocumentPb.FieldTypes value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.set(index, value); onChanged(); } else { fieldBuilder_.setMessage(index, value); } return this; } /** *
       * 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; */ public Builder setField( int index, com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.set(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 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; */ public Builder addField(com.google.apphosting.api.search.DocumentPb.FieldTypes value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.add(value); onChanged(); } else { fieldBuilder_.addMessage(value); } return this; } /** *
       * 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; */ public Builder addField( int index, com.google.apphosting.api.search.DocumentPb.FieldTypes value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldIsMutable(); field_.add(index, value); onChanged(); } else { fieldBuilder_.addMessage(index, value); } return this; } /** *
       * 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; */ public Builder addField( com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 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; */ public Builder addField( int index, com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder builderForValue) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.add(index, builderForValue.build()); onChanged(); } else { fieldBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 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; */ public Builder addAllField( java.lang.Iterable values) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field_); onChanged(); } else { fieldBuilder_.addAllMessages(values); } return this; } /** *
       * 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; */ public Builder clearField() { if (fieldBuilder_ == null) { field_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { fieldBuilder_.clear(); } return this; } /** *
       * 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; */ public Builder removeField(int index) { if (fieldBuilder_ == null) { ensureFieldIsMutable(); field_.remove(index); onChanged(); } else { fieldBuilder_.remove(index); } return this; } /** *
       * 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; */ public com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder getFieldBuilder( int index) { return getFieldFieldBuilder().getBuilder(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; */ public com.google.apphosting.api.search.DocumentPb.FieldTypesOrBuilder getFieldOrBuilder( int index) { if (fieldBuilder_ == null) { return field_.get(index); } else { return fieldBuilder_.getMessageOrBuilder(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; */ public java.util.List getFieldOrBuilderList() { if (fieldBuilder_ != null) { return fieldBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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; */ public com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder addFieldBuilder() { return getFieldFieldBuilder().addBuilder( com.google.apphosting.api.search.DocumentPb.FieldTypes.getDefaultInstance()); } /** *
       * 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; */ public com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder addFieldBuilder( int index) { return getFieldFieldBuilder().addBuilder( index, com.google.apphosting.api.search.DocumentPb.FieldTypes.getDefaultInstance()); } /** *
       * 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; */ public java.util.List getFieldBuilderList() { return getFieldFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.FieldTypes, com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder, com.google.apphosting.api.search.DocumentPb.FieldTypesOrBuilder> getFieldFieldBuilder() { if (fieldBuilder_ == null) { fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.FieldTypes, com.google.apphosting.api.search.DocumentPb.FieldTypes.Builder, com.google.apphosting.api.search.DocumentPb.FieldTypesOrBuilder>( field_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); field_ = null; } return fieldBuilder_; } private com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage storage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.StorageOrBuilder> storageBuilder_; /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; * @return Whether the storage field is set. */ public boolean hasStorage() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; * @return The storage. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage getStorage() { if (storageBuilder_ == null) { return storage_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.getDefaultInstance() : storage_; } else { return storageBuilder_.getMessage(); } } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; */ public Builder setStorage(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage value) { if (storageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storage_ = value; } else { storageBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; */ public Builder setStorage( com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.Builder builderForValue) { if (storageBuilder_ == null) { storage_ = builderForValue.build(); } else { storageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; */ public Builder mergeStorage(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage value) { if (storageBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && storage_ != null && storage_ != com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.getDefaultInstance()) { getStorageBuilder().mergeFrom(value); } else { storage_ = value; } } else { storageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; */ public Builder clearStorage() { bitField0_ = (bitField0_ & ~0x00000004); storage_ = null; if (storageBuilder_ != null) { storageBuilder_.dispose(); storageBuilder_ = null; } onChanged(); return this; } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.Builder getStorageBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStorageFieldBuilder().getBuilder(); } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.StorageOrBuilder getStorageOrBuilder() { if (storageBuilder_ != null) { return storageBuilder_.getMessageOrBuilder(); } else { return storage_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.getDefaultInstance() : storage_; } } /** * optional .java.apphosting.IndexMetadata.Storage storage = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.StorageOrBuilder> getStorageFieldBuilder() { if (storageBuilder_ == null) { storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Storage.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.StorageOrBuilder>( getStorage(), getParentForChildren(), isClean()); storage_ = null; } return storageBuilder_; } 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_ & 0x00000008) != 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; } /** * optional .java.apphosting.IndexMetadata.IndexState index_state = 4 [default = ACTIVE]; * @param value The indexState to set. * @return This builder for chaining. */ public Builder setIndexState(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.IndexState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; indexState_ = value.getNumber(); onChanged(); return this; } /** * optional .java.apphosting.IndexMetadata.IndexState index_state = 4 [default = ACTIVE]; * @return This builder for chaining. */ public Builder clearIndexState() { bitField0_ = (bitField0_ & ~0x00000008); indexState_ = 0; onChanged(); return this; } private long indexDeleteTime_ ; /** *
       * 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_ & 0x00000010) != 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_; } /** *
       * 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; * @param value The indexDeleteTime to set. * @return This builder for chaining. */ public Builder setIndexDeleteTime(long value) { indexDeleteTime_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * 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 This builder for chaining. */ public Builder clearIndexDeleteTime() { bitField0_ = (bitField0_ & ~0x00000010); indexDeleteTime_ = 0L; onChanged(); return this; } 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_ & 0x00000020) != 0); } /** *
       * Number of shards in index.
       * 
* * optional int32 num_shards = 6 [default = 1]; * @return The numShards. */ @java.lang.Override public int getNumShards() { return numShards_; } /** *
       * Number of shards in index.
       * 
* * optional int32 num_shards = 6 [default = 1]; * @param value The numShards to set. * @return This builder for chaining. */ public Builder setNumShards(int value) { numShards_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Number of shards in index.
       * 
* * optional int32 num_shards = 6 [default = 1]; * @return This builder for chaining. */ public Builder clearNumShards() { bitField0_ = (bitField0_ & ~0x00000020); numShards_ = 1; 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) } // @@protoc_insertion_point(class_scope:java.apphosting.IndexMetadata) private static final com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata(); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IndexMetadata 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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IndexDocumentParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.IndexDocumentParams) com.google.protobuf.MessageOrBuilder { /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ java.util.List getDocumentList(); /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ com.google.apphosting.api.search.DocumentPb.Document getDocument(int index); /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ int getDocumentCount(); /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ java.util.List getDocumentOrBuilderList(); /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder( int index); /** *
     * When the documents will be searchable.
     * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @return Whether the freshness field is set. */ @java.lang.Deprecated boolean hasFreshness(); /** *
     * When the documents will be searchable.
     * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @return The freshness. */ @java.lang.Deprecated com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness getFreshness(); /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 3; * @return Whether the indexSpec field is set. */ boolean hasIndexSpec(); /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 3; * @return The indexSpec. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(); /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(); } /** *
   * Write some documents to a named index, update existing documents.
   * 
* * Protobuf type {@code java.apphosting.IndexDocumentParams} */ public static final class IndexDocumentParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.IndexDocumentParams) IndexDocumentParamsOrBuilder { private static final long serialVersionUID = 0L; // Use IndexDocumentParams.newBuilder() to construct. private IndexDocumentParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IndexDocumentParams() { document_ = java.util.Collections.emptyList(); freshness_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IndexDocumentParams(); } @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_IndexDocumentParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.class, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Builder.class); } /** *
     * When to write the documents to the index.
     * 
* * Protobuf enum {@code java.apphosting.IndexDocumentParams.Freshness} */ public enum Freshness implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Blocks until documents are searchable.
       * 
* * SYNCHRONOUSLY = 0; */ SYNCHRONOUSLY(0), /** *
       * Inserts documents when convenient for the back end.
       * 
* * WHEN_CONVENIENT = 1; */ WHEN_CONVENIENT(1), ; /** *
       * Blocks until documents are searchable.
       * 
* * 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 documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ @java.lang.Override public java.util.List getDocumentList() { return document_; } /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ @java.lang.Override public java.util.List getDocumentOrBuilderList() { return document_; } /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ @java.lang.Override public int getDocumentCount() { return document_.size(); } /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ @java.lang.Override public com.google.apphosting.api.search.DocumentPb.Document getDocument(int index) { return document_.get(index); } /** *
     * The documents to write to the index.
     * 
* * repeated .storage_onestore_v3.Document document = 1; */ @java.lang.Override public com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder( int index) { return document_.get(index); } public static final int FRESHNESS_FIELD_NUMBER = 2; private int freshness_ = 0; /** *
     * When the documents will be searchable.
     * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @return Whether the freshness field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasFreshness() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * When the documents will be searchable.
     * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @return The freshness. */ @java.lang.Override @java.lang.Deprecated public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness getFreshness() { com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness result = com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness.forNumber(freshness_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness.SYNCHRONOUSLY : result; } public static final int INDEX_SPEC_FIELD_NUMBER = 3; private com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_; /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 3; * @return Whether the indexSpec field is set. */ @java.lang.Override public boolean hasIndexSpec() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 3; * @return The indexSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ @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; } for (int i = 0; i < getDocumentCount(); i++) { if (!getDocument(i).isInitialized()) { 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 < document_.size(); i++) { output.writeMessage(1, document_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(2, freshness_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getIndexSpec()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < document_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, document_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, freshness_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, 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.IndexDocumentParams)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams other = (com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams) obj; if (!getDocumentList() .equals(other.getDocumentList())) return false; if (hasFreshness() != other.hasFreshness()) return false; if (hasFreshness()) { if (freshness_ != other.freshness_) 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 (getDocumentCount() > 0) { hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getDocumentList().hashCode(); } if (hasFreshness()) { hash = (37 * hash) + FRESHNESS_FIELD_NUMBER; hash = (53 * hash) + freshness_; } 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.IndexDocumentParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams 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.IndexDocumentParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams 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.IndexDocumentParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams 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.IndexDocumentParams 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.IndexDocumentParams 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.IndexDocumentParams 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.IndexDocumentParams 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.IndexDocumentParams 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.IndexDocumentParams 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.IndexDocumentParams 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; } /** *
     * Write some documents to a named index, update existing documents.
     * 
* * Protobuf type {@code java.apphosting.IndexDocumentParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.IndexDocumentParams) com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.class, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDocumentFieldBuilder(); getIndexSpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (documentBuilder_ == null) { document_ = java.util.Collections.emptyList(); } else { document_ = null; documentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); freshness_ = 0; 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_IndexDocumentParams_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams build() { com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams result = new com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams result) { if (documentBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { document_ = java.util.Collections.unmodifiableList(document_); bitField0_ = (bitField0_ & ~0x00000001); } result.document_ = document_; } else { result.document_ = documentBuilder_.build(); } } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.freshness_ = freshness_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.indexSpec_ = indexSpecBuilder_ == null ? indexSpec_ : indexSpecBuilder_.build(); 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.IndexDocumentParams) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDefaultInstance()) return this; if (documentBuilder_ == null) { if (!other.document_.isEmpty()) { if (document_.isEmpty()) { document_ = other.document_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDocumentIsMutable(); document_.addAll(other.document_); } onChanged(); } } else { if (!other.document_.isEmpty()) { if (documentBuilder_.isEmpty()) { documentBuilder_.dispose(); documentBuilder_ = null; document_ = other.document_; bitField0_ = (bitField0_ & ~0x00000001); documentBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDocumentFieldBuilder() : null; } else { documentBuilder_.addAllMessages(other.document_); } } } if (other.hasFreshness()) { setFreshness(other.getFreshness()); } if (other.hasIndexSpec()) { mergeIndexSpec(other.getIndexSpec()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasIndexSpec()) { return false; } for (int i = 0; i < getDocumentCount(); i++) { if (!getDocument(i).isInitialized()) { 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.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 10 case 16: { int tmpRaw = input.readEnum(); com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness tmpValue = com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { freshness_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 case 26: { input.readMessage( getIndexSpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List document_ = java.util.Collections.emptyList(); private void ensureDocumentIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { document_ = new java.util.ArrayList(document_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder> documentBuilder_; /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public java.util.List getDocumentList() { if (documentBuilder_ == null) { return java.util.Collections.unmodifiableList(document_); } else { return documentBuilder_.getMessageList(); } } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public int getDocumentCount() { if (documentBuilder_ == null) { return document_.size(); } else { return documentBuilder_.getCount(); } } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public com.google.apphosting.api.search.DocumentPb.Document getDocument(int index) { if (documentBuilder_ == null) { return document_.get(index); } else { return documentBuilder_.getMessage(index); } } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder setDocument( int index, com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentIsMutable(); document_.set(index, value); onChanged(); } else { documentBuilder_.setMessage(index, value); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder setDocument( int index, com.google.apphosting.api.search.DocumentPb.Document.Builder builderForValue) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.set(index, builderForValue.build()); onChanged(); } else { documentBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder addDocument(com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentIsMutable(); document_.add(value); onChanged(); } else { documentBuilder_.addMessage(value); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder addDocument( int index, com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentIsMutable(); document_.add(index, value); onChanged(); } else { documentBuilder_.addMessage(index, value); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder addDocument( com.google.apphosting.api.search.DocumentPb.Document.Builder builderForValue) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.add(builderForValue.build()); onChanged(); } else { documentBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder addDocument( int index, com.google.apphosting.api.search.DocumentPb.Document.Builder builderForValue) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.add(index, builderForValue.build()); onChanged(); } else { documentBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder addAllDocument( java.lang.Iterable values) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, document_); onChanged(); } else { documentBuilder_.addAllMessages(values); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder clearDocument() { if (documentBuilder_ == null) { document_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { documentBuilder_.clear(); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public Builder removeDocument(int index) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.remove(index); onChanged(); } else { documentBuilder_.remove(index); } return this; } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public com.google.apphosting.api.search.DocumentPb.Document.Builder getDocumentBuilder( int index) { return getDocumentFieldBuilder().getBuilder(index); } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder( int index) { if (documentBuilder_ == null) { return document_.get(index); } else { return documentBuilder_.getMessageOrBuilder(index); } } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public java.util.List getDocumentOrBuilderList() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(document_); } } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public com.google.apphosting.api.search.DocumentPb.Document.Builder addDocumentBuilder() { return getDocumentFieldBuilder().addBuilder( com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance()); } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public com.google.apphosting.api.search.DocumentPb.Document.Builder addDocumentBuilder( int index) { return getDocumentFieldBuilder().addBuilder( index, com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance()); } /** *
       * The documents to write to the index.
       * 
* * repeated .storage_onestore_v3.Document document = 1; */ public java.util.List getDocumentBuilderList() { return getDocumentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { documentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder>( document_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; } private int freshness_ = 0; /** *
       * When the documents will be searchable.
       * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @return Whether the freshness field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasFreshness() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * When the documents will be searchable.
       * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @return The freshness. */ @java.lang.Override @java.lang.Deprecated public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness getFreshness() { com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness result = com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness.forNumber(freshness_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness.SYNCHRONOUSLY : result; } /** *
       * When the documents will be searchable.
       * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @param value The freshness to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setFreshness(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Freshness value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; freshness_ = value.getNumber(); onChanged(); return this; } /** *
       * When the documents will be searchable.
       * 
* * optional .java.apphosting.IndexDocumentParams.Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated = true]; * @deprecated java.apphosting.IndexDocumentParams.freshness is deprecated. * See search_service.proto;l=226 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearFreshness() { bitField0_ = (bitField0_ & ~0x00000002); freshness_ = 0; onChanged(); return this; } 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 specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; * @return Whether the indexSpec field is set. */ public boolean hasIndexSpec() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; * @return The indexSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { if (indexSpecBuilder_ == null) { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } else { return indexSpecBuilder_.getMessage(); } } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ public Builder setIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSpec_ = value; } else { indexSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ public Builder setIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { indexSpec_ = builderForValue.build(); } else { indexSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ public Builder mergeIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && indexSpec_ != null && indexSpec_ != com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) { getIndexSpecBuilder().mergeFrom(value); } else { indexSpec_ = value; } } else { indexSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ public Builder clearIndexSpec() { bitField0_ = (bitField0_ & ~0x00000004); indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder() { bitField0_ |= 0x00000004; onChanged(); return getIndexSpecFieldBuilder().getBuilder(); } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilder(); } else { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 3; */ 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new 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>( getIndexSpec(), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } @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.IndexDocumentParams) } // @@protoc_insertion_point(class_scope:java.apphosting.IndexDocumentParams) private static final com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams(); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IndexDocumentParams 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.IndexDocumentParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IndexDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.IndexDocumentRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The parameters describing document to index.
     * 
* * required .java.apphosting.IndexDocumentParams params = 1; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * The parameters describing document to index.
     * 
* * required .java.apphosting.IndexDocumentParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams getParams(); /** *
     * The parameters describing document to index.
     * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * A request to index specific documents.
   * 
* * Protobuf type {@code java.apphosting.IndexDocumentRequest} */ public static final class IndexDocumentRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.IndexDocumentRequest) IndexDocumentRequestOrBuilder { private static final long serialVersionUID = 0L; // Use IndexDocumentRequest.newBuilder() to construct. private IndexDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IndexDocumentRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IndexDocumentRequest(); } @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_IndexDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest.class, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams params_; /** *
     * The parameters describing document to index.
     * 
* * required .java.apphosting.IndexDocumentParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters describing document to index.
     * 
* * required .java.apphosting.IndexDocumentParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDefaultInstance() : params_; } /** *
     * The parameters describing document to index.
     * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { memoizedIsInitialized = 0; return false; } if (!getParams().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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(3, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, appId_); } 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.IndexDocumentRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest other = (com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest 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.IndexDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest 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.IndexDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest 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.IndexDocumentRequest 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.IndexDocumentRequest 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.IndexDocumentRequest 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.IndexDocumentRequest 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.IndexDocumentRequest 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.IndexDocumentRequest 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.IndexDocumentRequest 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 request to index specific documents.
     * 
* * Protobuf type {@code java.apphosting.IndexDocumentRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.IndexDocumentRequest) com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest.class, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_IndexDocumentRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest build() { com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest result = new com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.IndexDocumentRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { return false; } if (!getParams().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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 26: { appId_ = input.readBytes(); bitField0_ |= 0x00000002; 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 com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParamsOrBuilder> paramsBuilder_; /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.getDefaultInstance() : params_; } } /** *
       * The parameters describing document to index.
       * 
* * required .java.apphosting.IndexDocumentParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.IndexDocumentRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.IndexDocumentRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.IndexDocumentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IndexDocumentRequest 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.IndexDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IndexDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.IndexDocumentResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status of a individual document index request.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ java.util.List getStatusList(); /** *
     * The status of a individual document index request.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(int index); /** *
     * The status of a individual document index request.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ int getStatusCount(); /** *
     * The status of a individual document index request.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ java.util.List getStatusOrBuilderList(); /** *
     * 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 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.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(builderForValue.build()); } 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.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(index, builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The status of a individual document index request.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addAllStatus( java.lang.Iterable values) { if (statusBuilder_ == null) { ensureStatusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, status_); onChanged(); } else { statusBuilder_.addAllMessages(values); } return this; } /** *
       * The status of a individual document index request.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { statusBuilder_.clear(); } return this; } /** *
       * The status of a individual document index request.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder removeStatus(int index) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.remove(index); onChanged(); } else { statusBuilder_.remove(index); } return this; } /** *
       * The status of a individual document index request.
       * 
* * 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 individual document index request.
       * 
* * 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 individual document index request.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public java.util.List getStatusOrBuilderList() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(status_); } } /** *
       * The status of a individual document index request.
       * 
* * 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 individual document index request.
       * 
* * 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 individual document index request.
       * 
* * 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_; } private com.google.protobuf.LazyStringList docId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDocIdIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { docId_ = new com.google.protobuf.LazyStringArrayList(docId_); bitField0_ |= 0x00000002; } } /** *
       * 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.
       * 
* * repeated string doc_id = 2; * @return This builder for chaining. */ public Builder clearDocId() { docId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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 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(); /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 2; * @return The indexSpec. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(); /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(); } /** *
   * 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); } /** *
     * The specification of the index.
     * 
* * required .java.apphosting.IndexSpec index_spec = 2; * @return The indexSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } /** *
     * The specification of the index.
     * 
* * 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 identifiers of the documents to delete.
       * 
* * repeated string doc_id = 1; * @return This builder for chaining. */ public Builder clearDocId() { docId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The identifiers of the documents to delete.
       * 
* * repeated string doc_id = 1; * @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; } 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 specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; * @return Whether the indexSpec field is set. */ public boolean hasIndexSpec() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; * @return The indexSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { if (indexSpecBuilder_ == null) { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } else { return indexSpecBuilder_.getMessage(); } } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ public Builder setIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSpec_ = value; } else { indexSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ public Builder setIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { indexSpec_ = builderForValue.build(); } else { indexSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ public Builder mergeIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && indexSpec_ != null && indexSpec_ != com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) { getIndexSpecBuilder().mergeFrom(value); } else { indexSpec_ = value; } } else { indexSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ public Builder clearIndexSpec() { bitField0_ = (bitField0_ & ~0x00000002); indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } onChanged(); return this; } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getIndexSpecFieldBuilder().getBuilder(); } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilder(); } else { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } } /** *
       * The specification of the index.
       * 
* * required .java.apphosting.IndexSpec index_spec = 2; */ 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new 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>( getIndexSpec(), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } @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.DeleteDocumentParams) } // @@protoc_insertion_point(class_scope:java.apphosting.DeleteDocumentParams) private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams(); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDocumentParams 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.DeleteDocumentParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.DeleteDocumentRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The parameters describing documents to delete.
     * 
* * required .java.apphosting.DeleteDocumentParams params = 1; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * The parameters describing documents to delete.
     * 
* * required .java.apphosting.DeleteDocumentParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams getParams(); /** *
     * The parameters describing documents to delete.
     * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * The request to delete given set of documents.
   * 
* * Protobuf type {@code java.apphosting.DeleteDocumentRequest} */ public static final class DeleteDocumentRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.DeleteDocumentRequest) DeleteDocumentRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDocumentRequest.newBuilder() to construct. private DeleteDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDocumentRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDocumentRequest(); } @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_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams params_; /** *
     * The parameters describing documents to delete.
     * 
* * required .java.apphosting.DeleteDocumentParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters describing documents to delete.
     * 
* * required .java.apphosting.DeleteDocumentParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.getDefaultInstance() : params_; } /** *
     * The parameters describing documents to delete.
     * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { memoizedIsInitialized = 0; return false; } if (!getParams().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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(3, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, appId_); } 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.DeleteDocumentRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest 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.DeleteDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest 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.DeleteDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest 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.DeleteDocumentRequest 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.DeleteDocumentRequest 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.DeleteDocumentRequest 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.DeleteDocumentRequest 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.DeleteDocumentRequest 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.DeleteDocumentRequest 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.DeleteDocumentRequest 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 request to delete given set of documents.
     * 
* * Protobuf type {@code java.apphosting.DeleteDocumentRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.DeleteDocumentRequest) com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest build() { com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.DeleteDocumentRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { return false; } if (!getParams().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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 26: { appId_ = input.readBytes(); bitField0_ |= 0x00000002; 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 com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParamsOrBuilder> paramsBuilder_; /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.getDefaultInstance() : params_; } } /** *
       * The parameters describing documents to delete.
       * 
* * required .java.apphosting.DeleteDocumentParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.DeleteDocumentRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.DeleteDocumentRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDocumentRequest 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.DeleteDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.DeleteDocumentResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ java.util.List getStatusList(); /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(int index); /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ int getStatusCount(); /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ java.util.List getStatusOrBuilderList(); /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder( int index); } /** *
   * A response to a delete document request.
   * 
* * Protobuf type {@code java.apphosting.DeleteDocumentResponse} */ public static final class DeleteDocumentResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.DeleteDocumentResponse) DeleteDocumentResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDocumentResponse.newBuilder() to construct. private DeleteDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDocumentResponse() { status_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDocumentResponse(); } @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_DeleteDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List status_; /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ @java.lang.Override public java.util.List getStatusList() { return status_; } /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ @java.lang.Override public java.util.List getStatusOrBuilderList() { return status_; } /** *
     * The status of a document delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ @java.lang.Override public int getStatusCount() { return status_.size(); } /** *
     * The status of a document delete.
     * 
* * 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 document delete.
     * 
* * 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); } 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)); } 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)); } 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.DeleteDocumentResponse)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse) obj; if (!getStatusList() .equals(other.getStatusList())) 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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse 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.DeleteDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse 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.DeleteDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse 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.DeleteDocumentResponse 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.DeleteDocumentResponse 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.DeleteDocumentResponse 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.DeleteDocumentResponse 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.DeleteDocumentResponse 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.DeleteDocumentResponse 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.DeleteDocumentResponse 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 a delete document request.
     * 
* * Protobuf type {@code java.apphosting.DeleteDocumentResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.DeleteDocumentResponse) com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse.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); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteDocumentResponse_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse build() { com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse 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(); } } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse 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.DeleteDocumentResponse) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse.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_); } } } 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 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 document delete.
       * 
* * 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 document delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public int getStatusCount() { if (statusBuilder_ == null) { return status_.size(); } else { return statusBuilder_.getCount(); } } /** *
       * The status of a document delete.
       * 
* * 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 document delete.
       * 
* * 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 document delete.
       * 
* * 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 document delete.
       * 
* * 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 document delete.
       * 
* * 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 document delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The status of a document delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addStatus( int index, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(index, builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The status of a document delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addAllStatus( java.lang.Iterable values) { if (statusBuilder_ == null) { ensureStatusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, status_); onChanged(); } else { statusBuilder_.addAllMessages(values); } return this; } /** *
       * The status of a document delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { statusBuilder_.clear(); } return this; } /** *
       * The status of a document delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder removeStatus(int index) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.remove(index); onChanged(); } else { statusBuilder_.remove(index); } return this; } /** *
       * The status of a document delete.
       * 
* * 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 document 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 document delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public java.util.List getStatusOrBuilderList() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(status_); } } /** *
       * The status of a document 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 document 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 document 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.DeleteDocumentResponse) } // @@protoc_insertion_point(class_scope:java.apphosting.DeleteDocumentResponse) private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse(); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteDocumentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDocumentResponse 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.DeleteDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDocumentsParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ListDocumentsParams) com.google.protobuf.MessageOrBuilder { /** *
     * The index from which to list documents.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ boolean hasIndexSpec(); /** *
     * The index from which to list documents.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(); /** *
     * The index from which to list documents.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(); /** *
     * 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.
     * 
* * optional string start_doc_id = 2; * @return The startDocId. */ java.lang.String getStartDocId(); /** *
     * 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.
     * 
* * optional bool include_start_doc = 3 [default = true]; * @return The includeStartDoc. */ boolean getIncludeStartDoc(); /** *
     * The maximum number of documents to return.
     * 
* * optional int32 limit = 4 [default = 100]; * @return Whether the limit field is set. */ boolean hasLimit(); /** *
     * The maximum number of documents to return.
     * 
* * optional int32 limit = 4 [default = 100]; * @return The limit. */ int getLimit(); /** *
     * Specifies whether complete documents are returned, or just their keys.
     * 
* * optional bool keys_only = 5; * @return Whether the keysOnly field is set. */ boolean hasKeysOnly(); /** *
     * Specifies whether complete documents are returned, or just their keys.
     * 
* * optional bool keys_only = 5; * @return The keysOnly. */ boolean getKeysOnly(); } /** *
   * The parameters for listing documents in an index.
   * 
* * Protobuf type {@code java.apphosting.ListDocumentsParams} */ public static final class ListDocumentsParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ListDocumentsParams) ListDocumentsParamsOrBuilder { private static final long serialVersionUID = 0L; // Use ListDocumentsParams.newBuilder() to construct. private ListDocumentsParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDocumentsParams() { startDocId_ = ""; includeStartDoc_ = true; limit_ = 100; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDocumentsParams(); } @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_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); } private int bitField0_; public static final int INDEX_SPEC_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_; /** *
     * The index from which to list documents.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ @java.lang.Override public boolean hasIndexSpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The index from which to list documents.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } /** *
     * The index from which to list documents.
     * 
* * 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.
     * 
* * optional string start_doc_id = 2; * @return The startDocId. */ @java.lang.Override public java.lang.String getStartDocId() { java.lang.Object ref = startDocId_; 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()) { startDocId_ = s; } return s; } } /** *
     * 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 index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { if (indexSpecBuilder_ == null) { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } else { return indexSpecBuilder_.getMessage(); } } /** *
       * The index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSpec_ = value; } else { indexSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { indexSpec_ = builderForValue.build(); } else { indexSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder mergeIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && indexSpec_ != null && indexSpec_ != com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) { getIndexSpecBuilder().mergeFrom(value); } else { indexSpec_ = value; } } else { indexSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder clearIndexSpec() { bitField0_ = (bitField0_ & ~0x00000001); indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } onChanged(); return this; } /** *
       * The index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIndexSpecFieldBuilder().getBuilder(); } /** *
       * The index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilder(); } else { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } } /** *
       * The index from which to list documents.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new 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>( getIndexSpec(), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } private 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. */ 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.
       * 
* * optional string start_doc_id = 2; * @return The startDocId. */ public java.lang.String getStartDocId() { java.lang.Object ref = startDocId_; 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()) { startDocId_ = s; } return s; } else { return (java.lang.String) 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; * @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.
       * 
* * optional string start_doc_id = 2; * @return This builder for chaining. */ public Builder clearStartDocId() { startDocId_ = getDefaultInstance().getStartDocId(); bitField0_ = (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.
       * 
* * 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.
       * 
* * optional bool include_start_doc = 3 [default = true]; * @return The includeStartDoc. */ @java.lang.Override public boolean getIncludeStartDoc() { return includeStartDoc_; } /** *
       * 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; } /** *
       * The maximum number of documents to return.
       * 
* * optional int32 limit = 4 [default = 100]; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000008); limit_ = 100; onChanged(); return this; } private boolean keysOnly_ ; /** *
       * 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_; } /** *
       * Specifies whether complete documents are returned, or just their keys.
       * 
* * optional bool keys_only = 5; * @param value The keysOnly to set. * @return This builder for chaining. */ public Builder setKeysOnly(boolean value) { keysOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Specifies whether complete documents are returned, or just their keys.
       * 
* * optional bool keys_only = 5; * @return This builder for chaining. */ public Builder clearKeysOnly() { bitField0_ = (bitField0_ & ~0x00000010); keysOnly_ = 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.ListDocumentsParams) } // @@protoc_insertion_point(class_scope:java.apphosting.ListDocumentsParams) private static final com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams(); } public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDocumentsParams 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.ListDocumentsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ListDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The parameters of documents to be listed.
     * 
* * required .java.apphosting.ListDocumentsParams params = 1; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * The parameters of documents to be listed.
     * 
* * required .java.apphosting.ListDocumentsParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams getParams(); /** *
     * The parameters of documents to be listed.
     * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * The request to list documents in an index.
   * 
* * Protobuf type {@code java.apphosting.ListDocumentsRequest} */ public static final class ListDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ListDocumentsRequest) ListDocumentsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListDocumentsRequest.newBuilder() to construct. private ListDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDocumentsRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDocumentsRequest(); } @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_ListDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest.class, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams params_; /** *
     * The parameters of documents to be listed.
     * 
* * required .java.apphosting.ListDocumentsParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters of documents to be listed.
     * 
* * required .java.apphosting.ListDocumentsParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.getDefaultInstance() : params_; } /** *
     * The parameters of documents to be listed.
     * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { memoizedIsInitialized = 0; return false; } if (!getParams().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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, appId_); } 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.ListDocumentsRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest other = (com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest 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.ListDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest 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.ListDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest 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.ListDocumentsRequest 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.ListDocumentsRequest 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.ListDocumentsRequest 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.ListDocumentsRequest 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.ListDocumentsRequest 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.ListDocumentsRequest 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.ListDocumentsRequest 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 request to list documents in an index.
     * 
* * Protobuf type {@code java.apphosting.ListDocumentsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.ListDocumentsRequest) com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest.class, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListDocumentsRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest build() { com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest result = new com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.ListDocumentsRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { return false; } if (!getParams().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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { appId_ = input.readBytes(); 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.appengine.api.search.proto.SearchServicePb.ListDocumentsParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsOrBuilder> paramsBuilder_; /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.getDefaultInstance() : params_; } } /** *
       * The parameters of documents to be listed.
       * 
* * required .java.apphosting.ListDocumentsParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.ListDocumentsRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.ListDocumentsRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDocumentsRequest 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.ListDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ListDocumentsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status of the list documents request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * The status of the list documents request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return The status. */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(); /** *
     * The status of the list documents request.
     * 
* * required .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(); /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ java.util.List getDocumentList(); /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ com.google.apphosting.api.search.DocumentPb.Document getDocument(int index); /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ int getDocumentCount(); /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ java.util.List getDocumentOrBuilderList(); /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder( int index); } /** *
   * The response to a request to list documents.
   * 
* * 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_; /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ @java.lang.Override public java.util.List getDocumentList() { return document_; } /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ @java.lang.Override public java.util.List getDocumentOrBuilderList() { return document_; } /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ @java.lang.Override public int getDocumentCount() { return document_.size(); } /** *
     * The document list.
     * 
* * repeated .storage_onestore_v3.Document document = 2; */ @java.lang.Override public com.google.apphosting.api.search.DocumentPb.Document getDocument(int index) { return document_.get(index); } /** *
     * The document list.
     * 
* * 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; } /** *
       * The status of the list documents request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder setStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of the list documents request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder mergeStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of the list documents request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
       * The status of the list documents request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * The status of the list documents request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { 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; */ 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new 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>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List document_ = java.util.Collections.emptyList(); private void ensureDocumentIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { document_ = new java.util.ArrayList(document_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder> documentBuilder_; /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public java.util.List getDocumentList() { if (documentBuilder_ == null) { return java.util.Collections.unmodifiableList(document_); } else { return documentBuilder_.getMessageList(); } } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public int getDocumentCount() { if (documentBuilder_ == null) { return document_.size(); } else { return documentBuilder_.getCount(); } } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public com.google.apphosting.api.search.DocumentPb.Document getDocument(int index) { if (documentBuilder_ == null) { return document_.get(index); } else { return documentBuilder_.getMessage(index); } } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder setDocument( int index, com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentIsMutable(); document_.set(index, value); onChanged(); } else { documentBuilder_.setMessage(index, value); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder setDocument( int index, com.google.apphosting.api.search.DocumentPb.Document.Builder builderForValue) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.set(index, builderForValue.build()); onChanged(); } else { documentBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder addDocument(com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentIsMutable(); document_.add(value); onChanged(); } else { documentBuilder_.addMessage(value); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder addDocument( int index, com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentIsMutable(); document_.add(index, value); onChanged(); } else { documentBuilder_.addMessage(index, value); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder addDocument( com.google.apphosting.api.search.DocumentPb.Document.Builder builderForValue) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.add(builderForValue.build()); onChanged(); } else { documentBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder addDocument( int index, com.google.apphosting.api.search.DocumentPb.Document.Builder builderForValue) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.add(index, builderForValue.build()); onChanged(); } else { documentBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder addAllDocument( java.lang.Iterable values) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, document_); onChanged(); } else { documentBuilder_.addAllMessages(values); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder clearDocument() { if (documentBuilder_ == null) { document_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { documentBuilder_.clear(); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public Builder removeDocument(int index) { if (documentBuilder_ == null) { ensureDocumentIsMutable(); document_.remove(index); onChanged(); } else { documentBuilder_.remove(index); } return this; } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public com.google.apphosting.api.search.DocumentPb.Document.Builder getDocumentBuilder( int index) { return getDocumentFieldBuilder().getBuilder(index); } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder( int index) { if (documentBuilder_ == null) { return document_.get(index); } else { return documentBuilder_.getMessageOrBuilder(index); } } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public java.util.List getDocumentOrBuilderList() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(document_); } } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public com.google.apphosting.api.search.DocumentPb.Document.Builder addDocumentBuilder() { return getDocumentFieldBuilder().addBuilder( com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance()); } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public com.google.apphosting.api.search.DocumentPb.Document.Builder addDocumentBuilder( int index) { return getDocumentFieldBuilder().addBuilder( index, com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance()); } /** *
       * The document list.
       * 
* * repeated .storage_onestore_v3.Document document = 2; */ public java.util.List getDocumentBuilderList() { return getDocumentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { documentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder>( document_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; } @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.ListDocumentsResponse) } // @@protoc_insertion_point(class_scope:java.apphosting.ListDocumentsResponse) private static final com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse(); } public static com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDocumentsResponse 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.ListDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteIndexParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.DeleteIndexParams) com.google.protobuf.MessageOrBuilder { /** *
     * The index to be deleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ boolean hasIndexSpec(); /** *
     * The index to be deleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(); /** *
     * The index to be deleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(); } /** *
   * The parameters for deleting an index.
   * 
* * Protobuf type {@code java.apphosting.DeleteIndexParams} */ public static final class DeleteIndexParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.DeleteIndexParams) DeleteIndexParamsOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteIndexParams.newBuilder() to construct. private DeleteIndexParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteIndexParams() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteIndexParams(); } @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_DeleteIndexParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.Builder.class); } private int bitField0_; public static final int INDEX_SPEC_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_; /** *
     * The index to be deleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ @java.lang.Override public boolean hasIndexSpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The index to be deleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } /** *
     * The index to be deleted.
     * 
* * 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_; } 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()); } 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()); } 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.DeleteIndexParams)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams) obj; 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 (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.DeleteIndexParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams 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.DeleteIndexParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams 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.DeleteIndexParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams 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.DeleteIndexParams 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.DeleteIndexParams 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.DeleteIndexParams 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.DeleteIndexParams 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.DeleteIndexParams 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.DeleteIndexParams 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.DeleteIndexParams 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 deleting an index.
     * 
* * Protobuf type {@code java.apphosting.DeleteIndexParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.DeleteIndexParams) com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.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; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexParams_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams build() { com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 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.DeleteIndexParams) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.getDefaultInstance()) return this; 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: { input.readMessage( getIndexSpecFieldBuilder().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.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 to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ public boolean hasIndexSpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { if (indexSpecBuilder_ == null) { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } else { return indexSpecBuilder_.getMessage(); } } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSpec_ = value; } else { indexSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { indexSpec_ = builderForValue.build(); } else { indexSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder mergeIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && indexSpec_ != null && indexSpec_ != com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) { getIndexSpecBuilder().mergeFrom(value); } else { indexSpec_ = value; } } else { indexSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder clearIndexSpec() { bitField0_ = (bitField0_ & ~0x00000001); indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } onChanged(); return this; } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIndexSpecFieldBuilder().getBuilder(); } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilder(); } else { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } } /** *
       * The index to be deleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new 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>( getIndexSpec(), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } @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.DeleteIndexParams) } // @@protoc_insertion_point(class_scope:java.apphosting.DeleteIndexParams) private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams(); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteIndexParams 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.DeleteIndexParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteIndexRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.DeleteIndexRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The parameters of index to be deleted.
     * 
* * required .java.apphosting.DeleteIndexParams params = 1; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * The parameters of index to be deleted.
     * 
* * required .java.apphosting.DeleteIndexParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams getParams(); /** *
     * The parameters of index to be deleted.
     * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * The request to delete an index.
   * 
* * Protobuf type {@code java.apphosting.DeleteIndexRequest} */ public static final class DeleteIndexRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.DeleteIndexRequest) DeleteIndexRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteIndexRequest.newBuilder() to construct. private DeleteIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteIndexRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteIndexRequest(); } @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_DeleteIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams params_; /** *
     * The parameters of index to be deleted.
     * 
* * required .java.apphosting.DeleteIndexParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters of index to be deleted.
     * 
* * required .java.apphosting.DeleteIndexParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.getDefaultInstance() : params_; } /** *
     * The parameters of index to be deleted.
     * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { memoizedIsInitialized = 0; return false; } if (!getParams().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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, appId_); } 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.DeleteIndexRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest 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.DeleteIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest 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.DeleteIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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 request to delete an index.
     * 
* * Protobuf type {@code java.apphosting.DeleteIndexRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.DeleteIndexRequest) com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteIndexRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest build() { com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.DeleteIndexRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { return false; } if (!getParams().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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { appId_ = input.readBytes(); 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.appengine.api.search.proto.SearchServicePb.DeleteIndexParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParamsOrBuilder> paramsBuilder_; /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.getDefaultInstance() : params_; } } /** *
       * The parameters of index to be deleted.
       * 
* * required .java.apphosting.DeleteIndexParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.DeleteIndexRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.DeleteIndexRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteIndexRequest 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.DeleteIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteIndexResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.DeleteIndexResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status of the delete index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * The status of the delete index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return The status. */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(); /** *
     * The status of the delete index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(); } /** *
   * The response to a request to delete an index.
   * 
* * 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; } /** *
       * The status of the delete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder setStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of the delete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder mergeStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of the delete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
       * The status of the delete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * The status of the delete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { 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; */ 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new 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>( getStatus(), 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.DeleteIndexResponse) } // @@protoc_insertion_point(class_scope:java.apphosting.DeleteIndexResponse) private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse(); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteIndexResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteIndexResponse 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.DeleteIndexResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelDeleteIndexParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.CancelDeleteIndexParams) com.google.protobuf.MessageOrBuilder { /** *
     * The index to be undeleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ boolean hasIndexSpec(); /** *
     * The index to be undeleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(); /** *
     * The index to be undeleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(); } /** *
   * The parameters for undeleting an index.
   * 
* * Protobuf type {@code java.apphosting.CancelDeleteIndexParams} */ public static final class CancelDeleteIndexParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.CancelDeleteIndexParams) CancelDeleteIndexParamsOrBuilder { private static final long serialVersionUID = 0L; // Use CancelDeleteIndexParams.newBuilder() to construct. private CancelDeleteIndexParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CancelDeleteIndexParams() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CancelDeleteIndexParams(); } @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_CancelDeleteIndexParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.class, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.Builder.class); } private int bitField0_; public static final int INDEX_SPEC_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_; /** *
     * The index to be undeleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ @java.lang.Override public boolean hasIndexSpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The index to be undeleted.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } /** *
     * The index to be undeleted.
     * 
* * 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_; } 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()); } 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()); } 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.CancelDeleteIndexParams)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams other = (com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams) obj; 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 (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.CancelDeleteIndexParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams 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.CancelDeleteIndexParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams 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.CancelDeleteIndexParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams 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.CancelDeleteIndexParams 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.CancelDeleteIndexParams 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.CancelDeleteIndexParams 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.CancelDeleteIndexParams 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.CancelDeleteIndexParams 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.CancelDeleteIndexParams 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.CancelDeleteIndexParams 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 undeleting an index.
     * 
* * Protobuf type {@code java.apphosting.CancelDeleteIndexParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.CancelDeleteIndexParams) com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.class, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.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; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexParams_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams build() { com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams result = new com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 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.CancelDeleteIndexParams) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.getDefaultInstance()) return this; 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: { input.readMessage( getIndexSpecFieldBuilder().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.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 to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ public boolean hasIndexSpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { if (indexSpecBuilder_ == null) { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } else { return indexSpecBuilder_.getMessage(); } } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSpec_ = value; } else { indexSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { indexSpec_ = builderForValue.build(); } else { indexSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder mergeIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && indexSpec_ != null && indexSpec_ != com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) { getIndexSpecBuilder().mergeFrom(value); } else { indexSpec_ = value; } } else { indexSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder clearIndexSpec() { bitField0_ = (bitField0_ & ~0x00000001); indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } onChanged(); return this; } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIndexSpecFieldBuilder().getBuilder(); } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilder(); } else { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } } /** *
       * The index to be undeleted.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new 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>( getIndexSpec(), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } @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.CancelDeleteIndexParams) } // @@protoc_insertion_point(class_scope:java.apphosting.CancelDeleteIndexParams) private static final com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams(); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CancelDeleteIndexParams 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.CancelDeleteIndexParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelDeleteIndexRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.CancelDeleteIndexRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The parameters of index to be undeleted.
     * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * The parameters of index to be undeleted.
     * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams getParams(); /** *
     * The parameters of index to be undeleted.
     * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * The request to undelete an index.
   * 
* * Protobuf type {@code java.apphosting.CancelDeleteIndexRequest} */ public static final class CancelDeleteIndexRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.CancelDeleteIndexRequest) CancelDeleteIndexRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CancelDeleteIndexRequest.newBuilder() to construct. private CancelDeleteIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CancelDeleteIndexRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CancelDeleteIndexRequest(); } @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_CancelDeleteIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest.class, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams params_; /** *
     * The parameters of index to be undeleted.
     * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters of index to be undeleted.
     * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.getDefaultInstance() : params_; } /** *
     * The parameters of index to be undeleted.
     * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 2; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { memoizedIsInitialized = 0; return false; } if (!getParams().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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, appId_); } 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.CancelDeleteIndexRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest other = (com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest 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.CancelDeleteIndexRequest 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 request to undelete an index.
     * 
* * Protobuf type {@code java.apphosting.CancelDeleteIndexRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.CancelDeleteIndexRequest) com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest.class, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_CancelDeleteIndexRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest build() { com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest result = new com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.CancelDeleteIndexRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { return false; } if (!getParams().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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { appId_ = input.readBytes(); 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.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParamsOrBuilder> paramsBuilder_; /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.getDefaultInstance() : params_; } } /** *
       * The parameters of index to be undeleted.
       * 
* * required .java.apphosting.CancelDeleteIndexParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 2; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.CancelDeleteIndexRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.CancelDeleteIndexRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CancelDeleteIndexRequest 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.CancelDeleteIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelDeleteIndexResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.CancelDeleteIndexResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status of the undelete index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * The status of the undelete index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return The status. */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(); /** *
     * The status of the undelete index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(); } /** *
   * The response to a request to undelete index.
   * 
* * 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 status of the undelete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder setStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of the undelete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder mergeStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of the undelete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
       * The status of the undelete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * The status of the undelete index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { 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; */ 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new 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>( getStatus(), 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.CancelDeleteIndexResponse) } // @@protoc_insertion_point(class_scope:java.apphosting.CancelDeleteIndexResponse) private static final com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse(); } public static com.google.appengine.api.search.proto.SearchServicePb.CancelDeleteIndexResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CancelDeleteIndexResponse 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.CancelDeleteIndexResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListIndexesParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ListIndexesParams) com.google.protobuf.MessageOrBuilder { /** *
     * Fetch schema of corresponding indexes if the flag is true.
     * 
* * optional bool fetch_schema = 1; * @return Whether the fetchSchema field is set. */ boolean hasFetchSchema(); /** *
     * Fetch schema of corresponding indexes if the flag is true.
     * 
* * optional bool fetch_schema = 1; * @return The fetchSchema. */ boolean getFetchSchema(); /** *
     * The number of indexes returned. If not specified we return
     * 20 indexes.
     * 
* * optional int32 limit = 2 [default = 20]; * @return Whether the limit field is set. */ boolean hasLimit(); /** *
     * The number of indexes returned. If not specified we return
     * 20 indexes.
     * 
* * optional int32 limit = 2 [default = 20]; * @return The limit. */ int getLimit(); /** *
     * The namespace of indexes to returned. If not specified
     * we return indexes that belong to the default namespace.
     * 
* * optional string namespace = 3; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** *
     * The namespace of indexes to returned. If not specified
     * we return indexes that belong to the default namespace.
     * 
* * optional string namespace = 3; * @return The namespace. */ java.lang.String getNamespace(); /** *
     * 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.
     * 
* * optional string start_index_name = 4; * @return The startIndexName. */ java.lang.String getStartIndexName(); /** *
     * 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.
     * 
* * optional bool include_start_index = 5 [default = true]; * @return The includeStartIndex. */ boolean getIncludeStartIndex(); /** *
     * 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. */ boolean hasIndexNamePrefix(); /** *
     * 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 indexNamePrefix. */ java.lang.String getIndexNamePrefix(); /** *
     * 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. */ com.google.protobuf.ByteString getIndexNamePrefixBytes(); /** *
     * The offset to be used with limit for arbitrary paging.
     * 
* * optional int32 offset = 7; * @return Whether the offset field is set. */ boolean hasOffset(); /** *
     * The offset to be used with limit for arbitrary paging.
     * 
* * optional int32 offset = 7; * @return The offset. */ int getOffset(); /** *
     * The source of the documents being indexed.
     * 
* * optional .java.apphosting.IndexSpec.Source source = 8 [default = SEARCH]; * @return Whether the source field is set. */ boolean hasSource(); /** *
     * The source of the documents being indexed.
     * 
* * optional .java.apphosting.IndexSpec.Source source = 8 [default = SEARCH]; * @return The source. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source getSource(); /** *
     * 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).
     * 
* * optional bool all_namespaces = 9; * @return The allNamespaces. */ boolean getAllNamespaces(); } /** *
   * Get a list of indexes available.
   * 
* * Protobuf type {@code java.apphosting.ListIndexesParams} */ public static final class ListIndexesParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ListIndexesParams) ListIndexesParamsOrBuilder { private static final long serialVersionUID = 0L; // Use ListIndexesParams.newBuilder() to construct. private ListIndexesParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListIndexesParams() { limit_ = 20; namespace_ = ""; startIndexName_ = ""; includeStartIndex_ = true; indexNamePrefix_ = ""; source_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListIndexesParams(); } @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_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); } private int bitField0_; public static final int FETCH_SCHEMA_FIELD_NUMBER = 1; private boolean fetchSchema_ = false; /** *
     * 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.
     * 
* * optional bool fetch_schema = 1; * @return The fetchSchema. */ @java.lang.Override public boolean getFetchSchema() { return fetchSchema_; } public static final int LIMIT_FIELD_NUMBER = 2; private int limit_ = 20; /** *
     * The number of indexes returned. If not specified we return
     * 20 indexes.
     * 
* * optional int32 limit = 2 [default = 20]; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The number of indexes returned. If not specified we return
     * 20 indexes.
     * 
* * optional int32 limit = 2 [default = 20]; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } public static final int NAMESPACE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** *
     * The namespace of indexes to returned. If not specified
     * we return indexes that belong to 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 of indexes to returned. If not specified
     * we return indexes that belong to the default namespace.
     * 
* * optional string namespace = 3; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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()) { namespace_ = s; } return s; } } /** *
     * 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.
     * 
* * optional string start_index_name = 4; * @return The startIndexName. */ @java.lang.Override public java.lang.String getStartIndexName() { java.lang.Object ref = startIndexName_; 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()) { startIndexName_ = s; } return s; } } /** *
     * 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.
     * 
* * optional string index_name_prefix = 6; * @return The indexNamePrefix. */ @java.lang.Override public java.lang.String getIndexNamePrefix() { java.lang.Object ref = indexNamePrefix_; 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()) { indexNamePrefix_ = s; } return s; } } /** *
     * 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.
       * 
* * optional bool fetch_schema = 1; * @return The fetchSchema. */ @java.lang.Override public boolean getFetchSchema() { return fetchSchema_; } /** *
       * Fetch schema of corresponding indexes if the flag is true.
       * 
* * optional bool fetch_schema = 1; * @param value The fetchSchema to set. * @return This builder for chaining. */ public Builder setFetchSchema(boolean value) { fetchSchema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Fetch schema of corresponding indexes if the flag is true.
       * 
* * optional bool fetch_schema = 1; * @return This builder for chaining. */ public Builder clearFetchSchema() { bitField0_ = (bitField0_ & ~0x00000001); fetchSchema_ = false; onChanged(); return this; } private int limit_ = 20; /** *
       * The number of indexes returned. If not specified we return
       * 20 indexes.
       * 
* * optional int32 limit = 2 [default = 20]; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The number of indexes returned. If not specified we return
       * 20 indexes.
       * 
* * optional int32 limit = 2 [default = 20]; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } /** *
       * The number of indexes returned. If not specified we return
       * 20 indexes.
       * 
* * optional int32 limit = 2 [default = 20]; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The number of indexes returned. If not specified we return
       * 20 indexes.
       * 
* * optional int32 limit = 2 [default = 20]; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000002); limit_ = 20; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** *
       * The namespace of indexes to returned. If not specified
       * we return indexes that belong to the default namespace.
       * 
* * optional string namespace = 3; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The namespace of indexes to returned. If not specified
       * we return indexes that belong to the default namespace.
       * 
* * optional string namespace = 3; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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()) { namespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * 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. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof 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; } } /** *
       * 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 namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; bitField0_ |= 0x00000004; 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 This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000004); 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; * @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.
       * 
* * optional string start_index_name = 4; * @return The startIndexName. */ public java.lang.String getStartIndexName() { java.lang.Object ref = startIndexName_; 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()) { startIndexName_ = s; } return s; } else { return (java.lang.String) 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; * @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.
       * 
* * optional string start_index_name = 4; * @return This builder for chaining. */ public Builder clearStartIndexName() { startIndexName_ = getDefaultInstance().getStartIndexName(); bitField0_ = (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.
       * 
* * 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.
       * 
* * optional bool include_start_index = 5 [default = true]; * @return The includeStartIndex. */ @java.lang.Override public boolean getIncludeStartIndex() { return includeStartIndex_; } /** *
       * 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.
       * 
* * optional bool include_start_index = 5 [default = true]; * @return This builder for chaining. */ public Builder clearIncludeStartIndex() { bitField0_ = (bitField0_ & ~0x00000010); includeStartIndex_ = true; onChanged(); return this; } private 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. */ 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.
       * 
* * optional string index_name_prefix = 6; * @return The indexNamePrefix. */ public java.lang.String getIndexNamePrefix() { java.lang.Object ref = indexNamePrefix_; 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()) { indexNamePrefix_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * 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. */ public com.google.protobuf.ByteString getIndexNamePrefixBytes() { java.lang.Object ref = indexNamePrefix_; if (ref instanceof 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; } } /** *
       * 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; * @param value The indexNamePrefix to set. * @return This builder for chaining. */ public Builder setIndexNamePrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } indexNamePrefix_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * 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 This builder for chaining. */ public Builder clearIndexNamePrefix() { indexNamePrefix_ = getDefaultInstance().getIndexNamePrefix(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * 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; * @param value The bytes for indexNamePrefix to set. * @return This builder for chaining. */ public Builder setIndexNamePrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } indexNamePrefix_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private int offset_ ; /** *
       * 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_; } /** *
       * The offset to be used with limit for arbitrary paging.
       * 
* * optional int32 offset = 7; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * The offset to be used with limit for arbitrary paging.
       * 
* * optional int32 offset = 7; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000040); offset_ = 0; onChanged(); return this; } 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; } /** *
       * The source of the documents being indexed.
       * 
* * optional .java.apphosting.IndexSpec.Source source = 8 [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_ |= 0x00000080; source_ = value.getNumber(); onChanged(); return this; } /** *
       * The source of the documents being indexed.
       * 
* * optional .java.apphosting.IndexSpec.Source source = 8 [default = SEARCH]; * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000080); source_ = 0; onChanged(); return this; } private boolean allNamespaces_ ; /** *
       * 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_; } /** *
       * 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 parameters of indexes to be listed.
     * 
* * required .java.apphosting.ListIndexesParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams getParams(); /** *
     * The parameters of indexes to be listed.
     * 
* * required .java.apphosting.ListIndexesParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * The request to list all known indexes.
   * 
* * Protobuf type {@code java.apphosting.ListIndexesRequest} */ public static final class ListIndexesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ListIndexesRequest) ListIndexesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListIndexesRequest.newBuilder() to construct. private ListIndexesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListIndexesRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListIndexesRequest(); } @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_ListIndexesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest.class, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams params_; /** *
     * The parameters of indexes to be listed.
     * 
* * required .java.apphosting.ListIndexesParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters of indexes to be listed.
     * 
* * required .java.apphosting.ListIndexesParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.getDefaultInstance() : params_; } /** *
     * The parameters of indexes to be listed.
     * 
* * required .java.apphosting.ListIndexesParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(3, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, appId_); } 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.ListIndexesRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest other = (com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest 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.ListIndexesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest 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.ListIndexesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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 request to list all known indexes.
     * 
* * Protobuf type {@code java.apphosting.ListIndexesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.ListIndexesRequest) com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest.class, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ListIndexesRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest build() { com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest result = new com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.ListIndexesRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { 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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 26: { appId_ = input.readBytes(); bitField0_ |= 0x00000002; 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 com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParamsOrBuilder> paramsBuilder_; /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.getDefaultInstance() : params_; } } /** *
       * The parameters of indexes to be listed.
       * 
* * required .java.apphosting.ListIndexesParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.ListIndexesParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.ListIndexesRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.ListIndexesRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListIndexesRequest 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.ListIndexesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListIndexesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ListIndexesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status of a individual document index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * The status of a individual document index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; * @return The status. */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(); /** *
     * The status of a individual document index request.
     * 
* * required .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(); /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ java.util.List getIndexMetadataList(); /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata getIndexMetadata(int index); /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ int getIndexMetadataCount(); /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ java.util.List getIndexMetadataOrBuilderList(); /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ com.google.appengine.api.search.proto.SearchServicePb.IndexMetadataOrBuilder getIndexMetadataOrBuilder( int index); } /** *
   * 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_; /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ @java.lang.Override public java.util.List getIndexMetadataList() { return indexMetadata_; } /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ @java.lang.Override public java.util.List getIndexMetadataOrBuilderList() { return indexMetadata_; } /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ @java.lang.Override public int getIndexMetadataCount() { return indexMetadata_.size(); } /** *
     * The information about available indexes.
     * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata getIndexMetadata(int index) { return indexMetadata_.get(index); } /** *
     * The information about available indexes.
     * 
* * 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.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder setStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of a individual document index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder mergeStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The status of a individual document index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
       * The status of a individual document index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * The status of a individual document index request.
       * 
* * required .java.apphosting.RequestStatus status = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { 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; */ 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new 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>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List indexMetadata_ = java.util.Collections.emptyList(); private void ensureIndexMetadataIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { indexMetadata_ = new java.util.ArrayList(indexMetadata_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadataOrBuilder> indexMetadataBuilder_; /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public java.util.List getIndexMetadataList() { if (indexMetadataBuilder_ == null) { return java.util.Collections.unmodifiableList(indexMetadata_); } else { return indexMetadataBuilder_.getMessageList(); } } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public int getIndexMetadataCount() { if (indexMetadataBuilder_ == null) { return indexMetadata_.size(); } else { return indexMetadataBuilder_.getCount(); } } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata getIndexMetadata(int index) { if (indexMetadataBuilder_ == null) { return indexMetadata_.get(index); } else { return indexMetadataBuilder_.getMessage(index); } } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder setIndexMetadata( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata value) { if (indexMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexMetadataIsMutable(); indexMetadata_.set(index, value); onChanged(); } else { indexMetadataBuilder_.setMessage(index, value); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder setIndexMetadata( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder builderForValue) { if (indexMetadataBuilder_ == null) { ensureIndexMetadataIsMutable(); indexMetadata_.set(index, builderForValue.build()); onChanged(); } else { indexMetadataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder addIndexMetadata(com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata value) { if (indexMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexMetadataIsMutable(); indexMetadata_.add(value); onChanged(); } else { indexMetadataBuilder_.addMessage(value); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder addIndexMetadata( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata value) { if (indexMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexMetadataIsMutable(); indexMetadata_.add(index, value); onChanged(); } else { indexMetadataBuilder_.addMessage(index, value); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder addIndexMetadata( com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder builderForValue) { if (indexMetadataBuilder_ == null) { ensureIndexMetadataIsMutable(); indexMetadata_.add(builderForValue.build()); onChanged(); } else { indexMetadataBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder addIndexMetadata( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder builderForValue) { if (indexMetadataBuilder_ == null) { ensureIndexMetadataIsMutable(); indexMetadata_.add(index, builderForValue.build()); onChanged(); } else { indexMetadataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder addAllIndexMetadata( java.lang.Iterable values) { if (indexMetadataBuilder_ == null) { ensureIndexMetadataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, indexMetadata_); onChanged(); } else { indexMetadataBuilder_.addAllMessages(values); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder clearIndexMetadata() { if (indexMetadataBuilder_ == null) { indexMetadata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { indexMetadataBuilder_.clear(); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public Builder removeIndexMetadata(int index) { if (indexMetadataBuilder_ == null) { ensureIndexMetadataIsMutable(); indexMetadata_.remove(index); onChanged(); } else { indexMetadataBuilder_.remove(index); } return this; } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder getIndexMetadataBuilder( int index) { return getIndexMetadataFieldBuilder().getBuilder(index); } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadataOrBuilder getIndexMetadataOrBuilder( int index) { if (indexMetadataBuilder_ == null) { return indexMetadata_.get(index); } else { return indexMetadataBuilder_.getMessageOrBuilder(index); } } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public java.util.List getIndexMetadataOrBuilderList() { if (indexMetadataBuilder_ != null) { return indexMetadataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(indexMetadata_); } } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder addIndexMetadataBuilder() { return getIndexMetadataFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.getDefaultInstance()); } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder addIndexMetadataBuilder( int index) { return getIndexMetadataFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.getDefaultInstance()); } /** *
       * The information about available indexes.
       * 
* * repeated .java.apphosting.IndexMetadata index_metadata = 2; */ public java.util.List getIndexMetadataBuilderList() { return getIndexMetadataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadataOrBuilder> getIndexMetadataFieldBuilder() { if (indexMetadataBuilder_ == null) { indexMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadata.Builder, com.google.appengine.api.search.proto.SearchServicePb.IndexMetadataOrBuilder>( indexMetadata_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); indexMetadata_ = null; } return indexMetadataBuilder_; } @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.ListIndexesResponse) } // @@protoc_insertion_point(class_scope:java.apphosting.ListIndexesResponse) private static final com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse(); } public static com.google.appengine.api.search.proto.SearchServicePb.ListIndexesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListIndexesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser 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.ListIndexesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteSchemaParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.DeleteSchemaParams) com.google.protobuf.MessageOrBuilder { /** *
     * The source of the indexes having schemas removed.
     * 
* * optional .java.apphosting.IndexSpec.Source source = 1 [default = SEARCH]; * @return Whether the source field is set. */ boolean hasSource(); /** *
     * The source of the indexes having schemas removed.
     * 
* * optional .java.apphosting.IndexSpec.Source source = 1 [default = SEARCH]; * @return The source. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Source getSource(); /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ java.util.List getIndexSpecList(); /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(int index); /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ int getIndexSpecCount(); /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ java.util.List getIndexSpecOrBuilderList(); /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder( int index); /** *
     * 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.
     * 
* * optional bool require_empty_index = 3; * @return The requireEmptyIndex. */ boolean getRequireEmptyIndex(); } /** *
   * Delete the schemas from the specified indexes.
   * 
* * Protobuf type {@code java.apphosting.DeleteSchemaParams} */ public static final class DeleteSchemaParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.DeleteSchemaParams) DeleteSchemaParamsOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteSchemaParams.newBuilder() to construct. private DeleteSchemaParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteSchemaParams() { source_ = 0; indexSpec_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteSchemaParams(); } @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_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); } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; 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; } public static final int INDEX_SPEC_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List indexSpec_; /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ @java.lang.Override public java.util.List getIndexSpecList() { return indexSpec_; } /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ @java.lang.Override public java.util.List getIndexSpecOrBuilderList() { return indexSpec_; } /** *
     * The specification of indexes to have their schema deleted.
     * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ @java.lang.Override public int getIndexSpecCount() { return indexSpec_.size(); } /** *
     * 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.IndexSpec getIndexSpec(int index) { return indexSpec_.get(index); } /** *
     * 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.
       * 
* * optional .java.apphosting.IndexSpec.Source source = 1 [default = SEARCH]; * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000001); source_ = 0; onChanged(); return this; } private java.util.List indexSpec_ = java.util.Collections.emptyList(); private void ensureIndexSpecIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { indexSpec_ = new java.util.ArrayList(indexSpec_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< 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 specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public java.util.List getIndexSpecList() { if (indexSpecBuilder_ == null) { return java.util.Collections.unmodifiableList(indexSpec_); } else { return indexSpecBuilder_.getMessageList(); } } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public int getIndexSpecCount() { if (indexSpecBuilder_ == null) { return indexSpec_.size(); } else { return indexSpecBuilder_.getCount(); } } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(int index) { if (indexSpecBuilder_ == null) { return indexSpec_.get(index); } else { return indexSpecBuilder_.getMessage(index); } } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder setIndexSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexSpecIsMutable(); indexSpec_.set(index, value); onChanged(); } else { indexSpecBuilder_.setMessage(index, value); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder setIndexSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { ensureIndexSpecIsMutable(); indexSpec_.set(index, builderForValue.build()); onChanged(); } else { indexSpecBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder addIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexSpecIsMutable(); indexSpec_.add(value); onChanged(); } else { indexSpecBuilder_.addMessage(value); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder addIndexSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexSpecIsMutable(); indexSpec_.add(index, value); onChanged(); } else { indexSpecBuilder_.addMessage(index, value); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder addIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { ensureIndexSpecIsMutable(); indexSpec_.add(builderForValue.build()); onChanged(); } else { indexSpecBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder addIndexSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { ensureIndexSpecIsMutable(); indexSpec_.add(index, builderForValue.build()); onChanged(); } else { indexSpecBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder addAllIndexSpec( java.lang.Iterable values) { if (indexSpecBuilder_ == null) { ensureIndexSpecIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, indexSpec_); onChanged(); } else { indexSpecBuilder_.addAllMessages(values); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder clearIndexSpec() { if (indexSpecBuilder_ == null) { indexSpec_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { indexSpecBuilder_.clear(); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public Builder removeIndexSpec(int index) { if (indexSpecBuilder_ == null) { ensureIndexSpecIsMutable(); indexSpec_.remove(index); onChanged(); } else { indexSpecBuilder_.remove(index); } return this; } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder( int index) { return getIndexSpecFieldBuilder().getBuilder(index); } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder( int index) { if (indexSpecBuilder_ == null) { return indexSpec_.get(index); } else { return indexSpecBuilder_.getMessageOrBuilder(index); } } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public java.util.List getIndexSpecOrBuilderList() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(indexSpec_); } } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder addIndexSpecBuilder() { return getIndexSpecFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()); } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder addIndexSpecBuilder( int index) { return getIndexSpecFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()); } /** *
       * The specification of indexes to have their schema deleted.
       * 
* * repeated .java.apphosting.IndexSpec index_spec = 2; */ public java.util.List getIndexSpecBuilderList() { return getIndexSpecFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 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>( indexSpec_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } private boolean requireEmptyIndex_ ; /** *
       * 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.
       * 
* * optional bool require_empty_index = 3; * @return The requireEmptyIndex. */ @java.lang.Override public boolean getRequireEmptyIndex() { return requireEmptyIndex_; } /** *
       * 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(); /** *
     * The parameters describing schemas to delete.
     * 
* * required .java.apphosting.DeleteSchemaParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams getParams(); /** *
     * The parameters describing schemas to delete.
     * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * The request to delete schemas from specified indexes.
   * 
* * Protobuf type {@code java.apphosting.DeleteSchemaRequest} */ public static final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.DeleteSchemaRequest) DeleteSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteSchemaRequest.newBuilder() to construct. private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteSchemaRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteSchemaRequest(); } @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_DeleteSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams params_; /** *
     * The parameters describing schemas to delete.
     * 
* * required .java.apphosting.DeleteSchemaParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters describing schemas to delete.
     * 
* * required .java.apphosting.DeleteSchemaParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.getDefaultInstance() : params_; } /** *
     * The parameters describing schemas to delete.
     * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { memoizedIsInitialized = 0; return false; } if (!getParams().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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(3, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, appId_); } 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.DeleteSchemaRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest 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.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest 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.DeleteSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest 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.DeleteSchemaRequest 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.DeleteSchemaRequest 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.DeleteSchemaRequest 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.DeleteSchemaRequest 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.DeleteSchemaRequest 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.DeleteSchemaRequest 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.DeleteSchemaRequest 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 request to delete schemas from specified indexes.
     * 
* * Protobuf type {@code java.apphosting.DeleteSchemaRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.DeleteSchemaRequest) com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest build() { com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.DeleteSchemaRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { return false; } if (!getParams().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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 26: { appId_ = input.readBytes(); bitField0_ |= 0x00000002; 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 com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParamsOrBuilder> paramsBuilder_; /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.getDefaultInstance() : params_; } } /** *
       * The parameters describing schemas to delete.
       * 
* * required .java.apphosting.DeleteSchemaParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.DeleteSchemaRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.DeleteSchemaRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteSchemaRequest 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.DeleteSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteSchemaResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.DeleteSchemaResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ java.util.List getStatusList(); /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(int index); /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ int getStatusCount(); /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ java.util.List getStatusOrBuilderList(); /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder( int index); } /** *
   * A response to a delete schema request.
   * 
* * Protobuf type {@code java.apphosting.DeleteSchemaResponse} */ public static final class DeleteSchemaResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.DeleteSchemaResponse) DeleteSchemaResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteSchemaResponse.newBuilder() to construct. private DeleteSchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteSchemaResponse() { status_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteSchemaResponse(); } @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_DeleteSchemaResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List status_; /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ @java.lang.Override public java.util.List getStatusList() { return status_; } /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ @java.lang.Override public java.util.List getStatusOrBuilderList() { return status_; } /** *
     * The status of a schema delete.
     * 
* * repeated .java.apphosting.RequestStatus status = 1; */ @java.lang.Override public int getStatusCount() { return status_.size(); } /** *
     * The status of a schema delete.
     * 
* * 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 schema delete.
     * 
* * 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); } 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)); } 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)); } 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.DeleteSchemaResponse)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse other = (com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse) obj; if (!getStatusList() .equals(other.getStatusList())) 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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse 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.DeleteSchemaResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse 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.DeleteSchemaResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse 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.DeleteSchemaResponse 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.DeleteSchemaResponse 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.DeleteSchemaResponse 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.DeleteSchemaResponse 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.DeleteSchemaResponse 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.DeleteSchemaResponse 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.DeleteSchemaResponse 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 a delete schema request.
     * 
* * Protobuf type {@code java.apphosting.DeleteSchemaResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.DeleteSchemaResponse) com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse.class, com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse.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); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_DeleteSchemaResponse_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse build() { com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse result = new com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse 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(); } } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse 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.DeleteSchemaResponse) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.DeleteSchemaResponse.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_); } } } 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 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 schema delete.
       * 
* * 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 schema delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public int getStatusCount() { if (statusBuilder_ == null) { return status_.size(); } else { return statusBuilder_.getCount(); } } /** *
       * The status of a schema delete.
       * 
* * 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 schema delete.
       * 
* * 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 schema delete.
       * 
* * 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 schema delete.
       * 
* * 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 schema delete.
       * 
* * 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 schema delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The status of a schema delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addStatus( int index, com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(index, builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The status of a schema delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder addAllStatus( java.lang.Iterable values) { if (statusBuilder_ == null) { ensureStatusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, status_); onChanged(); } else { statusBuilder_.addAllMessages(values); } return this; } /** *
       * The status of a schema delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { statusBuilder_.clear(); } return this; } /** *
       * The status of a schema delete.
       * 
* * repeated .java.apphosting.RequestStatus status = 1; */ public Builder removeStatus(int index) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.remove(index); onChanged(); } else { statusBuilder_.remove(index); } return this; } /** *
       * The status of a schema delete.
       * 
* * 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 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.
     * 
* * required string sort_expression = 1; * @return The sortExpression. */ java.lang.String getSortExpression(); /** *
     * 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".
     * 
* * optional bool sort_descending = 2 [default = true]; * @return The sortDescending. */ boolean getSortDescending(); /** *
     * 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. */ boolean hasDefaultValueText(); /** *
     * 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 defaultValueText. */ java.lang.String getDefaultValueText(); /** *
     * 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. */ com.google.protobuf.ByteString getDefaultValueTextBytes(); /** *
     * 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. */ boolean hasDefaultValueNumeric(); /** *
     * 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. */ double getDefaultValueNumeric(); } /** *
   * 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.
     * 
* * required string sort_expression = 1; * @return The sortExpression. */ @java.lang.Override public java.lang.String getSortExpression() { java.lang.Object ref = sortExpression_; 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()) { sortExpression_ = s; } return s; } } /** *
     * 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.
     * 
* * optional string default_value_text = 4; * @return The defaultValueText. */ @java.lang.Override public java.lang.String getDefaultValueText() { java.lang.Object ref = defaultValueText_; 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()) { defaultValueText_ = s; } return s; } } /** *
     * 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.
       * 
* * required string sort_expression = 1; * @return The sortExpression. */ public java.lang.String getSortExpression() { java.lang.Object ref = sortExpression_; 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()) { sortExpression_ = s; } return s; } else { return (java.lang.String) 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; * @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.
       * 
* * required string sort_expression = 1; * @return This builder for chaining. */ public Builder clearSortExpression() { sortExpression_ = getDefaultInstance().getSortExpression(); bitField0_ = (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.
       * 
* * 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".
       * 
* * optional bool sort_descending = 2 [default = true]; * @return The sortDescending. */ @java.lang.Override public boolean getSortDescending() { return sortDescending_; } /** *
       * Indicates whether the search results are returned in "descending order"
       * of their "sorting score".
       * 
* * optional bool sort_descending = 2 [default = true]; * @param value The sortDescending to set. * @return This builder for chaining. */ public Builder setSortDescending(boolean value) { sortDescending_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Indicates whether the search results are returned in "descending order"
       * of their "sorting score".
       * 
* * optional bool sort_descending = 2 [default = true]; * @return This builder for chaining. */ public Builder clearSortDescending() { bitField0_ = (bitField0_ & ~0x00000002); sortDescending_ = true; onChanged(); return this; } private 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. */ 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.
       * 
* * optional string default_value_text = 4; * @return The defaultValueText. */ public java.lang.String getDefaultValueText() { java.lang.Object ref = defaultValueText_; 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()) { defaultValueText_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * 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. */ public com.google.protobuf.ByteString getDefaultValueTextBytes() { java.lang.Object ref = defaultValueText_; if (ref instanceof 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; } } /** *
       * 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; * @param value The defaultValueText to set. * @return This builder for chaining. */ public Builder setDefaultValueText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultValueText_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * 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 This builder for chaining. */ public Builder clearDefaultValueText() { defaultValueText_ = getDefaultInstance().getDefaultValueText(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * 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; * @param value The bytes for defaultValueText to set. * @return This builder for chaining. */ public Builder setDefaultValueTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } defaultValueText_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private double defaultValueNumeric_ ; /** *
       * 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_; } /** *
       * 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; * @param value The defaultValueNumeric to set. * @return This builder for chaining. */ public Builder setDefaultValueNumeric(double value) { defaultValueNumeric_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * 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 This builder for chaining. */ public Builder clearDefaultValueNumeric() { bitField0_ = (bitField0_ & ~0x00000008); defaultValueNumeric_ = 0D; 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.SortSpec) } // @@protoc_insertion_point(class_scope:java.apphosting.SortSpec) private static final com.google.appengine.api.search.proto.SearchServicePb.SortSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.SortSpec(); } public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SortSpec 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.SortSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScorerSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ScorerSpec) com.google.protobuf.MessageOrBuilder { /** *
     * The type of scorer to invoke.
     * 
* * optional .java.apphosting.ScorerSpec.Scorer scorer = 1 [default = MATCH_SCORER]; * @return Whether the scorer field is set. */ boolean hasScorer(); /** *
     * The type of scorer to invoke.
     * 
* * optional .java.apphosting.ScorerSpec.Scorer scorer = 1 [default = MATCH_SCORER]; * @return The scorer. */ com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer getScorer(); /** *
     * Limit on number of top retrieved results to score.
     * 
* * optional int32 limit = 2 [default = 1000]; * @return Whether the limit field is set. */ boolean hasLimit(); /** *
     * Limit on number of top retrieved results to score.
     * 
* * optional int32 limit = 2 [default = 1000]; * @return The limit. */ int getLimit(); /** *
     * Parameters for the match scorer encoded in a string.
     * 
* * optional string match_scorer_parameters = 9; * @return Whether the matchScorerParameters field is set. */ boolean hasMatchScorerParameters(); /** *
     * Parameters for the match scorer encoded in a string.
     * 
* * optional string match_scorer_parameters = 9; * @return The matchScorerParameters. */ java.lang.String getMatchScorerParameters(); /** *
     * Parameters for the match scorer encoded in a string.
     * 
* * optional string match_scorer_parameters = 9; * @return The bytes for matchScorerParameters. */ com.google.protobuf.ByteString getMatchScorerParametersBytes(); } /** *
   * A specification of the scorer to invoke on a search result.
   * 
* * Protobuf type {@code java.apphosting.ScorerSpec} */ public static final class ScorerSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ScorerSpec) ScorerSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ScorerSpec.newBuilder() to construct. private ScorerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScorerSpec() { scorer_ = 2; limit_ = 1000; matchScorerParameters_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScorerSpec(); } @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_ScorerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ScorerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.class, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Builder.class); } /** *
     * The types of scorers available.
     * 
* * Protobuf enum {@code java.apphosting.ScorerSpec.Scorer} */ public enum Scorer implements com.google.protobuf.ProtocolMessageEnum { /** *
       * A generic scorer that uses match scoring and rescoring.
       * 
* * RESCORING_MATCH_SCORER = 0; */ RESCORING_MATCH_SCORER(0), /** *
       * 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.
     * 
* * optional string match_scorer_parameters = 9; * @return The matchScorerParameters. */ @java.lang.Override public java.lang.String getMatchScorerParameters() { java.lang.Object ref = matchScorerParameters_; 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()) { matchScorerParameters_ = s; } return s; } } /** *
     * Parameters for the match scorer encoded in a string.
     * 
* * optional string match_scorer_parameters = 9; * @return The bytes for matchScorerParameters. */ @java.lang.Override public com.google.protobuf.ByteString getMatchScorerParametersBytes() { java.lang.Object ref = matchScorerParameters_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); matchScorerParameters_ = 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)) { output.writeEnum(1, scorer_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, limit_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, matchScorerParameters_); } 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, scorer_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, limit_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, matchScorerParameters_); } 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.ScorerSpec)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec other = (com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec) obj; if (hasScorer() != other.hasScorer()) return false; if (hasScorer()) { if (scorer_ != other.scorer_) return false; } if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (getLimit() != other.getLimit()) return false; } if (hasMatchScorerParameters() != other.hasMatchScorerParameters()) return false; if (hasMatchScorerParameters()) { if (!getMatchScorerParameters() .equals(other.getMatchScorerParameters())) 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 (hasScorer()) { hash = (37 * hash) + SCORER_FIELD_NUMBER; hash = (53 * hash) + scorer_; } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); } if (hasMatchScorerParameters()) { hash = (37 * hash) + MATCH_SCORER_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getMatchScorerParameters().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec 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.ScorerSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec 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.ScorerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec 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.ScorerSpec 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.ScorerSpec 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.ScorerSpec 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.ScorerSpec 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.ScorerSpec 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.ScorerSpec 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.ScorerSpec 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 specification of the scorer to invoke on a search result.
     * 
* * Protobuf type {@code java.apphosting.ScorerSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.ScorerSpec) com.google.appengine.api.search.proto.SearchServicePb.ScorerSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ScorerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ScorerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.class, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; scorer_ = 2; limit_ = 1000; matchScorerParameters_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_ScorerSpec_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec build() { com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec result = new com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.scorer_ = scorer_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.limit_ = limit_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.matchScorerParameters_ = matchScorerParameters_; 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.ScorerSpec) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDefaultInstance()) return this; if (other.hasScorer()) { setScorer(other.getScorer()); } if (other.hasLimit()) { setLimit(other.getLimit()); } if (other.hasMatchScorerParameters()) { matchScorerParameters_ = other.matchScorerParameters_; 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 8: { int tmpRaw = input.readEnum(); com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer tmpValue = com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { scorer_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 16: { limit_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 74: { matchScorerParameters_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 74 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 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; } /** *
       * The type of scorer to invoke.
       * 
* * optional .java.apphosting.ScorerSpec.Scorer scorer = 1 [default = MATCH_SCORER]; * @param value The scorer to set. * @return This builder for chaining. */ public Builder setScorer(com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Scorer value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; scorer_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of scorer to invoke.
       * 
* * optional .java.apphosting.ScorerSpec.Scorer scorer = 1 [default = MATCH_SCORER]; * @return This builder for chaining. */ public Builder clearScorer() { bitField0_ = (bitField0_ & ~0x00000001); scorer_ = 2; onChanged(); return this; } 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_; } /** *
       * Limit on number of top retrieved results to score.
       * 
* * optional int32 limit = 2 [default = 1000]; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Limit on number of top retrieved results to score.
       * 
* * optional int32 limit = 2 [default = 1000]; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000002); limit_ = 1000; onChanged(); return this; } private 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. */ public boolean hasMatchScorerParameters() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Parameters for the match scorer encoded in a string.
       * 
* * optional string match_scorer_parameters = 9; * @return The matchScorerParameters. */ public java.lang.String getMatchScorerParameters() { java.lang.Object ref = matchScorerParameters_; 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()) { matchScorerParameters_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Parameters for the match scorer encoded in a string.
       * 
* * optional string match_scorer_parameters = 9; * @return The bytes for matchScorerParameters. */ public com.google.protobuf.ByteString getMatchScorerParametersBytes() { java.lang.Object ref = matchScorerParameters_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); matchScorerParameters_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Parameters for the match scorer encoded in a string.
       * 
* * optional string match_scorer_parameters = 9; * @param value The matchScorerParameters to set. * @return This builder for chaining. */ public Builder setMatchScorerParameters( java.lang.String value) { if (value == null) { throw new NullPointerException(); } matchScorerParameters_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Parameters for the match scorer encoded in a string.
       * 
* * optional string match_scorer_parameters = 9; * @return This builder for chaining. */ public Builder clearMatchScorerParameters() { matchScorerParameters_ = getDefaultInstance().getMatchScorerParameters(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * 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 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 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 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 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.
     * 
* * optional string start = 2; * @return The start. */ java.lang.String getStart(); /** *
     * 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.
     * 
* * optional string start = 2; * @return The start. */ @java.lang.Override public java.lang.String getStart() { java.lang.Object ref = start_; 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()) { start_ = s; } return s; } } /** *
     * 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.
       * 
* * optional string start = 2; * @return The start. */ public java.lang.String getStart() { java.lang.Object ref = start_; 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()) { start_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * start and end of the range. At least one of these must be supplied.
       * 
* * optional string start = 2; * @return The bytes for start. */ public com.google.protobuf.ByteString getStartBytes() { java.lang.Object ref = start_; if (ref instanceof 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; } } /** *
       * start and end of the range. At least one of these must be supplied.
       * 
* * optional string start = 2; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart( java.lang.String value) { if (value == null) { throw new NullPointerException(); } start_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * start and end of the range. At least one of these must be supplied.
       * 
* * optional string start = 2; * @return This builder for chaining. */ public Builder clearStart() { start_ = getDefaultInstance().getStart(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * 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
     * 
* * repeated .java.apphosting.FacetRange range = 2; */ java.util.List getRangeList(); /** *
     * 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.FacetRange getRange(int 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; */ 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
     * 
* * repeated .java.apphosting.FacetRange range = 2; */ java.util.List getRangeOrBuilderList(); /** *
     * 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 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
       * 
* * optional int32 value_limit = 1; * @return This builder for chaining. */ public Builder clearValueLimit() { bitField0_ = (bitField0_ & ~0x00000001); valueLimit_ = 0; onChanged(); return this; } private java.util.List range_ = java.util.Collections.emptyList(); private void ensureRangeIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { range_ = new java.util.ArrayList(range_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRange, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder> rangeBuilder_; /** *
       * 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
       * 
* * repeated .java.apphosting.FacetRange range = 2; */ public Builder addRange( com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.add(builderForValue.build()); onChanged(); } else { rangeBuilder_.addMessage(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( 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
       * 
* * repeated .java.apphosting.FacetRange range = 2; */ public Builder addAllRange( java.lang.Iterable values) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, range_); onChanged(); } else { rangeBuilder_.addAllMessages(values); } 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 clearRange() { if (rangeBuilder_ == null) { range_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rangeBuilder_.clear(); } 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 removeRange(int index) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.remove(index); onChanged(); } else { rangeBuilder_.remove(index); } 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 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 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
       * 
* * repeated .java.apphosting.FacetRange range = 2; */ public java.util.List getRangeBuilderList() { return getRangeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRange, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRange, com.google.appengine.api.search.proto.SearchServicePb.FacetRange.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRangeOrBuilder>( range_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } private com.google.protobuf.LazyStringList valueConstraint_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueConstraintIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { valueConstraint_ = new com.google.protobuf.LazyStringArrayList(valueConstraint_); bitField0_ |= 0x00000004; } } /** *
       * 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
       * 
* * repeated string value_constraint = 3; * @return This builder for chaining. */ public Builder clearValueConstraint() { valueConstraint_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * if provided, only count these values. Cannot be used
       * with ranges
       * 
* * repeated string value_constraint = 3; * @param value The bytes of the valueConstraint to add. * @return This builder for chaining. */ public Builder addValueConstraintBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValueConstraintIsMutable(); valueConstraint_.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.FacetRequestParam) } // @@protoc_insertion_point(class_scope:java.apphosting.FacetRequestParam) private static final com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam(); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FacetRequestParam 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.FacetRequestParam getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FacetAutoDetectParamOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.FacetAutoDetectParam) com.google.protobuf.MessageOrBuilder { /** *
     * how many facet values should be returned for each facet
     * 
* * optional int32 value_limit = 1 [default = 10]; * @return Whether the valueLimit field is set. */ boolean hasValueLimit(); /** *
     * how many facet values should be returned for each facet
     * 
* * optional int32 value_limit = 1 [default = 10]; * @return The valueLimit. */ int getValueLimit(); } /** * Protobuf type {@code java.apphosting.FacetAutoDetectParam} */ public static final class FacetAutoDetectParam extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.FacetAutoDetectParam) FacetAutoDetectParamOrBuilder { private static final long serialVersionUID = 0L; // Use FacetAutoDetectParam.newBuilder() to construct. private FacetAutoDetectParam(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FacetAutoDetectParam() { valueLimit_ = 10; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FacetAutoDetectParam(); } @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_FacetAutoDetectParam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetAutoDetectParam_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.class, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.Builder.class); } private int bitField0_; public static final int VALUE_LIMIT_FIELD_NUMBER = 1; private int valueLimit_ = 10; /** *
     * how many facet values should be returned for each facet
     * 
* * optional int32 value_limit = 1 [default = 10]; * @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 each facet
     * 
* * optional int32 value_limit = 1 [default = 10]; * @return The valueLimit. */ @java.lang.Override public int getValueLimit() { return valueLimit_; } 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_); } 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_); } 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.FacetAutoDetectParam)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam other = (com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam) obj; if (hasValueLimit() != other.hasValueLimit()) return false; if (hasValueLimit()) { if (getValueLimit() != other.getValueLimit()) 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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam 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.FacetAutoDetectParam parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam 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.FacetAutoDetectParam parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam 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.FacetAutoDetectParam 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.FacetAutoDetectParam 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.FacetAutoDetectParam 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.FacetAutoDetectParam 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.FacetAutoDetectParam 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.FacetAutoDetectParam 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.FacetAutoDetectParam 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.FacetAutoDetectParam} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.FacetAutoDetectParam) com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParamOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetAutoDetectParam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetAutoDetectParam_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.class, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; valueLimit_ = 10; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetAutoDetectParam_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam build() { com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam result = new com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam 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.FacetAutoDetectParam) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.getDefaultInstance()) return this; if (other.hasValueLimit()) { setValueLimit(other.getValueLimit()); } 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 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_ = 10; /** *
       * how many facet values should be returned for each facet
       * 
* * optional int32 value_limit = 1 [default = 10]; * @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 each facet
       * 
* * optional int32 value_limit = 1 [default = 10]; * @return The valueLimit. */ @java.lang.Override public int getValueLimit() { return valueLimit_; } /** *
       * how many facet values should be returned for each facet
       * 
* * optional int32 value_limit = 1 [default = 10]; * @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 each facet
       * 
* * optional int32 value_limit = 1 [default = 10]; * @return This builder for chaining. */ public Builder clearValueLimit() { bitField0_ = (bitField0_ & ~0x00000001); valueLimit_ = 10; 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.FacetAutoDetectParam) } // @@protoc_insertion_point(class_scope:java.apphosting.FacetAutoDetectParam) private static final com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam(); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FacetAutoDetectParam 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.FacetAutoDetectParam getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FacetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.FacetRequest) com.google.protobuf.MessageOrBuilder { /** *
     * name of the facet
     * 
* * required string name = 1; * @return Whether the name field is set. */ boolean hasName(); /** *
     * name of the facet
     * 
* * required string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * name of the facet
     * 
* * required string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Specify parameters for this facet
     * 
* * optional .java.apphosting.FacetRequestParam params = 2; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * Specify parameters for this facet
     * 
* * optional .java.apphosting.FacetRequestParam params = 2; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam getParams(); /** *
     * Specify parameters for this facet
     * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParamOrBuilder getParamsOrBuilder(); } /** * Protobuf type {@code java.apphosting.FacetRequest} */ public static final class FacetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.FacetRequest) FacetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use FacetRequest.newBuilder() to construct. private FacetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FacetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FacetRequest(); } @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_FacetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * name of the facet
     * 
* * required string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * name of the facet
     * 
* * 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; } } /** *
     * name of the facet
     * 
* * 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 PARAMS_FIELD_NUMBER = 2; private com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam params_; /** *
     * Specify parameters for this facet
     * 
* * optional .java.apphosting.FacetRequestParam params = 2; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Specify parameters for this facet
     * 
* * optional .java.apphosting.FacetRequestParam params = 2; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.getDefaultInstance() : params_; } /** *
     * Specify parameters for this facet
     * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParamOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.getDefaultInstance() : params_; } 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.writeMessage(2, getParams()); } 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 .computeMessageSize(2, getParams()); } 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.FacetRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.FacetRequest other = (com.google.appengine.api.search.proto.SearchServicePb.FacetRequest) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequest 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.FacetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequest 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.FacetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequest 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.FacetRequest 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.FacetRequest 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.FacetRequest 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.FacetRequest 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.FacetRequest 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.FacetRequest 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.FacetRequest 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.FacetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.FacetRequest) com.google.appengine.api.search.proto.SearchServicePb.FacetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = 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_FacetRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest build() { com.google.appengine.api.search.proto.SearchServicePb.FacetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.FacetRequest result = new com.google.appengine.api.search.proto.SearchServicePb.FacetRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetRequest 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.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); 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.FacetRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.getDefaultInstance()) return this; if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasParams()) { mergeParams(other.getParams()); } 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 18: { input.readMessage( getParamsFieldBuilder().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 java.lang.Object name_ = ""; /** *
       * name of the facet
       * 
* * required string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * name of the facet
       * 
* * 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; } } /** *
       * name of the facet
       * 
* * 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; } } /** *
       * name of the facet
       * 
* * 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; } /** *
       * name of the facet
       * 
* * required string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * name of the facet
       * 
* * 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 com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParamOrBuilder> paramsBuilder_; /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000002); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.Builder getParamsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParamOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.getDefaultInstance() : params_; } } /** *
       * Specify parameters for this facet
       * 
* * optional .java.apphosting.FacetRequestParam params = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParamOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParam.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestParamOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } @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.FacetRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.FacetRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.FacetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FacetRequest 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.FacetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FacetRefinementOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.FacetRefinement) com.google.protobuf.MessageOrBuilder { /** *
     * e.g., "genre"
     * 
* * required string name = 1; * @return Whether the name field is set. */ boolean hasName(); /** *
     * e.g., "genre"
     * 
* * required string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * e.g., "genre"
     * 
* * required string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * e.g., "adventure"
     * 
* * optional string value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** *
     * e.g., "adventure"
     * 
* * optional string value = 2; * @return The value. */ java.lang.String getValue(); /** *
     * e.g., "adventure"
     * 
* * optional string value = 2; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** *
     * e.g. "1..100"
     * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; * @return Whether the range field is set. */ boolean hasRange(); /** *
     * e.g. "1..100"
     * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; * @return The range. */ com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range getRange(); /** *
     * e.g. "1..100"
     * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.RangeOrBuilder getRangeOrBuilder(); } /** * Protobuf type {@code java.apphosting.FacetRefinement} */ public static final class FacetRefinement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.FacetRefinement) FacetRefinementOrBuilder { private static final long serialVersionUID = 0L; // Use FacetRefinement.newBuilder() to construct. private FacetRefinement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FacetRefinement() { name_ = ""; value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FacetRefinement(); } @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_FacetRefinement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRefinement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder.class); } public interface RangeOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.FacetRefinement.Range) com.google.protobuf.MessageOrBuilder { /** *
       * start of the range. e.g., "1" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string start = 1; * @return Whether the start field is set. */ boolean hasStart(); /** *
       * start of the range. e.g., "1" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string start = 1; * @return The start. */ java.lang.String getStart(); /** *
       * start of the range. e.g., "1" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string start = 1; * @return The bytes for start. */ com.google.protobuf.ByteString getStartBytes(); /** *
       * end of the range. e.g., "100" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string end = 2; * @return Whether the end field is set. */ boolean hasEnd(); /** *
       * end of the range. e.g., "100" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string end = 2; * @return The end. */ java.lang.String getEnd(); /** *
       * end of the range. e.g., "100" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string end = 2; * @return The bytes for end. */ com.google.protobuf.ByteString getEndBytes(); } /** *
     * the refinement range
     * Note: Either value or range should be set. They cannot both
     * be set in the same request.
     * 
* * Protobuf type {@code java.apphosting.FacetRefinement.Range} */ public static final class Range extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.FacetRefinement.Range) RangeOrBuilder { private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Range() { start_ = ""; end_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Range(); } @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_FacetRefinement_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRefinement_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.Builder.class); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object start_ = ""; /** *
       * start of the range. e.g., "1" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string start = 1; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * start of the range. e.g., "1" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string start = 1; * @return The start. */ @java.lang.Override public java.lang.String getStart() { java.lang.Object ref = start_; 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()) { start_ = s; } return s; } } /** *
       * start of the range. e.g., "1" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string start = 1; * @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 = 2; @SuppressWarnings("serial") private volatile java.lang.Object end_ = ""; /** *
       * end of the range. e.g., "100" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string end = 2; * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * end of the range. e.g., "100" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string end = 2; * @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; } } /** *
       * end of the range. e.g., "100" for "1..100"
       * At least one of start or end value must be supplied.
       * 
* * optional string end = 2; * @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, start_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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, start_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.FacetRefinement.Range)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range other = (com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range) obj; 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 (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.FacetRefinement.Range parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range 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.FacetRefinement.Range parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range 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.FacetRefinement.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range 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.FacetRefinement.Range 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.FacetRefinement.Range 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.FacetRefinement.Range 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.FacetRefinement.Range 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.FacetRefinement.Range 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.FacetRefinement.Range 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.FacetRefinement.Range 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 refinement range
       * Note: Either value or range should be set. They cannot both
       * be set in the same request.
       * 
* * Protobuf type {@code java.apphosting.FacetRefinement.Range} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.FacetRefinement.Range) com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRefinement_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRefinement_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_FacetRefinement_Range_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range build() { com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range result = new com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; 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.FacetRefinement.Range) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.getDefaultInstance()) return this; if (other.hasStart()) { start_ = other.start_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasEnd()) { end_ = other.end_; bitField0_ |= 0x00000002; 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: { start_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { end_ = input.readBytes(); 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 java.lang.Object start_ = ""; /** *
         * start of the range. e.g., "1" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string start = 1; * @return Whether the start field is set. */ public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * start of the range. e.g., "1" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string start = 1; * @return The start. */ public java.lang.String getStart() { java.lang.Object ref = start_; 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()) { start_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * start of the range. e.g., "1" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string start = 1; * @return The bytes for start. */ public com.google.protobuf.ByteString getStartBytes() { java.lang.Object ref = start_; if (ref instanceof 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; } } /** *
         * start of the range. e.g., "1" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart( java.lang.String value) { if (value == null) { throw new NullPointerException(); } start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * start of the range. e.g., "1" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string start = 1; * @return This builder for chaining. */ public Builder clearStart() { start_ = getDefaultInstance().getStart(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * start of the range. e.g., "1" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string start = 1; * @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_ |= 0x00000001; onChanged(); return this; } private java.lang.Object end_ = ""; /** *
         * end of the range. e.g., "100" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string end = 2; * @return Whether the end field is set. */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * end of the range. e.g., "100" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string end = 2; * @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; } } /** *
         * end of the range. e.g., "100" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string end = 2; * @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; } } /** *
         * end of the range. e.g., "100" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string end = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** *
         * end of the range. e.g., "100" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string end = 2; * @return This builder for chaining. */ public Builder clearEnd() { end_ = getDefaultInstance().getEnd(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * end of the range. e.g., "100" for "1..100"
         * At least one of start or end value must be supplied.
         * 
* * optional string end = 2; * @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_ |= 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.FacetRefinement.Range) } // @@protoc_insertion_point(class_scope:java.apphosting.FacetRefinement.Range) private static final com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range(); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Range 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.FacetRefinement.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * e.g., "genre"
     * 
* * required string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * e.g., "genre"
     * 
* * 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; } } /** *
     * e.g., "genre"
     * 
* * 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 VALUE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** *
     * e.g., "adventure"
     * 
* * optional string value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * e.g., "adventure"
     * 
* * optional string value = 2; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** *
     * e.g., "adventure"
     * 
* * optional string value = 2; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RANGE_FIELD_NUMBER = 3; private com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range range_; /** *
     * e.g. "1..100"
     * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * e.g. "1..100"
     * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; * @return The range. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range getRange() { return range_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.getDefaultInstance() : range_; } /** *
     * e.g. "1..100"
     * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.RangeOrBuilder getRangeOrBuilder() { return range_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.getDefaultInstance() : range_; } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getRange()); } 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, value_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRange()); } 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.FacetRefinement)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement other = (com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (hasRange() != other.hasRange()) return false; if (hasRange()) { if (!getRange() .equals(other.getRange())) 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement 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.FacetRefinement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement 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.FacetRefinement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement 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.FacetRefinement 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.FacetRefinement 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.FacetRefinement 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.FacetRefinement 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.FacetRefinement 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.FacetRefinement 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.FacetRefinement 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.FacetRefinement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.FacetRefinement) com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRefinement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetRefinement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.class, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; value_ = ""; range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = 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_FacetRefinement_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement build() { com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement result = new com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement 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.value_ = value_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build(); 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.FacetRefinement) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance()) return this; if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { value_ = other.value_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasRange()) { mergeRange(other.getRange()); } 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 18: { value_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * e.g., "genre"
       * 
* * required string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * e.g., "genre"
       * 
* * 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; } } /** *
       * e.g., "genre"
       * 
* * 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; } } /** *
       * e.g., "genre"
       * 
* * 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; } /** *
       * e.g., "genre"
       * 
* * required string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * e.g., "genre"
       * 
* * 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 java.lang.Object value_ = ""; /** *
       * e.g., "adventure"
       * 
* * optional string value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * e.g., "adventure"
       * 
* * optional string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * e.g., "adventure"
       * 
* * optional string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * e.g., "adventure"
       * 
* * optional string value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * e.g., "adventure"
       * 
* * optional string value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * e.g., "adventure"
       * 
* * optional string value = 2; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range range_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.RangeOrBuilder> rangeBuilder_; /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; * @return The range. */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ public Builder setRange(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; } else { rangeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ public Builder setRange( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); } else { rangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ public Builder mergeRange(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && range_ != null && range_ != com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.getDefaultInstance()) { getRangeBuilder().mergeFrom(value); } else { range_ = value; } } else { rangeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000004); range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } onChanged(); return this; } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.Builder getRangeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRangeFieldBuilder().getBuilder(); } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.getDefaultInstance() : range_; } } /** *
       * e.g. "1..100"
       * 
* * optional .java.apphosting.FacetRefinement.Range range = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Range.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.RangeOrBuilder>( getRange(), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } @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.FacetRefinement) } // @@protoc_insertion_point(class_scope:java.apphosting.FacetRefinement) private static final com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement(); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FacetRefinement 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.FacetRefinement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.SearchParams) com.google.protobuf.MessageOrBuilder { /** *
     * The full specification of the index to search.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ boolean hasIndexSpec(); /** *
     * The full specification of the index to search.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec(); /** *
     * The full specification of the index to search.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder(); /** *
     * The query string must be in the search query syntax. These strings can
     * be constructed by hand, or by using the query api.
     * 
* * required string query = 2; * @return Whether the query field is set. */ boolean hasQuery(); /** *
     * The query string must be in the search query syntax. These strings can
     * be constructed by hand, or by using the query api.
     * 
* * required string query = 2; * @return The query. */ java.lang.String getQuery(); /** *
     * The query string must be in the search query syntax. These strings can
     * be constructed by hand, or by using the query api.
     * 
* * required string query = 2; * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); /** *
     * Use a cursor returned from a previous set of search results as
     * a starting point to retrieve the next set of results. This can get you
     * better performance, and also improves the consistency of pagination
     * through index updates.
     * 
* * optional string cursor = 4; * @return Whether the cursor field is set. */ boolean hasCursor(); /** *
     * Use a cursor returned from a previous set of search results as
     * a starting point to retrieve the next set of results. This can get you
     * better performance, and also improves the consistency of pagination
     * through index updates.
     * 
* * optional string cursor = 4; * @return The cursor. */ java.lang.String getCursor(); /** *
     * Use a cursor returned from a previous set of search results as
     * a starting point to retrieve the next set of results. This can get you
     * better performance, and also improves the consistency of pagination
     * through index updates.
     * 
* * optional string cursor = 4; * @return The bytes for cursor. */ com.google.protobuf.ByteString getCursorBytes(); /** *
     * Use the offset if you want to move to arbitrary result. You can use to
     * move to the location independent of the last returned results. However,
     * this freedom comes at a price, as the backend reads all documents
     * preceding the given offset and just does not return them.
     * 
* * optional int32 offset = 11; * @return Whether the offset field is set. */ boolean hasOffset(); /** *
     * Use the offset if you want to move to arbitrary result. You can use to
     * move to the location independent of the last returned results. However,
     * this freedom comes at a price, as the backend reads all documents
     * preceding the given offset and just does not return them.
     * 
* * optional int32 offset = 11; * @return The offset. */ int getOffset(); /** *
     * The type of the cursor returned with a search result.
     * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @return Whether the cursorType field is set. */ boolean hasCursorType(); /** *
     * The type of the cursor returned with a search result.
     * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @return The cursorType. */ com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType getCursorType(); /** *
     * Limit on number of search results to return. The backend supports
     * pagination. Clients are encouraged to request only those search
     * results needed for display (instead of requesting the typical 1000
     * results and filtering).
     * 
* * optional int32 limit = 6 [default = 20]; * @return Whether the limit field is set. */ boolean hasLimit(); /** *
     * Limit on number of search results to return. The backend supports
     * pagination. Clients are encouraged to request only those search
     * results needed for display (instead of requesting the typical 1000
     * results and filtering).
     * 
* * optional int32 limit = 6 [default = 20]; * @return The limit. */ int getLimit(); /** *
     * Sets the minimum accuracy requirement for SearchResponse.matched_count.
     * If set, matched_count will be accurate up to at least that number.
     * For example, when set to 100, any matched_count <= 100 is accurate.
     * This option may add considerable latency / expense, especially when used
     * with field_spec. By default, accuracy is the same as the limit.
     * 
* * optional int32 matched_count_accuracy = 7; * @return Whether the matchedCountAccuracy field is set. */ boolean hasMatchedCountAccuracy(); /** *
     * Sets the minimum accuracy requirement for SearchResponse.matched_count.
     * If set, matched_count will be accurate up to at least that number.
     * For example, when set to 100, any matched_count <= 100 is accurate.
     * This option may add considerable latency / expense, especially when used
     * with field_spec. By default, accuracy is the same as the limit.
     * 
* * optional int32 matched_count_accuracy = 7; * @return The matchedCountAccuracy. */ int getMatchedCountAccuracy(); /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ java.util.List getSortSpecList(); /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ com.google.appengine.api.search.proto.SearchServicePb.SortSpec getSortSpec(int index); /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ int getSortSpecCount(); /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ java.util.List getSortSpecOrBuilderList(); /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ com.google.appengine.api.search.proto.SearchServicePb.SortSpecOrBuilder getSortSpecOrBuilder( int index); /** *
     * The client can control scoring on a query-by-query basis.
     * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; * @return Whether the scorerSpec field is set. */ boolean hasScorerSpec(); /** *
     * The client can control scoring on a query-by-query basis.
     * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; * @return The scorerSpec. */ com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec getScorerSpec(); /** *
     * The client can control scoring on a query-by-query basis.
     * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ com.google.appengine.api.search.proto.SearchServicePb.ScorerSpecOrBuilder getScorerSpecOrBuilder(); /** *
     * Which fields from the documents the client wants returned.
     * If the field_spec message is not set, then all fields
     * are returned. If the FieldSpec has no field names specified,
     * then no fields are returned.
     * 
* * optional .java.apphosting.FieldSpec field_spec = 10; * @return Whether the fieldSpec field is set. */ boolean hasFieldSpec(); /** *
     * Which fields from the documents the client wants returned.
     * If the field_spec message is not set, then all fields
     * are returned. If the FieldSpec has no field names specified,
     * then no fields are returned.
     * 
* * optional .java.apphosting.FieldSpec field_spec = 10; * @return The fieldSpec. */ com.google.appengine.api.search.proto.SearchServicePb.FieldSpec getFieldSpec(); /** *
     * Which fields from the documents the client wants returned.
     * If the field_spec message is not set, then all fields
     * are returned. If the FieldSpec has no field names specified,
     * then no fields are returned.
     * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ com.google.appengine.api.search.proto.SearchServicePb.FieldSpecOrBuilder getFieldSpecOrBuilder(); /** *
     * Specifies whether complete documents are returned, or just their keys.
     * 
* * optional bool keys_only = 12; * @return Whether the keysOnly field is set. */ boolean hasKeysOnly(); /** *
     * Specifies whether complete documents are returned, or just their keys.
     * 
* * optional bool keys_only = 12; * @return The keysOnly. */ boolean getKeysOnly(); /** *
     * Whether the query parsing should be strict.
     * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @return Whether the parsingMode field is set. */ boolean hasParsingMode(); /** *
     * Whether the query parsing should be strict.
     * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @return The parsingMode. */ com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode getParsingMode(); /** *
     * Specify how many facets should be discovered based on the result.
     * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @return Whether the autoDiscoverFacetCount field is set. */ boolean hasAutoDiscoverFacetCount(); /** *
     * Specify how many facets should be discovered based on the result.
     * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @return The autoDiscoverFacetCount. */ int getAutoDiscoverFacetCount(); /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ java.util.List getIncludeFacetList(); /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ com.google.appengine.api.search.proto.SearchServicePb.FacetRequest getIncludeFacet(int index); /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ int getIncludeFacetCount(); /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ java.util.List getIncludeFacetOrBuilderList(); /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ com.google.appengine.api.search.proto.SearchServicePb.FacetRequestOrBuilder getIncludeFacetOrBuilder( int index); /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ java.util.List getFacetRefinementList(); /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getFacetRefinement(int index); /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ int getFacetRefinementCount(); /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ java.util.List getFacetRefinementOrBuilderList(); /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder getFacetRefinementOrBuilder( int index); /** *
     * Parameters for facet auto-detection
     * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; * @return Whether the facetAutoDetectParam field is set. */ boolean hasFacetAutoDetectParam(); /** *
     * Parameters for facet auto-detection
     * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; * @return The facetAutoDetectParam. */ com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam getFacetAutoDetectParam(); /** *
     * Parameters for facet auto-detection
     * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParamOrBuilder getFacetAutoDetectParamOrBuilder(); /** *
     * Set number of search result we should go ahead to
     * gather facet information.
     * For example, when set to 1000, any document in
     * first 1000 results will be used to compute facets.
     * 
* * optional int32 facet_depth = 19 [default = 1000]; * @return Whether the facetDepth field is set. */ boolean hasFacetDepth(); /** *
     * Set number of search result we should go ahead to
     * gather facet information.
     * For example, when set to 1000, any document in
     * first 1000 results will be used to compute facets.
     * 
* * optional int32 facet_depth = 19 [default = 1000]; * @return The facetDepth. */ int getFacetDepth(); /** *
     * Whether to enable or disable query rewrite.
     * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @return Whether the enableQueryRewrite field is set. */ boolean hasEnableQueryRewrite(); /** *
     * Whether to enable or disable query rewrite.
     * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @return The enableQueryRewrite. */ boolean getEnableQueryRewrite(); } /** *
   * Parameters to search an index for documents which match a query,
   * restricting the document fields to those given, and sorting and scoring the
   * results, whilst supporting pagination.
   * 
* * Protobuf type {@code java.apphosting.SearchParams} */ public static final class SearchParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.SearchParams) SearchParamsOrBuilder { private static final long serialVersionUID = 0L; // Use SearchParams.newBuilder() to construct. private SearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchParams() { query_ = ""; cursor_ = ""; cursorType_ = 0; limit_ = 20; sortSpec_ = java.util.Collections.emptyList(); parsingMode_ = 0; includeFacet_ = java.util.Collections.emptyList(); facetRefinement_ = java.util.Collections.emptyList(); facetDepth_ = 1000; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchParams(); } @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_SearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchParams.class, com.google.appengine.api.search.proto.SearchServicePb.SearchParams.Builder.class); } /** *
     * What sort of cursor should be returned with the results?
     * 
* * Protobuf enum {@code java.apphosting.SearchParams.CursorType} */ public enum CursorType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * No cursor will be returned.
       * 
* * NONE = 0; */ NONE(0), /** *
       * A single cursor will be returned to continue from the end of the
       * results.
       * 
* * SINGLE = 1; */ SINGLE(1), /** *
       * One cursor will be returned with each search result so you can
       * continue after any result.
       * 
* * PER_RESULT = 2; */ PER_RESULT(2), ; /** *
       * No cursor will be returned.
       * 
* * NONE = 0; */ public static final int NONE_VALUE = 0; /** *
       * A single cursor will be returned to continue from the end of the
       * results.
       * 
* * SINGLE = 1; */ public static final int SINGLE_VALUE = 1; /** *
       * One cursor will be returned with each search result so you can
       * continue after any result.
       * 
* * PER_RESULT = 2; */ public static final int PER_RESULT_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 CursorType 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 CursorType forNumber(int value) { switch (value) { case 0: return NONE; case 1: return SINGLE; case 2: return PER_RESULT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CursorType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CursorType findValueByNumber(int number) { return CursorType.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.SearchParams.getDescriptor().getEnumTypes().get(0); } private static final CursorType[] VALUES = values(); public static CursorType 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 CursorType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:java.apphosting.SearchParams.CursorType) } /** *
     * Possible parsing modes. Currently we only support two modes: strict
     * and relaxed. In strict mode any query that is invalid according to
     * our grammar is rejected. In relaxed mode, we make the best attempt
     * at parsing the query. In the worst case we treat it as a bunch of text.
     * 
* * Protobuf enum {@code java.apphosting.SearchParams.ParsingMode} */ public enum ParsingMode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Any error causes an exception.
       * 
* * STRICT = 0; */ STRICT(0), /** *
       * Errors are consumed.
       * 
* * RELAXED = 1; */ RELAXED(1), ; /** *
       * Any error causes an exception.
       * 
* * STRICT = 0; */ public static final int STRICT_VALUE = 0; /** *
       * Errors are consumed.
       * 
* * RELAXED = 1; */ public static final int RELAXED_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 ParsingMode 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 ParsingMode forNumber(int value) { switch (value) { case 0: return STRICT; case 1: return RELAXED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ParsingMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ParsingMode findValueByNumber(int number) { return ParsingMode.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.SearchParams.getDescriptor().getEnumTypes().get(1); } private static final ParsingMode[] VALUES = values(); public static ParsingMode 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 ParsingMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:java.apphosting.SearchParams.ParsingMode) } private int bitField0_; public static final int INDEX_SPEC_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.IndexSpec indexSpec_; /** *
     * The full specification of the index to search.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ @java.lang.Override public boolean hasIndexSpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The full specification of the index to search.
     * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } /** *
     * The full specification of the index to search.
     * 
* * 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 QUERY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** *
     * The query string must be in the search query syntax. These strings can
     * be constructed by hand, or by using the query api.
     * 
* * required string query = 2; * @return Whether the query field is set. */ @java.lang.Override public boolean hasQuery() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The query string must be in the search query syntax. These strings can
     * be constructed by hand, or by using the query api.
     * 
* * required string query = 2; * @return The query. */ @java.lang.Override public java.lang.String getQuery() { java.lang.Object ref = query_; 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()) { query_ = s; } return s; } } /** *
     * The query string must be in the search query syntax. These strings can
     * be constructed by hand, or by using the query api.
     * 
* * required string query = 2; * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURSOR_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object cursor_ = ""; /** *
     * Use a cursor returned from a previous set of search results as
     * a starting point to retrieve the next set of results. This can get you
     * better performance, and also improves the consistency of pagination
     * through index updates.
     * 
* * optional string cursor = 4; * @return Whether the cursor field is set. */ @java.lang.Override public boolean hasCursor() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Use a cursor returned from a previous set of search results as
     * a starting point to retrieve the next set of results. This can get you
     * better performance, and also improves the consistency of pagination
     * through index updates.
     * 
* * optional string cursor = 4; * @return The cursor. */ @java.lang.Override public java.lang.String getCursor() { java.lang.Object ref = cursor_; 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()) { cursor_ = s; } return s; } } /** *
     * Use a cursor returned from a previous set of search results as
     * a starting point to retrieve the next set of results. This can get you
     * better performance, and also improves the consistency of pagination
     * through index updates.
     * 
* * optional string cursor = 4; * @return The bytes for cursor. */ @java.lang.Override public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OFFSET_FIELD_NUMBER = 11; private int offset_ = 0; /** *
     * Use the offset if you want to move to arbitrary result. You can use to
     * move to the location independent of the last returned results. However,
     * this freedom comes at a price, as the backend reads all documents
     * preceding the given offset and just does not return them.
     * 
* * optional int32 offset = 11; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Use the offset if you want to move to arbitrary result. You can use to
     * move to the location independent of the last returned results. However,
     * this freedom comes at a price, as the backend reads all documents
     * preceding the given offset and just does not return them.
     * 
* * optional int32 offset = 11; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int CURSOR_TYPE_FIELD_NUMBER = 5; private int cursorType_ = 0; /** *
     * The type of the cursor returned with a search result.
     * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @return Whether the cursorType field is set. */ @java.lang.Override public boolean hasCursorType() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The type of the cursor returned with a search result.
     * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @return The cursorType. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType getCursorType() { com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType result = com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType.forNumber(cursorType_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType.NONE : result; } public static final int LIMIT_FIELD_NUMBER = 6; private int limit_ = 20; /** *
     * Limit on number of search results to return. The backend supports
     * pagination. Clients are encouraged to request only those search
     * results needed for display (instead of requesting the typical 1000
     * results and filtering).
     * 
* * optional int32 limit = 6 [default = 20]; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Limit on number of search results to return. The backend supports
     * pagination. Clients are encouraged to request only those search
     * results needed for display (instead of requesting the typical 1000
     * results and filtering).
     * 
* * optional int32 limit = 6 [default = 20]; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } public static final int MATCHED_COUNT_ACCURACY_FIELD_NUMBER = 7; private int matchedCountAccuracy_ = 0; /** *
     * Sets the minimum accuracy requirement for SearchResponse.matched_count.
     * If set, matched_count will be accurate up to at least that number.
     * For example, when set to 100, any matched_count <= 100 is accurate.
     * This option may add considerable latency / expense, especially when used
     * with field_spec. By default, accuracy is the same as the limit.
     * 
* * optional int32 matched_count_accuracy = 7; * @return Whether the matchedCountAccuracy field is set. */ @java.lang.Override public boolean hasMatchedCountAccuracy() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Sets the minimum accuracy requirement for SearchResponse.matched_count.
     * If set, matched_count will be accurate up to at least that number.
     * For example, when set to 100, any matched_count <= 100 is accurate.
     * This option may add considerable latency / expense, especially when used
     * with field_spec. By default, accuracy is the same as the limit.
     * 
* * optional int32 matched_count_accuracy = 7; * @return The matchedCountAccuracy. */ @java.lang.Override public int getMatchedCountAccuracy() { return matchedCountAccuracy_; } public static final int SORT_SPEC_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List sortSpec_; /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ @java.lang.Override public java.util.List getSortSpecList() { return sortSpec_; } /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ @java.lang.Override public java.util.List getSortSpecOrBuilderList() { return sortSpec_; } /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ @java.lang.Override public int getSortSpecCount() { return sortSpec_.size(); } /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SortSpec getSortSpec(int index) { return sortSpec_.get(index); } /** *
     * Multi-dimensional sort the search results.
     * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SortSpecOrBuilder getSortSpecOrBuilder( int index) { return sortSpec_.get(index); } public static final int SCORER_SPEC_FIELD_NUMBER = 9; private com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec scorerSpec_; /** *
     * The client can control scoring on a query-by-query basis.
     * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; * @return Whether the scorerSpec field is set. */ @java.lang.Override public boolean hasScorerSpec() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * The client can control scoring on a query-by-query basis.
     * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; * @return The scorerSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec getScorerSpec() { return scorerSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDefaultInstance() : scorerSpec_; } /** *
     * The client can control scoring on a query-by-query basis.
     * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpecOrBuilder getScorerSpecOrBuilder() { return scorerSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDefaultInstance() : scorerSpec_; } public static final int FIELD_SPEC_FIELD_NUMBER = 10; private com.google.appengine.api.search.proto.SearchServicePb.FieldSpec fieldSpec_; /** *
     * Which fields from the documents the client wants returned.
     * If the field_spec message is not set, then all fields
     * are returned. If the FieldSpec has no field names specified,
     * then no fields are returned.
     * 
* * optional .java.apphosting.FieldSpec field_spec = 10; * @return Whether the fieldSpec field is set. */ @java.lang.Override public boolean hasFieldSpec() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Which fields from the documents the client wants returned.
     * If the field_spec message is not set, then all fields
     * are returned. If the FieldSpec has no field names specified,
     * then no fields are returned.
     * 
* * optional .java.apphosting.FieldSpec field_spec = 10; * @return The fieldSpec. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec getFieldSpec() { return fieldSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.getDefaultInstance() : fieldSpec_; } /** *
     * Which fields from the documents the client wants returned.
     * If the field_spec message is not set, then all fields
     * are returned. If the FieldSpec has no field names specified,
     * then no fields are returned.
     * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FieldSpecOrBuilder getFieldSpecOrBuilder() { return fieldSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.getDefaultInstance() : fieldSpec_; } public static final int KEYS_ONLY_FIELD_NUMBER = 12; private boolean keysOnly_ = false; /** *
     * Specifies whether complete documents are returned, or just their keys.
     * 
* * optional bool keys_only = 12; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Specifies whether complete documents are returned, or just their keys.
     * 
* * optional bool keys_only = 12; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } public static final int PARSING_MODE_FIELD_NUMBER = 13; private int parsingMode_ = 0; /** *
     * Whether the query parsing should be strict.
     * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @return Whether the parsingMode field is set. */ @java.lang.Override public boolean hasParsingMode() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Whether the query parsing should be strict.
     * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @return The parsingMode. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode getParsingMode() { com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode result = com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode.forNumber(parsingMode_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode.STRICT : result; } public static final int AUTO_DISCOVER_FACET_COUNT_FIELD_NUMBER = 15; private int autoDiscoverFacetCount_ = 0; /** *
     * Specify how many facets should be discovered based on the result.
     * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @return Whether the autoDiscoverFacetCount field is set. */ @java.lang.Override public boolean hasAutoDiscoverFacetCount() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * Specify how many facets should be discovered based on the result.
     * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @return The autoDiscoverFacetCount. */ @java.lang.Override public int getAutoDiscoverFacetCount() { return autoDiscoverFacetCount_; } public static final int INCLUDE_FACET_FIELD_NUMBER = 16; @SuppressWarnings("serial") private java.util.List includeFacet_; /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ @java.lang.Override public java.util.List getIncludeFacetList() { return includeFacet_; } /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ @java.lang.Override public java.util.List getIncludeFacetOrBuilderList() { return includeFacet_; } /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ @java.lang.Override public int getIncludeFacetCount() { return includeFacet_.size(); } /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest getIncludeFacet(int index) { return includeFacet_.get(index); } /** *
     * Specify which facet to be included always in the result.
     * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestOrBuilder getIncludeFacetOrBuilder( int index) { return includeFacet_.get(index); } public static final int FACET_REFINEMENT_FIELD_NUMBER = 17; @SuppressWarnings("serial") private java.util.List facetRefinement_; /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ @java.lang.Override public java.util.List getFacetRefinementList() { return facetRefinement_; } /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ @java.lang.Override public java.util.List getFacetRefinementOrBuilderList() { return facetRefinement_; } /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ @java.lang.Override public int getFacetRefinementCount() { return facetRefinement_.size(); } /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getFacetRefinement(int index) { return facetRefinement_.get(index); } /** *
     * Refine results based on given facets. Refinements would be conjunction if
     * the names are different and disjunction if the names are the same.
     * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder getFacetRefinementOrBuilder( int index) { return facetRefinement_.get(index); } public static final int FACET_AUTO_DETECT_PARAM_FIELD_NUMBER = 18; private com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam facetAutoDetectParam_; /** *
     * Parameters for facet auto-detection
     * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; * @return Whether the facetAutoDetectParam field is set. */ @java.lang.Override public boolean hasFacetAutoDetectParam() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * Parameters for facet auto-detection
     * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; * @return The facetAutoDetectParam. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam getFacetAutoDetectParam() { return facetAutoDetectParam_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.getDefaultInstance() : facetAutoDetectParam_; } /** *
     * Parameters for facet auto-detection
     * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParamOrBuilder getFacetAutoDetectParamOrBuilder() { return facetAutoDetectParam_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.getDefaultInstance() : facetAutoDetectParam_; } public static final int FACET_DEPTH_FIELD_NUMBER = 19; private int facetDepth_ = 1000; /** *
     * Set number of search result we should go ahead to
     * gather facet information.
     * For example, when set to 1000, any document in
     * first 1000 results will be used to compute facets.
     * 
* * optional int32 facet_depth = 19 [default = 1000]; * @return Whether the facetDepth field is set. */ @java.lang.Override public boolean hasFacetDepth() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * Set number of search result we should go ahead to
     * gather facet information.
     * For example, when set to 1000, any document in
     * first 1000 results will be used to compute facets.
     * 
* * optional int32 facet_depth = 19 [default = 1000]; * @return The facetDepth. */ @java.lang.Override public int getFacetDepth() { return facetDepth_; } public static final int ENABLE_QUERY_REWRITE_FIELD_NUMBER = 20; private boolean enableQueryRewrite_ = false; /** *
     * Whether to enable or disable query rewrite.
     * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @return Whether the enableQueryRewrite field is set. */ @java.lang.Override public boolean hasEnableQueryRewrite() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * Whether to enable or disable query rewrite.
     * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @return The enableQueryRewrite. */ @java.lang.Override public boolean getEnableQueryRewrite() { return enableQueryRewrite_; } 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 (!hasQuery()) { memoizedIsInitialized = 0; return false; } if (!getIndexSpec().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getSortSpecCount(); i++) { if (!getSortSpec(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasFieldSpec()) { if (!getFieldSpec().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getIncludeFacetCount(); i++) { if (!getIncludeFacet(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getFacetRefinementCount(); i++) { if (!getFacetRefinement(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()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cursor_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, cursorType_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(6, limit_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(7, matchedCountAccuracy_); } for (int i = 0; i < sortSpec_.size(); i++) { output.writeMessage(8, sortSpec_.get(i)); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(9, getScorerSpec()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(10, getFieldSpec()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(11, offset_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(12, keysOnly_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeEnum(13, parsingMode_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeInt32(15, autoDiscoverFacetCount_); } for (int i = 0; i < includeFacet_.size(); i++) { output.writeMessage(16, includeFacet_.get(i)); } for (int i = 0; i < facetRefinement_.size(); i++) { output.writeMessage(17, facetRefinement_.get(i)); } if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(18, getFacetAutoDetectParam()); } if (((bitField0_ & 0x00002000) != 0)) { output.writeInt32(19, facetDepth_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(20, enableQueryRewrite_); } 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, query_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cursor_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, cursorType_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, limit_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, matchedCountAccuracy_); } for (int i = 0; i < sortSpec_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, sortSpec_.get(i)); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getScorerSpec()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getFieldSpec()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, offset_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, keysOnly_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, parsingMode_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, autoDiscoverFacetCount_); } for (int i = 0; i < includeFacet_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, includeFacet_.get(i)); } for (int i = 0; i < facetRefinement_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, facetRefinement_.get(i)); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getFacetAutoDetectParam()); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(19, facetDepth_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, enableQueryRewrite_); } 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.SearchParams)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.SearchParams other = (com.google.appengine.api.search.proto.SearchServicePb.SearchParams) obj; if (hasIndexSpec() != other.hasIndexSpec()) return false; if (hasIndexSpec()) { if (!getIndexSpec() .equals(other.getIndexSpec())) return false; } if (hasQuery() != other.hasQuery()) return false; if (hasQuery()) { if (!getQuery() .equals(other.getQuery())) return false; } if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { if (!getCursor() .equals(other.getCursor())) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (getOffset() != other.getOffset()) return false; } if (hasCursorType() != other.hasCursorType()) return false; if (hasCursorType()) { if (cursorType_ != other.cursorType_) return false; } if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (getLimit() != other.getLimit()) return false; } if (hasMatchedCountAccuracy() != other.hasMatchedCountAccuracy()) return false; if (hasMatchedCountAccuracy()) { if (getMatchedCountAccuracy() != other.getMatchedCountAccuracy()) return false; } if (!getSortSpecList() .equals(other.getSortSpecList())) return false; if (hasScorerSpec() != other.hasScorerSpec()) return false; if (hasScorerSpec()) { if (!getScorerSpec() .equals(other.getScorerSpec())) return false; } if (hasFieldSpec() != other.hasFieldSpec()) return false; if (hasFieldSpec()) { if (!getFieldSpec() .equals(other.getFieldSpec())) return false; } if (hasKeysOnly() != other.hasKeysOnly()) return false; if (hasKeysOnly()) { if (getKeysOnly() != other.getKeysOnly()) return false; } if (hasParsingMode() != other.hasParsingMode()) return false; if (hasParsingMode()) { if (parsingMode_ != other.parsingMode_) return false; } if (hasAutoDiscoverFacetCount() != other.hasAutoDiscoverFacetCount()) return false; if (hasAutoDiscoverFacetCount()) { if (getAutoDiscoverFacetCount() != other.getAutoDiscoverFacetCount()) return false; } if (!getIncludeFacetList() .equals(other.getIncludeFacetList())) return false; if (!getFacetRefinementList() .equals(other.getFacetRefinementList())) return false; if (hasFacetAutoDetectParam() != other.hasFacetAutoDetectParam()) return false; if (hasFacetAutoDetectParam()) { if (!getFacetAutoDetectParam() .equals(other.getFacetAutoDetectParam())) return false; } if (hasFacetDepth() != other.hasFacetDepth()) return false; if (hasFacetDepth()) { if (getFacetDepth() != other.getFacetDepth()) return false; } if (hasEnableQueryRewrite() != other.hasEnableQueryRewrite()) return false; if (hasEnableQueryRewrite()) { if (getEnableQueryRewrite() != other.getEnableQueryRewrite()) 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 (hasQuery()) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); } if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); } if (hasCursorType()) { hash = (37 * hash) + CURSOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + cursorType_; } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); } if (hasMatchedCountAccuracy()) { hash = (37 * hash) + MATCHED_COUNT_ACCURACY_FIELD_NUMBER; hash = (53 * hash) + getMatchedCountAccuracy(); } if (getSortSpecCount() > 0) { hash = (37 * hash) + SORT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getSortSpecList().hashCode(); } if (hasScorerSpec()) { hash = (37 * hash) + SCORER_SPEC_FIELD_NUMBER; hash = (53 * hash) + getScorerSpec().hashCode(); } if (hasFieldSpec()) { hash = (37 * hash) + FIELD_SPEC_FIELD_NUMBER; hash = (53 * hash) + getFieldSpec().hashCode(); } if (hasKeysOnly()) { hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeysOnly()); } if (hasParsingMode()) { hash = (37 * hash) + PARSING_MODE_FIELD_NUMBER; hash = (53 * hash) + parsingMode_; } if (hasAutoDiscoverFacetCount()) { hash = (37 * hash) + AUTO_DISCOVER_FACET_COUNT_FIELD_NUMBER; hash = (53 * hash) + getAutoDiscoverFacetCount(); } if (getIncludeFacetCount() > 0) { hash = (37 * hash) + INCLUDE_FACET_FIELD_NUMBER; hash = (53 * hash) + getIncludeFacetList().hashCode(); } if (getFacetRefinementCount() > 0) { hash = (37 * hash) + FACET_REFINEMENT_FIELD_NUMBER; hash = (53 * hash) + getFacetRefinementList().hashCode(); } if (hasFacetAutoDetectParam()) { hash = (37 * hash) + FACET_AUTO_DETECT_PARAM_FIELD_NUMBER; hash = (53 * hash) + getFacetAutoDetectParam().hashCode(); } if (hasFacetDepth()) { hash = (37 * hash) + FACET_DEPTH_FIELD_NUMBER; hash = (53 * hash) + getFacetDepth(); } if (hasEnableQueryRewrite()) { hash = (37 * hash) + ENABLE_QUERY_REWRITE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableQueryRewrite()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.SearchParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchParams 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.SearchParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchParams 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.SearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchParams 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.SearchParams 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.SearchParams 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.SearchParams 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.SearchParams 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.SearchParams 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.SearchParams 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.SearchParams 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; } /** *
     * Parameters to search an index for documents which match a query,
     * restricting the document fields to those given, and sorting and scoring the
     * results, whilst supporting pagination.
     * 
* * Protobuf type {@code java.apphosting.SearchParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.SearchParams) com.google.appengine.api.search.proto.SearchServicePb.SearchParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchParams.class, com.google.appengine.api.search.proto.SearchServicePb.SearchParams.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.SearchParams.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(); getSortSpecFieldBuilder(); getScorerSpecFieldBuilder(); getFieldSpecFieldBuilder(); getIncludeFacetFieldBuilder(); getFacetRefinementFieldBuilder(); getFacetAutoDetectParamFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } query_ = ""; cursor_ = ""; offset_ = 0; cursorType_ = 0; limit_ = 20; matchedCountAccuracy_ = 0; if (sortSpecBuilder_ == null) { sortSpec_ = java.util.Collections.emptyList(); } else { sortSpec_ = null; sortSpecBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); scorerSpec_ = null; if (scorerSpecBuilder_ != null) { scorerSpecBuilder_.dispose(); scorerSpecBuilder_ = null; } fieldSpec_ = null; if (fieldSpecBuilder_ != null) { fieldSpecBuilder_.dispose(); fieldSpecBuilder_ = null; } keysOnly_ = false; parsingMode_ = 0; autoDiscoverFacetCount_ = 0; if (includeFacetBuilder_ == null) { includeFacet_ = java.util.Collections.emptyList(); } else { includeFacet_ = null; includeFacetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (facetRefinementBuilder_ == null) { facetRefinement_ = java.util.Collections.emptyList(); } else { facetRefinement_ = null; facetRefinementBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); facetAutoDetectParam_ = null; if (facetAutoDetectParamBuilder_ != null) { facetAutoDetectParamBuilder_.dispose(); facetAutoDetectParamBuilder_ = null; } facetDepth_ = 1000; enableQueryRewrite_ = 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_SearchParams_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.SearchParams.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams build() { com.google.appengine.api.search.proto.SearchServicePb.SearchParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.SearchParams result = new com.google.appengine.api.search.proto.SearchServicePb.SearchParams(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.SearchParams result) { if (sortSpecBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { sortSpec_ = java.util.Collections.unmodifiableList(sortSpec_); bitField0_ = (bitField0_ & ~0x00000080); } result.sortSpec_ = sortSpec_; } else { result.sortSpec_ = sortSpecBuilder_.build(); } if (includeFacetBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0)) { includeFacet_ = java.util.Collections.unmodifiableList(includeFacet_); bitField0_ = (bitField0_ & ~0x00002000); } result.includeFacet_ = includeFacet_; } else { result.includeFacet_ = includeFacetBuilder_.build(); } if (facetRefinementBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0)) { facetRefinement_ = java.util.Collections.unmodifiableList(facetRefinement_); bitField0_ = (bitField0_ & ~0x00004000); } result.facetRefinement_ = facetRefinement_; } else { result.facetRefinement_ = facetRefinementBuilder_.build(); } } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.SearchParams 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.query_ = query_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cursor_ = cursor_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.offset_ = offset_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.cursorType_ = cursorType_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.limit_ = limit_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.matchedCountAccuracy_ = matchedCountAccuracy_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { result.scorerSpec_ = scorerSpecBuilder_ == null ? scorerSpec_ : scorerSpecBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { result.fieldSpec_ = fieldSpecBuilder_ == null ? fieldSpec_ : fieldSpecBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { result.keysOnly_ = keysOnly_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000800) != 0)) { result.parsingMode_ = parsingMode_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00001000) != 0)) { result.autoDiscoverFacetCount_ = autoDiscoverFacetCount_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00008000) != 0)) { result.facetAutoDetectParam_ = facetAutoDetectParamBuilder_ == null ? facetAutoDetectParam_ : facetAutoDetectParamBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.facetDepth_ = facetDepth_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.enableQueryRewrite_ = enableQueryRewrite_; to_bitField0_ |= 0x00004000; } 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.SearchParams) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.SearchParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.SearchParams other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.SearchParams.getDefaultInstance()) return this; if (other.hasIndexSpec()) { mergeIndexSpec(other.getIndexSpec()); } if (other.hasQuery()) { query_ = other.query_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCursor()) { cursor_ = other.cursor_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasCursorType()) { setCursorType(other.getCursorType()); } if (other.hasLimit()) { setLimit(other.getLimit()); } if (other.hasMatchedCountAccuracy()) { setMatchedCountAccuracy(other.getMatchedCountAccuracy()); } if (sortSpecBuilder_ == null) { if (!other.sortSpec_.isEmpty()) { if (sortSpec_.isEmpty()) { sortSpec_ = other.sortSpec_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureSortSpecIsMutable(); sortSpec_.addAll(other.sortSpec_); } onChanged(); } } else { if (!other.sortSpec_.isEmpty()) { if (sortSpecBuilder_.isEmpty()) { sortSpecBuilder_.dispose(); sortSpecBuilder_ = null; sortSpec_ = other.sortSpec_; bitField0_ = (bitField0_ & ~0x00000080); sortSpecBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSortSpecFieldBuilder() : null; } else { sortSpecBuilder_.addAllMessages(other.sortSpec_); } } } if (other.hasScorerSpec()) { mergeScorerSpec(other.getScorerSpec()); } if (other.hasFieldSpec()) { mergeFieldSpec(other.getFieldSpec()); } if (other.hasKeysOnly()) { setKeysOnly(other.getKeysOnly()); } if (other.hasParsingMode()) { setParsingMode(other.getParsingMode()); } if (other.hasAutoDiscoverFacetCount()) { setAutoDiscoverFacetCount(other.getAutoDiscoverFacetCount()); } if (includeFacetBuilder_ == null) { if (!other.includeFacet_.isEmpty()) { if (includeFacet_.isEmpty()) { includeFacet_ = other.includeFacet_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureIncludeFacetIsMutable(); includeFacet_.addAll(other.includeFacet_); } onChanged(); } } else { if (!other.includeFacet_.isEmpty()) { if (includeFacetBuilder_.isEmpty()) { includeFacetBuilder_.dispose(); includeFacetBuilder_ = null; includeFacet_ = other.includeFacet_; bitField0_ = (bitField0_ & ~0x00002000); includeFacetBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIncludeFacetFieldBuilder() : null; } else { includeFacetBuilder_.addAllMessages(other.includeFacet_); } } } if (facetRefinementBuilder_ == null) { if (!other.facetRefinement_.isEmpty()) { if (facetRefinement_.isEmpty()) { facetRefinement_ = other.facetRefinement_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureFacetRefinementIsMutable(); facetRefinement_.addAll(other.facetRefinement_); } onChanged(); } } else { if (!other.facetRefinement_.isEmpty()) { if (facetRefinementBuilder_.isEmpty()) { facetRefinementBuilder_.dispose(); facetRefinementBuilder_ = null; facetRefinement_ = other.facetRefinement_; bitField0_ = (bitField0_ & ~0x00004000); facetRefinementBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFacetRefinementFieldBuilder() : null; } else { facetRefinementBuilder_.addAllMessages(other.facetRefinement_); } } } if (other.hasFacetAutoDetectParam()) { mergeFacetAutoDetectParam(other.getFacetAutoDetectParam()); } if (other.hasFacetDepth()) { setFacetDepth(other.getFacetDepth()); } if (other.hasEnableQueryRewrite()) { setEnableQueryRewrite(other.getEnableQueryRewrite()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasIndexSpec()) { return false; } if (!hasQuery()) { return false; } if (!getIndexSpec().isInitialized()) { return false; } for (int i = 0; i < getSortSpecCount(); i++) { if (!getSortSpec(i).isInitialized()) { return false; } } if (hasFieldSpec()) { if (!getFieldSpec().isInitialized()) { return false; } } for (int i = 0; i < getIncludeFacetCount(); i++) { if (!getIncludeFacet(i).isInitialized()) { return false; } } for (int i = 0; i < getFacetRefinementCount(); i++) { if (!getFacetRefinement(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: { query_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 34: { cursor_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType tmpValue = com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(5, tmpRaw); } else { cursorType_ = tmpRaw; bitField0_ |= 0x00000010; } break; } // case 40 case 48: { limit_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { matchedCountAccuracy_ = input.readInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { com.google.appengine.api.search.proto.SearchServicePb.SortSpec m = input.readMessage( com.google.appengine.api.search.proto.SearchServicePb.SortSpec.PARSER, extensionRegistry); if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.add(m); } else { sortSpecBuilder_.addMessage(m); } break; } // case 66 case 74: { input.readMessage( getScorerSpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getFieldSpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 88: { offset_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 88 case 96: { keysOnly_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 96 case 104: { int tmpRaw = input.readEnum(); com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode tmpValue = com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(13, tmpRaw); } else { parsingMode_ = tmpRaw; bitField0_ |= 0x00000800; } break; } // case 104 case 120: { autoDiscoverFacetCount_ = input.readInt32(); bitField0_ |= 0x00001000; break; } // case 120 case 130: { com.google.appengine.api.search.proto.SearchServicePb.FacetRequest m = input.readMessage( com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.PARSER, extensionRegistry); if (includeFacetBuilder_ == null) { ensureIncludeFacetIsMutable(); includeFacet_.add(m); } else { includeFacetBuilder_.addMessage(m); } break; } // case 130 case 138: { com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement m = input.readMessage( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.PARSER, extensionRegistry); if (facetRefinementBuilder_ == null) { ensureFacetRefinementIsMutable(); facetRefinement_.add(m); } else { facetRefinementBuilder_.addMessage(m); } break; } // case 138 case 146: { input.readMessage( getFacetAutoDetectParamFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 146 case 152: { facetDepth_ = input.readInt32(); bitField0_ |= 0x00010000; break; } // case 152 case 160: { enableQueryRewrite_ = input.readBool(); bitField0_ |= 0x00020000; break; } // case 160 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 full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return Whether the indexSpec field is set. */ public boolean hasIndexSpec() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; * @return The indexSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec getIndexSpec() { if (indexSpecBuilder_ == null) { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } else { return indexSpecBuilder_.getMessage(); } } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSpec_ = value; } else { indexSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder setIndexSpec( com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder builderForValue) { if (indexSpecBuilder_ == null) { indexSpec_ = builderForValue.build(); } else { indexSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder mergeIndexSpec(com.google.appengine.api.search.proto.SearchServicePb.IndexSpec value) { if (indexSpecBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && indexSpec_ != null && indexSpec_ != com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance()) { getIndexSpecBuilder().mergeFrom(value); } else { indexSpec_ = value; } } else { indexSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public Builder clearIndexSpec() { bitField0_ = (bitField0_ & ~0x00000001); indexSpec_ = null; if (indexSpecBuilder_ != null) { indexSpecBuilder_.dispose(); indexSpecBuilder_ = null; } onChanged(); return this; } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.Builder getIndexSpecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIndexSpecFieldBuilder().getBuilder(); } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.IndexSpecOrBuilder getIndexSpecOrBuilder() { if (indexSpecBuilder_ != null) { return indexSpecBuilder_.getMessageOrBuilder(); } else { return indexSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.IndexSpec.getDefaultInstance() : indexSpec_; } } /** *
       * The full specification of the index to search.
       * 
* * required .java.apphosting.IndexSpec index_spec = 1; */ 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> getIndexSpecFieldBuilder() { if (indexSpecBuilder_ == null) { indexSpecBuilder_ = new 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>( getIndexSpec(), getParentForChildren(), isClean()); indexSpec_ = null; } return indexSpecBuilder_; } private java.lang.Object query_ = ""; /** *
       * The query string must be in the search query syntax. These strings can
       * be constructed by hand, or by using the query api.
       * 
* * required string query = 2; * @return Whether the query field is set. */ public boolean hasQuery() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The query string must be in the search query syntax. These strings can
       * be constructed by hand, or by using the query api.
       * 
* * required string query = 2; * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; 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()) { query_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The query string must be in the search query syntax. These strings can
       * be constructed by hand, or by using the query api.
       * 
* * required string query = 2; * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The query string must be in the search query syntax. These strings can
       * be constructed by hand, or by using the query api.
       * 
* * required string query = 2; * @param value The query to set. * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The query string must be in the search query syntax. These strings can
       * be constructed by hand, or by using the query api.
       * 
* * required string query = 2; * @return This builder for chaining. */ public Builder clearQuery() { query_ = getDefaultInstance().getQuery(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The query string must be in the search query syntax. These strings can
       * be constructed by hand, or by using the query api.
       * 
* * required string query = 2; * @param value The bytes for query to set. * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object cursor_ = ""; /** *
       * Use a cursor returned from a previous set of search results as
       * a starting point to retrieve the next set of results. This can get you
       * better performance, and also improves the consistency of pagination
       * through index updates.
       * 
* * optional string cursor = 4; * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Use a cursor returned from a previous set of search results as
       * a starting point to retrieve the next set of results. This can get you
       * better performance, and also improves the consistency of pagination
       * through index updates.
       * 
* * optional string cursor = 4; * @return The cursor. */ public java.lang.String getCursor() { java.lang.Object ref = cursor_; 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()) { cursor_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Use a cursor returned from a previous set of search results as
       * a starting point to retrieve the next set of results. This can get you
       * better performance, and also improves the consistency of pagination
       * through index updates.
       * 
* * optional string cursor = 4; * @return The bytes for cursor. */ public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Use a cursor returned from a previous set of search results as
       * a starting point to retrieve the next set of results. This can get you
       * better performance, and also improves the consistency of pagination
       * through index updates.
       * 
* * optional string cursor = 4; * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Use a cursor returned from a previous set of search results as
       * a starting point to retrieve the next set of results. This can get you
       * better performance, and also improves the consistency of pagination
       * through index updates.
       * 
* * optional string cursor = 4; * @return This builder for chaining. */ public Builder clearCursor() { cursor_ = getDefaultInstance().getCursor(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Use a cursor returned from a previous set of search results as
       * a starting point to retrieve the next set of results. This can get you
       * better performance, and also improves the consistency of pagination
       * through index updates.
       * 
* * optional string cursor = 4; * @param value The bytes for cursor to set. * @return This builder for chaining. */ public Builder setCursorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int offset_ ; /** *
       * Use the offset if you want to move to arbitrary result. You can use to
       * move to the location independent of the last returned results. However,
       * this freedom comes at a price, as the backend reads all documents
       * preceding the given offset and just does not return them.
       * 
* * optional int32 offset = 11; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Use the offset if you want to move to arbitrary result. You can use to
       * move to the location independent of the last returned results. However,
       * this freedom comes at a price, as the backend reads all documents
       * preceding the given offset and just does not return them.
       * 
* * optional int32 offset = 11; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** *
       * Use the offset if you want to move to arbitrary result. You can use to
       * move to the location independent of the last returned results. However,
       * this freedom comes at a price, as the backend reads all documents
       * preceding the given offset and just does not return them.
       * 
* * optional int32 offset = 11; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Use the offset if you want to move to arbitrary result. You can use to
       * move to the location independent of the last returned results. However,
       * this freedom comes at a price, as the backend reads all documents
       * preceding the given offset and just does not return them.
       * 
* * optional int32 offset = 11; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0; onChanged(); return this; } private int cursorType_ = 0; /** *
       * The type of the cursor returned with a search result.
       * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @return Whether the cursorType field is set. */ @java.lang.Override public boolean hasCursorType() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The type of the cursor returned with a search result.
       * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @return The cursorType. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType getCursorType() { com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType result = com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType.forNumber(cursorType_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType.NONE : result; } /** *
       * The type of the cursor returned with a search result.
       * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @param value The cursorType to set. * @return This builder for chaining. */ public Builder setCursorType(com.google.appengine.api.search.proto.SearchServicePb.SearchParams.CursorType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; cursorType_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of the cursor returned with a search result.
       * 
* * optional .java.apphosting.SearchParams.CursorType cursor_type = 5 [default = NONE]; * @return This builder for chaining. */ public Builder clearCursorType() { bitField0_ = (bitField0_ & ~0x00000010); cursorType_ = 0; onChanged(); return this; } private int limit_ = 20; /** *
       * Limit on number of search results to return. The backend supports
       * pagination. Clients are encouraged to request only those search
       * results needed for display (instead of requesting the typical 1000
       * results and filtering).
       * 
* * optional int32 limit = 6 [default = 20]; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Limit on number of search results to return. The backend supports
       * pagination. Clients are encouraged to request only those search
       * results needed for display (instead of requesting the typical 1000
       * results and filtering).
       * 
* * optional int32 limit = 6 [default = 20]; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } /** *
       * Limit on number of search results to return. The backend supports
       * pagination. Clients are encouraged to request only those search
       * results needed for display (instead of requesting the typical 1000
       * results and filtering).
       * 
* * optional int32 limit = 6 [default = 20]; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Limit on number of search results to return. The backend supports
       * pagination. Clients are encouraged to request only those search
       * results needed for display (instead of requesting the typical 1000
       * results and filtering).
       * 
* * optional int32 limit = 6 [default = 20]; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000020); limit_ = 20; onChanged(); return this; } private int matchedCountAccuracy_ ; /** *
       * Sets the minimum accuracy requirement for SearchResponse.matched_count.
       * If set, matched_count will be accurate up to at least that number.
       * For example, when set to 100, any matched_count <= 100 is accurate.
       * This option may add considerable latency / expense, especially when used
       * with field_spec. By default, accuracy is the same as the limit.
       * 
* * optional int32 matched_count_accuracy = 7; * @return Whether the matchedCountAccuracy field is set. */ @java.lang.Override public boolean hasMatchedCountAccuracy() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Sets the minimum accuracy requirement for SearchResponse.matched_count.
       * If set, matched_count will be accurate up to at least that number.
       * For example, when set to 100, any matched_count <= 100 is accurate.
       * This option may add considerable latency / expense, especially when used
       * with field_spec. By default, accuracy is the same as the limit.
       * 
* * optional int32 matched_count_accuracy = 7; * @return The matchedCountAccuracy. */ @java.lang.Override public int getMatchedCountAccuracy() { return matchedCountAccuracy_; } /** *
       * Sets the minimum accuracy requirement for SearchResponse.matched_count.
       * If set, matched_count will be accurate up to at least that number.
       * For example, when set to 100, any matched_count <= 100 is accurate.
       * This option may add considerable latency / expense, especially when used
       * with field_spec. By default, accuracy is the same as the limit.
       * 
* * optional int32 matched_count_accuracy = 7; * @param value The matchedCountAccuracy to set. * @return This builder for chaining. */ public Builder setMatchedCountAccuracy(int value) { matchedCountAccuracy_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Sets the minimum accuracy requirement for SearchResponse.matched_count.
       * If set, matched_count will be accurate up to at least that number.
       * For example, when set to 100, any matched_count <= 100 is accurate.
       * This option may add considerable latency / expense, especially when used
       * with field_spec. By default, accuracy is the same as the limit.
       * 
* * optional int32 matched_count_accuracy = 7; * @return This builder for chaining. */ public Builder clearMatchedCountAccuracy() { bitField0_ = (bitField0_ & ~0x00000040); matchedCountAccuracy_ = 0; onChanged(); return this; } private java.util.List sortSpec_ = java.util.Collections.emptyList(); private void ensureSortSpecIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { sortSpec_ = new java.util.ArrayList(sortSpec_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SortSpec, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.SortSpecOrBuilder> sortSpecBuilder_; /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public java.util.List getSortSpecList() { if (sortSpecBuilder_ == null) { return java.util.Collections.unmodifiableList(sortSpec_); } else { return sortSpecBuilder_.getMessageList(); } } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public int getSortSpecCount() { if (sortSpecBuilder_ == null) { return sortSpec_.size(); } else { return sortSpecBuilder_.getCount(); } } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public com.google.appengine.api.search.proto.SearchServicePb.SortSpec getSortSpec(int index) { if (sortSpecBuilder_ == null) { return sortSpec_.get(index); } else { return sortSpecBuilder_.getMessage(index); } } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder setSortSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.SortSpec value) { if (sortSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortSpecIsMutable(); sortSpec_.set(index, value); onChanged(); } else { sortSpecBuilder_.setMessage(index, value); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder setSortSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder builderForValue) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.set(index, builderForValue.build()); onChanged(); } else { sortSpecBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder addSortSpec(com.google.appengine.api.search.proto.SearchServicePb.SortSpec value) { if (sortSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortSpecIsMutable(); sortSpec_.add(value); onChanged(); } else { sortSpecBuilder_.addMessage(value); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder addSortSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.SortSpec value) { if (sortSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortSpecIsMutable(); sortSpec_.add(index, value); onChanged(); } else { sortSpecBuilder_.addMessage(index, value); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder addSortSpec( com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder builderForValue) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.add(builderForValue.build()); onChanged(); } else { sortSpecBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder addSortSpec( int index, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder builderForValue) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.add(index, builderForValue.build()); onChanged(); } else { sortSpecBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder addAllSortSpec( java.lang.Iterable values) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sortSpec_); onChanged(); } else { sortSpecBuilder_.addAllMessages(values); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder clearSortSpec() { if (sortSpecBuilder_ == null) { sortSpec_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { sortSpecBuilder_.clear(); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public Builder removeSortSpec(int index) { if (sortSpecBuilder_ == null) { ensureSortSpecIsMutable(); sortSpec_.remove(index); onChanged(); } else { sortSpecBuilder_.remove(index); } return this; } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder getSortSpecBuilder( int index) { return getSortSpecFieldBuilder().getBuilder(index); } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public com.google.appengine.api.search.proto.SearchServicePb.SortSpecOrBuilder getSortSpecOrBuilder( int index) { if (sortSpecBuilder_ == null) { return sortSpec_.get(index); } else { return sortSpecBuilder_.getMessageOrBuilder(index); } } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public java.util.List getSortSpecOrBuilderList() { if (sortSpecBuilder_ != null) { return sortSpecBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sortSpec_); } } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder addSortSpecBuilder() { return getSortSpecFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.SortSpec.getDefaultInstance()); } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder addSortSpecBuilder( int index) { return getSortSpecFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.getDefaultInstance()); } /** *
       * Multi-dimensional sort the search results.
       * 
* * repeated .java.apphosting.SortSpec sort_spec = 8; */ public java.util.List getSortSpecBuilderList() { return getSortSpecFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SortSpec, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.SortSpecOrBuilder> getSortSpecFieldBuilder() { if (sortSpecBuilder_ == null) { sortSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SortSpec, com.google.appengine.api.search.proto.SearchServicePb.SortSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.SortSpecOrBuilder>( sortSpec_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); sortSpec_ = null; } return sortSpecBuilder_; } private com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec scorerSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpecOrBuilder> scorerSpecBuilder_; /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; * @return Whether the scorerSpec field is set. */ public boolean hasScorerSpec() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; * @return The scorerSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec getScorerSpec() { if (scorerSpecBuilder_ == null) { return scorerSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDefaultInstance() : scorerSpec_; } else { return scorerSpecBuilder_.getMessage(); } } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ public Builder setScorerSpec(com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec value) { if (scorerSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scorerSpec_ = value; } else { scorerSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ public Builder setScorerSpec( com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Builder builderForValue) { if (scorerSpecBuilder_ == null) { scorerSpec_ = builderForValue.build(); } else { scorerSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ public Builder mergeScorerSpec(com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec value) { if (scorerSpecBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && scorerSpec_ != null && scorerSpec_ != com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDefaultInstance()) { getScorerSpecBuilder().mergeFrom(value); } else { scorerSpec_ = value; } } else { scorerSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ public Builder clearScorerSpec() { bitField0_ = (bitField0_ & ~0x00000100); scorerSpec_ = null; if (scorerSpecBuilder_ != null) { scorerSpecBuilder_.dispose(); scorerSpecBuilder_ = null; } onChanged(); return this; } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Builder getScorerSpecBuilder() { bitField0_ |= 0x00000100; onChanged(); return getScorerSpecFieldBuilder().getBuilder(); } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ public com.google.appengine.api.search.proto.SearchServicePb.ScorerSpecOrBuilder getScorerSpecOrBuilder() { if (scorerSpecBuilder_ != null) { return scorerSpecBuilder_.getMessageOrBuilder(); } else { return scorerSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.getDefaultInstance() : scorerSpec_; } } /** *
       * The client can control scoring on a query-by-query basis.
       * 
* * optional .java.apphosting.ScorerSpec scorer_spec = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpecOrBuilder> getScorerSpecFieldBuilder() { if (scorerSpecBuilder_ == null) { scorerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.ScorerSpecOrBuilder>( getScorerSpec(), getParentForChildren(), isClean()); scorerSpec_ = null; } return scorerSpecBuilder_; } private com.google.appengine.api.search.proto.SearchServicePb.FieldSpec fieldSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FieldSpec, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.FieldSpecOrBuilder> fieldSpecBuilder_; /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; * @return Whether the fieldSpec field is set. */ public boolean hasFieldSpec() { return ((bitField0_ & 0x00000200) != 0); } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; * @return The fieldSpec. */ public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec getFieldSpec() { if (fieldSpecBuilder_ == null) { return fieldSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.getDefaultInstance() : fieldSpec_; } else { return fieldSpecBuilder_.getMessage(); } } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ public Builder setFieldSpec(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec value) { if (fieldSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldSpec_ = value; } else { fieldSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ public Builder setFieldSpec( com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Builder builderForValue) { if (fieldSpecBuilder_ == null) { fieldSpec_ = builderForValue.build(); } else { fieldSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ public Builder mergeFieldSpec(com.google.appengine.api.search.proto.SearchServicePb.FieldSpec value) { if (fieldSpecBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && fieldSpec_ != null && fieldSpec_ != com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.getDefaultInstance()) { getFieldSpecBuilder().mergeFrom(value); } else { fieldSpec_ = value; } } else { fieldSpecBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ public Builder clearFieldSpec() { bitField0_ = (bitField0_ & ~0x00000200); fieldSpec_ = null; if (fieldSpecBuilder_ != null) { fieldSpecBuilder_.dispose(); fieldSpecBuilder_ = null; } onChanged(); return this; } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ public com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Builder getFieldSpecBuilder() { bitField0_ |= 0x00000200; onChanged(); return getFieldSpecFieldBuilder().getBuilder(); } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ public com.google.appengine.api.search.proto.SearchServicePb.FieldSpecOrBuilder getFieldSpecOrBuilder() { if (fieldSpecBuilder_ != null) { return fieldSpecBuilder_.getMessageOrBuilder(); } else { return fieldSpec_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.getDefaultInstance() : fieldSpec_; } } /** *
       * Which fields from the documents the client wants returned.
       * If the field_spec message is not set, then all fields
       * are returned. If the FieldSpec has no field names specified,
       * then no fields are returned.
       * 
* * optional .java.apphosting.FieldSpec field_spec = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FieldSpec, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.FieldSpecOrBuilder> getFieldSpecFieldBuilder() { if (fieldSpecBuilder_ == null) { fieldSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FieldSpec, com.google.appengine.api.search.proto.SearchServicePb.FieldSpec.Builder, com.google.appengine.api.search.proto.SearchServicePb.FieldSpecOrBuilder>( getFieldSpec(), getParentForChildren(), isClean()); fieldSpec_ = null; } return fieldSpecBuilder_; } private boolean keysOnly_ ; /** *
       * Specifies whether complete documents are returned, or just their keys.
       * 
* * optional bool keys_only = 12; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00000400) != 0); } /** *
       * Specifies whether complete documents are returned, or just their keys.
       * 
* * optional bool keys_only = 12; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } /** *
       * Specifies whether complete documents are returned, or just their keys.
       * 
* * optional bool keys_only = 12; * @param value The keysOnly to set. * @return This builder for chaining. */ public Builder setKeysOnly(boolean value) { keysOnly_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Specifies whether complete documents are returned, or just their keys.
       * 
* * optional bool keys_only = 12; * @return This builder for chaining. */ public Builder clearKeysOnly() { bitField0_ = (bitField0_ & ~0x00000400); keysOnly_ = false; onChanged(); return this; } private int parsingMode_ = 0; /** *
       * Whether the query parsing should be strict.
       * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @return Whether the parsingMode field is set. */ @java.lang.Override public boolean hasParsingMode() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * Whether the query parsing should be strict.
       * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @return The parsingMode. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode getParsingMode() { com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode result = com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode.forNumber(parsingMode_); return result == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode.STRICT : result; } /** *
       * Whether the query parsing should be strict.
       * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @param value The parsingMode to set. * @return This builder for chaining. */ public Builder setParsingMode(com.google.appengine.api.search.proto.SearchServicePb.SearchParams.ParsingMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; parsingMode_ = value.getNumber(); onChanged(); return this; } /** *
       * Whether the query parsing should be strict.
       * 
* * optional .java.apphosting.SearchParams.ParsingMode parsing_mode = 13 [default = STRICT]; * @return This builder for chaining. */ public Builder clearParsingMode() { bitField0_ = (bitField0_ & ~0x00000800); parsingMode_ = 0; onChanged(); return this; } private int autoDiscoverFacetCount_ ; /** *
       * Specify how many facets should be discovered based on the result.
       * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @return Whether the autoDiscoverFacetCount field is set. */ @java.lang.Override public boolean hasAutoDiscoverFacetCount() { return ((bitField0_ & 0x00001000) != 0); } /** *
       * Specify how many facets should be discovered based on the result.
       * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @return The autoDiscoverFacetCount. */ @java.lang.Override public int getAutoDiscoverFacetCount() { return autoDiscoverFacetCount_; } /** *
       * Specify how many facets should be discovered based on the result.
       * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @param value The autoDiscoverFacetCount to set. * @return This builder for chaining. */ public Builder setAutoDiscoverFacetCount(int value) { autoDiscoverFacetCount_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Specify how many facets should be discovered based on the result.
       * 
* * optional int32 auto_discover_facet_count = 15 [default = 0]; * @return This builder for chaining. */ public Builder clearAutoDiscoverFacetCount() { bitField0_ = (bitField0_ & ~0x00001000); autoDiscoverFacetCount_ = 0; onChanged(); return this; } private java.util.List includeFacet_ = java.util.Collections.emptyList(); private void ensureIncludeFacetIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { includeFacet_ = new java.util.ArrayList(includeFacet_); bitField0_ |= 0x00002000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRequest, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestOrBuilder> includeFacetBuilder_; /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public java.util.List getIncludeFacetList() { if (includeFacetBuilder_ == null) { return java.util.Collections.unmodifiableList(includeFacet_); } else { return includeFacetBuilder_.getMessageList(); } } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public int getIncludeFacetCount() { if (includeFacetBuilder_ == null) { return includeFacet_.size(); } else { return includeFacetBuilder_.getCount(); } } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest getIncludeFacet(int index) { if (includeFacetBuilder_ == null) { return includeFacet_.get(index); } else { return includeFacetBuilder_.getMessage(index); } } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder setIncludeFacet( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest value) { if (includeFacetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIncludeFacetIsMutable(); includeFacet_.set(index, value); onChanged(); } else { includeFacetBuilder_.setMessage(index, value); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder setIncludeFacet( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder builderForValue) { if (includeFacetBuilder_ == null) { ensureIncludeFacetIsMutable(); includeFacet_.set(index, builderForValue.build()); onChanged(); } else { includeFacetBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder addIncludeFacet(com.google.appengine.api.search.proto.SearchServicePb.FacetRequest value) { if (includeFacetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIncludeFacetIsMutable(); includeFacet_.add(value); onChanged(); } else { includeFacetBuilder_.addMessage(value); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder addIncludeFacet( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest value) { if (includeFacetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIncludeFacetIsMutable(); includeFacet_.add(index, value); onChanged(); } else { includeFacetBuilder_.addMessage(index, value); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder addIncludeFacet( com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder builderForValue) { if (includeFacetBuilder_ == null) { ensureIncludeFacetIsMutable(); includeFacet_.add(builderForValue.build()); onChanged(); } else { includeFacetBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder addIncludeFacet( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder builderForValue) { if (includeFacetBuilder_ == null) { ensureIncludeFacetIsMutable(); includeFacet_.add(index, builderForValue.build()); onChanged(); } else { includeFacetBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder addAllIncludeFacet( java.lang.Iterable values) { if (includeFacetBuilder_ == null) { ensureIncludeFacetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, includeFacet_); onChanged(); } else { includeFacetBuilder_.addAllMessages(values); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder clearIncludeFacet() { if (includeFacetBuilder_ == null) { includeFacet_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { includeFacetBuilder_.clear(); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public Builder removeIncludeFacet(int index) { if (includeFacetBuilder_ == null) { ensureIncludeFacetIsMutable(); includeFacet_.remove(index); onChanged(); } else { includeFacetBuilder_.remove(index); } return this; } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder getIncludeFacetBuilder( int index) { return getIncludeFacetFieldBuilder().getBuilder(index); } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequestOrBuilder getIncludeFacetOrBuilder( int index) { if (includeFacetBuilder_ == null) { return includeFacet_.get(index); } else { return includeFacetBuilder_.getMessageOrBuilder(index); } } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public java.util.List getIncludeFacetOrBuilderList() { if (includeFacetBuilder_ != null) { return includeFacetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(includeFacet_); } } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder addIncludeFacetBuilder() { return getIncludeFacetFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.getDefaultInstance()); } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder addIncludeFacetBuilder( int index) { return getIncludeFacetFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.getDefaultInstance()); } /** *
       * Specify which facet to be included always in the result.
       * 
* * repeated .java.apphosting.FacetRequest include_facet = 16; */ public java.util.List getIncludeFacetBuilderList() { return getIncludeFacetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRequest, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestOrBuilder> getIncludeFacetFieldBuilder() { if (includeFacetBuilder_ == null) { includeFacetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRequest, com.google.appengine.api.search.proto.SearchServicePb.FacetRequest.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRequestOrBuilder>( includeFacet_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); includeFacet_ = null; } return includeFacetBuilder_; } private java.util.List facetRefinement_ = java.util.Collections.emptyList(); private void ensureFacetRefinementIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { facetRefinement_ = new java.util.ArrayList(facetRefinement_); bitField0_ |= 0x00004000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder> facetRefinementBuilder_; /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public java.util.List getFacetRefinementList() { if (facetRefinementBuilder_ == null) { return java.util.Collections.unmodifiableList(facetRefinement_); } else { return facetRefinementBuilder_.getMessageList(); } } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public int getFacetRefinementCount() { if (facetRefinementBuilder_ == null) { return facetRefinement_.size(); } else { return facetRefinementBuilder_.getCount(); } } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getFacetRefinement(int index) { if (facetRefinementBuilder_ == null) { return facetRefinement_.get(index); } else { return facetRefinementBuilder_.getMessage(index); } } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder setFacetRefinement( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement value) { if (facetRefinementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetRefinementIsMutable(); facetRefinement_.set(index, value); onChanged(); } else { facetRefinementBuilder_.setMessage(index, value); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder setFacetRefinement( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder builderForValue) { if (facetRefinementBuilder_ == null) { ensureFacetRefinementIsMutable(); facetRefinement_.set(index, builderForValue.build()); onChanged(); } else { facetRefinementBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder addFacetRefinement(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement value) { if (facetRefinementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetRefinementIsMutable(); facetRefinement_.add(value); onChanged(); } else { facetRefinementBuilder_.addMessage(value); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder addFacetRefinement( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement value) { if (facetRefinementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetRefinementIsMutable(); facetRefinement_.add(index, value); onChanged(); } else { facetRefinementBuilder_.addMessage(index, value); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder addFacetRefinement( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder builderForValue) { if (facetRefinementBuilder_ == null) { ensureFacetRefinementIsMutable(); facetRefinement_.add(builderForValue.build()); onChanged(); } else { facetRefinementBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder addFacetRefinement( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder builderForValue) { if (facetRefinementBuilder_ == null) { ensureFacetRefinementIsMutable(); facetRefinement_.add(index, builderForValue.build()); onChanged(); } else { facetRefinementBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder addAllFacetRefinement( java.lang.Iterable values) { if (facetRefinementBuilder_ == null) { ensureFacetRefinementIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, facetRefinement_); onChanged(); } else { facetRefinementBuilder_.addAllMessages(values); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder clearFacetRefinement() { if (facetRefinementBuilder_ == null) { facetRefinement_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { facetRefinementBuilder_.clear(); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public Builder removeFacetRefinement(int index) { if (facetRefinementBuilder_ == null) { ensureFacetRefinementIsMutable(); facetRefinement_.remove(index); onChanged(); } else { facetRefinementBuilder_.remove(index); } return this; } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder getFacetRefinementBuilder( int index) { return getFacetRefinementFieldBuilder().getBuilder(index); } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder getFacetRefinementOrBuilder( int index) { if (facetRefinementBuilder_ == null) { return facetRefinement_.get(index); } else { return facetRefinementBuilder_.getMessageOrBuilder(index); } } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public java.util.List getFacetRefinementOrBuilderList() { if (facetRefinementBuilder_ != null) { return facetRefinementBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(facetRefinement_); } } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder addFacetRefinementBuilder() { return getFacetRefinementFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance()); } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder addFacetRefinementBuilder( int index) { return getFacetRefinementFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance()); } /** *
       * Refine results based on given facets. Refinements would be conjunction if
       * the names are different and disjunction if the names are the same.
       * 
* * repeated .java.apphosting.FacetRefinement facet_refinement = 17; */ public java.util.List getFacetRefinementBuilderList() { return getFacetRefinementFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder> getFacetRefinementFieldBuilder() { if (facetRefinementBuilder_ == null) { facetRefinementBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder>( facetRefinement_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); facetRefinement_ = null; } return facetRefinementBuilder_; } private com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam facetAutoDetectParam_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParamOrBuilder> facetAutoDetectParamBuilder_; /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; * @return Whether the facetAutoDetectParam field is set. */ public boolean hasFacetAutoDetectParam() { return ((bitField0_ & 0x00008000) != 0); } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; * @return The facetAutoDetectParam. */ public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam getFacetAutoDetectParam() { if (facetAutoDetectParamBuilder_ == null) { return facetAutoDetectParam_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.getDefaultInstance() : facetAutoDetectParam_; } else { return facetAutoDetectParamBuilder_.getMessage(); } } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ public Builder setFacetAutoDetectParam(com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam value) { if (facetAutoDetectParamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } facetAutoDetectParam_ = value; } else { facetAutoDetectParamBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ public Builder setFacetAutoDetectParam( com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.Builder builderForValue) { if (facetAutoDetectParamBuilder_ == null) { facetAutoDetectParam_ = builderForValue.build(); } else { facetAutoDetectParamBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ public Builder mergeFacetAutoDetectParam(com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam value) { if (facetAutoDetectParamBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && facetAutoDetectParam_ != null && facetAutoDetectParam_ != com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.getDefaultInstance()) { getFacetAutoDetectParamBuilder().mergeFrom(value); } else { facetAutoDetectParam_ = value; } } else { facetAutoDetectParamBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ public Builder clearFacetAutoDetectParam() { bitField0_ = (bitField0_ & ~0x00008000); facetAutoDetectParam_ = null; if (facetAutoDetectParamBuilder_ != null) { facetAutoDetectParamBuilder_.dispose(); facetAutoDetectParamBuilder_ = null; } onChanged(); return this; } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.Builder getFacetAutoDetectParamBuilder() { bitField0_ |= 0x00008000; onChanged(); return getFacetAutoDetectParamFieldBuilder().getBuilder(); } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParamOrBuilder getFacetAutoDetectParamOrBuilder() { if (facetAutoDetectParamBuilder_ != null) { return facetAutoDetectParamBuilder_.getMessageOrBuilder(); } else { return facetAutoDetectParam_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.getDefaultInstance() : facetAutoDetectParam_; } } /** *
       * Parameters for facet auto-detection
       * 
* * optional .java.apphosting.FacetAutoDetectParam facet_auto_detect_param = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParamOrBuilder> getFacetAutoDetectParamFieldBuilder() { if (facetAutoDetectParamBuilder_ == null) { facetAutoDetectParamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParam.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetAutoDetectParamOrBuilder>( getFacetAutoDetectParam(), getParentForChildren(), isClean()); facetAutoDetectParam_ = null; } return facetAutoDetectParamBuilder_; } private int facetDepth_ = 1000; /** *
       * Set number of search result we should go ahead to
       * gather facet information.
       * For example, when set to 1000, any document in
       * first 1000 results will be used to compute facets.
       * 
* * optional int32 facet_depth = 19 [default = 1000]; * @return Whether the facetDepth field is set. */ @java.lang.Override public boolean hasFacetDepth() { return ((bitField0_ & 0x00010000) != 0); } /** *
       * Set number of search result we should go ahead to
       * gather facet information.
       * For example, when set to 1000, any document in
       * first 1000 results will be used to compute facets.
       * 
* * optional int32 facet_depth = 19 [default = 1000]; * @return The facetDepth. */ @java.lang.Override public int getFacetDepth() { return facetDepth_; } /** *
       * Set number of search result we should go ahead to
       * gather facet information.
       * For example, when set to 1000, any document in
       * first 1000 results will be used to compute facets.
       * 
* * optional int32 facet_depth = 19 [default = 1000]; * @param value The facetDepth to set. * @return This builder for chaining. */ public Builder setFacetDepth(int value) { facetDepth_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
       * Set number of search result we should go ahead to
       * gather facet information.
       * For example, when set to 1000, any document in
       * first 1000 results will be used to compute facets.
       * 
* * optional int32 facet_depth = 19 [default = 1000]; * @return This builder for chaining. */ public Builder clearFacetDepth() { bitField0_ = (bitField0_ & ~0x00010000); facetDepth_ = 1000; onChanged(); return this; } private boolean enableQueryRewrite_ ; /** *
       * Whether to enable or disable query rewrite.
       * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @return Whether the enableQueryRewrite field is set. */ @java.lang.Override public boolean hasEnableQueryRewrite() { return ((bitField0_ & 0x00020000) != 0); } /** *
       * Whether to enable or disable query rewrite.
       * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @return The enableQueryRewrite. */ @java.lang.Override public boolean getEnableQueryRewrite() { return enableQueryRewrite_; } /** *
       * Whether to enable or disable query rewrite.
       * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @param value The enableQueryRewrite to set. * @return This builder for chaining. */ public Builder setEnableQueryRewrite(boolean value) { enableQueryRewrite_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** *
       * Whether to enable or disable query rewrite.
       * 
* * optional bool enable_query_rewrite = 20 [default = false]; * @return This builder for chaining. */ public Builder clearEnableQueryRewrite() { bitField0_ = (bitField0_ & ~0x00020000); enableQueryRewrite_ = 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.SearchParams) } // @@protoc_insertion_point(class_scope:java.apphosting.SearchParams) private static final com.google.appengine.api.search.proto.SearchServicePb.SearchParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.SearchParams(); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchParams getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchParams 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.SearchParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.SearchRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The parameters of the search.
     * 
* * required .java.apphosting.SearchParams params = 1; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * The parameters of the search.
     * 
* * required .java.apphosting.SearchParams params = 1; * @return The params. */ com.google.appengine.api.search.proto.SearchServicePb.SearchParams getParams(); /** *
     * The parameters of the search.
     * 
* * required .java.apphosting.SearchParams params = 1; */ com.google.appengine.api.search.proto.SearchServicePb.SearchParamsOrBuilder getParamsOrBuilder(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ boolean hasAppId(); /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ com.google.protobuf.ByteString getAppId(); } /** *
   * Request to search index for the specified parameters.
   * 
* * Protobuf type {@code java.apphosting.SearchRequest} */ public static final class SearchRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.SearchRequest) SearchRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SearchRequest.newBuilder() to construct. private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchRequest() { appId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchRequest(); } @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_SearchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchRequest.class, com.google.appengine.api.search.proto.SearchServicePb.SearchRequest.Builder.class); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; private com.google.appengine.api.search.proto.SearchServicePb.SearchParams params_; /** *
     * The parameters of the search.
     * 
* * required .java.apphosting.SearchParams params = 1; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The parameters of the search.
     * 
* * required .java.apphosting.SearchParams params = 1; * @return The params. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParams getParams() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.getDefaultInstance() : params_; } /** *
     * The parameters of the search.
     * 
* * required .java.apphosting.SearchParams params = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchParamsOrBuilder getParamsOrBuilder() { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.getDefaultInstance() : params_; } public static final int APP_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Name of the app_id - only works for admin console.
     * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } 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 (!hasParams()) { memoizedIsInitialized = 0; return false; } if (!getParams().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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(3, appId_); } 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, getParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, appId_); } 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.SearchRequest)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.SearchRequest other = (com.google.appengine.api.search.proto.SearchServicePb.SearchRequest) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) 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 (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.SearchRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchRequest 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.SearchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchRequest 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.SearchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchRequest 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.SearchRequest 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.SearchRequest 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.SearchRequest 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.SearchRequest 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.SearchRequest 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.SearchRequest 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.SearchRequest 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; } /** *
     * Request to search index for the specified parameters.
     * 
* * Protobuf type {@code java.apphosting.SearchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.SearchRequest) com.google.appengine.api.search.proto.SearchServicePb.SearchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchRequest.class, com.google.appengine.api.search.proto.SearchServicePb.SearchRequest.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.SearchRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } appId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchRequest_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchRequest getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.SearchRequest.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchRequest build() { com.google.appengine.api.search.proto.SearchServicePb.SearchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchRequest buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.SearchRequest result = new com.google.appengine.api.search.proto.SearchServicePb.SearchRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.SearchRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appId_ = appId_; 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.SearchRequest) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.SearchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.SearchRequest other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.SearchRequest.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (other.hasAppId()) { setAppId(other.getAppId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasParams()) { return false; } if (!getParams().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( getParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 26: { appId_ = input.readBytes(); bitField0_ |= 0x00000002; 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 com.google.appengine.api.search.proto.SearchServicePb.SearchParams params_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SearchParams, com.google.appengine.api.search.proto.SearchServicePb.SearchParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.SearchParamsOrBuilder> paramsBuilder_; /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; * @return Whether the params field is set. */ public boolean hasParams() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; * @return The params. */ public com.google.appengine.api.search.proto.SearchServicePb.SearchParams getParams() { if (paramsBuilder_ == null) { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; */ public Builder setParams(com.google.appengine.api.search.proto.SearchServicePb.SearchParams value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; } else { paramsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; */ public Builder setParams( com.google.appengine.api.search.proto.SearchServicePb.SearchParams.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); } else { paramsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; */ public Builder mergeParams(com.google.appengine.api.search.proto.SearchServicePb.SearchParams value) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && params_ != null && params_ != com.google.appengine.api.search.proto.SearchServicePb.SearchParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); } else { params_ = value; } } else { paramsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; */ public Builder clearParams() { bitField0_ = (bitField0_ & ~0x00000001); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); paramsBuilder_ = null; } onChanged(); return this; } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.SearchParams.Builder getParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.SearchParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? com.google.appengine.api.search.proto.SearchServicePb.SearchParams.getDefaultInstance() : params_; } } /** *
       * The parameters of the search.
       * 
* * required .java.apphosting.SearchParams params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SearchParams, com.google.appengine.api.search.proto.SearchServicePb.SearchParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.SearchParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SearchParams, com.google.appengine.api.search.proto.SearchServicePb.SearchParams.Builder, com.google.appengine.api.search.proto.SearchServicePb.SearchParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return The appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppId() { return appId_; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Name of the app_id - only works for admin console.
       * 
* * optional bytes app_id = 3; * @return This builder for chaining. */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); 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.SearchRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.SearchRequest) private static final com.google.appengine.api.search.proto.SearchServicePb.SearchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.SearchRequest(); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchRequest 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.SearchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FacetResultValueOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.FacetResultValue) com.google.protobuf.MessageOrBuilder { /** *
     * Value (constraint) name. could be a simple value name (e.g.,
     * "red" or "white" for "Wine Type") or a range name (e.g,
     * "1..100" when requested a number range facet)
     * 
* * required string name = 1; * @return Whether the name field is set. */ boolean hasName(); /** *
     * Value (constraint) name. could be a simple value name (e.g.,
     * "red" or "white" for "Wine Type") or a range name (e.g,
     * "1..100" when requested a number range facet)
     * 
* * required string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Value (constraint) name. could be a simple value name (e.g.,
     * "red" or "white" for "Wine Type") or a range name (e.g,
     * "1..100" when requested a number range facet)
     * 
* * required string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * required int32 count = 2; * @return Whether the count field is set. */ boolean hasCount(); /** * required int32 count = 2; * @return The count. */ int getCount(); /** *
     * The refinement message that can be used to refine future search requests
     * using this facet result value.
     * 
* * required .java.apphosting.FacetRefinement refinement = 3; * @return Whether the refinement field is set. */ boolean hasRefinement(); /** *
     * The refinement message that can be used to refine future search requests
     * using this facet result value.
     * 
* * required .java.apphosting.FacetRefinement refinement = 3; * @return The refinement. */ com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getRefinement(); /** *
     * The refinement message that can be used to refine future search requests
     * using this facet result value.
     * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder getRefinementOrBuilder(); } /** * Protobuf type {@code java.apphosting.FacetResultValue} */ public static final class FacetResultValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.FacetResultValue) FacetResultValueOrBuilder { private static final long serialVersionUID = 0L; // Use FacetResultValue.newBuilder() to construct. private FacetResultValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FacetResultValue() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FacetResultValue(); } @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_FacetResultValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetResultValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.class, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * Value (constraint) name. could be a simple value name (e.g.,
     * "red" or "white" for "Wine Type") or a range name (e.g,
     * "1..100" when requested a number range facet)
     * 
* * required string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Value (constraint) name. could be a simple value name (e.g.,
     * "red" or "white" for "Wine Type") or a range name (e.g,
     * "1..100" when requested a number range facet)
     * 
* * 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; } } /** *
     * Value (constraint) name. could be a simple value name (e.g.,
     * "red" or "white" for "Wine Type") or a range name (e.g,
     * "1..100" when requested a number range facet)
     * 
* * 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 COUNT_FIELD_NUMBER = 2; private int count_ = 0; /** * required int32 count = 2; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000002) != 0); } /** * required int32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } public static final int REFINEMENT_FIELD_NUMBER = 3; private com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement refinement_; /** *
     * The refinement message that can be used to refine future search requests
     * using this facet result value.
     * 
* * required .java.apphosting.FacetRefinement refinement = 3; * @return Whether the refinement field is set. */ @java.lang.Override public boolean hasRefinement() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The refinement message that can be used to refine future search requests
     * using this facet result value.
     * 
* * required .java.apphosting.FacetRefinement refinement = 3; * @return The refinement. */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getRefinement() { return refinement_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance() : refinement_; } /** *
     * The refinement message that can be used to refine future search requests
     * using this facet result value.
     * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder getRefinementOrBuilder() { return refinement_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance() : refinement_; } 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 (!hasCount()) { memoizedIsInitialized = 0; return false; } if (!hasRefinement()) { memoizedIsInitialized = 0; return false; } if (!getRefinement().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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, count_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getRefinement()); } 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 .computeInt32Size(2, count_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRefinement()); } 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.FacetResultValue)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue other = (com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasCount() != other.hasCount()) return false; if (hasCount()) { if (getCount() != other.getCount()) return false; } if (hasRefinement() != other.hasRefinement()) return false; if (hasRefinement()) { if (!getRefinement() .equals(other.getRefinement())) 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 (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } if (hasRefinement()) { hash = (37 * hash) + REFINEMENT_FIELD_NUMBER; hash = (53 * hash) + getRefinement().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue 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.FacetResultValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue 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.FacetResultValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue 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.FacetResultValue 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.FacetResultValue 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.FacetResultValue 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.FacetResultValue 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.FacetResultValue 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.FacetResultValue 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.FacetResultValue 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.FacetResultValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.FacetResultValue) com.google.appengine.api.search.proto.SearchServicePb.FacetResultValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetResultValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetResultValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.class, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRefinementFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; count_ = 0; refinement_ = null; if (refinementBuilder_ != null) { refinementBuilder_.dispose(); refinementBuilder_ = 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_FacetResultValue_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue build() { com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue result = new com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue 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.count_ = count_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.refinement_ = refinementBuilder_ == null ? refinement_ : refinementBuilder_.build(); 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.FacetResultValue) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.getDefaultInstance()) return this; if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasRefinement()) { mergeRefinement(other.getRefinement()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasCount()) { return false; } if (!hasRefinement()) { return false; } if (!getRefinement().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: { name_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { count_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getRefinementFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Value (constraint) name. could be a simple value name (e.g.,
       * "red" or "white" for "Wine Type") or a range name (e.g,
       * "1..100" when requested a number range facet)
       * 
* * required string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Value (constraint) name. could be a simple value name (e.g.,
       * "red" or "white" for "Wine Type") or a range name (e.g,
       * "1..100" when requested a number range facet)
       * 
* * 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; } } /** *
       * Value (constraint) name. could be a simple value name (e.g.,
       * "red" or "white" for "Wine Type") or a range name (e.g,
       * "1..100" when requested a number range facet)
       * 
* * 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; } } /** *
       * Value (constraint) name. could be a simple value name (e.g.,
       * "red" or "white" for "Wine Type") or a range name (e.g,
       * "1..100" when requested a number range facet)
       * 
* * 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; } /** *
       * Value (constraint) name. could be a simple value name (e.g.,
       * "red" or "white" for "Wine Type") or a range name (e.g,
       * "1..100" when requested a number range facet)
       * 
* * required string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Value (constraint) name. could be a simple value name (e.g.,
       * "red" or "white" for "Wine Type") or a range name (e.g,
       * "1..100" when requested a number range facet)
       * 
* * 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 count_ ; /** * required int32 count = 2; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000002) != 0); } /** * required int32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** * required int32 count = 2; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 count = 2; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); count_ = 0; onChanged(); return this; } private com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement refinement_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder> refinementBuilder_; /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; * @return Whether the refinement field is set. */ public boolean hasRefinement() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; * @return The refinement. */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement getRefinement() { if (refinementBuilder_ == null) { return refinement_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance() : refinement_; } else { return refinementBuilder_.getMessage(); } } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ public Builder setRefinement(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement value) { if (refinementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } refinement_ = value; } else { refinementBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ public Builder setRefinement( com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder builderForValue) { if (refinementBuilder_ == null) { refinement_ = builderForValue.build(); } else { refinementBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ public Builder mergeRefinement(com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement value) { if (refinementBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && refinement_ != null && refinement_ != com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance()) { getRefinementBuilder().mergeFrom(value); } else { refinement_ = value; } } else { refinementBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ public Builder clearRefinement() { bitField0_ = (bitField0_ & ~0x00000004); refinement_ = null; if (refinementBuilder_ != null) { refinementBuilder_.dispose(); refinementBuilder_ = null; } onChanged(); return this; } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder getRefinementBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRefinementFieldBuilder().getBuilder(); } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder getRefinementOrBuilder() { if (refinementBuilder_ != null) { return refinementBuilder_.getMessageOrBuilder(); } else { return refinement_ == null ? com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.getDefaultInstance() : refinement_; } } /** *
       * The refinement message that can be used to refine future search requests
       * using this facet result value.
       * 
* * required .java.apphosting.FacetRefinement refinement = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder> getRefinementFieldBuilder() { if (refinementBuilder_ == null) { refinementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinement.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetRefinementOrBuilder>( getRefinement(), getParentForChildren(), isClean()); refinement_ = null; } return refinementBuilder_; } @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.FacetResultValue) } // @@protoc_insertion_point(class_scope:java.apphosting.FacetResultValue) private static final com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue(); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FacetResultValue 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.FacetResultValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FacetResultOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.FacetResult) com.google.protobuf.MessageOrBuilder { /** *
     * facet name (e.g. "Wine Type")
     * 
* * required string name = 1; * @return Whether the name field is set. */ boolean hasName(); /** *
     * facet name (e.g. "Wine Type")
     * 
* * required string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * facet name (e.g. "Wine Type")
     * 
* * required string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ java.util.List getValueList(); /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue getValue(int index); /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ int getValueCount(); /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ java.util.List getValueOrBuilderList(); /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ com.google.appengine.api.search.proto.SearchServicePb.FacetResultValueOrBuilder getValueOrBuilder( int index); } /** * Protobuf type {@code java.apphosting.FacetResult} */ public static final class FacetResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.FacetResult) FacetResultOrBuilder { private static final long serialVersionUID = 0L; // Use FacetResult.newBuilder() to construct. private FacetResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FacetResult() { name_ = ""; value_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FacetResult(); } @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_FacetResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetResult.class, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * facet name (e.g. "Wine Type")
     * 
* * required string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * facet name (e.g. "Wine Type")
     * 
* * 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; } } /** *
     * facet name (e.g. "Wine Type")
     * 
* * 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 VALUE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List value_; /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ @java.lang.Override public java.util.List getValueList() { return value_; } /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ @java.lang.Override public java.util.List getValueOrBuilderList() { return value_; } /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ @java.lang.Override public int getValueCount() { return value_.size(); } /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue getValue(int index) { return value_.get(index); } /** *
     * list of values/ranges for this facet
     * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValueOrBuilder getValueOrBuilder( int index) { return value_.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 (!hasName()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getValueCount(); i++) { if (!getValue(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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < value_.size(); i++) { output.writeMessage(2, value_.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.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, value_.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.FacetResult)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.FacetResult other = (com.google.appengine.api.search.proto.SearchServicePb.FacetResult) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (!getValueList() .equals(other.getValueList())) 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResult 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.FacetResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResult 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.FacetResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResult 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.FacetResult 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.FacetResult 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.FacetResult 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.FacetResult 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.FacetResult 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.FacetResult 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.FacetResult 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.FacetResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.FacetResult) com.google.appengine.api.search.proto.SearchServicePb.FacetResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_FacetResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.FacetResult.class, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.FacetResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); } else { value_ = null; valueBuilder_.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_FacetResult_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResult getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.FacetResult.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResult build() { com.google.appengine.api.search.proto.SearchServicePb.FacetResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResult buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.FacetResult result = new com.google.appengine.api.search.proto.SearchServicePb.FacetResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.FacetResult result) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.FacetResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; 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.FacetResult) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.FacetResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.FacetResult other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.FacetResult.getDefaultInstance()) return this; if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); valueBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasName()) { return false; } for (int i = 0; i < getValueCount(); i++) { if (!getValue(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: { name_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue m = input.readMessage( com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.PARSER, extensionRegistry); if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(m); } else { valueBuilder_.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 java.lang.Object name_ = ""; /** *
       * facet name (e.g. "Wine Type")
       * 
* * required string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * facet name (e.g. "Wine Type")
       * 
* * 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; } } /** *
       * facet name (e.g. "Wine Type")
       * 
* * 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; } } /** *
       * facet name (e.g. "Wine Type")
       * 
* * 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; } /** *
       * facet name (e.g. "Wine Type")
       * 
* * required string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * facet name (e.g. "Wine Type")
       * 
* * 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 java.util.List value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { value_ = new java.util.ArrayList(value_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValueOrBuilder> valueBuilder_; /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public java.util.List getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder setValue( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder setValue( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder addValue(com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder addValue( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder addValue( com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder addValue( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder addAllValue( java.lang.Iterable values) { if (valueBuilder_ == null) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { valueBuilder_.clear(); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValueOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public java.util.List getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.getDefaultInstance()); } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.getDefaultInstance()); } /** *
       * list of values/ranges for this facet
       * 
* * repeated .java.apphosting.FacetResultValue value = 2; */ public java.util.List getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValue.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetResultValueOrBuilder>( value_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.FacetResult) } // @@protoc_insertion_point(class_scope:java.apphosting.FacetResult) private static final com.google.appengine.api.search.proto.SearchServicePb.FacetResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.FacetResult(); } public static com.google.appengine.api.search.proto.SearchServicePb.FacetResult getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FacetResult 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.FacetResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.SearchResult) com.google.protobuf.MessageOrBuilder { /** *
     * The document which matches the query.
     * 
* * required .storage_onestore_v3.Document document = 1; * @return Whether the document field is set. */ boolean hasDocument(); /** *
     * The document which matches the query.
     * 
* * required .storage_onestore_v3.Document document = 1; * @return The document. */ com.google.apphosting.api.search.DocumentPb.Document getDocument(); /** *
     * The document which matches the query.
     * 
* * required .storage_onestore_v3.Document document = 1; */ com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder(); /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ java.util.List getExpressionList(); /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ com.google.apphosting.api.search.DocumentPb.Field getExpression(int index); /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ int getExpressionCount(); /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ java.util.List getExpressionOrBuilderList(); /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ com.google.apphosting.api.search.DocumentPb.FieldOrBuilder getExpressionOrBuilder( int index); /** *
     * Deprecated: score assigned during evaluation.
     * Clients should retrieve scores with a FieldSpec whose Expression
     * uses the special variable name '_score'.
     * 
* * repeated double score = 2; * @return A list containing the score. */ java.util.List getScoreList(); /** *
     * Deprecated: score assigned during evaluation.
     * Clients should retrieve scores with a FieldSpec whose Expression
     * uses the special variable name '_score'.
     * 
* * repeated double score = 2; * @return The count of score. */ int getScoreCount(); /** *
     * Deprecated: score assigned during evaluation.
     * Clients should retrieve scores with a FieldSpec whose Expression
     * uses the special variable name '_score'.
     * 
* * repeated double score = 2; * @param index The index of the element to return. * @return The score at the given index. */ double getScore(int index); /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this result.
     * 
* * optional string cursor = 3; * @return Whether the cursor field is set. */ boolean hasCursor(); /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this result.
     * 
* * optional string cursor = 3; * @return The cursor. */ java.lang.String getCursor(); /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this result.
     * 
* * optional string cursor = 3; * @return The bytes for cursor. */ com.google.protobuf.ByteString getCursorBytes(); } /** *
   * A document which matches the search query.
   * 
* * Protobuf type {@code java.apphosting.SearchResult} */ public static final class SearchResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.SearchResult) SearchResultOrBuilder { private static final long serialVersionUID = 0L; // Use SearchResult.newBuilder() to construct. private SearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchResult() { expression_ = java.util.Collections.emptyList(); score_ = emptyDoubleList(); cursor_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchResult(); } @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_SearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchResult.class, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder.class); } private int bitField0_; public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.apphosting.api.search.DocumentPb.Document document_; /** *
     * The document which matches the query.
     * 
* * required .storage_onestore_v3.Document document = 1; * @return Whether the document field is set. */ @java.lang.Override public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The document which matches the query.
     * 
* * required .storage_onestore_v3.Document document = 1; * @return The document. */ @java.lang.Override public com.google.apphosting.api.search.DocumentPb.Document getDocument() { return document_ == null ? com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance() : document_; } /** *
     * The document which matches the query.
     * 
* * required .storage_onestore_v3.Document document = 1; */ @java.lang.Override public com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder() { return document_ == null ? com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance() : document_; } public static final int EXPRESSION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List expression_; /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ @java.lang.Override public java.util.List getExpressionList() { return expression_; } /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ @java.lang.Override public java.util.List getExpressionOrBuilderList() { return expression_; } /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ @java.lang.Override public int getExpressionCount() { return expression_.size(); } /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ @java.lang.Override public com.google.apphosting.api.search.DocumentPb.Field getExpression(int index) { return expression_.get(index); } /** *
     * A key-value pair containing the result of any extra expressions
     * requested. For example, a request with an expression named TotalPrice
     * defined as "Price + Tax" means a Field with a key named TotalPrice and
     * with value set to the computed sum will be returned in a search result
     * expression.
     * As another example, if a request contains an expression named
     * snippet defined as "snippet(\"good times\", content)" then
     * the returned expression will be a Field named snippet with text value
     * containing a snippet of text from the Field named "content",
     * matching the query "good times" .
     * 
* * repeated .storage_onestore_v3.Field expression = 4; */ @java.lang.Override public com.google.apphosting.api.search.DocumentPb.FieldOrBuilder getExpressionOrBuilder( int index) { return expression_.get(index); } public static final int SCORE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList score_; /** *
     * Deprecated: score assigned during evaluation.
     * Clients should retrieve scores with a FieldSpec whose Expression
     * uses the special variable name '_score'.
     * 
* * repeated double score = 2; * @return A list containing the score. */ @java.lang.Override public java.util.List getScoreList() { return score_; } /** *
     * Deprecated: score assigned during evaluation.
     * Clients should retrieve scores with a FieldSpec whose Expression
     * uses the special variable name '_score'.
     * 
* * repeated double score = 2; * @return The count of score. */ public int getScoreCount() { return score_.size(); } /** *
     * Deprecated: score assigned during evaluation.
     * Clients should retrieve scores with a FieldSpec whose Expression
     * uses the special variable name '_score'.
     * 
* * repeated double score = 2; * @param index The index of the element to return. * @return The score at the given index. */ public double getScore(int index) { return score_.getDouble(index); } public static final int CURSOR_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object cursor_ = ""; /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this result.
     * 
* * optional string cursor = 3; * @return Whether the cursor field is set. */ @java.lang.Override public boolean hasCursor() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this result.
     * 
* * optional string cursor = 3; * @return The cursor. */ @java.lang.Override public java.lang.String getCursor() { java.lang.Object ref = cursor_; 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()) { cursor_ = s; } return s; } } /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this result.
     * 
* * optional string cursor = 3; * @return The bytes for cursor. */ @java.lang.Override public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = 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 (!hasDocument()) { memoizedIsInitialized = 0; return false; } if (!getDocument().isInitialized()) { memoizedIsInitialized = 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 { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDocument()); } for (int i = 0; i < score_.size(); i++) { output.writeDouble(2, score_.getDouble(i)); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cursor_); } for (int i = 0; i < expression_.size(); i++) { output.writeMessage(4, expression_.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, getDocument()); } { int dataSize = 0; dataSize = 8 * getScoreList().size(); size += dataSize; size += 1 * getScoreList().size(); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cursor_); } for (int i = 0; i < expression_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, 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.SearchResult)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.SearchResult other = (com.google.appengine.api.search.proto.SearchServicePb.SearchResult) obj; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { if (!getDocument() .equals(other.getDocument())) return false; } if (!getExpressionList() .equals(other.getExpressionList())) return false; if (!getScoreList() .equals(other.getScoreList())) return false; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { if (!getCursor() .equals(other.getCursor())) 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 (hasDocument()) { hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getDocument().hashCode(); } if (getExpressionCount() > 0) { hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpressionList().hashCode(); } if (getScoreCount() > 0) { hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + getScoreList().hashCode(); } if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResult 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.SearchResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResult 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.SearchResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResult 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.SearchResult 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.SearchResult 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.SearchResult 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.SearchResult 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.SearchResult 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.SearchResult 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.SearchResult 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 document which matches the search query.
     * 
* * Protobuf type {@code java.apphosting.SearchResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.SearchResult) com.google.appengine.api.search.proto.SearchServicePb.SearchResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchResult.class, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.SearchResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDocumentFieldBuilder(); getExpressionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; document_ = null; if (documentBuilder_ != null) { documentBuilder_.dispose(); documentBuilder_ = null; } if (expressionBuilder_ == null) { expression_ = java.util.Collections.emptyList(); } else { expression_ = null; expressionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); score_ = emptyDoubleList(); cursor_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchResult_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResult getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.SearchResult.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResult build() { com.google.appengine.api.search.proto.SearchServicePb.SearchResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResult buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.SearchResult result = new com.google.appengine.api.search.proto.SearchServicePb.SearchResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.SearchResult result) { if (expressionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { expression_ = java.util.Collections.unmodifiableList(expression_); bitField0_ = (bitField0_ & ~0x00000002); } result.expression_ = expression_; } else { result.expression_ = expressionBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { score_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.score_ = score_; } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.SearchResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cursor_ = cursor_; 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.SearchResult) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.SearchResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.SearchResult other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.SearchResult.getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } 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_); } } } if (!other.score_.isEmpty()) { if (score_.isEmpty()) { score_ = other.score_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureScoreIsMutable(); score_.addAll(other.score_); } onChanged(); } if (other.hasCursor()) { cursor_ = other.cursor_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasDocument()) { return false; } if (!getDocument().isInitialized()) { return false; } 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: { input.readMessage( getDocumentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 17: { double v = input.readDouble(); ensureScoreIsMutable(); score_.addDouble(v); break; } // case 17 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureScoreIsMutable(); while (input.getBytesUntilLimit() > 0) { score_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 18 case 26: { cursor_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 26 case 34: { com.google.apphosting.api.search.DocumentPb.Field m = input.readMessage( com.google.apphosting.api.search.DocumentPb.Field.PARSER, extensionRegistry); if (expressionBuilder_ == null) { ensureExpressionIsMutable(); expression_.add(m); } else { expressionBuilder_.addMessage(m); } 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 com.google.apphosting.api.search.DocumentPb.Document document_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder> documentBuilder_; /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; * @return The document. */ public com.google.apphosting.api.search.DocumentPb.Document getDocument() { if (documentBuilder_ == null) { return document_ == null ? com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; */ public Builder setDocument(com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } document_ = value; } else { documentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; */ public Builder setDocument( com.google.apphosting.api.search.DocumentPb.Document.Builder builderForValue) { if (documentBuilder_ == null) { document_ = builderForValue.build(); } else { documentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; */ public Builder mergeDocument(com.google.apphosting.api.search.DocumentPb.Document value) { if (documentBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && document_ != null && document_ != com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; } } else { documentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000001); document_ = null; if (documentBuilder_ != null) { documentBuilder_.dispose(); documentBuilder_ = null; } onChanged(); return this; } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; */ public com.google.apphosting.api.search.DocumentPb.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; */ public com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { return document_ == null ? com.google.apphosting.api.search.DocumentPb.Document.getDefaultInstance() : document_; } } /** *
       * The document which matches the query.
       * 
* * required .storage_onestore_v3.Document document = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Document, com.google.apphosting.api.search.DocumentPb.Document.Builder, com.google.apphosting.api.search.DocumentPb.DocumentOrBuilder>( getDocument(), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; } 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.apphosting.api.search.DocumentPb.Field, com.google.apphosting.api.search.DocumentPb.Field.Builder, com.google.apphosting.api.search.DocumentPb.FieldOrBuilder> expressionBuilder_; /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public java.util.List getExpressionList() { if (expressionBuilder_ == null) { return java.util.Collections.unmodifiableList(expression_); } else { return expressionBuilder_.getMessageList(); } } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public int getExpressionCount() { if (expressionBuilder_ == null) { return expression_.size(); } else { return expressionBuilder_.getCount(); } } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public com.google.apphosting.api.search.DocumentPb.Field getExpression(int index) { if (expressionBuilder_ == null) { return expression_.get(index); } else { return expressionBuilder_.getMessage(index); } } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder setExpression( int index, com.google.apphosting.api.search.DocumentPb.Field value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExpressionIsMutable(); expression_.set(index, value); onChanged(); } else { expressionBuilder_.setMessage(index, value); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder setExpression( int index, com.google.apphosting.api.search.DocumentPb.Field.Builder builderForValue) { if (expressionBuilder_ == null) { ensureExpressionIsMutable(); expression_.set(index, builderForValue.build()); onChanged(); } else { expressionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder addExpression(com.google.apphosting.api.search.DocumentPb.Field value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExpressionIsMutable(); expression_.add(value); onChanged(); } else { expressionBuilder_.addMessage(value); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder addExpression( int index, com.google.apphosting.api.search.DocumentPb.Field value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExpressionIsMutable(); expression_.add(index, value); onChanged(); } else { expressionBuilder_.addMessage(index, value); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder addExpression( com.google.apphosting.api.search.DocumentPb.Field.Builder builderForValue) { if (expressionBuilder_ == null) { ensureExpressionIsMutable(); expression_.add(builderForValue.build()); onChanged(); } else { expressionBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder addExpression( int index, com.google.apphosting.api.search.DocumentPb.Field.Builder builderForValue) { if (expressionBuilder_ == null) { ensureExpressionIsMutable(); expression_.add(index, builderForValue.build()); onChanged(); } else { expressionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder addAllExpression( java.lang.Iterable values) { if (expressionBuilder_ == null) { ensureExpressionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, expression_); onChanged(); } else { expressionBuilder_.addAllMessages(values); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder clearExpression() { if (expressionBuilder_ == null) { expression_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { expressionBuilder_.clear(); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public Builder removeExpression(int index) { if (expressionBuilder_ == null) { ensureExpressionIsMutable(); expression_.remove(index); onChanged(); } else { expressionBuilder_.remove(index); } return this; } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public com.google.apphosting.api.search.DocumentPb.Field.Builder getExpressionBuilder( int index) { return getExpressionFieldBuilder().getBuilder(index); } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public com.google.apphosting.api.search.DocumentPb.FieldOrBuilder getExpressionOrBuilder( int index) { if (expressionBuilder_ == null) { return expression_.get(index); } else { return expressionBuilder_.getMessageOrBuilder(index); } } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public java.util.List getExpressionOrBuilderList() { if (expressionBuilder_ != null) { return expressionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(expression_); } } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public com.google.apphosting.api.search.DocumentPb.Field.Builder addExpressionBuilder() { return getExpressionFieldBuilder().addBuilder( com.google.apphosting.api.search.DocumentPb.Field.getDefaultInstance()); } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public com.google.apphosting.api.search.DocumentPb.Field.Builder addExpressionBuilder( int index) { return getExpressionFieldBuilder().addBuilder( index, com.google.apphosting.api.search.DocumentPb.Field.getDefaultInstance()); } /** *
       * A key-value pair containing the result of any extra expressions
       * requested. For example, a request with an expression named TotalPrice
       * defined as "Price + Tax" means a Field with a key named TotalPrice and
       * with value set to the computed sum will be returned in a search result
       * expression.
       * As another example, if a request contains an expression named
       * snippet defined as "snippet(\"good times\", content)" then
       * the returned expression will be a Field named snippet with text value
       * containing a snippet of text from the Field named "content",
       * matching the query "good times" .
       * 
* * repeated .storage_onestore_v3.Field expression = 4; */ public java.util.List getExpressionBuilderList() { return getExpressionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Field, com.google.apphosting.api.search.DocumentPb.Field.Builder, com.google.apphosting.api.search.DocumentPb.FieldOrBuilder> getExpressionFieldBuilder() { if (expressionBuilder_ == null) { expressionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.api.search.DocumentPb.Field, com.google.apphosting.api.search.DocumentPb.Field.Builder, com.google.apphosting.api.search.DocumentPb.FieldOrBuilder>( expression_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); expression_ = null; } return expressionBuilder_; } private com.google.protobuf.Internal.DoubleList score_ = emptyDoubleList(); private void ensureScoreIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { score_ = mutableCopy(score_); bitField0_ |= 0x00000004; } } /** *
       * Deprecated: score assigned during evaluation.
       * Clients should retrieve scores with a FieldSpec whose Expression
       * uses the special variable name '_score'.
       * 
* * repeated double score = 2; * @return A list containing the score. */ public java.util.List getScoreList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(score_) : score_; } /** *
       * Deprecated: score assigned during evaluation.
       * Clients should retrieve scores with a FieldSpec whose Expression
       * uses the special variable name '_score'.
       * 
* * repeated double score = 2; * @return The count of score. */ public int getScoreCount() { return score_.size(); } /** *
       * Deprecated: score assigned during evaluation.
       * Clients should retrieve scores with a FieldSpec whose Expression
       * uses the special variable name '_score'.
       * 
* * repeated double score = 2; * @param index The index of the element to return. * @return The score at the given index. */ public double getScore(int index) { return score_.getDouble(index); } /** *
       * Deprecated: score assigned during evaluation.
       * Clients should retrieve scores with a FieldSpec whose Expression
       * uses the special variable name '_score'.
       * 
* * repeated double score = 2; * @param index The index to set the value at. * @param value The score to set. * @return This builder for chaining. */ public Builder setScore( int index, double value) { ensureScoreIsMutable(); score_.setDouble(index, value); onChanged(); return this; } /** *
       * Deprecated: score assigned during evaluation.
       * Clients should retrieve scores with a FieldSpec whose Expression
       * uses the special variable name '_score'.
       * 
* * repeated double score = 2; * @param value The score to add. * @return This builder for chaining. */ public Builder addScore(double value) { ensureScoreIsMutable(); score_.addDouble(value); onChanged(); return this; } /** *
       * Deprecated: score assigned during evaluation.
       * Clients should retrieve scores with a FieldSpec whose Expression
       * uses the special variable name '_score'.
       * 
* * repeated double score = 2; * @param values The score to add. * @return This builder for chaining. */ public Builder addAllScore( java.lang.Iterable values) { ensureScoreIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, score_); onChanged(); return this; } /** *
       * Deprecated: score assigned during evaluation.
       * Clients should retrieve scores with a FieldSpec whose Expression
       * uses the special variable name '_score'.
       * 
* * repeated double score = 2; * @return This builder for chaining. */ public Builder clearScore() { score_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.lang.Object cursor_ = ""; /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this result.
       * 
* * optional string cursor = 3; * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this result.
       * 
* * optional string cursor = 3; * @return The cursor. */ public java.lang.String getCursor() { java.lang.Object ref = cursor_; 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()) { cursor_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this result.
       * 
* * optional string cursor = 3; * @return The bytes for cursor. */ public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this result.
       * 
* * optional string cursor = 3; * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this result.
       * 
* * optional string cursor = 3; * @return This builder for chaining. */ public Builder clearCursor() { cursor_ = getDefaultInstance().getCursor(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this result.
       * 
* * optional string cursor = 3; * @param value The bytes for cursor to set. * @return This builder for chaining. */ public Builder setCursorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000008; 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.SearchResult) } // @@protoc_insertion_point(class_scope:java.apphosting.SearchResult) private static final com.google.appengine.api.search.proto.SearchServicePb.SearchResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.SearchResult(); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResult getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchResult 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.SearchResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.SearchResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ java.util.List getResultList(); /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ com.google.appengine.api.search.proto.SearchServicePb.SearchResult getResult(int index); /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ int getResultCount(); /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ java.util.List getResultOrBuilderList(); /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ com.google.appengine.api.search.proto.SearchServicePb.SearchResultOrBuilder getResultOrBuilder( int index); /** *
     * The count of documents that matched the query (greater than
     * or equal to the number of documents actually returned).
     * Note that this is an approximation and not an exact count unless
     * it is less than or equal to SearchRequest.matched_count_accuracy.
     * 
* * required int64 matched_count = 2; * @return Whether the matchedCount field is set. */ boolean hasMatchedCount(); /** *
     * The count of documents that matched the query (greater than
     * or equal to the number of documents actually returned).
     * Note that this is an approximation and not an exact count unless
     * it is less than or equal to SearchRequest.matched_count_accuracy.
     * 
* * required int64 matched_count = 2; * @return The matchedCount. */ long getMatchedCount(); /** *
     * The status of the search request.
     * 
* * required .java.apphosting.RequestStatus status = 3; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * The status of the search request.
     * 
* * required .java.apphosting.RequestStatus status = 3; * @return The status. */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatus getStatus(); /** *
     * The status of the search request.
     * 
* * required .java.apphosting.RequestStatus status = 3; */ com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder(); /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this set of results.
     * 
* * optional string cursor = 4; * @return Whether the cursor field is set. */ boolean hasCursor(); /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this set of results.
     * 
* * optional string cursor = 4; * @return The cursor. */ java.lang.String getCursor(); /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this set of results.
     * 
* * optional string cursor = 4; * @return The bytes for cursor. */ com.google.protobuf.ByteString getCursorBytes(); /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ java.util.List getFacetResultList(); /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ com.google.appengine.api.search.proto.SearchServicePb.FacetResult getFacetResult(int index); /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ int getFacetResultCount(); /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ java.util.List getFacetResultOrBuilderList(); /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ com.google.appengine.api.search.proto.SearchServicePb.FacetResultOrBuilder getFacetResultOrBuilder( int index); /** *
     * The count of documents scored during query execution.
     * 
* * optional int32 docs_scored = 6; * @return Whether the docsScored field is set. */ boolean hasDocsScored(); /** *
     * The count of documents scored during query execution.
     * 
* * optional int32 docs_scored = 6; * @return The docsScored. */ int getDocsScored(); } /** *
   * The response to a search request.
   * 
* * Protobuf type {@code java.apphosting.SearchResponse} */ public static final class SearchResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.SearchResponse) SearchResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SearchResponse.newBuilder() to construct. private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchResponse() { result_ = java.util.Collections.emptyList(); cursor_ = ""; facetResult_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchResponse(); } @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_SearchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchResponse.class, com.google.appengine.api.search.proto.SearchServicePb.SearchResponse.Builder.class); } private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List result_; /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ @java.lang.Override public java.util.List getResultList() { return result_; } /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ @java.lang.Override public java.util.List getResultOrBuilderList() { return result_; } /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ @java.lang.Override public int getResultCount() { return result_.size(); } /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResult getResult(int index) { return result_.get(index); } /** *
     * The documents which matched the search query.
     * 
* * repeated .java.apphosting.SearchResult result = 1; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResultOrBuilder getResultOrBuilder( int index) { return result_.get(index); } public static final int MATCHED_COUNT_FIELD_NUMBER = 2; private long matchedCount_ = 0L; /** *
     * The count of documents that matched the query (greater than
     * or equal to the number of documents actually returned).
     * Note that this is an approximation and not an exact count unless
     * it is less than or equal to SearchRequest.matched_count_accuracy.
     * 
* * required int64 matched_count = 2; * @return Whether the matchedCount field is set. */ @java.lang.Override public boolean hasMatchedCount() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The count of documents that matched the query (greater than
     * or equal to the number of documents actually returned).
     * Note that this is an approximation and not an exact count unless
     * it is less than or equal to SearchRequest.matched_count_accuracy.
     * 
* * required int64 matched_count = 2; * @return The matchedCount. */ @java.lang.Override public long getMatchedCount() { return matchedCount_; } public static final int STATUS_FIELD_NUMBER = 3; private com.google.appengine.api.search.proto.SearchServicePb.RequestStatus status_; /** *
     * The status of the search request.
     * 
* * required .java.apphosting.RequestStatus status = 3; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The status of the search request.
     * 
* * required .java.apphosting.RequestStatus status = 3; * @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 search request.
     * 
* * required .java.apphosting.RequestStatus status = 3; */ @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 CURSOR_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object cursor_ = ""; /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this set of results.
     * 
* * optional string cursor = 4; * @return Whether the cursor field is set. */ @java.lang.Override public boolean hasCursor() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this set of results.
     * 
* * optional string cursor = 4; * @return The cursor. */ @java.lang.Override public java.lang.String getCursor() { java.lang.Object ref = cursor_; 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()) { cursor_ = s; } return s; } } /** *
     * A cursor to be used for issuing a subsequent search that will return
     * elements beginning after this set of results.
     * 
* * optional string cursor = 4; * @return The bytes for cursor. */ @java.lang.Override public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FACET_RESULT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List facetResult_; /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ @java.lang.Override public java.util.List getFacetResultList() { return facetResult_; } /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ @java.lang.Override public java.util.List getFacetResultOrBuilderList() { return facetResult_; } /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ @java.lang.Override public int getFacetResultCount() { return facetResult_.size(); } /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResult getFacetResult(int index) { return facetResult_.get(index); } /** *
     * a list of facets with their values and counts
     * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.FacetResultOrBuilder getFacetResultOrBuilder( int index) { return facetResult_.get(index); } public static final int DOCS_SCORED_FIELD_NUMBER = 6; private int docsScored_ = 0; /** *
     * The count of documents scored during query execution.
     * 
* * optional int32 docs_scored = 6; * @return Whether the docsScored field is set. */ @java.lang.Override public boolean hasDocsScored() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The count of documents scored during query execution.
     * 
* * optional int32 docs_scored = 6; * @return The docsScored. */ @java.lang.Override public int getDocsScored() { return docsScored_; } 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 (!hasMatchedCount()) { memoizedIsInitialized = 0; return false; } if (!hasStatus()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getResultCount(); i++) { if (!getResult(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getStatus().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getFacetResultCount(); i++) { if (!getFacetResult(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 < result_.size(); i++) { output.writeMessage(1, result_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, matchedCount_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getStatus()); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cursor_); } for (int i = 0; i < facetResult_.size(); i++) { output.writeMessage(5, facetResult_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(6, docsScored_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < result_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, result_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, matchedCount_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getStatus()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cursor_); } for (int i = 0; i < facetResult_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, facetResult_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, docsScored_); } 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.SearchResponse)) { return super.equals(obj); } com.google.appengine.api.search.proto.SearchServicePb.SearchResponse other = (com.google.appengine.api.search.proto.SearchServicePb.SearchResponse) obj; if (!getResultList() .equals(other.getResultList())) return false; if (hasMatchedCount() != other.hasMatchedCount()) return false; if (hasMatchedCount()) { if (getMatchedCount() != other.getMatchedCount()) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { if (!getCursor() .equals(other.getCursor())) return false; } if (!getFacetResultList() .equals(other.getFacetResultList())) return false; if (hasDocsScored() != other.hasDocsScored()) return false; if (hasDocsScored()) { if (getDocsScored() != other.getDocsScored()) 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 (getResultCount() > 0) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResultList().hashCode(); } if (hasMatchedCount()) { hash = (37 * hash) + MATCHED_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMatchedCount()); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); } if (getFacetResultCount() > 0) { hash = (37 * hash) + FACET_RESULT_FIELD_NUMBER; hash = (53 * hash) + getFacetResultList().hashCode(); } if (hasDocsScored()) { hash = (37 * hash) + DOCS_SCORED_FIELD_NUMBER; hash = (53 * hash) + getDocsScored(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResponse 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.SearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResponse 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.SearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResponse 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.SearchResponse 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.SearchResponse 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.SearchResponse 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.SearchResponse 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.SearchResponse 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.SearchResponse 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.SearchResponse 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 search request.
     * 
* * Protobuf type {@code java.apphosting.SearchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.SearchResponse) com.google.appengine.api.search.proto.SearchServicePb.SearchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.api.search.proto.SearchServicePb.internal_static_java_apphosting_SearchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.api.search.proto.SearchServicePb.SearchResponse.class, com.google.appengine.api.search.proto.SearchServicePb.SearchResponse.Builder.class); } // Construct using com.google.appengine.api.search.proto.SearchServicePb.SearchResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultFieldBuilder(); getStatusFieldBuilder(); getFacetResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (resultBuilder_ == null) { result_ = java.util.Collections.emptyList(); } else { result_ = null; resultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); matchedCount_ = 0L; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } cursor_ = ""; if (facetResultBuilder_ == null) { facetResult_ = java.util.Collections.emptyList(); } else { facetResult_ = null; facetResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); docsScored_ = 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_SearchResponse_descriptor; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResponse getDefaultInstanceForType() { return com.google.appengine.api.search.proto.SearchServicePb.SearchResponse.getDefaultInstance(); } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResponse build() { com.google.appengine.api.search.proto.SearchServicePb.SearchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.api.search.proto.SearchServicePb.SearchResponse buildPartial() { com.google.appengine.api.search.proto.SearchServicePb.SearchResponse result = new com.google.appengine.api.search.proto.SearchServicePb.SearchResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.api.search.proto.SearchServicePb.SearchResponse result) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { result_ = java.util.Collections.unmodifiableList(result_); bitField0_ = (bitField0_ & ~0x00000001); } result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } if (facetResultBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { facetResult_ = java.util.Collections.unmodifiableList(facetResult_); bitField0_ = (bitField0_ & ~0x00000010); } result.facetResult_ = facetResult_; } else { result.facetResult_ = facetResultBuilder_.build(); } } private void buildPartial0(com.google.appengine.api.search.proto.SearchServicePb.SearchResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.matchedCount_ = matchedCount_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cursor_ = cursor_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.docsScored_ = docsScored_; 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.SearchResponse) { return mergeFrom((com.google.appengine.api.search.proto.SearchServicePb.SearchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.api.search.proto.SearchServicePb.SearchResponse other) { if (other == com.google.appengine.api.search.proto.SearchServicePb.SearchResponse.getDefaultInstance()) return this; if (resultBuilder_ == null) { if (!other.result_.isEmpty()) { if (result_.isEmpty()) { result_ = other.result_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultIsMutable(); result_.addAll(other.result_); } onChanged(); } } else { if (!other.result_.isEmpty()) { if (resultBuilder_.isEmpty()) { resultBuilder_.dispose(); resultBuilder_ = null; result_ = other.result_; bitField0_ = (bitField0_ & ~0x00000001); resultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultFieldBuilder() : null; } else { resultBuilder_.addAllMessages(other.result_); } } } if (other.hasMatchedCount()) { setMatchedCount(other.getMatchedCount()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasCursor()) { cursor_ = other.cursor_; bitField0_ |= 0x00000008; onChanged(); } if (facetResultBuilder_ == null) { if (!other.facetResult_.isEmpty()) { if (facetResult_.isEmpty()) { facetResult_ = other.facetResult_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFacetResultIsMutable(); facetResult_.addAll(other.facetResult_); } onChanged(); } } else { if (!other.facetResult_.isEmpty()) { if (facetResultBuilder_.isEmpty()) { facetResultBuilder_.dispose(); facetResultBuilder_ = null; facetResult_ = other.facetResult_; bitField0_ = (bitField0_ & ~0x00000010); facetResultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFacetResultFieldBuilder() : null; } else { facetResultBuilder_.addAllMessages(other.facetResult_); } } } if (other.hasDocsScored()) { setDocsScored(other.getDocsScored()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasMatchedCount()) { return false; } if (!hasStatus()) { return false; } for (int i = 0; i < getResultCount(); i++) { if (!getResult(i).isInitialized()) { return false; } } if (!getStatus().isInitialized()) { return false; } for (int i = 0; i < getFacetResultCount(); i++) { if (!getFacetResult(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.SearchResult m = input.readMessage( com.google.appengine.api.search.proto.SearchServicePb.SearchResult.PARSER, extensionRegistry); if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(m); } else { resultBuilder_.addMessage(m); } break; } // case 10 case 16: { matchedCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { cursor_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.appengine.api.search.proto.SearchServicePb.FacetResult m = input.readMessage( com.google.appengine.api.search.proto.SearchServicePb.FacetResult.PARSER, extensionRegistry); if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.add(m); } else { facetResultBuilder_.addMessage(m); } break; } // case 42 case 48: { docsScored_ = 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 java.util.List result_ = java.util.Collections.emptyList(); private void ensureResultIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { result_ = new java.util.ArrayList(result_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SearchResult, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder, com.google.appengine.api.search.proto.SearchServicePb.SearchResultOrBuilder> resultBuilder_; /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public java.util.List getResultList() { if (resultBuilder_ == null) { return java.util.Collections.unmodifiableList(result_); } else { return resultBuilder_.getMessageList(); } } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public int getResultCount() { if (resultBuilder_ == null) { return result_.size(); } else { return resultBuilder_.getCount(); } } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.SearchResult getResult(int index) { if (resultBuilder_ == null) { return result_.get(index); } else { return resultBuilder_.getMessage(index); } } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder setResult( int index, com.google.appengine.api.search.proto.SearchServicePb.SearchResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.set(index, value); onChanged(); } else { resultBuilder_.setMessage(index, value); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder setResult( int index, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.set(index, builderForValue.build()); onChanged(); } else { resultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder addResult(com.google.appengine.api.search.proto.SearchServicePb.SearchResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.add(value); onChanged(); } else { resultBuilder_.addMessage(value); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder addResult( int index, com.google.appengine.api.search.proto.SearchServicePb.SearchResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.add(index, value); onChanged(); } else { resultBuilder_.addMessage(index, value); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder addResult( com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(builderForValue.build()); onChanged(); } else { resultBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder addResult( int index, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(index, builderForValue.build()); onChanged(); } else { resultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder addAllResult( java.lang.Iterable values) { if (resultBuilder_ == null) { ensureResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, result_); onChanged(); } else { resultBuilder_.addAllMessages(values); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultBuilder_.clear(); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public Builder removeResult(int index) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.remove(index); onChanged(); } else { resultBuilder_.remove(index); } return this; } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder getResultBuilder( int index) { return getResultFieldBuilder().getBuilder(index); } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.SearchResultOrBuilder getResultOrBuilder( int index) { if (resultBuilder_ == null) { return result_.get(index); } else { return resultBuilder_.getMessageOrBuilder(index); } } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public java.util.List getResultOrBuilderList() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(result_); } } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder addResultBuilder() { return getResultFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.SearchResult.getDefaultInstance()); } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder addResultBuilder( int index) { return getResultFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.getDefaultInstance()); } /** *
       * The documents which matched the search query.
       * 
* * repeated .java.apphosting.SearchResult result = 1; */ public java.util.List getResultBuilderList() { return getResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SearchResult, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder, com.google.appengine.api.search.proto.SearchServicePb.SearchResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.SearchResult, com.google.appengine.api.search.proto.SearchServicePb.SearchResult.Builder, com.google.appengine.api.search.proto.SearchServicePb.SearchResultOrBuilder>( result_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private long matchedCount_ ; /** *
       * The count of documents that matched the query (greater than
       * or equal to the number of documents actually returned).
       * Note that this is an approximation and not an exact count unless
       * it is less than or equal to SearchRequest.matched_count_accuracy.
       * 
* * required int64 matched_count = 2; * @return Whether the matchedCount field is set. */ @java.lang.Override public boolean hasMatchedCount() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The count of documents that matched the query (greater than
       * or equal to the number of documents actually returned).
       * Note that this is an approximation and not an exact count unless
       * it is less than or equal to SearchRequest.matched_count_accuracy.
       * 
* * required int64 matched_count = 2; * @return The matchedCount. */ @java.lang.Override public long getMatchedCount() { return matchedCount_; } /** *
       * The count of documents that matched the query (greater than
       * or equal to the number of documents actually returned).
       * Note that this is an approximation and not an exact count unless
       * it is less than or equal to SearchRequest.matched_count_accuracy.
       * 
* * required int64 matched_count = 2; * @param value The matchedCount to set. * @return This builder for chaining. */ public Builder setMatchedCount(long value) { matchedCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The count of documents that matched the query (greater than
       * or equal to the number of documents actually returned).
       * Note that this is an approximation and not an exact count unless
       * it is less than or equal to SearchRequest.matched_count_accuracy.
       * 
* * required int64 matched_count = 2; * @return This builder for chaining. */ public Builder clearMatchedCount() { bitField0_ = (bitField0_ & ~0x00000002); matchedCount_ = 0L; onChanged(); return this; } 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 search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The status of the search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; * @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 search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; */ 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_ |= 0x00000004; onChanged(); return this; } /** *
       * The status of the search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; */ public Builder setStatus( com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The status of the search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; */ public Builder mergeStatus(com.google.appengine.api.search.proto.SearchServicePb.RequestStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && status_ != null && status_ != com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The status of the search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000004); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
       * The status of the search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * The status of the search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; */ public com.google.appengine.api.search.proto.SearchServicePb.RequestStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.google.appengine.api.search.proto.SearchServicePb.RequestStatus.getDefaultInstance() : status_; } } /** *
       * The status of the search request.
       * 
* * required .java.apphosting.RequestStatus status = 3; */ 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new 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>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.lang.Object cursor_ = ""; /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this set of results.
       * 
* * optional string cursor = 4; * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this set of results.
       * 
* * optional string cursor = 4; * @return The cursor. */ public java.lang.String getCursor() { java.lang.Object ref = cursor_; 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()) { cursor_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this set of results.
       * 
* * optional string cursor = 4; * @return The bytes for cursor. */ public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this set of results.
       * 
* * optional string cursor = 4; * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this set of results.
       * 
* * optional string cursor = 4; * @return This builder for chaining. */ public Builder clearCursor() { cursor_ = getDefaultInstance().getCursor(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * A cursor to be used for issuing a subsequent search that will return
       * elements beginning after this set of results.
       * 
* * optional string cursor = 4; * @param value The bytes for cursor to set. * @return This builder for chaining. */ public Builder setCursorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.util.List facetResult_ = java.util.Collections.emptyList(); private void ensureFacetResultIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { facetResult_ = new java.util.ArrayList(facetResult_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetResult, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetResultOrBuilder> facetResultBuilder_; /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public java.util.List getFacetResultList() { if (facetResultBuilder_ == null) { return java.util.Collections.unmodifiableList(facetResult_); } else { return facetResultBuilder_.getMessageList(); } } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public int getFacetResultCount() { if (facetResultBuilder_ == null) { return facetResult_.size(); } else { return facetResultBuilder_.getCount(); } } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResult getFacetResult(int index) { if (facetResultBuilder_ == null) { return facetResult_.get(index); } else { return facetResultBuilder_.getMessage(index); } } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder setFacetResult( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResult value) { if (facetResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetResultIsMutable(); facetResult_.set(index, value); onChanged(); } else { facetResultBuilder_.setMessage(index, value); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder setFacetResult( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder builderForValue) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.set(index, builderForValue.build()); onChanged(); } else { facetResultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder addFacetResult(com.google.appengine.api.search.proto.SearchServicePb.FacetResult value) { if (facetResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetResultIsMutable(); facetResult_.add(value); onChanged(); } else { facetResultBuilder_.addMessage(value); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder addFacetResult( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResult value) { if (facetResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetResultIsMutable(); facetResult_.add(index, value); onChanged(); } else { facetResultBuilder_.addMessage(index, value); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder addFacetResult( com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder builderForValue) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.add(builderForValue.build()); onChanged(); } else { facetResultBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder addFacetResult( int index, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder builderForValue) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.add(index, builderForValue.build()); onChanged(); } else { facetResultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder addAllFacetResult( java.lang.Iterable values) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, facetResult_); onChanged(); } else { facetResultBuilder_.addAllMessages(values); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder clearFacetResult() { if (facetResultBuilder_ == null) { facetResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { facetResultBuilder_.clear(); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public Builder removeFacetResult(int index) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.remove(index); onChanged(); } else { facetResultBuilder_.remove(index); } return this; } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder getFacetResultBuilder( int index) { return getFacetResultFieldBuilder().getBuilder(index); } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResultOrBuilder getFacetResultOrBuilder( int index) { if (facetResultBuilder_ == null) { return facetResult_.get(index); } else { return facetResultBuilder_.getMessageOrBuilder(index); } } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public java.util.List getFacetResultOrBuilderList() { if (facetResultBuilder_ != null) { return facetResultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(facetResult_); } } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder addFacetResultBuilder() { return getFacetResultFieldBuilder().addBuilder( com.google.appengine.api.search.proto.SearchServicePb.FacetResult.getDefaultInstance()); } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder addFacetResultBuilder( int index) { return getFacetResultFieldBuilder().addBuilder( index, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.getDefaultInstance()); } /** *
       * a list of facets with their values and counts
       * 
* * repeated .java.apphosting.FacetResult facet_result = 5; */ public java.util.List getFacetResultBuilderList() { return getFacetResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetResult, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetResultOrBuilder> getFacetResultFieldBuilder() { if (facetResultBuilder_ == null) { facetResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.api.search.proto.SearchServicePb.FacetResult, com.google.appengine.api.search.proto.SearchServicePb.FacetResult.Builder, com.google.appengine.api.search.proto.SearchServicePb.FacetResultOrBuilder>( facetResult_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); facetResult_ = null; } return facetResultBuilder_; } private int docsScored_ ; /** *
       * The count of documents scored during query execution.
       * 
* * optional int32 docs_scored = 6; * @return Whether the docsScored field is set. */ @java.lang.Override public boolean hasDocsScored() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * The count of documents scored during query execution.
       * 
* * optional int32 docs_scored = 6; * @return The docsScored. */ @java.lang.Override public int getDocsScored() { return docsScored_; } /** *
       * The count of documents scored during query execution.
       * 
* * optional int32 docs_scored = 6; * @param value The docsScored to set. * @return This builder for chaining. */ public Builder setDocsScored(int value) { docsScored_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * The count of documents scored during query execution.
       * 
* * optional int32 docs_scored = 6; * @return This builder for chaining. */ public Builder clearDocsScored() { bitField0_ = (bitField0_ & ~0x00000020); docsScored_ = 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.SearchResponse) } // @@protoc_insertion_point(class_scope:java.apphosting.SearchResponse) private static final com.google.appengine.api.search.proto.SearchServicePb.SearchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.api.search.proto.SearchServicePb.SearchResponse(); } public static com.google.appengine.api.search.proto.SearchServicePb.SearchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchResponse 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.SearchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_SearchServiceError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_SearchServiceError_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_RequestStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_RequestStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_IndexSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_IndexSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_IndexMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_IndexMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_IndexMetadata_Storage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_IndexMetadata_Storage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_IndexDocumentParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_IndexDocumentParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_IndexDocumentRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_IndexDocumentRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_IndexDocumentResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_IndexDocumentResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteDocumentParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteDocumentParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteDocumentRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteDocumentRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteDocumentResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteDocumentResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ListDocumentsParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ListDocumentsParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ListDocumentsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ListDocumentsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ListDocumentsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ListDocumentsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteIndexParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteIndexParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteIndexRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteIndexRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteIndexResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteIndexResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_CancelDeleteIndexParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_CancelDeleteIndexParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_CancelDeleteIndexRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_CancelDeleteIndexRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_CancelDeleteIndexResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_CancelDeleteIndexResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ListIndexesParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ListIndexesParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ListIndexesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ListIndexesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ListIndexesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ListIndexesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteSchemaParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteSchemaParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteSchemaRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteSchemaRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_DeleteSchemaResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_DeleteSchemaResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_SortSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_SortSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ScorerSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ScorerSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FieldSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FieldSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FieldSpec_Expression_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FieldSpec_Expression_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetRequestParam_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetRequestParam_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetAutoDetectParam_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetAutoDetectParam_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetRefinement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetRefinement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetRefinement_Range_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetRefinement_Range_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_SearchParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_SearchParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_SearchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_SearchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetResultValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetResultValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_FacetResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_FacetResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_SearchResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_SearchResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_SearchResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_SearchResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024search_service.proto\022\017java.apphosting\032" + "\016document.proto\"\250\001\n\022SearchServiceError\"\221" + "\001\n\tErrorCode\022\006\n\002OK\020\000\022\023\n\017INVALID_REQUEST\020" + "\001\022\023\n\017TRANSIENT_ERROR\020\002\022\022\n\016INTERNAL_ERROR" + "\020\003\022\025\n\021PERMISSION_DENIED\020\004\022\013\n\007TIMEOUT\020\005\022\032" + "\n\026CONCURRENT_TRANSACTION\020\006\"z\n\rRequestSta" + "tus\022;\n\004code\030\001 \002(\0162-.java.apphosting.Sear" + "chServiceError.ErrorCode\022\024\n\014error_detail" + "\030\002 \001(\t\022\026\n\016canonical_code\030\003 \001(\005\"\207\003\n\tIndex" + "Spec\022\014\n\004name\030\001 \002(\t\022I\n\013consistency\030\002 \001(\0162" + "&.java.apphosting.IndexSpec.Consistency:" + "\014PER_DOCUMENT\022\021\n\tnamespace\030\003 \001(\t\022\017\n\007vers" + "ion\030\004 \001(\005\0229\n\006source\030\005 \001(\0162!.java.apphost" + "ing.IndexSpec.Source:\006SEARCH\0227\n\004mode\030\006 \001" + "(\0162\037.java.apphosting.IndexSpec.Mode:\010PRI" + "ORITY\"+\n\013Consistency\022\n\n\006GLOBAL\020\000\022\020\n\014PER_" + "DOCUMENT\020\001\"6\n\006Source\022\n\n\006SEARCH\020\000\022\r\n\tDATA" + "STORE\020\001\022\021\n\rCLOUD_STORAGE\020\002\"$\n\004Mode\022\014\n\010PR" + "IORITY\020\000\022\016\n\nBACKGROUND\020\001\"\212\003\n\rIndexMetada" + "ta\022.\n\nindex_spec\030\001 \002(\0132\032.java.apphosting" + ".IndexSpec\022.\n\005field\030\002 \003(\0132\037.storage_ones" + "tore_v3.FieldTypes\0227\n\007storage\030\003 \001(\0132&.ja" + "va.apphosting.IndexMetadata.Storage\022F\n\013i" + "ndex_state\030\004 \001(\0162).java.apphosting.Index" + "Metadata.IndexState:\006ACTIVE\022\031\n\021index_del" + "ete_time\030\005 \001(\003\022\025\n\nnum_shards\030\006 \001(\005:\0011\032-\n" + "\007Storage\022\023\n\013amount_used\030\001 \001(\003\022\r\n\005limit\030\002" + " \001(\003\"7\n\nIndexState\022\n\n\006ACTIVE\020\000\022\020\n\014SOFT_D" + "ELETED\020\001\022\013\n\007PURGING\020\002\"\201\002\n\023IndexDocumentP" + "arams\022/\n\010document\030\001 \003(\0132\035.storage_onesto" + "re_v3.Document\022T\n\tfreshness\030\002 \001(\0162..java" + ".apphosting.IndexDocumentParams.Freshnes" + "s:\rSYNCHRONOUSLYB\002\030\001\022.\n\nindex_spec\030\003 \002(\013" + "2\032.java.apphosting.IndexSpec\"3\n\tFreshnes" + "s\022\021\n\rSYNCHRONOUSLY\020\000\022\023\n\017WHEN_CONVENIENT\020" + "\001\"\\\n\024IndexDocumentRequest\0224\n\006params\030\001 \002(" + "\0132$.java.apphosting.IndexDocumentParams\022" + "\016\n\006app_id\030\003 \001(\014\"W\n\025IndexDocumentResponse" + "\022.\n\006status\030\001 \003(\0132\036.java.apphosting.Reque" + "stStatus\022\016\n\006doc_id\030\002 \003(\t\"V\n\024DeleteDocume" + "ntParams\022\016\n\006doc_id\030\001 \003(\t\022.\n\nindex_spec\030\002" + " \002(\0132\032.java.apphosting.IndexSpec\"^\n\025Dele" + "teDocumentRequest\0225\n\006params\030\001 \002(\0132%.java" + ".apphosting.DeleteDocumentParams\022\016\n\006app_" + "id\030\003 \001(\014\"H\n\026DeleteDocumentResponse\022.\n\006st" + "atus\030\001 \003(\0132\036.java.apphosting.RequestStat" + "us\"\243\001\n\023ListDocumentsParams\022.\n\nindex_spec" + "\030\001 \002(\0132\032.java.apphosting.IndexSpec\022\024\n\014st" + "art_doc_id\030\002 \001(\t\022\037\n\021include_start_doc\030\003 " + "\001(\010:\004true\022\022\n\005limit\030\004 \001(\005:\003100\022\021\n\tkeys_on" + "ly\030\005 \001(\010\"\\\n\024ListDocumentsRequest\0224\n\006para" + "ms\030\001 \002(\0132$.java.apphosting.ListDocuments" + "Params\022\016\n\006app_id\030\002 \001(\014\"x\n\025ListDocumentsR" + "esponse\022.\n\006status\030\001 \002(\0132\036.java.apphostin" + "g.RequestStatus\022/\n\010document\030\002 \003(\0132\035.stor" + "age_onestore_v3.Document\"C\n\021DeleteIndexP" + "arams\022.\n\nindex_spec\030\001 \002(\0132\032.java.apphost" + "ing.IndexSpec\"X\n\022DeleteIndexRequest\0222\n\006p" + "arams\030\001 \002(\0132\".java.apphosting.DeleteInde" + "xParams\022\016\n\006app_id\030\002 \001(\014\"E\n\023DeleteIndexRe" + "sponse\022.\n\006status\030\001 \002(\0132\036.java.apphosting" + ".RequestStatus\"I\n\027CancelDeleteIndexParam" + "s\022.\n\nindex_spec\030\001 \002(\0132\032.java.apphosting." + "IndexSpec\"d\n\030CancelDeleteIndexRequest\0228\n" + "\006params\030\001 \002(\0132(.java.apphosting.CancelDe" + "leteIndexParams\022\016\n\006app_id\030\002 \001(\014\"K\n\031Cance" + "lDeleteIndexResponse\022.\n\006status\030\001 \002(\0132\036.j" + "ava.apphosting.RequestStatus\"\212\002\n\021ListInd" + "exesParams\022\024\n\014fetch_schema\030\001 \001(\010\022\021\n\005limi" + "t\030\002 \001(\005:\00220\022\021\n\tnamespace\030\003 \001(\t\022\030\n\020start_" + "index_name\030\004 \001(\t\022!\n\023include_start_index\030" + "\005 \001(\010:\004true\022\031\n\021index_name_prefix\030\006 \001(\t\022\016" + "\n\006offset\030\007 \001(\005\0229\n\006source\030\010 \001(\0162!.java.ap" + "phosting.IndexSpec.Source:\006SEARCH\022\026\n\016all" + "_namespaces\030\t \001(\010\"X\n\022ListIndexesRequest\022" + "2\n\006params\030\001 \002(\0132\".java.apphosting.ListIn" + "dexesParams\022\016\n\006app_id\030\003 \001(\014\"}\n\023ListIndex" + "esResponse\022.\n\006status\030\001 \002(\0132\036.java.apphos" + "ting.RequestStatus\0226\n\016index_metadata\030\002 \003" + "(\0132\036.java.apphosting.IndexMetadata\"\234\001\n\022D" + "eleteSchemaParams\0229\n\006source\030\001 \001(\0162!.java" + ".apphosting.IndexSpec.Source:\006SEARCH\022.\n\n" + "index_spec\030\002 \003(\0132\032.java.apphosting.Index" + "Spec\022\033\n\023require_empty_index\030\003 \001(\010\"Z\n\023Del" + "eteSchemaRequest\0223\n\006params\030\001 \002(\0132#.java." + "apphosting.DeleteSchemaParams\022\016\n\006app_id\030" + "\003 \001(\014\"F\n\024DeleteSchemaResponse\022.\n\006status\030" + "\001 \003(\0132\036.java.apphosting.RequestStatus\"}\n" + "\010SortSpec\022\027\n\017sort_expression\030\001 \002(\t\022\035\n\017so" + "rt_descending\030\002 \001(\010:\004true\022\032\n\022default_val" + "ue_text\030\004 \001(\t\022\035\n\025default_value_numeric\030\005" + " \001(\001\"\274\001\n\nScorerSpec\022@\n\006scorer\030\001 \001(\0162\".ja" + "va.apphosting.ScorerSpec.Scorer:\014MATCH_S" + "CORER\022\023\n\005limit\030\002 \001(\005:\0041000\022\037\n\027match_scor" + "er_parameters\030\t \001(\t\"6\n\006Scorer\022\032\n\026RESCORI" + "NG_MATCH_SCORER\020\000\022\020\n\014MATCH_SCORER\020\002\"\204\001\n\t" + "FieldSpec\022\014\n\004name\030\001 \003(\t\0229\n\nexpression\030\002 " + "\003(\n2%.java.apphosting.FieldSpec.Expressi" + "on\032.\n\nExpression\022\014\n\004name\030\003 \002(\t\022\022\n\nexpres" + "sion\030\004 \002(\t\"6\n\nFacetRange\022\014\n\004name\030\001 \001(\t\022\r" + "\n\005start\030\002 \001(\t\022\013\n\003end\030\003 \001(\t\"n\n\021FacetReque" + "stParam\022\023\n\013value_limit\030\001 \001(\005\022*\n\005range\030\002 " + "\003(\0132\033.java.apphosting.FacetRange\022\030\n\020valu" + "e_constraint\030\003 \003(\t\"/\n\024FacetAutoDetectPar" + "am\022\027\n\013value_limit\030\001 \001(\005:\00210\"P\n\014FacetRequ" + "est\022\014\n\004name\030\001 \002(\t\0222\n\006params\030\002 \001(\0132\".java" + ".apphosting.FacetRequestParam\"\212\001\n\017FacetR" + "efinement\022\014\n\004name\030\001 \002(\t\022\r\n\005value\030\002 \001(\t\0225" + "\n\005range\030\003 \001(\0132&.java.apphosting.FacetRef" + "inement.Range\032#\n\005Range\022\r\n\005start\030\001 \001(\t\022\013\n" + "\003end\030\002 \001(\t\"\315\006\n\014SearchParams\022.\n\nindex_spe" + "c\030\001 \002(\0132\032.java.apphosting.IndexSpec\022\r\n\005q" + "uery\030\002 \002(\t\022\016\n\006cursor\030\004 \001(\t\022\016\n\006offset\030\013 \001" + "(\005\022C\n\013cursor_type\030\005 \001(\0162(.java.apphostin" + "g.SearchParams.CursorType:\004NONE\022\021\n\005limit" + "\030\006 \001(\005:\00220\022\036\n\026matched_count_accuracy\030\007 \001" + "(\005\022,\n\tsort_spec\030\010 \003(\0132\031.java.apphosting." + "SortSpec\0220\n\013scorer_spec\030\t \001(\0132\033.java.app" + "hosting.ScorerSpec\022.\n\nfield_spec\030\n \001(\0132\032" + ".java.apphosting.FieldSpec\022\021\n\tkeys_only\030" + "\014 \001(\010\022G\n\014parsing_mode\030\r \001(\0162).java.appho" + "sting.SearchParams.ParsingMode:\006STRICT\022$" + "\n\031auto_discover_facet_count\030\017 \001(\005:\0010\0224\n\r" + "include_facet\030\020 \003(\0132\035.java.apphosting.Fa" + "cetRequest\022:\n\020facet_refinement\030\021 \003(\0132 .j" + "ava.apphosting.FacetRefinement\022F\n\027facet_" + "auto_detect_param\030\022 \001(\0132%.java.apphostin" + "g.FacetAutoDetectParam\022\031\n\013facet_depth\030\023 " + "\001(\005:\0041000\022#\n\024enable_query_rewrite\030\024 \001(\010:" + "\005false\"2\n\nCursorType\022\010\n\004NONE\020\000\022\n\n\006SINGLE" + "\020\001\022\016\n\nPER_RESULT\020\002\"&\n\013ParsingMode\022\n\n\006STR" + "ICT\020\000\022\013\n\007RELAXED\020\001\"N\n\rSearchRequest\022-\n\006p" + "arams\030\001 \002(\0132\035.java.apphosting.SearchPara" + "ms\022\016\n\006app_id\030\003 \001(\014\"e\n\020FacetResultValue\022\014" + "\n\004name\030\001 \002(\t\022\r\n\005count\030\002 \002(\005\0224\n\nrefinemen" + "t\030\003 \002(\0132 .java.apphosting.FacetRefinemen" + "t\"M\n\013FacetResult\022\014\n\004name\030\001 \002(\t\0220\n\005value\030" + "\002 \003(\0132!.java.apphosting.FacetResultValue" + "\"\216\001\n\014SearchResult\022/\n\010document\030\001 \002(\0132\035.st" + "orage_onestore_v3.Document\022.\n\nexpression" + "\030\004 \003(\0132\032.storage_onestore_v3.Field\022\r\n\005sc" + "ore\030\002 \003(\001\022\016\n\006cursor\030\003 \001(\t\"\337\001\n\016SearchResp" + "onse\022-\n\006result\030\001 \003(\0132\035.java.apphosting.S" + "earchResult\022\025\n\rmatched_count\030\002 \002(\003\022.\n\006st" + "atus\030\003 \002(\0132\036.java.apphosting.RequestStat" + "us\022\016\n\006cursor\030\004 \001(\t\0222\n\014facet_result\030\005 \003(\013" + "2\034.java.apphosting.FacetResult\022\023\n\013docs_s" + "cored\030\006 \001(\005B8\n%com.google.appengine.api." + "search.protoB\017SearchServicePb" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.apphosting.api.search.DocumentPb.getDescriptor(), }); internal_static_java_apphosting_SearchServiceError_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_java_apphosting_SearchServiceError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_SearchServiceError_descriptor, new java.lang.String[] { }); internal_static_java_apphosting_RequestStatus_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_java_apphosting_RequestStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_RequestStatus_descriptor, new java.lang.String[] { "Code", "ErrorDetail", "CanonicalCode", }); internal_static_java_apphosting_IndexSpec_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_java_apphosting_IndexSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_IndexSpec_descriptor, new java.lang.String[] { "Name", "Consistency", "Namespace", "Version", "Source", "Mode", }); internal_static_java_apphosting_IndexMetadata_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_java_apphosting_IndexMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_IndexMetadata_descriptor, new java.lang.String[] { "IndexSpec", "Field", "Storage", "IndexState", "IndexDeleteTime", "NumShards", }); internal_static_java_apphosting_IndexMetadata_Storage_descriptor = internal_static_java_apphosting_IndexMetadata_descriptor.getNestedTypes().get(0); internal_static_java_apphosting_IndexMetadata_Storage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_IndexMetadata_Storage_descriptor, new java.lang.String[] { "AmountUsed", "Limit", }); internal_static_java_apphosting_IndexDocumentParams_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_java_apphosting_IndexDocumentParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_IndexDocumentParams_descriptor, new java.lang.String[] { "Document", "Freshness", "IndexSpec", }); internal_static_java_apphosting_IndexDocumentRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_java_apphosting_IndexDocumentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_IndexDocumentRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_IndexDocumentResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_java_apphosting_IndexDocumentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_IndexDocumentResponse_descriptor, new java.lang.String[] { "Status", "DocId", }); internal_static_java_apphosting_DeleteDocumentParams_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_java_apphosting_DeleteDocumentParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteDocumentParams_descriptor, new java.lang.String[] { "DocId", "IndexSpec", }); internal_static_java_apphosting_DeleteDocumentRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_java_apphosting_DeleteDocumentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteDocumentRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_DeleteDocumentResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_java_apphosting_DeleteDocumentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteDocumentResponse_descriptor, new java.lang.String[] { "Status", }); internal_static_java_apphosting_ListDocumentsParams_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_java_apphosting_ListDocumentsParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ListDocumentsParams_descriptor, new java.lang.String[] { "IndexSpec", "StartDocId", "IncludeStartDoc", "Limit", "KeysOnly", }); internal_static_java_apphosting_ListDocumentsRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_java_apphosting_ListDocumentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ListDocumentsRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_ListDocumentsResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_java_apphosting_ListDocumentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ListDocumentsResponse_descriptor, new java.lang.String[] { "Status", "Document", }); internal_static_java_apphosting_DeleteIndexParams_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_java_apphosting_DeleteIndexParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteIndexParams_descriptor, new java.lang.String[] { "IndexSpec", }); internal_static_java_apphosting_DeleteIndexRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_java_apphosting_DeleteIndexRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteIndexRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_DeleteIndexResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_java_apphosting_DeleteIndexResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteIndexResponse_descriptor, new java.lang.String[] { "Status", }); internal_static_java_apphosting_CancelDeleteIndexParams_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_java_apphosting_CancelDeleteIndexParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_CancelDeleteIndexParams_descriptor, new java.lang.String[] { "IndexSpec", }); internal_static_java_apphosting_CancelDeleteIndexRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_java_apphosting_CancelDeleteIndexRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_CancelDeleteIndexRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_CancelDeleteIndexResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_java_apphosting_CancelDeleteIndexResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_CancelDeleteIndexResponse_descriptor, new java.lang.String[] { "Status", }); internal_static_java_apphosting_ListIndexesParams_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_java_apphosting_ListIndexesParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ListIndexesParams_descriptor, new java.lang.String[] { "FetchSchema", "Limit", "Namespace", "StartIndexName", "IncludeStartIndex", "IndexNamePrefix", "Offset", "Source", "AllNamespaces", }); internal_static_java_apphosting_ListIndexesRequest_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_java_apphosting_ListIndexesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ListIndexesRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_ListIndexesResponse_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_java_apphosting_ListIndexesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ListIndexesResponse_descriptor, new java.lang.String[] { "Status", "IndexMetadata", }); internal_static_java_apphosting_DeleteSchemaParams_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_java_apphosting_DeleteSchemaParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteSchemaParams_descriptor, new java.lang.String[] { "Source", "IndexSpec", "RequireEmptyIndex", }); internal_static_java_apphosting_DeleteSchemaRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_java_apphosting_DeleteSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteSchemaRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_DeleteSchemaResponse_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_java_apphosting_DeleteSchemaResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_DeleteSchemaResponse_descriptor, new java.lang.String[] { "Status", }); internal_static_java_apphosting_SortSpec_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_java_apphosting_SortSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_SortSpec_descriptor, new java.lang.String[] { "SortExpression", "SortDescending", "DefaultValueText", "DefaultValueNumeric", }); internal_static_java_apphosting_ScorerSpec_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_java_apphosting_ScorerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ScorerSpec_descriptor, new java.lang.String[] { "Scorer", "Limit", "MatchScorerParameters", }); internal_static_java_apphosting_FieldSpec_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_java_apphosting_FieldSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FieldSpec_descriptor, new java.lang.String[] { "Name", "Expression", }); internal_static_java_apphosting_FieldSpec_Expression_descriptor = internal_static_java_apphosting_FieldSpec_descriptor.getNestedTypes().get(0); internal_static_java_apphosting_FieldSpec_Expression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FieldSpec_Expression_descriptor, new java.lang.String[] { "Name", "Expression", }); internal_static_java_apphosting_FacetRange_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_java_apphosting_FacetRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetRange_descriptor, new java.lang.String[] { "Name", "Start", "End", }); internal_static_java_apphosting_FacetRequestParam_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_java_apphosting_FacetRequestParam_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetRequestParam_descriptor, new java.lang.String[] { "ValueLimit", "Range", "ValueConstraint", }); internal_static_java_apphosting_FacetAutoDetectParam_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_java_apphosting_FacetAutoDetectParam_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetAutoDetectParam_descriptor, new java.lang.String[] { "ValueLimit", }); internal_static_java_apphosting_FacetRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_java_apphosting_FacetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetRequest_descriptor, new java.lang.String[] { "Name", "Params", }); internal_static_java_apphosting_FacetRefinement_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_java_apphosting_FacetRefinement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetRefinement_descriptor, new java.lang.String[] { "Name", "Value", "Range", }); internal_static_java_apphosting_FacetRefinement_Range_descriptor = internal_static_java_apphosting_FacetRefinement_descriptor.getNestedTypes().get(0); internal_static_java_apphosting_FacetRefinement_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetRefinement_Range_descriptor, new java.lang.String[] { "Start", "End", }); internal_static_java_apphosting_SearchParams_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_java_apphosting_SearchParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_SearchParams_descriptor, new java.lang.String[] { "IndexSpec", "Query", "Cursor", "Offset", "CursorType", "Limit", "MatchedCountAccuracy", "SortSpec", "ScorerSpec", "FieldSpec", "KeysOnly", "ParsingMode", "AutoDiscoverFacetCount", "IncludeFacet", "FacetRefinement", "FacetAutoDetectParam", "FacetDepth", "EnableQueryRewrite", }); internal_static_java_apphosting_SearchRequest_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_java_apphosting_SearchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_SearchRequest_descriptor, new java.lang.String[] { "Params", "AppId", }); internal_static_java_apphosting_FacetResultValue_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_java_apphosting_FacetResultValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetResultValue_descriptor, new java.lang.String[] { "Name", "Count", "Refinement", }); internal_static_java_apphosting_FacetResult_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_java_apphosting_FacetResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_FacetResult_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_java_apphosting_SearchResult_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_java_apphosting_SearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_SearchResult_descriptor, new java.lang.String[] { "Document", "Expression", "Score", "Cursor", }); internal_static_java_apphosting_SearchResponse_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_java_apphosting_SearchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_SearchResponse_descriptor, new java.lang.String[] { "Result", "MatchedCount", "Status", "Cursor", "FacetResult", "DocsScored", }); com.google.apphosting.api.search.DocumentPb.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy