Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* name_space is to add multi tenancy support for datastore.
* See http://go/appenginenamespace for a more in depth explanation.
*
*
* optional string name_space = 29;
* @return The bytes for nameSpace.
*/
com.google.protobuf.ByteString
getNameSpaceBytes();
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
*
* optional string kind = 3;
* @return Whether the kind field is set.
*/
boolean hasKind();
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
*
* optional string kind = 3;
* @return The bytes for kind.
*/
com.google.protobuf.ByteString
getKindBytes();
/**
* optional .storage_onestore_v3.Reference ancestor = 17;
* @return Whether the ancestor field is set.
*/
boolean hasAncestor();
/**
* optional .storage_onestore_v3.Reference ancestor = 17;
* @return The ancestor.
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor();
/**
* optional .storage_onestore_v3.Reference ancestor = 17;
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder();
/**
*
* If true, the query will only return entities that are direct descendants
* of the given ancestor, or root entities if not ancestor is set.
*
*
* optional bool shallow = 43;
* @return Whether the shallow field is set.
*/
boolean hasShallow();
/**
*
* If true, the query will only return entities that are direct descendants
* of the given ancestor, or root entities if not ancestor is set.
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @return Whether the searchQuery field is set.
*/
boolean hasSearchQuery();
/**
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @return The bytes for searchQuery.
*/
com.google.protobuf.ByteString
getSearchQueryBytes();
/**
* repeated group Order = 9 { ... }
*/
java.util.List
getOrderList();
/**
* repeated group Order = 9 { ... }
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getOrder(int index);
/**
* repeated group Order = 9 { ... }
*/
int getOrderCount();
/**
* repeated group Order = 9 { ... }
*/
java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder>
getOrderOrBuilderList();
/**
* repeated group Order = 9 { ... }
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder getOrderOrBuilder(
int index);
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @return Whether the hint field is set.
*/
boolean hasHint();
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @return The hint.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint getHint();
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @return Whether the count field is set.
*/
boolean hasCount();
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @return The count.
*/
int getCount();
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @return Whether the offset field is set.
*/
boolean hasOffset();
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @return The offset.
*/
int getOffset();
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
*
* optional int32 limit = 16;
* @return Whether the limit field is set.
*/
boolean hasLimit();
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
*
* optional int32 limit = 16;
* @return The limit.
*/
int getLimit();
/**
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
*
* optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30;
* @return Whether the compiledCursor field is set.
*/
boolean hasCompiledCursor();
/**
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
*
* optional bool keys_only = 21 [default = false];
* @return Whether the keysOnly field is set.
*/
boolean hasKeysOnly();
/**
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
*
* optional bool compile = 25 [default = false];
* @return Whether the compile field is set.
*/
boolean hasCompile();
/**
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 26;
* @return Whether the failoverMs field is set.
*/
boolean hasFailoverMs();
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 26;
* @return The failoverMs.
*/
long getFailoverMs();
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
*
* optional bool strong = 32;
* @return Whether the strong field is set.
*/
boolean hasStrong();
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @return A list containing the propertyName.
*/
java.util.List
getPropertyNameList();
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @return The count of propertyName.
*/
int getPropertyNameCount();
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param index The index of the element to return.
* @return The propertyName at the given index.
*/
java.lang.String getPropertyName(int index);
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param index The index of the value to return.
* @return The bytes of the propertyName at the given index.
*/
com.google.protobuf.ByteString
getPropertyNameBytes(int index);
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @return A list containing the groupByPropertyName.
*/
java.util.List
getGroupByPropertyNameList();
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @return The count of groupByPropertyName.
*/
int getGroupByPropertyNameCount();
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param index The index of the element to return.
* @return The groupByPropertyName at the given index.
*/
java.lang.String getGroupByPropertyName(int index);
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param index The index of the value to return.
* @return The bytes of the groupByPropertyName at the given index.
*/
com.google.protobuf.ByteString
getGroupByPropertyNameBytes(int index);
/**
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
*
* optional bool distinct = 24;
* @return Whether the distinct field is set.
*/
boolean hasDistinct();
/**
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
*
* optional int64 min_safe_time_seconds = 35;
* @return Whether the minSafeTimeSeconds field is set.
*/
boolean hasMinSafeTimeSeconds();
/**
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
*
* optional int64 min_safe_time_seconds = 35;
* @return The minSafeTimeSeconds.
*/
long getMinSafeTimeSeconds();
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @return A list containing the safeReplicaName.
*/
java.util.List
getSafeReplicaNameList();
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @return The count of safeReplicaName.
*/
int getSafeReplicaNameCount();
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param index The index of the element to return.
* @return The safeReplicaName at the given index.
*/
java.lang.String getSafeReplicaName(int index);
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param index The index of the value to return.
* @return The bytes of the safeReplicaName at the given index.
*/
com.google.protobuf.ByteString
getSafeReplicaNameBytes(int index);
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
*
* optional bool persist_offset = 37 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated.
* See datastore_v3.proto;l=312
* @return Whether the persistOffset field is set.
*/
@java.lang.Deprecated boolean hasPersistOffset();
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @return Whether the readTimeUs field is set.
*/
boolean hasReadTimeUs();
/**
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @return The readTimeUs.
*/
long getReadTimeUs();
}
/**
*
* Query API. See
* http://g3doc/apphosting/g3doc/wiki-carryover/datastore_query_planner.md .
* Next tag is 45
*
*
* Protobuf type {@code apphosting_datastore_v3.Query}
*/
public static final class Query extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Query)
QueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Query.newBuilder() to construct.
private Query(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Query() {
app_ = "";
databaseId_ = "";
nameSpace_ = "";
kind_ = "";
filter_ = java.util.Collections.emptyList();
searchQuery_ = "";
order_ = java.util.Collections.emptyList();
hint_ = 1;
compositeIndex_ = java.util.Collections.emptyList();
propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
groupByPropertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
safeReplicaName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
persistOffset_ = true;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Query();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Builder.class);
}
/**
*
* an optional hint for how to plan and execute the query. if the app knows
* that an ancestor or filter will greatly restrict the number of results, it
* can include a hint to help the query planner decide which to apply first.
* note that app engine does not currently use hints.
* the query planner honors hints sometimes, but not always. See
* http://g3doc/apphosting/g3doc/wiki-carryover/datastore_query_planner.md#query_hint
* be careful with hints and sort orders! they can be dangerous. if a sort
* order is present, prometheus will default to scanning over it first, to
* avoid fetching and sorting a large (possibly unbounded) number of results
* in memory. in general, this is the safest bet.
* however, if the app knows that a filter or ancestor will only match a
* very small number of results, it can be much faster to apply that first,
* and sort all of the results in memory. if there's even a chance of the
* result set being large, though, this is dangerous. proceed with care!
* TODO: support hints with composite indexes; currently composite
* indexes will not be used if a hint is specified that can be satisfied!
* see
* http://g3doc/apphosting/g3doc/wiki-carryover/datastore_custom_index.md#Query_Planning
*
*
* Protobuf enum {@code apphosting_datastore_v3.Query.Hint}
*/
public enum Hint
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ORDER_FIRST = 1;
*/
ORDER_FIRST(1),
/**
* ANCESTOR_FIRST = 2;
*/
ANCESTOR_FIRST(2),
/**
* FILTER_FIRST = 3;
*/
FILTER_FIRST(3),
;
/**
* ORDER_FIRST = 1;
*/
public static final int ORDER_FIRST_VALUE = 1;
/**
* ANCESTOR_FIRST = 2;
*/
public static final int ANCESTOR_FIRST_VALUE = 2;
/**
* FILTER_FIRST = 3;
*/
public static final int FILTER_FIRST_VALUE = 3;
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 Hint 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 Hint forNumber(int value) {
switch (value) {
case 1: return ORDER_FIRST;
case 2: return ANCESTOR_FIRST;
case 3: return FILTER_FIRST;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Hint> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Hint findValueByNumber(int number) {
return Hint.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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.getDescriptor().getEnumTypes().get(0);
}
private static final Hint[] VALUES = values();
public static Hint 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 Hint(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.Query.Hint)
}
public interface FilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Query.Filter)
com.google.protobuf.MessageOrBuilder {
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @return Whether the op field is set.
*/
boolean hasOp();
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @return The op.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator getOp();
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
*
* optional .apphosting_datastore_v3.GeoRegion geo_region = 40;
* @return Whether the geoRegion field is set.
*/
boolean hasGeoRegion();
/**
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* filter based on property values. when a Query has multiple filters,
* the effect is their logical conjunction. that is, they are combined
* using a logical "AND" operation, rather than an "OR".
* there are two types of filters: traditional "ordered" filters,
* and geo-spatial filters.
* for ordered filters, when they are evaluated in memory, they're
* evaluated in the order they're provided here. you can take
* advantage of this by putting the most restrictive filters, ie the
* ones that match the least number of results, first.
* geo-spatial filters may be combined with ordered filters, but only
* those using the EQUAL operator.
*
*
* Protobuf type {@code apphosting_datastore_v3.Query.Filter}
*/
public static final class Filter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Query.Filter)
FilterOrBuilder {
private static final long serialVersionUID = 0L;
// Use Filter.newBuilder() to construct.
private Filter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Filter() {
op_ = 1;
property_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Filter();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder.class);
}
/**
* Protobuf enum {@code apphosting_datastore_v3.Query.Filter.Operator}
*/
public enum Operator
implements com.google.protobuf.ProtocolMessageEnum {
/**
* LESS_THAN = 1;
*/
LESS_THAN(1),
/**
* LESS_THAN_OR_EQUAL = 2;
*/
LESS_THAN_OR_EQUAL(2),
/**
* GREATER_THAN = 3;
*/
GREATER_THAN(3),
/**
* GREATER_THAN_OR_EQUAL = 4;
*/
GREATER_THAN_OR_EQUAL(4),
/**
* EQUAL = 5;
*/
EQUAL(5),
/**
* IN = 6;
*/
IN(6),
/**
* EXISTS = 7;
*/
EXISTS(7),
/**
* CONTAINED_IN_REGION = 8;
*/
CONTAINED_IN_REGION(8),
/**
* NOT_EQUAL = 9;
*/
NOT_EQUAL(9),
;
/**
* LESS_THAN = 1;
*/
public static final int LESS_THAN_VALUE = 1;
/**
* LESS_THAN_OR_EQUAL = 2;
*/
public static final int LESS_THAN_OR_EQUAL_VALUE = 2;
/**
* GREATER_THAN = 3;
*/
public static final int GREATER_THAN_VALUE = 3;
/**
* GREATER_THAN_OR_EQUAL = 4;
*/
public static final int GREATER_THAN_OR_EQUAL_VALUE = 4;
/**
* EQUAL = 5;
*/
public static final int EQUAL_VALUE = 5;
/**
* IN = 6;
*/
public static final int IN_VALUE = 6;
/**
* EXISTS = 7;
*/
public static final int EXISTS_VALUE = 7;
/**
* CONTAINED_IN_REGION = 8;
*/
public static final int CONTAINED_IN_REGION_VALUE = 8;
/**
* NOT_EQUAL = 9;
*/
public static final int NOT_EQUAL_VALUE = 9;
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 Operator 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 Operator forNumber(int value) {
switch (value) {
case 1: return LESS_THAN;
case 2: return LESS_THAN_OR_EQUAL;
case 3: return GREATER_THAN;
case 4: return GREATER_THAN_OR_EQUAL;
case 5: return EQUAL;
case 6: return IN;
case 7: return EXISTS;
case 8: return CONTAINED_IN_REGION;
case 9: return NOT_EQUAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Operator> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Operator findValueByNumber(int number) {
return Operator.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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDescriptor().getEnumTypes().get(0);
}
private static final Operator[] VALUES = values();
public static Operator 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 Operator(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.Query.Filter.Operator)
}
private int bitField0_;
public static final int OP_FIELD_NUMBER = 6;
private int op_ = 1;
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @return Whether the op field is set.
*/
@java.lang.Override public boolean hasOp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @return The op.
*/
@java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator getOp() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.forNumber(op_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.LESS_THAN : result;
}
public static final int PROPERTY_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private java.util.List property_;
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
@java.lang.Override
public int getPropertyCount() {
return property_.size();
}
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder getPropertyOrBuilder(
int index) {
return property_.get(index);
}
public static final int GEO_REGION_FIELD_NUMBER = 40;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion geoRegion_;
/**
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
*
* optional .apphosting_datastore_v3.GeoRegion geo_region = 40;
* @return Whether the geoRegion field is set.
*/
@java.lang.Override
public boolean hasGeoRegion() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
*
* optional .apphosting_datastore_v3.GeoRegion geo_region = 40;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder getGeoRegionOrBuilder() {
return geoRegion_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance() : geoRegion_;
}
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 (!hasOp()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getPropertyCount(); i++) {
if (!getProperty(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasGeoRegion()) {
if (!getGeoRegion().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(6, op_);
}
for (int i = 0; i < property_.size(); i++) {
output.writeMessage(14, property_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(40, getGeoRegion());
}
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(6, op_);
}
for (int i = 0; i < property_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, property_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(40, getGeoRegion());
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter) obj;
if (hasOp() != other.hasOp()) return false;
if (hasOp()) {
if (op_ != other.op_) return false;
}
if (!getPropertyList()
.equals(other.getPropertyList())) return false;
if (hasGeoRegion() != other.hasGeoRegion()) return false;
if (hasGeoRegion()) {
if (!getGeoRegion()
.equals(other.getGeoRegion())) 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 (hasOp()) {
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
}
if (getPropertyCount() > 0) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getPropertyList().hashCode();
}
if (hasGeoRegion()) {
hash = (37 * hash) + GEO_REGION_FIELD_NUMBER;
hash = (53 * hash) + getGeoRegion().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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;
}
/**
*
* filter based on property values. when a Query has multiple filters,
* the effect is their logical conjunction. that is, they are combined
* using a logical "AND" operation, rather than an "OR".
* there are two types of filters: traditional "ordered" filters,
* and geo-spatial filters.
* for ordered filters, when they are evaluated in memory, they're
* evaluated in the order they're provided here. you can take
* advantage of this by putting the most restrictive filters, ie the
* ones that match the least number of results, first.
* geo-spatial filters may be combined with ordered filters, but only
* those using the EQUAL operator.
*
*
* Protobuf type {@code apphosting_datastore_v3.Query.Filter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Query.Filter)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPropertyFieldBuilder();
getGeoRegionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
op_ = 1;
if (propertyBuilder_ == null) {
property_ = java.util.Collections.emptyList();
} else {
property_ = null;
propertyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
geoRegion_ = null;
if (geoRegionBuilder_ != null) {
geoRegionBuilder_.dispose();
geoRegionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result) {
if (propertyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
property_ = java.util.Collections.unmodifiableList(property_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.property_ = property_;
} else {
result.property_ = propertyBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.op_ = op_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.geoRegion_ = geoRegionBuilder_ == null
? geoRegion_
: geoRegionBuilder_.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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance()) return this;
if (other.hasOp()) {
setOp(other.getOp());
}
if (propertyBuilder_ == null) {
if (!other.property_.isEmpty()) {
if (property_.isEmpty()) {
property_ = other.property_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePropertyIsMutable();
property_.addAll(other.property_);
}
onChanged();
}
} else {
if (!other.property_.isEmpty()) {
if (propertyBuilder_.isEmpty()) {
propertyBuilder_.dispose();
propertyBuilder_ = null;
property_ = other.property_;
bitField0_ = (bitField0_ & ~0x00000002);
propertyBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertyFieldBuilder() : null;
} else {
propertyBuilder_.addAllMessages(other.property_);
}
}
}
if (other.hasGeoRegion()) {
mergeGeoRegion(other.getGeoRegion());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasOp()) {
return false;
}
for (int i = 0; i < getPropertyCount(); i++) {
if (!getProperty(i).isInitialized()) {
return false;
}
}
if (hasGeoRegion()) {
if (!getGeoRegion().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 48: {
int tmpRaw = input.readEnum();
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator tmpValue =
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(6, tmpRaw);
} else {
op_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 48
case 114: {
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.PARSER,
extensionRegistry);
if (propertyBuilder_ == null) {
ensurePropertyIsMutable();
property_.add(m);
} else {
propertyBuilder_.addMessage(m);
}
break;
} // case 114
case 322: {
input.readMessage(
getGeoRegionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 322
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 op_ = 1;
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @return Whether the op field is set.
*/
@java.lang.Override public boolean hasOp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @return The op.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator getOp() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.forNumber(op_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.LESS_THAN : result;
}
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @param value The op to set.
* @return This builder for chaining.
*/
public Builder setOp(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
op_ = value.getNumber();
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.Query.Filter.Operator op = 6;
* @return This builder for chaining.
*/
public Builder clearOp() {
bitField0_ = (bitField0_ & ~0x00000001);
op_ = 1;
onChanged();
return this;
}
private java.util.List property_ =
java.util.Collections.emptyList();
private void ensurePropertyIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
property_ = new java.util.ArrayList(property_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder> propertyBuilder_;
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
public int getPropertyCount() {
if (propertyBuilder_ == null) {
return property_.size();
} else {
return propertyBuilder_.getCount();
}
}
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
public Builder setProperty(
int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.set(index, value);
onChanged();
} else {
propertyBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
public Builder addProperty(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(value);
onChanged();
} else {
propertyBuilder_.addMessage(value);
}
return this;
}
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
public Builder addProperty(
int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(index, value);
onChanged();
} else {
propertyBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder getPropertyBuilder(
int index) {
return getPropertyFieldBuilder().getBuilder(index);
}
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
*
* repeated .storage_onestore_v3.Property property = 14;
*/
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder getPropertyOrBuilder(
int index) {
if (propertyBuilder_ == null) {
return property_.get(index); } else {
return propertyBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* usually, for an ordered filter, the Property specifies both the
* name of the property of interest, and the value against which
* to compare it using the operator defined in "op", above.
* however, for geo-spatial filters, the Property is used only to
* convey the property name. The value to "compare" it against
* (using some form of geo-region containment) is specified by
* geo_region, below.
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
*
* optional .apphosting_datastore_v3.GeoRegion geo_region = 40;
* @return Whether the geoRegion field is set.
*/
public boolean hasGeoRegion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
* used only with CONTAINED_IN_REGION: the filter evaluates to
* true if the geo point property named by "property" is contained
* in this geo-region. In this case the "value" field of the
* Property is unused (despite the fact that that field is marked
* as "required").
*
*
* optional .apphosting_datastore_v3.GeoRegion geo_region = 40;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder>
getGeoRegionFieldBuilder() {
if (geoRegionBuilder_ == null) {
geoRegionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder>(
getGeoRegion(),
getParentForChildren(),
isClean());
geoRegion_ = null;
}
return geoRegionBuilder_;
}
@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:apphosting_datastore_v3.Query.Filter)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Query.Filter)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OrderOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Query.Order)
com.google.protobuf.MessageOrBuilder {
/**
* required string property = 10;
* @return Whether the property field is set.
*/
boolean hasProperty();
/**
* required string property = 10;
* @return The property.
*/
java.lang.String getProperty();
/**
* required string property = 10;
* @return The bytes for property.
*/
com.google.protobuf.ByteString
getPropertyBytes();
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @return Whether the direction field is set.
*/
boolean hasDirection();
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @return The direction.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction getDirection();
}
/**
*
* these apply in the order they're added, e.g. adding ("date", DESC),
* then adding ("rank", DESC) would sort first by date, descending, then
* by rank, descending.
*
*
* Protobuf type {@code apphosting_datastore_v3.Query.Order}
*/
public static final class Order extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Query.Order)
OrderOrBuilder {
private static final long serialVersionUID = 0L;
// Use Order.newBuilder() to construct.
private Order(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Order() {
property_ = "";
direction_ = 1;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Order();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder.class);
}
/**
*
* These tag numbers must match the tag numbers in the
* Index.Property.Direction enum!
*
*
* Protobuf enum {@code apphosting_datastore_v3.Query.Order.Direction}
*/
public enum Direction
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ASCENDING = 1;
*/
ASCENDING(1),
/**
* DESCENDING = 2;
*/
DESCENDING(2),
;
/**
* ASCENDING = 1;
*/
public static final int ASCENDING_VALUE = 1;
/**
* DESCENDING = 2;
*/
public static final int DESCENDING_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 Direction 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 Direction forNumber(int value) {
switch (value) {
case 1: return ASCENDING;
case 2: return DESCENDING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Direction> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Direction findValueByNumber(int number) {
return Direction.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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDescriptor().getEnumTypes().get(0);
}
private static final Direction[] VALUES = values();
public static Direction 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 Direction(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.Query.Order.Direction)
}
private int bitField0_;
public static final int PROPERTY_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object property_ = "";
/**
* required string property = 10;
* @return Whether the property field is set.
*/
@java.lang.Override
public boolean hasProperty() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string property = 10;
* @return The property.
*/
@java.lang.Override
public java.lang.String getProperty() {
java.lang.Object ref = property_;
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()) {
property_ = s;
}
return s;
}
}
/**
* required string property = 10;
* @return The bytes for property.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPropertyBytes() {
java.lang.Object ref = property_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
property_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DIRECTION_FIELD_NUMBER = 11;
private int direction_ = 1;
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @return Whether the direction field is set.
*/
@java.lang.Override public boolean hasDirection() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @return The direction.
*/
@java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction getDirection() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.forNumber(direction_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.ASCENDING : 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 (!hasProperty()) {
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, 10, property_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(11, direction_);
}
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(10, property_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, direction_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order) obj;
if (hasProperty() != other.hasProperty()) return false;
if (hasProperty()) {
if (!getProperty()
.equals(other.getProperty())) return false;
}
if (hasDirection() != other.hasDirection()) return false;
if (hasDirection()) {
if (direction_ != other.direction_) 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 (hasProperty()) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getProperty().hashCode();
}
if (hasDirection()) {
hash = (37 * hash) + DIRECTION_FIELD_NUMBER;
hash = (53 * hash) + direction_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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;
}
/**
*
* these apply in the order they're added, e.g. adding ("date", DESC),
* then adding ("rank", DESC) would sort first by date, descending, then
* by rank, descending.
*
*
* Protobuf type {@code apphosting_datastore_v3.Query.Order}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Query.Order)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
property_ = "";
direction_ = 1;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.property_ = property_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.direction_ = direction_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance()) return this;
if (other.hasProperty()) {
property_ = other.property_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDirection()) {
setDirection(other.getDirection());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasProperty()) {
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 82: {
property_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 82
case 88: {
int tmpRaw = input.readEnum();
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction tmpValue =
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(11, tmpRaw);
} else {
direction_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 88
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 property_ = "";
/**
* required string property = 10;
* @return Whether the property field is set.
*/
public boolean hasProperty() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string property = 10;
* @return The property.
*/
public java.lang.String getProperty() {
java.lang.Object ref = property_;
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()) {
property_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string property = 10;
* @return The bytes for property.
*/
public com.google.protobuf.ByteString
getPropertyBytes() {
java.lang.Object ref = property_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
property_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string property = 10;
* @param value The property to set.
* @return This builder for chaining.
*/
public Builder setProperty(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
property_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string property = 10;
* @return This builder for chaining.
*/
public Builder clearProperty() {
property_ = getDefaultInstance().getProperty();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string property = 10;
* @param value The bytes for property to set.
* @return This builder for chaining.
*/
public Builder setPropertyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
property_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int direction_ = 1;
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @return Whether the direction field is set.
*/
@java.lang.Override public boolean hasDirection() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @return The direction.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction getDirection() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.forNumber(direction_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.ASCENDING : result;
}
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @param value The direction to set.
* @return This builder for chaining.
*/
public Builder setDirection(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
direction_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING];
* @return This builder for chaining.
*/
public Builder clearDirection() {
bitField0_ = (bitField0_ & ~0x00000002);
direction_ = 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:apphosting_datastore_v3.Query.Order)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Query.Order)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int APP_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object app_ = "";
/**
*
* Tag 39 was InternalHeader
*
*
* required string app = 1;
* @return Whether the app field is set.
*/
@java.lang.Override
public boolean hasApp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* name_space is to add multi tenancy support for datastore.
* See http://go/appenginenamespace for a more in depth explanation.
*
*
* optional string name_space = 29;
* @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 KIND_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object kind_ = "";
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
*
* optional string kind = 3;
* @return Whether the kind field is set.
*/
@java.lang.Override
public boolean hasKind() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
*
* optional string kind = 3;
* @return The bytes for kind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANCESTOR_FIELD_NUMBER = 17;
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference ancestor_;
/**
* optional .storage_onestore_v3.Reference ancestor = 17;
* @return Whether the ancestor field is set.
*/
@java.lang.Override
public boolean hasAncestor() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .storage_onestore_v3.Reference ancestor = 17;
* @return The ancestor.
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor() {
return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_;
}
/**
* optional .storage_onestore_v3.Reference ancestor = 17;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder() {
return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_;
}
public static final int SHALLOW_FIELD_NUMBER = 43;
private boolean shallow_ = false;
/**
*
* If true, the query will only return entities that are direct descendants
* of the given ancestor, or root entities if not ancestor is set.
*
*
* optional bool shallow = 43;
* @return Whether the shallow field is set.
*/
@java.lang.Override
public boolean hasShallow() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* If true, the query will only return entities that are direct descendants
* of the given ancestor, or root entities if not ancestor is set.
*
*
* optional bool shallow = 43;
* @return The shallow.
*/
@java.lang.Override
public boolean getShallow() {
return shallow_;
}
public static final int FILTER_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List filter_;
/**
* repeated group Filter = 4 { ... }
*/
@java.lang.Override
public java.util.List getFilterList() {
return filter_;
}
/**
* repeated group Filter = 4 { ... }
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder>
getFilterOrBuilderList() {
return filter_;
}
/**
* repeated group Filter = 4 { ... }
*/
@java.lang.Override
public int getFilterCount() {
return filter_.size();
}
/**
* repeated group Filter = 4 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getFilter(int index) {
return filter_.get(index);
}
/**
* repeated group Filter = 4 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder getFilterOrBuilder(
int index) {
return filter_.get(index);
}
public static final int SEARCH_QUERY_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object searchQuery_ = "";
/**
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @return Whether the searchQuery field is set.
*/
@java.lang.Override
public boolean hasSearchQuery() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @return The bytes for searchQuery.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSearchQueryBytes() {
java.lang.Object ref = searchQuery_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORDER_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List order_;
/**
* repeated group Order = 9 { ... }
*/
@java.lang.Override
public java.util.List getOrderList() {
return order_;
}
/**
* repeated group Order = 9 { ... }
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder>
getOrderOrBuilderList() {
return order_;
}
/**
* repeated group Order = 9 { ... }
*/
@java.lang.Override
public int getOrderCount() {
return order_.size();
}
/**
* repeated group Order = 9 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getOrder(int index) {
return order_.get(index);
}
/**
* repeated group Order = 9 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder getOrderOrBuilder(
int index) {
return order_.get(index);
}
public static final int HINT_FIELD_NUMBER = 18;
private int hint_ = 1;
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @return Whether the hint field is set.
*/
@java.lang.Override public boolean hasHint() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @return The hint.
*/
@java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint getHint() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.forNumber(hint_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.ORDER_FIRST : result;
}
public static final int COUNT_FIELD_NUMBER = 23;
private int count_ = 0;
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @return Whether the count field is set.
*/
@java.lang.Override
public boolean hasCount() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
public static final int OFFSET_FIELD_NUMBER = 12;
private int offset_ = 0;
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
public static final int LIMIT_FIELD_NUMBER = 16;
private int limit_ = 0;
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
*
* optional int32 limit = 16;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
*
* optional int32 limit = 16;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int COMPILED_CURSOR_FIELD_NUMBER = 30;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor compiledCursor_;
/**
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
*
* optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30;
* @return Whether the compiledCursor field is set.
*/
@java.lang.Override
public boolean hasCompiledCursor() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
*
* optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getCompiledCursorOrBuilder() {
return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_;
}
public static final int END_COMPILED_CURSOR_FIELD_NUMBER = 31;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor endCompiledCursor_;
/**
*
* the position at which to end the query
* TODO: Change the type of this field to bytes?
*
*
* optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31;
* @return Whether the endCompiledCursor field is set.
*/
@java.lang.Override
public boolean hasEndCompiledCursor() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* the position at which to end the query
* TODO: Change the type of this field to bytes?
*
* the composite indexes, if any, that are available to the query planner
*
*
* repeated .storage_onestore_v3.CompositeIndex composite_index = 19;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder(
int index) {
return compositeIndex_.get(index);
}
public static final int REQUIRE_PERFECT_PLAN_FIELD_NUMBER = 20;
private boolean requirePerfectPlan_ = false;
/**
*
* if true, the datastore will only run this query if there's an index or
* set of indices that perfectly match it. if not, it will return an error.
*
*
* optional bool require_perfect_plan = 20 [default = false];
* @return Whether the requirePerfectPlan field is set.
*/
@java.lang.Override
public boolean hasRequirePerfectPlan() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* if true, the datastore will only run this query if there's an index or
* set of indices that perfectly match it. if not, it will return an error.
*
*
* optional bool require_perfect_plan = 20 [default = false];
* @return The requirePerfectPlan.
*/
@java.lang.Override
public boolean getRequirePerfectPlan() {
return requirePerfectPlan_;
}
public static final int KEYS_ONLY_FIELD_NUMBER = 21;
private boolean keysOnly_ = false;
/**
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
*
* optional bool keys_only = 21 [default = false];
* @return Whether the keysOnly field is set.
*/
@java.lang.Override
public boolean hasKeysOnly() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
*
* optional bool keys_only = 21 [default = false];
* @return The keysOnly.
*/
@java.lang.Override
public boolean getKeysOnly() {
return keysOnly_;
}
public static final int TRANSACTION_FIELD_NUMBER = 22;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_;
/**
*
* if specified, the query must be an ancestor query, and the ancestor must
* be in the same entity group as the other operations in the transaction.
*
*
* optional .apphosting_datastore_v3.Transaction transaction = 22;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* if specified, the query must be an ancestor query, and the ancestor must
* be in the same entity group as the other operations in the transaction.
*
* if specified, the query must be an ancestor query, and the ancestor must
* be in the same entity group as the other operations in the transaction.
*
*
* optional .apphosting_datastore_v3.Transaction transaction = 22;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() {
return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_;
}
public static final int COMPILE_FIELD_NUMBER = 25;
private boolean compile_ = false;
/**
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
*
* optional bool compile = 25 [default = false];
* @return Whether the compile field is set.
*/
@java.lang.Override
public boolean hasCompile() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
*
* optional bool compile = 25 [default = false];
* @return The compile.
*/
@java.lang.Override
public boolean getCompile() {
return compile_;
}
public static final int FAILOVER_MS_FIELD_NUMBER = 26;
private long failoverMs_ = 0L;
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 26;
* @return Whether the failoverMs field is set.
*/
@java.lang.Override
public boolean hasFailoverMs() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 26;
* @return The failoverMs.
*/
@java.lang.Override
public long getFailoverMs() {
return failoverMs_;
}
public static final int STRONG_FIELD_NUMBER = 32;
private boolean strong_ = false;
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
*
* optional bool strong = 32;
* @return Whether the strong field is set.
*/
@java.lang.Override
public boolean hasStrong() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
*
* optional bool strong = 32;
* @return The strong.
*/
@java.lang.Override
public boolean getStrong() {
return strong_;
}
public static final int PROPERTY_NAME_FIELD_NUMBER = 33;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList propertyName_;
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @return A list containing the propertyName.
*/
public com.google.protobuf.ProtocolStringList
getPropertyNameList() {
return propertyName_;
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @return The count of propertyName.
*/
public int getPropertyNameCount() {
return propertyName_.size();
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param index The index of the element to return.
* @return The propertyName at the given index.
*/
public java.lang.String getPropertyName(int index) {
return propertyName_.get(index);
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param index The index of the value to return.
* @return The bytes of the propertyName at the given index.
*/
public com.google.protobuf.ByteString
getPropertyNameBytes(int index) {
return propertyName_.getByteString(index);
}
public static final int GROUP_BY_PROPERTY_NAME_FIELD_NUMBER = 34;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList groupByPropertyName_;
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @return A list containing the groupByPropertyName.
*/
public com.google.protobuf.ProtocolStringList
getGroupByPropertyNameList() {
return groupByPropertyName_;
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @return The count of groupByPropertyName.
*/
public int getGroupByPropertyNameCount() {
return groupByPropertyName_.size();
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param index The index of the element to return.
* @return The groupByPropertyName at the given index.
*/
public java.lang.String getGroupByPropertyName(int index) {
return groupByPropertyName_.get(index);
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param index The index of the value to return.
* @return The bytes of the groupByPropertyName at the given index.
*/
public com.google.protobuf.ByteString
getGroupByPropertyNameBytes(int index) {
return groupByPropertyName_.getByteString(index);
}
public static final int DISTINCT_FIELD_NUMBER = 24;
private boolean distinct_ = false;
/**
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
*
* optional bool distinct = 24;
* @return Whether the distinct field is set.
*/
@java.lang.Override
public boolean hasDistinct() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
*
* optional bool distinct = 24;
* @return The distinct.
*/
@java.lang.Override
public boolean getDistinct() {
return distinct_;
}
public static final int MIN_SAFE_TIME_SECONDS_FIELD_NUMBER = 35;
private long minSafeTimeSeconds_ = 0L;
/**
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
*
* optional int64 min_safe_time_seconds = 35;
* @return Whether the minSafeTimeSeconds field is set.
*/
@java.lang.Override
public boolean hasMinSafeTimeSeconds() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
*
* optional int64 min_safe_time_seconds = 35;
* @return The minSafeTimeSeconds.
*/
@java.lang.Override
public long getMinSafeTimeSeconds() {
return minSafeTimeSeconds_;
}
public static final int SAFE_REPLICA_NAME_FIELD_NUMBER = 36;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList safeReplicaName_;
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @return A list containing the safeReplicaName.
*/
public com.google.protobuf.ProtocolStringList
getSafeReplicaNameList() {
return safeReplicaName_;
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @return The count of safeReplicaName.
*/
public int getSafeReplicaNameCount() {
return safeReplicaName_.size();
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param index The index of the element to return.
* @return The safeReplicaName at the given index.
*/
public java.lang.String getSafeReplicaName(int index) {
return safeReplicaName_.get(index);
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param index The index of the value to return.
* @return The bytes of the safeReplicaName at the given index.
*/
public com.google.protobuf.ByteString
getSafeReplicaNameBytes(int index) {
return safeReplicaName_.getByteString(index);
}
public static final int PERSIST_OFFSET_FIELD_NUMBER = 37;
private boolean persistOffset_ = true;
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
*
* optional bool persist_offset = 37 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated.
* See datastore_v3.proto;l=312
* @return Whether the persistOffset field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasPersistOffset() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
*
* optional bool persist_offset = 37 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated.
* See datastore_v3.proto;l=312
* @return The persistOffset.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getPersistOffset() {
return persistOffset_;
}
public static final int READ_TIME_US_FIELD_NUMBER = 44;
private long readTimeUs_ = 0L;
/**
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @return Whether the readTimeUs field is set.
*/
@java.lang.Override
public boolean hasReadTimeUs() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @return The readTimeUs.
*/
@java.lang.Override
public long getReadTimeUs() {
return readTimeUs_;
}
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 (!hasApp()) {
memoizedIsInitialized = 0;
return false;
}
if (hasAncestor()) {
if (!getAncestor().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getFilterCount(); i++) {
if (!getFilter(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getOrderCount(); i++) {
if (!getOrder(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCompiledCursor()) {
if (!getCompiledCursor().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasEndCompiledCursor()) {
if (!getEndCompiledCursor().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCompositeIndexCount(); i++) {
if (!getCompositeIndex(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().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, app_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_);
}
for (int i = 0; i < filter_.size(); i++) {
output.writeGroup(4, filter_.get(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, searchQuery_);
}
for (int i = 0; i < order_.size(); i++) {
output.writeGroup(9, order_.get(i));
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt32(12, offset_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeInt32(16, limit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(17, getAncestor());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeEnum(18, hint_);
}
for (int i = 0; i < compositeIndex_.size(); i++) {
output.writeMessage(19, compositeIndex_.get(i));
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeBool(20, requirePerfectPlan_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeBool(21, keysOnly_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(22, getTransaction());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt32(23, count_);
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeBool(24, distinct_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeBool(25, compile_);
}
if (((bitField0_ & 0x00020000) != 0)) {
output.writeInt64(26, failoverMs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 29, nameSpace_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(30, getCompiledCursor());
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(31, getEndCompiledCursor());
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeBool(32, strong_);
}
for (int i = 0; i < propertyName_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 33, propertyName_.getRaw(i));
}
for (int i = 0; i < groupByPropertyName_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 34, groupByPropertyName_.getRaw(i));
}
if (((bitField0_ & 0x00100000) != 0)) {
output.writeInt64(35, minSafeTimeSeconds_);
}
for (int i = 0; i < safeReplicaName_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 36, safeReplicaName_.getRaw(i));
}
if (((bitField0_ & 0x00200000) != 0)) {
output.writeBool(37, persistOffset_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 42, databaseId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(43, shallow_);
}
if (((bitField0_ & 0x00400000) != 0)) {
output.writeInt64(44, readTimeUs_);
}
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, app_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_);
}
for (int i = 0; i < filter_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(4, filter_.get(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, searchQuery_);
}
for (int i = 0; i < order_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(9, order_.get(i));
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, offset_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(16, limit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getAncestor());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(18, hint_);
}
for (int i = 0; i < compositeIndex_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, compositeIndex_.get(i));
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(20, requirePerfectPlan_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(21, keysOnly_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getTransaction());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(23, count_);
}
if (((bitField0_ & 0x00080000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(24, distinct_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, compile_);
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(26, failoverMs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, nameSpace_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, getCompiledCursor());
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, getEndCompiledCursor());
}
if (((bitField0_ & 0x00040000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(32, strong_);
}
{
int dataSize = 0;
for (int i = 0; i < propertyName_.size(); i++) {
dataSize += computeStringSizeNoTag(propertyName_.getRaw(i));
}
size += dataSize;
size += 2 * getPropertyNameList().size();
}
{
int dataSize = 0;
for (int i = 0; i < groupByPropertyName_.size(); i++) {
dataSize += computeStringSizeNoTag(groupByPropertyName_.getRaw(i));
}
size += dataSize;
size += 2 * getGroupByPropertyNameList().size();
}
if (((bitField0_ & 0x00100000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(35, minSafeTimeSeconds_);
}
{
int dataSize = 0;
for (int i = 0; i < safeReplicaName_.size(); i++) {
dataSize += computeStringSizeNoTag(safeReplicaName_.getRaw(i));
}
size += dataSize;
size += 2 * getSafeReplicaNameList().size();
}
if (((bitField0_ & 0x00200000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(37, persistOffset_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(42, databaseId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(43, shallow_);
}
if (((bitField0_ & 0x00400000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(44, readTimeUs_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.Query)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query) obj;
if (hasApp() != other.hasApp()) return false;
if (hasApp()) {
if (!getApp()
.equals(other.getApp())) return false;
}
if (hasDatabaseId() != other.hasDatabaseId()) return false;
if (hasDatabaseId()) {
if (!getDatabaseId()
.equals(other.getDatabaseId())) return false;
}
if (hasNameSpace() != other.hasNameSpace()) return false;
if (hasNameSpace()) {
if (!getNameSpace()
.equals(other.getNameSpace())) return false;
}
if (hasKind() != other.hasKind()) return false;
if (hasKind()) {
if (!getKind()
.equals(other.getKind())) return false;
}
if (hasAncestor() != other.hasAncestor()) return false;
if (hasAncestor()) {
if (!getAncestor()
.equals(other.getAncestor())) return false;
}
if (hasShallow() != other.hasShallow()) return false;
if (hasShallow()) {
if (getShallow()
!= other.getShallow()) return false;
}
if (!getFilterList()
.equals(other.getFilterList())) return false;
if (hasSearchQuery() != other.hasSearchQuery()) return false;
if (hasSearchQuery()) {
if (!getSearchQuery()
.equals(other.getSearchQuery())) return false;
}
if (!getOrderList()
.equals(other.getOrderList())) return false;
if (hasHint() != other.hasHint()) return false;
if (hasHint()) {
if (hint_ != other.hint_) return false;
}
if (hasCount() != other.hasCount()) return false;
if (hasCount()) {
if (getCount()
!= other.getCount()) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (getOffset()
!= other.getOffset()) return false;
}
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (getLimit()
!= other.getLimit()) return false;
}
if (hasCompiledCursor() != other.hasCompiledCursor()) return false;
if (hasCompiledCursor()) {
if (!getCompiledCursor()
.equals(other.getCompiledCursor())) return false;
}
if (hasEndCompiledCursor() != other.hasEndCompiledCursor()) return false;
if (hasEndCompiledCursor()) {
if (!getEndCompiledCursor()
.equals(other.getEndCompiledCursor())) return false;
}
if (!getCompositeIndexList()
.equals(other.getCompositeIndexList())) return false;
if (hasRequirePerfectPlan() != other.hasRequirePerfectPlan()) return false;
if (hasRequirePerfectPlan()) {
if (getRequirePerfectPlan()
!= other.getRequirePerfectPlan()) return false;
}
if (hasKeysOnly() != other.hasKeysOnly()) return false;
if (hasKeysOnly()) {
if (getKeysOnly()
!= other.getKeysOnly()) return false;
}
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
if (hasCompile() != other.hasCompile()) return false;
if (hasCompile()) {
if (getCompile()
!= other.getCompile()) return false;
}
if (hasFailoverMs() != other.hasFailoverMs()) return false;
if (hasFailoverMs()) {
if (getFailoverMs()
!= other.getFailoverMs()) return false;
}
if (hasStrong() != other.hasStrong()) return false;
if (hasStrong()) {
if (getStrong()
!= other.getStrong()) return false;
}
if (!getPropertyNameList()
.equals(other.getPropertyNameList())) return false;
if (!getGroupByPropertyNameList()
.equals(other.getGroupByPropertyNameList())) return false;
if (hasDistinct() != other.hasDistinct()) return false;
if (hasDistinct()) {
if (getDistinct()
!= other.getDistinct()) return false;
}
if (hasMinSafeTimeSeconds() != other.hasMinSafeTimeSeconds()) return false;
if (hasMinSafeTimeSeconds()) {
if (getMinSafeTimeSeconds()
!= other.getMinSafeTimeSeconds()) return false;
}
if (!getSafeReplicaNameList()
.equals(other.getSafeReplicaNameList())) return false;
if (hasPersistOffset() != other.hasPersistOffset()) return false;
if (hasPersistOffset()) {
if (getPersistOffset()
!= other.getPersistOffset()) return false;
}
if (hasReadTimeUs() != other.hasReadTimeUs()) return false;
if (hasReadTimeUs()) {
if (getReadTimeUs()
!= other.getReadTimeUs()) 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 (hasApp()) {
hash = (37 * hash) + APP_FIELD_NUMBER;
hash = (53 * hash) + getApp().hashCode();
}
if (hasDatabaseId()) {
hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseId().hashCode();
}
if (hasNameSpace()) {
hash = (37 * hash) + NAME_SPACE_FIELD_NUMBER;
hash = (53 * hash) + getNameSpace().hashCode();
}
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
if (hasAncestor()) {
hash = (37 * hash) + ANCESTOR_FIELD_NUMBER;
hash = (53 * hash) + getAncestor().hashCode();
}
if (hasShallow()) {
hash = (37 * hash) + SHALLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getShallow());
}
if (getFilterCount() > 0) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilterList().hashCode();
}
if (hasSearchQuery()) {
hash = (37 * hash) + SEARCH_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getSearchQuery().hashCode();
}
if (getOrderCount() > 0) {
hash = (37 * hash) + ORDER_FIELD_NUMBER;
hash = (53 * hash) + getOrderList().hashCode();
}
if (hasHint()) {
hash = (37 * hash) + HINT_FIELD_NUMBER;
hash = (53 * hash) + hint_;
}
if (hasCount()) {
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset();
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
}
if (hasCompiledCursor()) {
hash = (37 * hash) + COMPILED_CURSOR_FIELD_NUMBER;
hash = (53 * hash) + getCompiledCursor().hashCode();
}
if (hasEndCompiledCursor()) {
hash = (37 * hash) + END_COMPILED_CURSOR_FIELD_NUMBER;
hash = (53 * hash) + getEndCompiledCursor().hashCode();
}
if (getCompositeIndexCount() > 0) {
hash = (37 * hash) + COMPOSITE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getCompositeIndexList().hashCode();
}
if (hasRequirePerfectPlan()) {
hash = (37 * hash) + REQUIRE_PERFECT_PLAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequirePerfectPlan());
}
if (hasKeysOnly()) {
hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getKeysOnly());
}
if (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
if (hasCompile()) {
hash = (37 * hash) + COMPILE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCompile());
}
if (hasFailoverMs()) {
hash = (37 * hash) + FAILOVER_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFailoverMs());
}
if (hasStrong()) {
hash = (37 * hash) + STRONG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStrong());
}
if (getPropertyNameCount() > 0) {
hash = (37 * hash) + PROPERTY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPropertyNameList().hashCode();
}
if (getGroupByPropertyNameCount() > 0) {
hash = (37 * hash) + GROUP_BY_PROPERTY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getGroupByPropertyNameList().hashCode();
}
if (hasDistinct()) {
hash = (37 * hash) + DISTINCT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDistinct());
}
if (hasMinSafeTimeSeconds()) {
hash = (37 * hash) + MIN_SAFE_TIME_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinSafeTimeSeconds());
}
if (getSafeReplicaNameCount() > 0) {
hash = (37 * hash) + SAFE_REPLICA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSafeReplicaNameList().hashCode();
}
if (hasPersistOffset()) {
hash = (37 * hash) + PERSIST_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPersistOffset());
}
if (hasReadTimeUs()) {
hash = (37 * hash) + READ_TIME_US_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReadTimeUs());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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;
}
/**
*
* Query API. See
* http://g3doc/apphosting/g3doc/wiki-carryover/datastore_query_planner.md .
* Next tag is 45
*
*
* Protobuf type {@code apphosting_datastore_v3.Query}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Query)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAncestorFieldBuilder();
getFilterFieldBuilder();
getOrderFieldBuilder();
getCompiledCursorFieldBuilder();
getEndCompiledCursorFieldBuilder();
getCompositeIndexFieldBuilder();
getTransactionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
app_ = "";
databaseId_ = "";
nameSpace_ = "";
kind_ = "";
ancestor_ = null;
if (ancestorBuilder_ != null) {
ancestorBuilder_.dispose();
ancestorBuilder_ = null;
}
shallow_ = false;
if (filterBuilder_ == null) {
filter_ = java.util.Collections.emptyList();
} else {
filter_ = null;
filterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
searchQuery_ = "";
if (orderBuilder_ == null) {
order_ = java.util.Collections.emptyList();
} else {
order_ = null;
orderBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
hint_ = 1;
count_ = 0;
offset_ = 0;
limit_ = 0;
compiledCursor_ = null;
if (compiledCursorBuilder_ != null) {
compiledCursorBuilder_.dispose();
compiledCursorBuilder_ = null;
}
endCompiledCursor_ = null;
if (endCompiledCursorBuilder_ != null) {
endCompiledCursorBuilder_.dispose();
endCompiledCursorBuilder_ = null;
}
if (compositeIndexBuilder_ == null) {
compositeIndex_ = java.util.Collections.emptyList();
} else {
compositeIndex_ = null;
compositeIndexBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
requirePerfectPlan_ = false;
keysOnly_ = false;
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
compile_ = false;
failoverMs_ = 0L;
strong_ = false;
propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00400000);
groupByPropertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00800000);
distinct_ = false;
minSafeTimeSeconds_ = 0L;
safeReplicaName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x04000000);
persistOffset_ = true;
readTimeUs_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result) {
if (filterBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
filter_ = java.util.Collections.unmodifiableList(filter_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
if (orderBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
order_ = java.util.Collections.unmodifiableList(order_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.order_ = order_;
} else {
result.order_ = orderBuilder_.build();
}
if (compositeIndexBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0)) {
compositeIndex_ = java.util.Collections.unmodifiableList(compositeIndex_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.compositeIndex_ = compositeIndex_;
} else {
result.compositeIndex_ = compositeIndexBuilder_.build();
}
if (((bitField0_ & 0x00400000) != 0)) {
propertyName_ = propertyName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00400000);
}
result.propertyName_ = propertyName_;
if (((bitField0_ & 0x00800000) != 0)) {
groupByPropertyName_ = groupByPropertyName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00800000);
}
result.groupByPropertyName_ = groupByPropertyName_;
if (((bitField0_ & 0x04000000) != 0)) {
safeReplicaName_ = safeReplicaName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x04000000);
}
result.safeReplicaName_ = safeReplicaName_;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.app_ = app_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.databaseId_ = databaseId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.nameSpace_ = nameSpace_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.kind_ = kind_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ancestor_ = ancestorBuilder_ == null
? ancestor_
: ancestorBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.shallow_ = shallow_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.searchQuery_ = searchQuery_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.hint_ = hint_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.count_ = count_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.limit_ = limit_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.compiledCursor_ = compiledCursorBuilder_ == null
? compiledCursor_
: compiledCursorBuilder_.build();
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.endCompiledCursor_ = endCompiledCursorBuilder_ == null
? endCompiledCursor_
: endCompiledCursorBuilder_.build();
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.requirePerfectPlan_ = requirePerfectPlan_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.keysOnly_ = keysOnly_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.transaction_ = transactionBuilder_ == null
? transaction_
: transactionBuilder_.build();
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.compile_ = compile_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.failoverMs_ = failoverMs_;
to_bitField0_ |= 0x00020000;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.strong_ = strong_;
to_bitField0_ |= 0x00040000;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.distinct_ = distinct_;
to_bitField0_ |= 0x00080000;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.minSafeTimeSeconds_ = minSafeTimeSeconds_;
to_bitField0_ |= 0x00100000;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
result.persistOffset_ = persistOffset_;
to_bitField0_ |= 0x00200000;
}
if (((from_bitField0_ & 0x10000000) != 0)) {
result.readTimeUs_ = readTimeUs_;
to_bitField0_ |= 0x00400000;
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.Query) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.getDefaultInstance()) return this;
if (other.hasApp()) {
app_ = other.app_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDatabaseId()) {
databaseId_ = other.databaseId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasNameSpace()) {
nameSpace_ = other.nameSpace_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasKind()) {
kind_ = other.kind_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasAncestor()) {
mergeAncestor(other.getAncestor());
}
if (other.hasShallow()) {
setShallow(other.getShallow());
}
if (filterBuilder_ == null) {
if (!other.filter_.isEmpty()) {
if (filter_.isEmpty()) {
filter_ = other.filter_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureFilterIsMutable();
filter_.addAll(other.filter_);
}
onChanged();
}
} else {
if (!other.filter_.isEmpty()) {
if (filterBuilder_.isEmpty()) {
filterBuilder_.dispose();
filterBuilder_ = null;
filter_ = other.filter_;
bitField0_ = (bitField0_ & ~0x00000040);
filterBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFilterFieldBuilder() : null;
} else {
filterBuilder_.addAllMessages(other.filter_);
}
}
}
if (other.hasSearchQuery()) {
searchQuery_ = other.searchQuery_;
bitField0_ |= 0x00000080;
onChanged();
}
if (orderBuilder_ == null) {
if (!other.order_.isEmpty()) {
if (order_.isEmpty()) {
order_ = other.order_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureOrderIsMutable();
order_.addAll(other.order_);
}
onChanged();
}
} else {
if (!other.order_.isEmpty()) {
if (orderBuilder_.isEmpty()) {
orderBuilder_.dispose();
orderBuilder_ = null;
order_ = other.order_;
bitField0_ = (bitField0_ & ~0x00000100);
orderBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOrderFieldBuilder() : null;
} else {
orderBuilder_.addAllMessages(other.order_);
}
}
}
if (other.hasHint()) {
setHint(other.getHint());
}
if (other.hasCount()) {
setCount(other.getCount());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasLimit()) {
setLimit(other.getLimit());
}
if (other.hasCompiledCursor()) {
mergeCompiledCursor(other.getCompiledCursor());
}
if (other.hasEndCompiledCursor()) {
mergeEndCompiledCursor(other.getEndCompiledCursor());
}
if (compositeIndexBuilder_ == null) {
if (!other.compositeIndex_.isEmpty()) {
if (compositeIndex_.isEmpty()) {
compositeIndex_ = other.compositeIndex_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureCompositeIndexIsMutable();
compositeIndex_.addAll(other.compositeIndex_);
}
onChanged();
}
} else {
if (!other.compositeIndex_.isEmpty()) {
if (compositeIndexBuilder_.isEmpty()) {
compositeIndexBuilder_.dispose();
compositeIndexBuilder_ = null;
compositeIndex_ = other.compositeIndex_;
bitField0_ = (bitField0_ & ~0x00008000);
compositeIndexBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCompositeIndexFieldBuilder() : null;
} else {
compositeIndexBuilder_.addAllMessages(other.compositeIndex_);
}
}
}
if (other.hasRequirePerfectPlan()) {
setRequirePerfectPlan(other.getRequirePerfectPlan());
}
if (other.hasKeysOnly()) {
setKeysOnly(other.getKeysOnly());
}
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (other.hasCompile()) {
setCompile(other.getCompile());
}
if (other.hasFailoverMs()) {
setFailoverMs(other.getFailoverMs());
}
if (other.hasStrong()) {
setStrong(other.getStrong());
}
if (!other.propertyName_.isEmpty()) {
if (propertyName_.isEmpty()) {
propertyName_ = other.propertyName_;
bitField0_ = (bitField0_ & ~0x00400000);
} else {
ensurePropertyNameIsMutable();
propertyName_.addAll(other.propertyName_);
}
onChanged();
}
if (!other.groupByPropertyName_.isEmpty()) {
if (groupByPropertyName_.isEmpty()) {
groupByPropertyName_ = other.groupByPropertyName_;
bitField0_ = (bitField0_ & ~0x00800000);
} else {
ensureGroupByPropertyNameIsMutable();
groupByPropertyName_.addAll(other.groupByPropertyName_);
}
onChanged();
}
if (other.hasDistinct()) {
setDistinct(other.getDistinct());
}
if (other.hasMinSafeTimeSeconds()) {
setMinSafeTimeSeconds(other.getMinSafeTimeSeconds());
}
if (!other.safeReplicaName_.isEmpty()) {
if (safeReplicaName_.isEmpty()) {
safeReplicaName_ = other.safeReplicaName_;
bitField0_ = (bitField0_ & ~0x04000000);
} else {
ensureSafeReplicaNameIsMutable();
safeReplicaName_.addAll(other.safeReplicaName_);
}
onChanged();
}
if (other.hasPersistOffset()) {
setPersistOffset(other.getPersistOffset());
}
if (other.hasReadTimeUs()) {
setReadTimeUs(other.getReadTimeUs());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasApp()) {
return false;
}
if (hasAncestor()) {
if (!getAncestor().isInitialized()) {
return false;
}
}
for (int i = 0; i < getFilterCount(); i++) {
if (!getFilter(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getOrderCount(); i++) {
if (!getOrder(i).isInitialized()) {
return false;
}
}
if (hasCompiledCursor()) {
if (!getCompiledCursor().isInitialized()) {
return false;
}
}
if (hasEndCompiledCursor()) {
if (!getEndCompiledCursor().isInitialized()) {
return false;
}
}
for (int i = 0; i < getCompositeIndexCount(); i++) {
if (!getCompositeIndex(i).isInitialized()) {
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().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: {
app_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 26: {
kind_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 26
case 35: {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter m =
input.readGroup(4,
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.PARSER,
extensionRegistry);
if (filterBuilder_ == null) {
ensureFilterIsMutable();
filter_.add(m);
} else {
filterBuilder_.addMessage(m);
}
break;
} // case 35
case 66: {
searchQuery_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 66
case 75: {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order m =
input.readGroup(9,
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.PARSER,
extensionRegistry);
if (orderBuilder_ == null) {
ensureOrderIsMutable();
order_.add(m);
} else {
orderBuilder_.addMessage(m);
}
break;
} // case 75
case 96: {
offset_ = input.readInt32();
bitField0_ |= 0x00000800;
break;
} // case 96
case 128: {
limit_ = input.readInt32();
bitField0_ |= 0x00001000;
break;
} // case 128
case 138: {
input.readMessage(
getAncestorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 138
case 144: {
int tmpRaw = input.readEnum();
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint tmpValue =
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(18, tmpRaw);
} else {
hint_ = tmpRaw;
bitField0_ |= 0x00000200;
}
break;
} // case 144
case 154: {
com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER,
extensionRegistry);
if (compositeIndexBuilder_ == null) {
ensureCompositeIndexIsMutable();
compositeIndex_.add(m);
} else {
compositeIndexBuilder_.addMessage(m);
}
break;
} // case 154
case 160: {
requirePerfectPlan_ = input.readBool();
bitField0_ |= 0x00010000;
break;
} // case 160
case 168: {
keysOnly_ = input.readBool();
bitField0_ |= 0x00020000;
break;
} // case 168
case 178: {
input.readMessage(
getTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00040000;
break;
} // case 178
case 184: {
count_ = input.readInt32();
bitField0_ |= 0x00000400;
break;
} // case 184
case 192: {
distinct_ = input.readBool();
bitField0_ |= 0x01000000;
break;
} // case 192
case 200: {
compile_ = input.readBool();
bitField0_ |= 0x00080000;
break;
} // case 200
case 208: {
failoverMs_ = input.readInt64();
bitField0_ |= 0x00100000;
break;
} // case 208
case 234: {
nameSpace_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 234
case 242: {
input.readMessage(
getCompiledCursorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 242
case 250: {
input.readMessage(
getEndCompiledCursorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00004000;
break;
} // case 250
case 256: {
strong_ = input.readBool();
bitField0_ |= 0x00200000;
break;
} // case 256
case 266: {
com.google.protobuf.ByteString bs = input.readBytes();
ensurePropertyNameIsMutable();
propertyName_.add(bs);
break;
} // case 266
case 274: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureGroupByPropertyNameIsMutable();
groupByPropertyName_.add(bs);
break;
} // case 274
case 280: {
minSafeTimeSeconds_ = input.readInt64();
bitField0_ |= 0x02000000;
break;
} // case 280
case 290: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureSafeReplicaNameIsMutable();
safeReplicaName_.add(bs);
break;
} // case 290
case 296: {
persistOffset_ = input.readBool();
bitField0_ |= 0x08000000;
break;
} // case 296
case 338: {
databaseId_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 338
case 344: {
shallow_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 344
case 352: {
readTimeUs_ = input.readInt64();
bitField0_ |= 0x10000000;
break;
} // case 352
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 app_ = "";
/**
*
* Tag 39 was InternalHeader
*
*
* required string app = 1;
* @return Whether the app field is set.
*/
public boolean hasApp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* name_space is to add multi tenancy support for datastore.
* See http://go/appenginenamespace for a more in depth explanation.
*
*
* optional string name_space = 29;
* @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 kind_ = "";
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
*
* optional string kind = 3;
* @return Whether the kind field is set.
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
*
* optional string kind = 3;
* @return The bytes for kind.
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
*
* optional string kind = 3;
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
kind_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
* kind and ancestor both restrict the query results. if kind is provided,
* only entities of that kind are returned. if ancestor is provided, only
* entities descended from that ancestor by path, including the ancestor
* itself, are returned. either one or both must be provided.
*
* If true, the query will only return entities that are direct descendants
* of the given ancestor, or root entities if not ancestor is set.
*
*
* optional bool shallow = 43;
* @param value The shallow to set.
* @return This builder for chaining.
*/
public Builder setShallow(boolean value) {
shallow_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* If true, the query will only return entities that are direct descendants
* of the given ancestor, or root entities if not ancestor is set.
*
*
* optional bool shallow = 43;
* @return This builder for chaining.
*/
public Builder clearShallow() {
bitField0_ = (bitField0_ & ~0x00000020);
shallow_ = false;
onChanged();
return this;
}
private java.util.List filter_ =
java.util.Collections.emptyList();
private void ensureFilterIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
filter_ = new java.util.ArrayList(filter_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder> filterBuilder_;
/**
* repeated group Filter = 4 { ... }
*/
public java.util.List getFilterList() {
if (filterBuilder_ == null) {
return java.util.Collections.unmodifiableList(filter_);
} else {
return filterBuilder_.getMessageList();
}
}
/**
* repeated group Filter = 4 { ... }
*/
public int getFilterCount() {
if (filterBuilder_ == null) {
return filter_.size();
} else {
return filterBuilder_.getCount();
}
}
/**
* repeated group Filter = 4 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getFilter(int index) {
if (filterBuilder_ == null) {
return filter_.get(index);
} else {
return filterBuilder_.getMessage(index);
}
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder setFilter(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterIsMutable();
filter_.set(index, value);
onChanged();
} else {
filterBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder setFilter(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder builderForValue) {
if (filterBuilder_ == null) {
ensureFilterIsMutable();
filter_.set(index, builderForValue.build());
onChanged();
} else {
filterBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder addFilter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterIsMutable();
filter_.add(value);
onChanged();
} else {
filterBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder addFilter(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterIsMutable();
filter_.add(index, value);
onChanged();
} else {
filterBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder addFilter(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder builderForValue) {
if (filterBuilder_ == null) {
ensureFilterIsMutable();
filter_.add(builderForValue.build());
onChanged();
} else {
filterBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder addFilter(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder builderForValue) {
if (filterBuilder_ == null) {
ensureFilterIsMutable();
filter_.add(index, builderForValue.build());
onChanged();
} else {
filterBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder addAllFilter(
java.lang.Iterable extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter> values) {
if (filterBuilder_ == null) {
ensureFilterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filter_);
onChanged();
} else {
filterBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
filterBuilder_.clear();
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public Builder removeFilter(int index) {
if (filterBuilder_ == null) {
ensureFilterIsMutable();
filter_.remove(index);
onChanged();
} else {
filterBuilder_.remove(index);
}
return this;
}
/**
* repeated group Filter = 4 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder getFilterBuilder(
int index) {
return getFilterFieldBuilder().getBuilder(index);
}
/**
* repeated group Filter = 4 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder getFilterOrBuilder(
int index) {
if (filterBuilder_ == null) {
return filter_.get(index); } else {
return filterBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group Filter = 4 { ... }
*/
public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder>
getFilterOrBuilderList() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(filter_);
}
}
/**
* repeated group Filter = 4 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder addFilterBuilder() {
return getFilterFieldBuilder().addBuilder(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance());
}
/**
* repeated group Filter = 4 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder addFilterBuilder(
int index) {
return getFilterFieldBuilder().addBuilder(
index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance());
}
/**
* repeated group Filter = 4 { ... }
*/
public java.util.List
getFilterBuilderList() {
return getFilterFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder>(
filter_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private java.lang.Object searchQuery_ = "";
/**
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @return Whether the searchQuery field is set.
*/
public boolean hasSearchQuery() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @return The bytes for searchQuery.
*/
public com.google.protobuf.ByteString
getSearchQueryBytes() {
java.lang.Object ref = searchQuery_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @param value The searchQuery to set.
* @return This builder for chaining.
*/
public Builder setSearchQuery(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
searchQuery_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
* TODO: Remove this field.
* currently not implemented. eventually, when provided, this will be used
* as a plain-text search query. ideally, it will be combined with any
* filters, sort orders, and ancestor.
*
*
* optional string search_query = 8;
* @param value The bytes for searchQuery to set.
* @return This builder for chaining.
*/
public Builder setSearchQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
searchQuery_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.util.List order_ =
java.util.Collections.emptyList();
private void ensureOrderIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
order_ = new java.util.ArrayList(order_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder> orderBuilder_;
/**
* repeated group Order = 9 { ... }
*/
public java.util.List getOrderList() {
if (orderBuilder_ == null) {
return java.util.Collections.unmodifiableList(order_);
} else {
return orderBuilder_.getMessageList();
}
}
/**
* repeated group Order = 9 { ... }
*/
public int getOrderCount() {
if (orderBuilder_ == null) {
return order_.size();
} else {
return orderBuilder_.getCount();
}
}
/**
* repeated group Order = 9 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getOrder(int index) {
if (orderBuilder_ == null) {
return order_.get(index);
} else {
return orderBuilder_.getMessage(index);
}
}
/**
* repeated group Order = 9 { ... }
*/
public Builder setOrder(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order value) {
if (orderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderIsMutable();
order_.set(index, value);
onChanged();
} else {
orderBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder setOrder(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder builderForValue) {
if (orderBuilder_ == null) {
ensureOrderIsMutable();
order_.set(index, builderForValue.build());
onChanged();
} else {
orderBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder addOrder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order value) {
if (orderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderIsMutable();
order_.add(value);
onChanged();
} else {
orderBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder addOrder(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order value) {
if (orderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderIsMutable();
order_.add(index, value);
onChanged();
} else {
orderBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder addOrder(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder builderForValue) {
if (orderBuilder_ == null) {
ensureOrderIsMutable();
order_.add(builderForValue.build());
onChanged();
} else {
orderBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder addOrder(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder builderForValue) {
if (orderBuilder_ == null) {
ensureOrderIsMutable();
order_.add(index, builderForValue.build());
onChanged();
} else {
orderBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder addAllOrder(
java.lang.Iterable extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order> values) {
if (orderBuilder_ == null) {
ensureOrderIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, order_);
onChanged();
} else {
orderBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder clearOrder() {
if (orderBuilder_ == null) {
order_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
orderBuilder_.clear();
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public Builder removeOrder(int index) {
if (orderBuilder_ == null) {
ensureOrderIsMutable();
order_.remove(index);
onChanged();
} else {
orderBuilder_.remove(index);
}
return this;
}
/**
* repeated group Order = 9 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder getOrderBuilder(
int index) {
return getOrderFieldBuilder().getBuilder(index);
}
/**
* repeated group Order = 9 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder getOrderOrBuilder(
int index) {
if (orderBuilder_ == null) {
return order_.get(index); } else {
return orderBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group Order = 9 { ... }
*/
public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder>
getOrderOrBuilderList() {
if (orderBuilder_ != null) {
return orderBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(order_);
}
}
/**
* repeated group Order = 9 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder addOrderBuilder() {
return getOrderFieldBuilder().addBuilder(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance());
}
/**
* repeated group Order = 9 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder addOrderBuilder(
int index) {
return getOrderFieldBuilder().addBuilder(
index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance());
}
/**
* repeated group Order = 9 { ... }
*/
public java.util.List
getOrderBuilderList() {
return getOrderFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder>
getOrderFieldBuilder() {
if (orderBuilder_ == null) {
orderBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder>(
order_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
order_ = null;
}
return orderBuilder_;
}
private int hint_ = 1;
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @return Whether the hint field is set.
*/
@java.lang.Override public boolean hasHint() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @return The hint.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint getHint() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.forNumber(hint_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.ORDER_FIRST : result;
}
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @param value The hint to set.
* @return This builder for chaining.
*/
public Builder setHint(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
hint_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .apphosting_datastore_v3.Query.Hint hint = 18;
* @return This builder for chaining.
*/
public Builder clearHint() {
bitField0_ = (bitField0_ & ~0x00000200);
hint_ = 1;
onChanged();
return this;
}
private int count_ ;
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @return Whether the count field is set.
*/
@java.lang.Override
public boolean hasCount() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(int value) {
count_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* An optional number of entities to try to prefetch and return in the
* RunQuery response. If not specified the underlying datastore implementation
* will pick.
*
*
* optional int32 count = 23;
* @return This builder for chaining.
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000400);
count_ = 0;
onChanged();
return this;
}
private int offset_ ;
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(int value) {
offset_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* start returning results at this offset. useful for paging.
*
*
* optional int32 offset = 12 [default = 0];
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000800);
offset_ = 0;
onChanged();
return this;
}
private int limit_ ;
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
*
* optional int32 limit = 16;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
*
* optional int32 limit = 16;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
*
* optional int32 limit = 16;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* an optional upper bound on the number of results returned for this query.
* "count" queries are requested by setting limit to 0 and the offset to the
* maximum number of records the user wants to count (possibly infinite).
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
*
* optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30;
* @return Whether the compiledCursor field is set.
*/
public boolean hasCompiledCursor() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* the position at which to start the query
* TODO: choose better name when switching to plannable cursors.
* TODO: Change the type of this field to bytes?
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
*
* optional bool keys_only = 21 [default = false];
* @return Whether the keysOnly field is set.
*/
@java.lang.Override
public boolean hasKeysOnly() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
*
* optional bool keys_only = 21 [default = false];
* @param value The keysOnly to set.
* @return This builder for chaining.
*/
public Builder setKeysOnly(boolean value) {
keysOnly_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* if true, only return the keys of matching entities and not the whole
* entity. this makes the query somewhat faster and a lot less expensive, in
* terms of disk seeks, since it doesn't have to fetch each result entity.
* note that this property indicates the _user's_ request to execute a
* keys-only query. The backend may also elect to perform a keys-only query
* in order to answer a count() request, which is denoted by a limit of size
* 0 (see above comment on limit).
* if this is true, require_perfect_plan must also be set to true.
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
*
* optional bool compile = 25 [default = false];
* @return Whether the compile field is set.
*/
@java.lang.Override
public boolean hasCompile() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
*
* optional bool compile = 25 [default = false];
* @param value The compile to set.
* @return This builder for chaining.
*/
public Builder setCompile(boolean value) {
compile_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* TODO: I believe this field is ignored. Remove it.
* An optional argument that determines if a compiled query should be
* returned. If true, a compiled query will be constructed such that
* it will resume the given query immediately after the last result provided.
* Additionally this value must be true for a NextRequest with compile == true
* to be successful.
*
*
* optional bool compile = 25 [default = false];
* @return This builder for chaining.
*/
public Builder clearCompile() {
bitField0_ = (bitField0_ & ~0x00080000);
compile_ = false;
onChanged();
return this;
}
private long failoverMs_ ;
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 26;
* @return Whether the failoverMs field is set.
*/
@java.lang.Override
public boolean hasFailoverMs() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 26;
* @return The failoverMs.
*/
@java.lang.Override
public long getFailoverMs() {
return failoverMs_;
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 26;
* @param value The failoverMs to set.
* @return This builder for chaining.
*/
public Builder setFailoverMs(long value) {
failoverMs_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
*
* optional bool strong = 32;
* @return Whether the strong field is set.
*/
@java.lang.Override
public boolean hasStrong() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
*
* optional bool strong = 32;
* @param value The strong to set.
* @return This builder for chaining.
*/
public Builder setStrong(boolean value) {
strong_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
* choose between low latency/eventual consistency (false) and potentially
* higher latency/strong consistency (true). This is typically not a concern
* with 1.0.1 replication as (false) will never return results more than one
* job behind, but is important for paxos where (false) can return results
* that are significantly behind.
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @return A list containing the propertyName.
*/
public com.google.protobuf.ProtocolStringList
getPropertyNameList() {
return propertyName_.getUnmodifiableView();
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @return The count of propertyName.
*/
public int getPropertyNameCount() {
return propertyName_.size();
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param index The index of the element to return.
* @return The propertyName at the given index.
*/
public java.lang.String getPropertyName(int index) {
return propertyName_.get(index);
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param index The index of the value to return.
* @return The bytes of the propertyName at the given index.
*/
public com.google.protobuf.ByteString
getPropertyNameBytes(int index) {
return propertyName_.getByteString(index);
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param index The index to set the value at.
* @param value The propertyName to set.
* @return This builder for chaining.
*/
public Builder setPropertyName(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyNameIsMutable();
propertyName_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param value The propertyName to add.
* @return This builder for chaining.
*/
public Builder addPropertyName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyNameIsMutable();
propertyName_.add(value);
onChanged();
return this;
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param values The propertyName to add.
* @return This builder for chaining.
*/
public Builder addAllPropertyName(
java.lang.Iterable values) {
ensurePropertyNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, propertyName_);
onChanged();
return this;
}
/**
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
* A list of property names to return. A request with this set is satisfied
* using an index instead of looking up the full entity. As only the
* PropertyValue is known in the index, the meaning of any property return
* is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
* all the properties specified will be returned, i.e. there is an implied
* existence filter on every property specified.
*
*
* repeated string property_name = 33;
* @param value The bytes of the propertyName to add.
* @return This builder for chaining.
*/
public Builder addPropertyNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyNameIsMutable();
propertyName_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList groupByPropertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureGroupByPropertyNameIsMutable() {
if (!((bitField0_ & 0x00800000) != 0)) {
groupByPropertyName_ = new com.google.protobuf.LazyStringArrayList(groupByPropertyName_);
bitField0_ |= 0x00800000;
}
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @return A list containing the groupByPropertyName.
*/
public com.google.protobuf.ProtocolStringList
getGroupByPropertyNameList() {
return groupByPropertyName_.getUnmodifiableView();
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @return The count of groupByPropertyName.
*/
public int getGroupByPropertyNameCount() {
return groupByPropertyName_.size();
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param index The index of the element to return.
* @return The groupByPropertyName at the given index.
*/
public java.lang.String getGroupByPropertyName(int index) {
return groupByPropertyName_.get(index);
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param index The index of the value to return.
* @return The bytes of the groupByPropertyName at the given index.
*/
public com.google.protobuf.ByteString
getGroupByPropertyNameBytes(int index) {
return groupByPropertyName_.getByteString(index);
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param index The index to set the value at.
* @param value The groupByPropertyName to set.
* @return This builder for chaining.
*/
public Builder setGroupByPropertyName(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupByPropertyNameIsMutable();
groupByPropertyName_.set(index, value);
onChanged();
return this;
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param value The groupByPropertyName to add.
* @return This builder for chaining.
*/
public Builder addGroupByPropertyName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupByPropertyNameIsMutable();
groupByPropertyName_.add(value);
onChanged();
return this;
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param values The groupByPropertyName to add.
* @return This builder for chaining.
*/
public Builder addAllGroupByPropertyName(
java.lang.Iterable values) {
ensureGroupByPropertyNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groupByPropertyName_);
onChanged();
return this;
}
/**
*
* Properties that should be included in the GROUP BY clause.
*
* Properties that should be included in the GROUP BY clause.
*
*
* repeated string group_by_property_name = 34;
* @param value The bytes of the groupByPropertyName to add.
* @return This builder for chaining.
*/
public Builder addGroupByPropertyNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupByPropertyNameIsMutable();
groupByPropertyName_.add(value);
onChanged();
return this;
}
private boolean distinct_ ;
/**
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
*
* optional bool distinct = 24;
* @return Whether the distinct field is set.
*/
@java.lang.Override
public boolean hasDistinct() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
*
* optional bool distinct = 24;
* @param value The distinct to set.
* @return This builder for chaining.
*/
public Builder setDistinct(boolean value) {
distinct_ = value;
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* For a normal query, this applies to keys and defaults to true, for a query
* with property_names, this applies to the set of properties returned and
* defaults to false
*
*
* optional bool distinct = 24;
* @return This builder for chaining.
*/
public Builder clearDistinct() {
bitField0_ = (bitField0_ & ~0x01000000);
distinct_ = false;
onChanged();
return this;
}
private long minSafeTimeSeconds_ ;
/**
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
*
* optional int64 min_safe_time_seconds = 35;
* @return Whether the minSafeTimeSeconds field is set.
*/
@java.lang.Override
public boolean hasMinSafeTimeSeconds() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
*
* optional int64 min_safe_time_seconds = 35;
* @return The minSafeTimeSeconds.
*/
@java.lang.Override
public long getMinSafeTimeSeconds() {
return minSafeTimeSeconds_;
}
/**
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
*
* optional int64 min_safe_time_seconds = 35;
* @param value The minSafeTimeSeconds to set.
* @return This builder for chaining.
*/
public Builder setMinSafeTimeSeconds(long value) {
minSafeTimeSeconds_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
* If set, a minimum safe time required of the application's key range
* in any Megastore table EntityGroups data replica read by the query.
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @return A list containing the safeReplicaName.
*/
public com.google.protobuf.ProtocolStringList
getSafeReplicaNameList() {
return safeReplicaName_.getUnmodifiableView();
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @return The count of safeReplicaName.
*/
public int getSafeReplicaNameCount() {
return safeReplicaName_.size();
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param index The index of the element to return.
* @return The safeReplicaName at the given index.
*/
public java.lang.String getSafeReplicaName(int index) {
return safeReplicaName_.get(index);
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param index The index of the value to return.
* @return The bytes of the safeReplicaName at the given index.
*/
public com.google.protobuf.ByteString
getSafeReplicaNameBytes(int index) {
return safeReplicaName_.getByteString(index);
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param index The index to set the value at.
* @param value The safeReplicaName to set.
* @return This builder for chaining.
*/
public Builder setSafeReplicaName(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSafeReplicaNameIsMutable();
safeReplicaName_.set(index, value);
onChanged();
return this;
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param value The safeReplicaName to add.
* @return This builder for chaining.
*/
public Builder addSafeReplicaName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSafeReplicaNameIsMutable();
safeReplicaName_.add(value);
onChanged();
return this;
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param values The safeReplicaName to add.
* @return This builder for chaining.
*/
public Builder addAllSafeReplicaName(
java.lang.Iterable values) {
ensureSafeReplicaNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, safeReplicaName_);
onChanged();
return this;
}
/**
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
* When min_safe_time_seconds is set, the app server injects the names
* of the data replicas of our entity Megastore table for which the
* application's key range's safe time is >= min_safe_time_seconds.
*
*
* repeated string safe_replica_name = 36;
* @param value The bytes of the safeReplicaName to add.
* @return This builder for chaining.
*/
public Builder addSafeReplicaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureSafeReplicaNameIsMutable();
safeReplicaName_.add(value);
onChanged();
return this;
}
private boolean persistOffset_ = true;
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
*
* optional bool persist_offset = 37 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated.
* See datastore_v3.proto;l=312
* @return Whether the persistOffset field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasPersistOffset() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
*
* optional bool persist_offset = 37 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated.
* See datastore_v3.proto;l=312
* @return The persistOffset.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getPersistOffset() {
return persistOffset_;
}
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
*
* optional bool persist_offset = 37 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated.
* See datastore_v3.proto;l=312
* @param value The persistOffset to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPersistOffset(boolean value) {
persistOffset_ = value;
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
* If true, then the original offset is persisted for subsequent Next RPCs
* and a BAD_REQUEST is raised if the NextRequest specifies an offset
* that does not match the one from the original request.
* NOTE: This is the only behavior supported by datastore_v4.
* DEPRECATED: This is now always assumed to be true. Setting it has no
* effect.
*
*
* optional bool persist_offset = 37 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated.
* See datastore_v3.proto;l=312
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPersistOffset() {
bitField0_ = (bitField0_ & ~0x08000000);
persistOffset_ = true;
onChanged();
return this;
}
private long readTimeUs_ ;
/**
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @return Whether the readTimeUs field is set.
*/
@java.lang.Override
public boolean hasReadTimeUs() {
return ((bitField0_ & 0x10000000) != 0);
}
/**
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @return The readTimeUs.
*/
@java.lang.Override
public long getReadTimeUs() {
return readTimeUs_;
}
/**
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @param value The readTimeUs to set.
* @return This builder for chaining.
*/
public Builder setReadTimeUs(long value) {
readTimeUs_ = value;
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
*
* Only for Spanner-backed apps: Reads entities as they were at the given
* time, represented as microseconds of UTC time since Unix epoch
* 1970-01-01T00:00:00Z.
*
*
* optional int64 read_time_us = 44;
* @return This builder for chaining.
*/
public Builder clearReadTimeUs() {
bitField0_ = (bitField0_ & ~0x10000000);
readTimeUs_ = 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:apphosting_datastore_v3.Query)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Query)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegionPointOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.RegionPoint)
com.google.protobuf.MessageOrBuilder {
/**
* required double latitude = 1;
* @return Whether the latitude field is set.
*/
boolean hasLatitude();
/**
* required double latitude = 1;
* @return The latitude.
*/
double getLatitude();
/**
* required double longitude = 2;
* @return Whether the longitude field is set.
*/
boolean hasLongitude();
/**
* required double longitude = 2;
* @return The longitude.
*/
double getLongitude();
}
/**
*
* There is no real difference between a RegionPoint and the
* PointValue within storage_onestore_v3.PropertyValue. But because
* of compatibility concerns we cannot get rid of PointValue, yet
* unfortunately we cannot reuse it for the bounding regions (because
* this type of reuse is not supported for "Groups").
*
*
* Protobuf type {@code apphosting_datastore_v3.RegionPoint}
*/
public static final class RegionPoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.RegionPoint)
RegionPointOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegionPoint.newBuilder() to construct.
private RegionPoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegionPoint() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegionPoint();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder.class);
}
private int bitField0_;
public static final int LATITUDE_FIELD_NUMBER = 1;
private double latitude_ = 0D;
/**
* required double latitude = 1;
* @return Whether the latitude field is set.
*/
@java.lang.Override
public boolean hasLatitude() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required double latitude = 1;
* @return The latitude.
*/
@java.lang.Override
public double getLatitude() {
return latitude_;
}
public static final int LONGITUDE_FIELD_NUMBER = 2;
private double longitude_ = 0D;
/**
* required double longitude = 2;
* @return Whether the longitude field is set.
*/
@java.lang.Override
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required double longitude = 2;
* @return The longitude.
*/
@java.lang.Override
public double getLongitude() {
return longitude_;
}
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 (!hasLatitude()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLongitude()) {
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.writeDouble(1, latitude_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, longitude_);
}
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
.computeDoubleSize(1, latitude_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, longitude_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint) obj;
if (hasLatitude() != other.hasLatitude()) return false;
if (hasLatitude()) {
if (java.lang.Double.doubleToLongBits(getLatitude())
!= java.lang.Double.doubleToLongBits(
other.getLatitude())) return false;
}
if (hasLongitude() != other.hasLongitude()) return false;
if (hasLongitude()) {
if (java.lang.Double.doubleToLongBits(getLongitude())
!= java.lang.Double.doubleToLongBits(
other.getLongitude())) 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 (hasLatitude()) {
hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLatitude()));
}
if (hasLongitude()) {
hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLongitude()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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;
}
/**
*
* There is no real difference between a RegionPoint and the
* PointValue within storage_onestore_v3.PropertyValue. But because
* of compatibility concerns we cannot get rid of PointValue, yet
* unfortunately we cannot reuse it for the bounding regions (because
* this type of reuse is not supported for "Groups").
*
*
* Protobuf type {@code apphosting_datastore_v3.RegionPoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.RegionPoint)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
latitude_ = 0D;
longitude_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.latitude_ = latitude_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.longitude_ = longitude_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) return this;
if (other.hasLatitude()) {
setLatitude(other.getLatitude());
}
if (other.hasLongitude()) {
setLongitude(other.getLongitude());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasLatitude()) {
return false;
}
if (!hasLongitude()) {
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 9: {
latitude_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
longitude_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
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 double latitude_ ;
/**
* required double latitude = 1;
* @return Whether the latitude field is set.
*/
@java.lang.Override
public boolean hasLatitude() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required double latitude = 1;
* @return The latitude.
*/
@java.lang.Override
public double getLatitude() {
return latitude_;
}
/**
* required double latitude = 1;
* @param value The latitude to set.
* @return This builder for chaining.
*/
public Builder setLatitude(double value) {
latitude_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required double latitude = 1;
* @return This builder for chaining.
*/
public Builder clearLatitude() {
bitField0_ = (bitField0_ & ~0x00000001);
latitude_ = 0D;
onChanged();
return this;
}
private double longitude_ ;
/**
* required double longitude = 2;
* @return Whether the longitude field is set.
*/
@java.lang.Override
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required double longitude = 2;
* @return The longitude.
*/
@java.lang.Override
public double getLongitude() {
return longitude_;
}
/**
* required double longitude = 2;
* @param value The longitude to set.
* @return This builder for chaining.
*/
public Builder setLongitude(double value) {
longitude_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required double longitude = 2;
* @return This builder for chaining.
*/
public Builder clearLongitude() {
bitField0_ = (bitField0_ & ~0x00000002);
longitude_ = 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:apphosting_datastore_v3.RegionPoint)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.RegionPoint)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CircleRegionOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CircleRegion)
com.google.protobuf.MessageOrBuilder {
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
* @return Whether the center field is set.
*/
boolean hasCenter();
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
* @return The center.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getCenter();
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getCenterOrBuilder();
/**
* required double radius_meters = 2;
* @return Whether the radiusMeters field is set.
*/
boolean hasRadiusMeters();
/**
* required double radius_meters = 2;
* @return The radiusMeters.
*/
double getRadiusMeters();
}
/**
* Protobuf type {@code apphosting_datastore_v3.CircleRegion}
*/
public static final class CircleRegion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CircleRegion)
CircleRegionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CircleRegion.newBuilder() to construct.
private CircleRegion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CircleRegion() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CircleRegion();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder.class);
}
private int bitField0_;
public static final int CENTER_FIELD_NUMBER = 1;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint center_;
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
* @return Whether the center field is set.
*/
@java.lang.Override
public boolean hasCenter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
* @return The center.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getCenter() {
return center_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_;
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getCenterOrBuilder() {
return center_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_;
}
public static final int RADIUS_METERS_FIELD_NUMBER = 2;
private double radiusMeters_ = 0D;
/**
* required double radius_meters = 2;
* @return Whether the radiusMeters field is set.
*/
@java.lang.Override
public boolean hasRadiusMeters() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required double radius_meters = 2;
* @return The radiusMeters.
*/
@java.lang.Override
public double getRadiusMeters() {
return radiusMeters_;
}
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 (!hasCenter()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRadiusMeters()) {
memoizedIsInitialized = 0;
return false;
}
if (!getCenter().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, getCenter());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, radiusMeters_);
}
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, getCenter());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, radiusMeters_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion) obj;
if (hasCenter() != other.hasCenter()) return false;
if (hasCenter()) {
if (!getCenter()
.equals(other.getCenter())) return false;
}
if (hasRadiusMeters() != other.hasRadiusMeters()) return false;
if (hasRadiusMeters()) {
if (java.lang.Double.doubleToLongBits(getRadiusMeters())
!= java.lang.Double.doubleToLongBits(
other.getRadiusMeters())) 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 (hasCenter()) {
hash = (37 * hash) + CENTER_FIELD_NUMBER;
hash = (53 * hash) + getCenter().hashCode();
}
if (hasRadiusMeters()) {
hash = (37 * hash) + RADIUS_METERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRadiusMeters()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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 apphosting_datastore_v3.CircleRegion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CircleRegion)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCenterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
center_ = null;
if (centerBuilder_ != null) {
centerBuilder_.dispose();
centerBuilder_ = null;
}
radiusMeters_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.center_ = centerBuilder_ == null
? center_
: centerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.radiusMeters_ = radiusMeters_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance()) return this;
if (other.hasCenter()) {
mergeCenter(other.getCenter());
}
if (other.hasRadiusMeters()) {
setRadiusMeters(other.getRadiusMeters());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasCenter()) {
return false;
}
if (!hasRadiusMeters()) {
return false;
}
if (!getCenter().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(
getCenterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
radiusMeters_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
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.datastore.proto2api.DatastoreV3Pb.RegionPoint center_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> centerBuilder_;
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
* @return Whether the center field is set.
*/
public boolean hasCenter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
* @return The center.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getCenter() {
if (centerBuilder_ == null) {
return center_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_;
} else {
return centerBuilder_.getMessage();
}
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
public Builder setCenter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) {
if (centerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
center_ = value;
} else {
centerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
public Builder setCenter(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder builderForValue) {
if (centerBuilder_ == null) {
center_ = builderForValue.build();
} else {
centerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
public Builder mergeCenter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) {
if (centerBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
center_ != null &&
center_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) {
getCenterBuilder().mergeFrom(value);
} else {
center_ = value;
}
} else {
centerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
public Builder clearCenter() {
bitField0_ = (bitField0_ & ~0x00000001);
center_ = null;
if (centerBuilder_ != null) {
centerBuilder_.dispose();
centerBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder getCenterBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCenterFieldBuilder().getBuilder();
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getCenterOrBuilder() {
if (centerBuilder_ != null) {
return centerBuilder_.getMessageOrBuilder();
} else {
return center_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_;
}
}
/**
* required .apphosting_datastore_v3.RegionPoint center = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>
getCenterFieldBuilder() {
if (centerBuilder_ == null) {
centerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>(
getCenter(),
getParentForChildren(),
isClean());
center_ = null;
}
return centerBuilder_;
}
private double radiusMeters_ ;
/**
* required double radius_meters = 2;
* @return Whether the radiusMeters field is set.
*/
@java.lang.Override
public boolean hasRadiusMeters() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required double radius_meters = 2;
* @return The radiusMeters.
*/
@java.lang.Override
public double getRadiusMeters() {
return radiusMeters_;
}
/**
* required double radius_meters = 2;
* @param value The radiusMeters to set.
* @return This builder for chaining.
*/
public Builder setRadiusMeters(double value) {
radiusMeters_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required double radius_meters = 2;
* @return This builder for chaining.
*/
public Builder clearRadiusMeters() {
bitField0_ = (bitField0_ & ~0x00000002);
radiusMeters_ = 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:apphosting_datastore_v3.CircleRegion)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CircleRegion)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RectangleRegionOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.RectangleRegion)
com.google.protobuf.MessageOrBuilder {
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
* @return Whether the southwest field is set.
*/
boolean hasSouthwest();
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
* @return The southwest.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getSouthwest();
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getSouthwestOrBuilder();
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
* @return Whether the northeast field is set.
*/
boolean hasNortheast();
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
* @return The northeast.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getNortheast();
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getNortheastOrBuilder();
}
/**
* Protobuf type {@code apphosting_datastore_v3.RectangleRegion}
*/
public static final class RectangleRegion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.RectangleRegion)
RectangleRegionOrBuilder {
private static final long serialVersionUID = 0L;
// Use RectangleRegion.newBuilder() to construct.
private RectangleRegion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RectangleRegion() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RectangleRegion();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder.class);
}
private int bitField0_;
public static final int SOUTHWEST_FIELD_NUMBER = 1;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint southwest_;
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
* @return Whether the southwest field is set.
*/
@java.lang.Override
public boolean hasSouthwest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
* @return The southwest.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getSouthwest() {
return southwest_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_;
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getSouthwestOrBuilder() {
return southwest_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_;
}
public static final int NORTHEAST_FIELD_NUMBER = 2;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint northeast_;
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
* @return Whether the northeast field is set.
*/
@java.lang.Override
public boolean hasNortheast() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
* @return The northeast.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getNortheast() {
return northeast_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_;
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getNortheastOrBuilder() {
return northeast_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_;
}
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 (!hasSouthwest()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasNortheast()) {
memoizedIsInitialized = 0;
return false;
}
if (!getSouthwest().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getNortheast().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, getSouthwest());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getNortheast());
}
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, getSouthwest());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNortheast());
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion) obj;
if (hasSouthwest() != other.hasSouthwest()) return false;
if (hasSouthwest()) {
if (!getSouthwest()
.equals(other.getSouthwest())) return false;
}
if (hasNortheast() != other.hasNortheast()) return false;
if (hasNortheast()) {
if (!getNortheast()
.equals(other.getNortheast())) 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 (hasSouthwest()) {
hash = (37 * hash) + SOUTHWEST_FIELD_NUMBER;
hash = (53 * hash) + getSouthwest().hashCode();
}
if (hasNortheast()) {
hash = (37 * hash) + NORTHEAST_FIELD_NUMBER;
hash = (53 * hash) + getNortheast().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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 apphosting_datastore_v3.RectangleRegion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.RectangleRegion)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSouthwestFieldBuilder();
getNortheastFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
southwest_ = null;
if (southwestBuilder_ != null) {
southwestBuilder_.dispose();
southwestBuilder_ = null;
}
northeast_ = null;
if (northeastBuilder_ != null) {
northeastBuilder_.dispose();
northeastBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.southwest_ = southwestBuilder_ == null
? southwest_
: southwestBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.northeast_ = northeastBuilder_ == null
? northeast_
: northeastBuilder_.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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance()) return this;
if (other.hasSouthwest()) {
mergeSouthwest(other.getSouthwest());
}
if (other.hasNortheast()) {
mergeNortheast(other.getNortheast());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasSouthwest()) {
return false;
}
if (!hasNortheast()) {
return false;
}
if (!getSouthwest().isInitialized()) {
return false;
}
if (!getNortheast().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(
getSouthwestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getNortheastFieldBuilder().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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint southwest_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> southwestBuilder_;
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
* @return Whether the southwest field is set.
*/
public boolean hasSouthwest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
* @return The southwest.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getSouthwest() {
if (southwestBuilder_ == null) {
return southwest_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_;
} else {
return southwestBuilder_.getMessage();
}
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
public Builder setSouthwest(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) {
if (southwestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
southwest_ = value;
} else {
southwestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
public Builder setSouthwest(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder builderForValue) {
if (southwestBuilder_ == null) {
southwest_ = builderForValue.build();
} else {
southwestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
public Builder mergeSouthwest(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) {
if (southwestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
southwest_ != null &&
southwest_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) {
getSouthwestBuilder().mergeFrom(value);
} else {
southwest_ = value;
}
} else {
southwestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
public Builder clearSouthwest() {
bitField0_ = (bitField0_ & ~0x00000001);
southwest_ = null;
if (southwestBuilder_ != null) {
southwestBuilder_.dispose();
southwestBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder getSouthwestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSouthwestFieldBuilder().getBuilder();
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getSouthwestOrBuilder() {
if (southwestBuilder_ != null) {
return southwestBuilder_.getMessageOrBuilder();
} else {
return southwest_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_;
}
}
/**
* required .apphosting_datastore_v3.RegionPoint southwest = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>
getSouthwestFieldBuilder() {
if (southwestBuilder_ == null) {
southwestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>(
getSouthwest(),
getParentForChildren(),
isClean());
southwest_ = null;
}
return southwestBuilder_;
}
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint northeast_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> northeastBuilder_;
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
* @return Whether the northeast field is set.
*/
public boolean hasNortheast() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
* @return The northeast.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getNortheast() {
if (northeastBuilder_ == null) {
return northeast_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_;
} else {
return northeastBuilder_.getMessage();
}
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
public Builder setNortheast(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) {
if (northeastBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
northeast_ = value;
} else {
northeastBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
public Builder setNortheast(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder builderForValue) {
if (northeastBuilder_ == null) {
northeast_ = builderForValue.build();
} else {
northeastBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
public Builder mergeNortheast(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) {
if (northeastBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
northeast_ != null &&
northeast_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) {
getNortheastBuilder().mergeFrom(value);
} else {
northeast_ = value;
}
} else {
northeastBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
public Builder clearNortheast() {
bitField0_ = (bitField0_ & ~0x00000002);
northeast_ = null;
if (northeastBuilder_ != null) {
northeastBuilder_.dispose();
northeastBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder getNortheastBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNortheastFieldBuilder().getBuilder();
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getNortheastOrBuilder() {
if (northeastBuilder_ != null) {
return northeastBuilder_.getMessageOrBuilder();
} else {
return northeast_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_;
}
}
/**
* required .apphosting_datastore_v3.RegionPoint northeast = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>
getNortheastFieldBuilder() {
if (northeastBuilder_ == null) {
northeastBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>(
getNortheast(),
getParentForChildren(),
isClean());
northeast_ = null;
}
return northeastBuilder_;
}
@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:apphosting_datastore_v3.RectangleRegion)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.RectangleRegion)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GeoRegionOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GeoRegion)
com.google.protobuf.MessageOrBuilder {
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
* @return Whether the circle field is set.
*/
boolean hasCircle();
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
* @return The circle.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getCircle();
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder getCircleOrBuilder();
/**
* optional .apphosting_datastore_v3.RectangleRegion rectangle = 2;
* @return Whether the rectangle field is set.
*/
boolean hasRectangle();
/**
* optional .apphosting_datastore_v3.RectangleRegion rectangle = 2;
* @return The rectangle.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getRectangle();
/**
* optional .apphosting_datastore_v3.RectangleRegion rectangle = 2;
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder getRectangleOrBuilder();
}
/**
* Protobuf type {@code apphosting_datastore_v3.GeoRegion}
*/
public static final class GeoRegion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GeoRegion)
GeoRegionOrBuilder {
private static final long serialVersionUID = 0L;
// Use GeoRegion.newBuilder() to construct.
private GeoRegion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GeoRegion() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GeoRegion();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder.class);
}
private int bitField0_;
public static final int CIRCLE_FIELD_NUMBER = 1;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion circle_;
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
* @return Whether the circle field is set.
*/
@java.lang.Override
public boolean hasCircle() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
* @return The circle.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getCircle() {
return circle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance() : circle_;
}
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder getCircleOrBuilder() {
return circle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance() : circle_;
}
public static final int RECTANGLE_FIELD_NUMBER = 2;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion rectangle_;
/**
* optional .apphosting_datastore_v3.RectangleRegion rectangle = 2;
* @return Whether the rectangle field is set.
*/
@java.lang.Override
public boolean hasRectangle() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .apphosting_datastore_v3.RectangleRegion rectangle = 2;
* @return The rectangle.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getRectangle() {
return rectangle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance() : rectangle_;
}
/**
* optional .apphosting_datastore_v3.RectangleRegion rectangle = 2;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder getRectangleOrBuilder() {
return rectangle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance() : rectangle_;
}
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 (hasCircle()) {
if (!getCircle().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasRectangle()) {
if (!getRectangle().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, getCircle());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRectangle());
}
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, getCircle());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRectangle());
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion) obj;
if (hasCircle() != other.hasCircle()) return false;
if (hasCircle()) {
if (!getCircle()
.equals(other.getCircle())) return false;
}
if (hasRectangle() != other.hasRectangle()) return false;
if (hasRectangle()) {
if (!getRectangle()
.equals(other.getRectangle())) 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 (hasCircle()) {
hash = (37 * hash) + CIRCLE_FIELD_NUMBER;
hash = (53 * hash) + getCircle().hashCode();
}
if (hasRectangle()) {
hash = (37 * hash) + RECTANGLE_FIELD_NUMBER;
hash = (53 * hash) + getRectangle().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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 apphosting_datastore_v3.GeoRegion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GeoRegion)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCircleFieldBuilder();
getRectangleFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
circle_ = null;
if (circleBuilder_ != null) {
circleBuilder_.dispose();
circleBuilder_ = null;
}
rectangle_ = null;
if (rectangleBuilder_ != null) {
rectangleBuilder_.dispose();
rectangleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.circle_ = circleBuilder_ == null
? circle_
: circleBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rectangle_ = rectangleBuilder_ == null
? rectangle_
: rectangleBuilder_.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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance()) return this;
if (other.hasCircle()) {
mergeCircle(other.getCircle());
}
if (other.hasRectangle()) {
mergeRectangle(other.getRectangle());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasCircle()) {
if (!getCircle().isInitialized()) {
return false;
}
}
if (hasRectangle()) {
if (!getRectangle().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(
getCircleFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getRectangleFieldBuilder().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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion circle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder> circleBuilder_;
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
* @return Whether the circle field is set.
*/
public boolean hasCircle() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
* @return The circle.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getCircle() {
if (circleBuilder_ == null) {
return circle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance() : circle_;
} else {
return circleBuilder_.getMessage();
}
}
/**
*
* Exactly one of the following should be set.
*
*
* optional .apphosting_datastore_v3.CircleRegion circle = 1;
*/
public Builder setCircle(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion value) {
if (circleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
circle_ = value;
} else {
circleBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* repeated string property_name = 24;
* @return A list containing the propertyName.
*/
java.util.List
getPropertyNameList();
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @return The count of propertyName.
*/
int getPropertyNameCount();
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param index The index of the element to return.
* @return The propertyName at the given index.
*/
java.lang.String getPropertyName(int index);
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param index The index of the value to return.
* @return The bytes of the propertyName at the given index.
*/
com.google.protobuf.ByteString
getPropertyNameBytes(int index);
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @return Whether the distinctInfixSize field is set.
*/
boolean hasDistinctInfixSize();
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @return The distinctInfixSize.
*/
int getDistinctInfixSize();
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @return Whether the keyPathLength field is set.
*/
boolean hasKeyPathLength();
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @return The keyPathLength.
*/
int getKeyPathLength();
/**
* optional group EntityFilter = 13 { ... }
* @return Whether the entityfilter field is set.
*/
boolean hasEntityFilter();
/**
* optional group EntityFilter = 13 { ... }
* @return The entityfilter.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getEntityFilter();
/**
* optional group EntityFilter = 13 { ... }
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder getEntityFilterOrBuilder();
/**
* optional string plan_label = 26;
* @return Whether the planLabel field is set.
*/
boolean hasPlanLabel();
/**
* optional string plan_label = 26;
* @return The planLabel.
*/
java.lang.String getPlanLabel();
/**
* optional string plan_label = 26;
* @return The bytes for planLabel.
*/
com.google.protobuf.ByteString
getPlanLabelBytes();
}
/**
*
* A query that has been compiled down into a set of bigtable scans.
* NOTE: support for in memory filters is limited so most non-perfect
* plans are not supported.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledQuery}
*/
public static final class CompiledQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledQuery)
CompiledQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompiledQuery.newBuilder() to construct.
private CompiledQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompiledQuery() {
mergeJoinScan_ = java.util.Collections.emptyList();
propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
planLabel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompiledQuery();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder.class);
}
public interface PrimaryScanOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledQuery.PrimaryScan)
com.google.protobuf.MessageOrBuilder {
/**
*
* If unset, scan is assumed to be against the primary_key index. If
* accompanied by MergeJoinScans this must be unset.
*
*
* optional string index_name = 2;
* @return Whether the indexName field is set.
*/
boolean hasIndexName();
/**
*
* If unset, scan is assumed to be against the primary_key index. If
* accompanied by MergeJoinScans this must be unset.
*
*
* optional string end_key = 5;
* @return The bytes for endKey.
*/
com.google.protobuf.ByteString
getEndKeyBytes();
/**
* optional bool end_inclusive = 6;
* @return Whether the endInclusive field is set.
*/
boolean hasEndInclusive();
/**
* optional bool end_inclusive = 6;
* @return The endInclusive.
*/
boolean getEndInclusive();
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @return A list containing the startPostfixValue.
*/
java.util.List
getStartPostfixValueList();
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @return The count of startPostfixValue.
*/
int getStartPostfixValueCount();
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param index The index of the element to return.
* @return The startPostfixValue at the given index.
*/
java.lang.String getStartPostfixValue(int index);
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param index The index of the value to return.
* @return The bytes of the startPostfixValue at the given index.
*/
com.google.protobuf.ByteString
getStartPostfixValueBytes(int index);
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @return A list containing the endPostfixValue.
*/
java.util.List
getEndPostfixValueList();
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @return The count of endPostfixValue.
*/
int getEndPostfixValueCount();
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param index The index of the element to return.
* @return The endPostfixValue at the given index.
*/
java.lang.String getEndPostfixValue(int index);
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param index The index of the value to return.
* @return The bytes of the endPostfixValue at the given index.
*/
com.google.protobuf.ByteString
getEndPostfixValueBytes(int index);
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @return Whether the endUnappliedLogTimestampUs field is set.
*/
boolean hasEndUnappliedLogTimestampUs();
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @return The endUnappliedLogTimestampUs.
*/
long getEndUnappliedLogTimestampUs();
}
/**
*
* The primary scan. In the case of mergejoin this is used to specify a
* primary key range.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledQuery.PrimaryScan}
*/
public static final class PrimaryScan extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledQuery.PrimaryScan)
PrimaryScanOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrimaryScan.newBuilder() to construct.
private PrimaryScan(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrimaryScan() {
indexName_ = "";
startKey_ = "";
endKey_ = "";
startPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
endPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PrimaryScan();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder.class);
}
private int bitField0_;
public static final int INDEX_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object indexName_ = "";
/**
*
* If unset, scan is assumed to be against the primary_key index. If
* accompanied by MergeJoinScans this must be unset.
*
*
* optional string index_name = 2;
* @return Whether the indexName field is set.
*/
@java.lang.Override
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If unset, scan is assumed to be against the primary_key index. If
* accompanied by MergeJoinScans this must be unset.
*
*
* optional string end_key = 5;
* @return The bytes for endKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndKeyBytes() {
java.lang.Object ref = endKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_INCLUSIVE_FIELD_NUMBER = 6;
private boolean endInclusive_ = false;
/**
* optional bool end_inclusive = 6;
* @return Whether the endInclusive field is set.
*/
@java.lang.Override
public boolean hasEndInclusive() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool end_inclusive = 6;
* @return The endInclusive.
*/
@java.lang.Override
public boolean getEndInclusive() {
return endInclusive_;
}
public static final int START_POSTFIX_VALUE_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList startPostfixValue_;
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @return A list containing the startPostfixValue.
*/
public com.google.protobuf.ProtocolStringList
getStartPostfixValueList() {
return startPostfixValue_;
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @return The count of startPostfixValue.
*/
public int getStartPostfixValueCount() {
return startPostfixValue_.size();
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param index The index of the element to return.
* @return The startPostfixValue at the given index.
*/
public java.lang.String getStartPostfixValue(int index) {
return startPostfixValue_.get(index);
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param index The index of the value to return.
* @return The bytes of the startPostfixValue at the given index.
*/
public com.google.protobuf.ByteString
getStartPostfixValueBytes(int index) {
return startPostfixValue_.getByteString(index);
}
public static final int END_POSTFIX_VALUE_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList endPostfixValue_;
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @return A list containing the endPostfixValue.
*/
public com.google.protobuf.ProtocolStringList
getEndPostfixValueList() {
return endPostfixValue_;
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @return The count of endPostfixValue.
*/
public int getEndPostfixValueCount() {
return endPostfixValue_.size();
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param index The index of the element to return.
* @return The endPostfixValue at the given index.
*/
public java.lang.String getEndPostfixValue(int index) {
return endPostfixValue_.get(index);
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param index The index of the value to return.
* @return The bytes of the endPostfixValue at the given index.
*/
public com.google.protobuf.ByteString
getEndPostfixValueBytes(int index) {
return endPostfixValue_.getByteString(index);
}
public static final int END_UNAPPLIED_LOG_TIMESTAMP_US_FIELD_NUMBER = 19;
private long endUnappliedLogTimestampUs_ = 0L;
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @return Whether the endUnappliedLogTimestampUs field is set.
*/
@java.lang.Override
public boolean hasEndUnappliedLogTimestampUs() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @return The endUnappliedLogTimestampUs.
*/
@java.lang.Override
public long getEndUnappliedLogTimestampUs() {
return endUnappliedLogTimestampUs_;
}
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, 2, indexName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, startKey_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(4, startInclusive_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, endKey_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(6, endInclusive_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(19, endUnappliedLogTimestampUs_);
}
for (int i = 0; i < startPostfixValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, startPostfixValue_.getRaw(i));
}
for (int i = 0; i < endPostfixValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, endPostfixValue_.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.GeneratedMessageV3.computeStringSize(2, indexName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, startKey_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, startInclusive_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, endKey_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, endInclusive_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(19, endUnappliedLogTimestampUs_);
}
{
int dataSize = 0;
for (int i = 0; i < startPostfixValue_.size(); i++) {
dataSize += computeStringSizeNoTag(startPostfixValue_.getRaw(i));
}
size += dataSize;
size += 2 * getStartPostfixValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < endPostfixValue_.size(); i++) {
dataSize += computeStringSizeNoTag(endPostfixValue_.getRaw(i));
}
size += dataSize;
size += 2 * getEndPostfixValueList().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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan) obj;
if (hasIndexName() != other.hasIndexName()) return false;
if (hasIndexName()) {
if (!getIndexName()
.equals(other.getIndexName())) return false;
}
if (hasStartKey() != other.hasStartKey()) return false;
if (hasStartKey()) {
if (!getStartKey()
.equals(other.getStartKey())) return false;
}
if (hasStartInclusive() != other.hasStartInclusive()) return false;
if (hasStartInclusive()) {
if (getStartInclusive()
!= other.getStartInclusive()) return false;
}
if (hasEndKey() != other.hasEndKey()) return false;
if (hasEndKey()) {
if (!getEndKey()
.equals(other.getEndKey())) return false;
}
if (hasEndInclusive() != other.hasEndInclusive()) return false;
if (hasEndInclusive()) {
if (getEndInclusive()
!= other.getEndInclusive()) return false;
}
if (!getStartPostfixValueList()
.equals(other.getStartPostfixValueList())) return false;
if (!getEndPostfixValueList()
.equals(other.getEndPostfixValueList())) return false;
if (hasEndUnappliedLogTimestampUs() != other.hasEndUnappliedLogTimestampUs()) return false;
if (hasEndUnappliedLogTimestampUs()) {
if (getEndUnappliedLogTimestampUs()
!= other.getEndUnappliedLogTimestampUs()) 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 (hasIndexName()) {
hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER;
hash = (53 * hash) + getIndexName().hashCode();
}
if (hasStartKey()) {
hash = (37 * hash) + START_KEY_FIELD_NUMBER;
hash = (53 * hash) + getStartKey().hashCode();
}
if (hasStartInclusive()) {
hash = (37 * hash) + START_INCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStartInclusive());
}
if (hasEndKey()) {
hash = (37 * hash) + END_KEY_FIELD_NUMBER;
hash = (53 * hash) + getEndKey().hashCode();
}
if (hasEndInclusive()) {
hash = (37 * hash) + END_INCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEndInclusive());
}
if (getStartPostfixValueCount() > 0) {
hash = (37 * hash) + START_POSTFIX_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStartPostfixValueList().hashCode();
}
if (getEndPostfixValueCount() > 0) {
hash = (37 * hash) + END_POSTFIX_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getEndPostfixValueList().hashCode();
}
if (hasEndUnappliedLogTimestampUs()) {
hash = (37 * hash) + END_UNAPPLIED_LOG_TIMESTAMP_US_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndUnappliedLogTimestampUs());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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 primary scan. In the case of mergejoin this is used to specify a
* primary key range.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledQuery.PrimaryScan}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledQuery.PrimaryScan)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexName_ = "";
startKey_ = "";
startInclusive_ = false;
endKey_ = "";
endInclusive_ = false;
startPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
endPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
endUnappliedLogTimestampUs_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result) {
if (((bitField0_ & 0x00000020) != 0)) {
startPostfixValue_ = startPostfixValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.startPostfixValue_ = startPostfixValue_;
if (((bitField0_ & 0x00000040) != 0)) {
endPostfixValue_ = endPostfixValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.endPostfixValue_ = endPostfixValue_;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexName_ = indexName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startKey_ = startKey_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.startInclusive_ = startInclusive_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.endKey_ = endKey_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.endInclusive_ = endInclusive_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.endUnappliedLogTimestampUs_ = endUnappliedLogTimestampUs_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance()) return this;
if (other.hasIndexName()) {
indexName_ = other.indexName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasStartKey()) {
startKey_ = other.startKey_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasStartInclusive()) {
setStartInclusive(other.getStartInclusive());
}
if (other.hasEndKey()) {
endKey_ = other.endKey_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasEndInclusive()) {
setEndInclusive(other.getEndInclusive());
}
if (!other.startPostfixValue_.isEmpty()) {
if (startPostfixValue_.isEmpty()) {
startPostfixValue_ = other.startPostfixValue_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureStartPostfixValueIsMutable();
startPostfixValue_.addAll(other.startPostfixValue_);
}
onChanged();
}
if (!other.endPostfixValue_.isEmpty()) {
if (endPostfixValue_.isEmpty()) {
endPostfixValue_ = other.endPostfixValue_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureEndPostfixValueIsMutable();
endPostfixValue_.addAll(other.endPostfixValue_);
}
onChanged();
}
if (other.hasEndUnappliedLogTimestampUs()) {
setEndUnappliedLogTimestampUs(other.getEndUnappliedLogTimestampUs());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
indexName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 18
case 26: {
startKey_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 26
case 32: {
startInclusive_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 32
case 42: {
endKey_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 42
case 48: {
endInclusive_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 48
case 152: {
endUnappliedLogTimestampUs_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 152
case 178: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureStartPostfixValueIsMutable();
startPostfixValue_.add(bs);
break;
} // case 178
case 186: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureEndPostfixValueIsMutable();
endPostfixValue_.add(bs);
break;
} // case 186
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
*
* If unset, scan is assumed to be against the primary_key index. If
* accompanied by MergeJoinScans this must be unset.
*
*
* optional string index_name = 2;
* @return Whether the indexName field is set.
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If unset, scan is assumed to be against the primary_key index. If
* accompanied by MergeJoinScans this must be unset.
*
*
* optional string end_key = 5;
* @param value The bytes for endKey to set.
* @return This builder for chaining.
*/
public Builder setEndKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
endKey_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private boolean endInclusive_ ;
/**
* optional bool end_inclusive = 6;
* @return Whether the endInclusive field is set.
*/
@java.lang.Override
public boolean hasEndInclusive() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool end_inclusive = 6;
* @return The endInclusive.
*/
@java.lang.Override
public boolean getEndInclusive() {
return endInclusive_;
}
/**
* optional bool end_inclusive = 6;
* @param value The endInclusive to set.
* @return This builder for chaining.
*/
public Builder setEndInclusive(boolean value) {
endInclusive_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional bool end_inclusive = 6;
* @return This builder for chaining.
*/
public Builder clearEndInclusive() {
bitField0_ = (bitField0_ & ~0x00000010);
endInclusive_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList startPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStartPostfixValueIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
startPostfixValue_ = new com.google.protobuf.LazyStringArrayList(startPostfixValue_);
bitField0_ |= 0x00000020;
}
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @return A list containing the startPostfixValue.
*/
public com.google.protobuf.ProtocolStringList
getStartPostfixValueList() {
return startPostfixValue_.getUnmodifiableView();
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @return The count of startPostfixValue.
*/
public int getStartPostfixValueCount() {
return startPostfixValue_.size();
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param index The index of the element to return.
* @return The startPostfixValue at the given index.
*/
public java.lang.String getStartPostfixValue(int index) {
return startPostfixValue_.get(index);
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param index The index of the value to return.
* @return The bytes of the startPostfixValue at the given index.
*/
public com.google.protobuf.ByteString
getStartPostfixValueBytes(int index) {
return startPostfixValue_.getByteString(index);
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param index The index to set the value at.
* @param value The startPostfixValue to set.
* @return This builder for chaining.
*/
public Builder setStartPostfixValue(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStartPostfixValueIsMutable();
startPostfixValue_.set(index, value);
onChanged();
return this;
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param value The startPostfixValue to add.
* @return This builder for chaining.
*/
public Builder addStartPostfixValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStartPostfixValueIsMutable();
startPostfixValue_.add(value);
onChanged();
return this;
}
/**
*
* Merge join postfix constraints
*
*
* repeated string start_postfix_value = 22;
* @param values The startPostfixValue to add.
* @return This builder for chaining.
*/
public Builder addAllStartPostfixValue(
java.lang.Iterable values) {
ensureStartPostfixValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, startPostfixValue_);
onChanged();
return this;
}
/**
*
*
* repeated string start_postfix_value = 22;
* @param value The bytes of the startPostfixValue to add.
* @return This builder for chaining.
*/
public Builder addStartPostfixValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureStartPostfixValueIsMutable();
startPostfixValue_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList endPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEndPostfixValueIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
endPostfixValue_ = new com.google.protobuf.LazyStringArrayList(endPostfixValue_);
bitField0_ |= 0x00000040;
}
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @return A list containing the endPostfixValue.
*/
public com.google.protobuf.ProtocolStringList
getEndPostfixValueList() {
return endPostfixValue_.getUnmodifiableView();
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @return The count of endPostfixValue.
*/
public int getEndPostfixValueCount() {
return endPostfixValue_.size();
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param index The index of the element to return.
* @return The endPostfixValue at the given index.
*/
public java.lang.String getEndPostfixValue(int index) {
return endPostfixValue_.get(index);
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param index The index of the value to return.
* @return The bytes of the endPostfixValue at the given index.
*/
public com.google.protobuf.ByteString
getEndPostfixValueBytes(int index) {
return endPostfixValue_.getByteString(index);
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param index The index to set the value at.
* @param value The endPostfixValue to set.
* @return This builder for chaining.
*/
public Builder setEndPostfixValue(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEndPostfixValueIsMutable();
endPostfixValue_.set(index, value);
onChanged();
return this;
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param value The endPostfixValue to add.
* @return This builder for chaining.
*/
public Builder addEndPostfixValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEndPostfixValueIsMutable();
endPostfixValue_.add(value);
onChanged();
return this;
}
/**
*
* May contain arbitrary bytes.
*
*
* repeated string end_postfix_value = 23;
* @param values The endPostfixValue to add.
* @return This builder for chaining.
*/
public Builder addAllEndPostfixValue(
java.lang.Iterable values) {
ensureEndPostfixValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endPostfixValue_);
onChanged();
return this;
}
/**
*
*
* repeated string end_postfix_value = 23;
* @param value The bytes of the endPostfixValue to add.
* @return This builder for chaining.
*/
public Builder addEndPostfixValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureEndPostfixValueIsMutable();
endPostfixValue_.add(value);
onChanged();
return this;
}
private long endUnappliedLogTimestampUs_ ;
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @return Whether the endUnappliedLogTimestampUs field is set.
*/
@java.lang.Override
public boolean hasEndUnappliedLogTimestampUs() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @return The endUnappliedLogTimestampUs.
*/
@java.lang.Override
public long getEndUnappliedLogTimestampUs() {
return endUnappliedLogTimestampUs_;
}
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @param value The endUnappliedLogTimestampUs to set.
* @return This builder for chaining.
*/
public Builder setEndUnappliedLogTimestampUs(long value) {
endUnappliedLogTimestampUs_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* This field is set for a special groomer query only. It sets the maximum
* timestamp of an unfinished transaction.
*
*
* optional int64 end_unapplied_log_timestamp_us = 19;
* @return This builder for chaining.
*/
public Builder clearEndUnappliedLogTimestampUs() {
bitField0_ = (bitField0_ & ~0x00000080);
endUnappliedLogTimestampUs_ = 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:apphosting_datastore_v3.CompiledQuery.PrimaryScan)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledQuery.PrimaryScan)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MergeJoinScanOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledQuery.MergeJoinScan)
com.google.protobuf.MessageOrBuilder {
/**
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
*
* required string index_name = 8;
* @return Whether the indexName field is set.
*/
boolean hasIndexName();
/**
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
*
* required string index_name = 8;
* @return The bytes for indexName.
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @return A list containing the prefixValue.
*/
java.util.List
getPrefixValueList();
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @return The count of prefixValue.
*/
int getPrefixValueCount();
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param index The index of the element to return.
* @return The prefixValue at the given index.
*/
java.lang.String getPrefixValue(int index);
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param index The index of the value to return.
* @return The bytes of the prefixValue at the given index.
*/
com.google.protobuf.ByteString
getPrefixValueBytes(int index);
/**
*
* If the specified prefix is a value prefix (last component is a prefix of
* the value for that field).
*
*
* optional bool value_prefix = 20 [default = false];
* @return Whether the valuePrefix field is set.
*/
boolean hasValuePrefix();
/**
*
* If the specified prefix is a value prefix (last component is a prefix of
* the value for that field).
*
* The constraints imposed through a merge join.
* NOTE: MergeJoin queries require at least two merge join scans
* If only one is specified an error is thrown as a primary scan can satisfy
* the request.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledQuery.MergeJoinScan}
*/
public static final class MergeJoinScan extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledQuery.MergeJoinScan)
MergeJoinScanOrBuilder {
private static final long serialVersionUID = 0L;
// Use MergeJoinScan.newBuilder() to construct.
private MergeJoinScan(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MergeJoinScan() {
indexName_ = "";
prefixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MergeJoinScan();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder.class);
}
private int bitField0_;
public static final int INDEX_NAME_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object indexName_ = "";
/**
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
*
* required string index_name = 8;
* @return Whether the indexName field is set.
*/
@java.lang.Override
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
*
* required string index_name = 8;
* @return The bytes for indexName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PREFIX_VALUE_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList prefixValue_;
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @return A list containing the prefixValue.
*/
public com.google.protobuf.ProtocolStringList
getPrefixValueList() {
return prefixValue_;
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @return The count of prefixValue.
*/
public int getPrefixValueCount() {
return prefixValue_.size();
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param index The index of the element to return.
* @return The prefixValue at the given index.
*/
public java.lang.String getPrefixValue(int index) {
return prefixValue_.get(index);
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param index The index of the value to return.
* @return The bytes of the prefixValue at the given index.
*/
public com.google.protobuf.ByteString
getPrefixValueBytes(int index) {
return prefixValue_.getByteString(index);
}
public static final int VALUE_PREFIX_FIELD_NUMBER = 20;
private boolean valuePrefix_ = false;
/**
*
* If the specified prefix is a value prefix (last component is a prefix of
* the value for that field).
*
*
* optional bool value_prefix = 20 [default = false];
* @return Whether the valuePrefix field is set.
*/
@java.lang.Override
public boolean hasValuePrefix() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* If the specified prefix is a value prefix (last component is a prefix of
* the value for that field).
*
*
* optional bool value_prefix = 20 [default = false];
* @return The valuePrefix.
*/
@java.lang.Override
public boolean getValuePrefix() {
return valuePrefix_;
}
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 (!hasIndexName()) {
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, 8, indexName_);
}
for (int i = 0; i < prefixValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, prefixValue_.getRaw(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(20, valuePrefix_);
}
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(8, indexName_);
}
{
int dataSize = 0;
for (int i = 0; i < prefixValue_.size(); i++) {
dataSize += computeStringSizeNoTag(prefixValue_.getRaw(i));
}
size += dataSize;
size += 1 * getPrefixValueList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(20, valuePrefix_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan) obj;
if (hasIndexName() != other.hasIndexName()) return false;
if (hasIndexName()) {
if (!getIndexName()
.equals(other.getIndexName())) return false;
}
if (!getPrefixValueList()
.equals(other.getPrefixValueList())) return false;
if (hasValuePrefix() != other.hasValuePrefix()) return false;
if (hasValuePrefix()) {
if (getValuePrefix()
!= other.getValuePrefix()) 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 (hasIndexName()) {
hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER;
hash = (53 * hash) + getIndexName().hashCode();
}
if (getPrefixValueCount() > 0) {
hash = (37 * hash) + PREFIX_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getPrefixValueList().hashCode();
}
if (hasValuePrefix()) {
hash = (37 * hash) + VALUE_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getValuePrefix());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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 constraints imposed through a merge join.
* NOTE: MergeJoin queries require at least two merge join scans
* If only one is specified an error is thrown as a primary scan can satisfy
* the request.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledQuery.MergeJoinScan}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledQuery.MergeJoinScan)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexName_ = "";
prefixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
valuePrefix_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result) {
if (((bitField0_ & 0x00000002) != 0)) {
prefixValue_ = prefixValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.prefixValue_ = prefixValue_;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexName_ = indexName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.valuePrefix_ = valuePrefix_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance()) return this;
if (other.hasIndexName()) {
indexName_ = other.indexName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.prefixValue_.isEmpty()) {
if (prefixValue_.isEmpty()) {
prefixValue_ = other.prefixValue_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePrefixValueIsMutable();
prefixValue_.addAll(other.prefixValue_);
}
onChanged();
}
if (other.hasValuePrefix()) {
setValuePrefix(other.getValuePrefix());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasIndexName()) {
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 66: {
indexName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 66
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
ensurePrefixValueIsMutable();
prefixValue_.add(bs);
break;
} // case 74
case 160: {
valuePrefix_ = input.readBool();
bitField0_ |= 0x00000004;
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 java.lang.Object indexName_ = "";
/**
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
*
* required string index_name = 8;
* @return Whether the indexName field is set.
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
* These scans must be on a secondary index (as primary index scans should
* be merged into the primary scan).
*
*
* required string index_name = 8;
* @param value The bytes for indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
indexName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList prefixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePrefixValueIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
prefixValue_ = new com.google.protobuf.LazyStringArrayList(prefixValue_);
bitField0_ |= 0x00000002;
}
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @return A list containing the prefixValue.
*/
public com.google.protobuf.ProtocolStringList
getPrefixValueList() {
return prefixValue_.getUnmodifiableView();
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @return The count of prefixValue.
*/
public int getPrefixValueCount() {
return prefixValue_.size();
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param index The index of the element to return.
* @return The prefixValue at the given index.
*/
public java.lang.String getPrefixValue(int index) {
return prefixValue_.get(index);
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param index The index of the value to return.
* @return The bytes of the prefixValue at the given index.
*/
public com.google.protobuf.ByteString
getPrefixValueBytes(int index) {
return prefixValue_.getByteString(index);
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param index The index to set the value at.
* @param value The prefixValue to set.
* @return This builder for chaining.
*/
public Builder setPrefixValue(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePrefixValueIsMutable();
prefixValue_.set(index, value);
onChanged();
return this;
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param value The prefixValue to add.
* @return This builder for chaining.
*/
public Builder addPrefixValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePrefixValueIsMutable();
prefixValue_.add(value);
onChanged();
return this;
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param values The prefixValue to add.
* @return This builder for chaining.
*/
public Builder addAllPrefixValue(
java.lang.Iterable values) {
ensurePrefixValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, prefixValue_);
onChanged();
return this;
}
/**
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
* NOTE: prefix values must be stored separately and are
* encoded/decoded by the associated megastore property type. This is
* needed as only a fully specified key can be split into its individual
* values through Key.getValue().
*
*
* repeated string prefix_value = 9;
* @param value The bytes of the prefixValue to add.
* @return This builder for chaining.
*/
public Builder addPrefixValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePrefixValueIsMutable();
prefixValue_.add(value);
onChanged();
return this;
}
private boolean valuePrefix_ ;
/**
*
* If the specified prefix is a value prefix (last component is a prefix of
* the value for that field).
*
*
* optional bool value_prefix = 20 [default = false];
* @return Whether the valuePrefix field is set.
*/
@java.lang.Override
public boolean hasValuePrefix() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If the specified prefix is a value prefix (last component is a prefix of
* the value for that field).
*
* The index definition to use when decoding the composite index data for a
* result. Only set for scans on a composite index
*
*
* optional .storage_onestore_v3.Index index_def = 21;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder getIndexDefOrBuilder() {
return indexDef_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.getDefaultInstance() : indexDef_;
}
public static final int OFFSET_FIELD_NUMBER = 10;
private int offset_ = 0;
/**
*
* the native or in memory offset associated with this query
*
*
* optional int32 offset = 10 [default = 0];
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* the native or in memory offset associated with this query
*
*
* optional int32 offset = 10 [default = 0];
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
public static final int LIMIT_FIELD_NUMBER = 11;
private int limit_ = 0;
/**
*
* the native or in memory limit associated with this query
*
*
* optional int32 limit = 11;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* the native or in memory limit associated with this query
*
*
* optional int32 limit = 11;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int KEYS_ONLY_FIELD_NUMBER = 12;
private boolean keysOnly_ = false;
/**
*
* if true, only return keys. See Query.keys_only for discussion.
*
*
* required bool keys_only = 12;
* @return Whether the keysOnly field is set.
*/
@java.lang.Override
public boolean hasKeysOnly() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* if true, only return keys. See Query.keys_only for discussion.
*
*
* required bool keys_only = 12;
* @return The keysOnly.
*/
@java.lang.Override
public boolean getKeysOnly() {
return keysOnly_;
}
public static final int PROPERTY_NAME_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList propertyName_;
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @return A list containing the propertyName.
*/
public com.google.protobuf.ProtocolStringList
getPropertyNameList() {
return propertyName_;
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @return The count of propertyName.
*/
public int getPropertyNameCount() {
return propertyName_.size();
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param index The index of the element to return.
* @return The propertyName at the given index.
*/
public java.lang.String getPropertyName(int index) {
return propertyName_.get(index);
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param index The index of the value to return.
* @return The bytes of the propertyName at the given index.
*/
public com.google.protobuf.ByteString
getPropertyNameBytes(int index) {
return propertyName_.getByteString(index);
}
public static final int DISTINCT_INFIX_SIZE_FIELD_NUMBER = 25;
private int distinctInfixSize_ = 0;
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @return Whether the distinctInfixSize field is set.
*/
@java.lang.Override
public boolean hasDistinctInfixSize() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @return The distinctInfixSize.
*/
@java.lang.Override
public int getDistinctInfixSize() {
return distinctInfixSize_;
}
public static final int KEY_PATH_LENGTH_FIELD_NUMBER = 27;
private int keyPathLength_ = 0;
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @return Whether the keyPathLength field is set.
*/
@java.lang.Override
public boolean hasKeyPathLength() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @return The keyPathLength.
*/
@java.lang.Override
public int getKeyPathLength() {
return keyPathLength_;
}
public static final int ENTITYFILTER_FIELD_NUMBER = 13;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter entityFilter_;
/**
* optional group EntityFilter = 13 { ... }
* @return Whether the entityfilter field is set.
*/
@java.lang.Override
public boolean hasEntityFilter() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional group EntityFilter = 13 { ... }
* @return The entityfilter.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getEntityFilter() {
return entityFilter_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_;
}
/**
* optional group EntityFilter = 13 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder getEntityFilterOrBuilder() {
return entityFilter_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_;
}
public static final int PLAN_LABEL_FIELD_NUMBER = 26;
@SuppressWarnings("serial")
private volatile java.lang.Object planLabel_ = "";
/**
* optional string plan_label = 26;
* @return Whether the planLabel field is set.
*/
@java.lang.Override
public boolean hasPlanLabel() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string plan_label = 26;
* @return The planLabel.
*/
@java.lang.Override
public java.lang.String getPlanLabel() {
java.lang.Object ref = planLabel_;
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()) {
planLabel_ = s;
}
return s;
}
}
/**
* optional string plan_label = 26;
* @return The bytes for planLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlanLabelBytes() {
java.lang.Object ref = planLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
planLabel_ = 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 (!hasPrimaryScan()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasKeysOnly()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getMergeJoinScanCount(); i++) {
if (!getMergeJoinScan(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasIndexDef()) {
if (!getIndexDef().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasEntityFilter()) {
if (!getEntityFilter().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.writeGroup(1, getPrimaryScan());
}
for (int i = 0; i < mergeJoinScan_.size(); i++) {
output.writeGroup(7, mergeJoinScan_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(10, offset_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(11, limit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(12, keysOnly_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeGroup(13, getEntityFilter());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(21, getIndexDef());
}
for (int i = 0; i < propertyName_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, propertyName_.getRaw(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(25, distinctInfixSize_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 26, planLabel_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt32(27, keyPathLength_);
}
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
.computeGroupSize(1, getPrimaryScan());
}
for (int i = 0; i < mergeJoinScan_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(7, mergeJoinScan_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, offset_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, limit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, keysOnly_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(13, getEntityFilter());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getIndexDef());
}
{
int dataSize = 0;
for (int i = 0; i < propertyName_.size(); i++) {
dataSize += computeStringSizeNoTag(propertyName_.getRaw(i));
}
size += dataSize;
size += 2 * getPropertyNameList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(25, distinctInfixSize_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, planLabel_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(27, keyPathLength_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery) obj;
if (hasPrimaryScan() != other.hasPrimaryScan()) return false;
if (hasPrimaryScan()) {
if (!getPrimaryScan()
.equals(other.getPrimaryScan())) return false;
}
if (!getMergeJoinScanList()
.equals(other.getMergeJoinScanList())) return false;
if (hasIndexDef() != other.hasIndexDef()) return false;
if (hasIndexDef()) {
if (!getIndexDef()
.equals(other.getIndexDef())) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (getOffset()
!= other.getOffset()) 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 (!getPropertyNameList()
.equals(other.getPropertyNameList())) return false;
if (hasDistinctInfixSize() != other.hasDistinctInfixSize()) return false;
if (hasDistinctInfixSize()) {
if (getDistinctInfixSize()
!= other.getDistinctInfixSize()) return false;
}
if (hasKeyPathLength() != other.hasKeyPathLength()) return false;
if (hasKeyPathLength()) {
if (getKeyPathLength()
!= other.getKeyPathLength()) return false;
}
if (hasEntityFilter() != other.hasEntityFilter()) return false;
if (hasEntityFilter()) {
if (!getEntityFilter()
.equals(other.getEntityFilter())) return false;
}
if (hasPlanLabel() != other.hasPlanLabel()) return false;
if (hasPlanLabel()) {
if (!getPlanLabel()
.equals(other.getPlanLabel())) 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 (hasPrimaryScan()) {
hash = (37 * hash) + PRIMARYSCAN_FIELD_NUMBER;
hash = (53 * hash) + getPrimaryScan().hashCode();
}
if (getMergeJoinScanCount() > 0) {
hash = (37 * hash) + MERGEJOINSCAN_FIELD_NUMBER;
hash = (53 * hash) + getMergeJoinScanList().hashCode();
}
if (hasIndexDef()) {
hash = (37 * hash) + INDEX_DEF_FIELD_NUMBER;
hash = (53 * hash) + getIndexDef().hashCode();
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset();
}
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());
}
if (getPropertyNameCount() > 0) {
hash = (37 * hash) + PROPERTY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPropertyNameList().hashCode();
}
if (hasDistinctInfixSize()) {
hash = (37 * hash) + DISTINCT_INFIX_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getDistinctInfixSize();
}
if (hasKeyPathLength()) {
hash = (37 * hash) + KEY_PATH_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getKeyPathLength();
}
if (hasEntityFilter()) {
hash = (37 * hash) + ENTITYFILTER_FIELD_NUMBER;
hash = (53 * hash) + getEntityFilter().hashCode();
}
if (hasPlanLabel()) {
hash = (37 * hash) + PLAN_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getPlanLabel().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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 query that has been compiled down into a set of bigtable scans.
* NOTE: support for in memory filters is limited so most non-perfect
* plans are not supported.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledQuery)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPrimaryScanFieldBuilder();
getMergeJoinScanFieldBuilder();
getIndexDefFieldBuilder();
getEntityFilterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
primaryScan_ = null;
if (primaryScanBuilder_ != null) {
primaryScanBuilder_.dispose();
primaryScanBuilder_ = null;
}
if (mergeJoinScanBuilder_ == null) {
mergeJoinScan_ = java.util.Collections.emptyList();
} else {
mergeJoinScan_ = null;
mergeJoinScanBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
indexDef_ = null;
if (indexDefBuilder_ != null) {
indexDefBuilder_.dispose();
indexDefBuilder_ = null;
}
offset_ = 0;
limit_ = 0;
keysOnly_ = false;
propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
distinctInfixSize_ = 0;
keyPathLength_ = 0;
entityFilter_ = null;
if (entityFilterBuilder_ != null) {
entityFilterBuilder_.dispose();
entityFilterBuilder_ = null;
}
planLabel_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result) {
if (mergeJoinScanBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
mergeJoinScan_ = java.util.Collections.unmodifiableList(mergeJoinScan_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.mergeJoinScan_ = mergeJoinScan_;
} else {
result.mergeJoinScan_ = mergeJoinScanBuilder_.build();
}
if (((bitField0_ & 0x00000040) != 0)) {
propertyName_ = propertyName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.propertyName_ = propertyName_;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.primaryScan_ = primaryScanBuilder_ == null
? primaryScan_
: primaryScanBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.indexDef_ = indexDefBuilder_ == null
? indexDef_
: indexDefBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.limit_ = limit_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.keysOnly_ = keysOnly_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.distinctInfixSize_ = distinctInfixSize_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.keyPathLength_ = keyPathLength_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.entityFilter_ = entityFilterBuilder_ == null
? entityFilter_
: entityFilterBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.planLabel_ = planLabel_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance()) return this;
if (other.hasPrimaryScan()) {
mergePrimaryScan(other.getPrimaryScan());
}
if (mergeJoinScanBuilder_ == null) {
if (!other.mergeJoinScan_.isEmpty()) {
if (mergeJoinScan_.isEmpty()) {
mergeJoinScan_ = other.mergeJoinScan_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMergeJoinScanIsMutable();
mergeJoinScan_.addAll(other.mergeJoinScan_);
}
onChanged();
}
} else {
if (!other.mergeJoinScan_.isEmpty()) {
if (mergeJoinScanBuilder_.isEmpty()) {
mergeJoinScanBuilder_.dispose();
mergeJoinScanBuilder_ = null;
mergeJoinScan_ = other.mergeJoinScan_;
bitField0_ = (bitField0_ & ~0x00000002);
mergeJoinScanBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMergeJoinScanFieldBuilder() : null;
} else {
mergeJoinScanBuilder_.addAllMessages(other.mergeJoinScan_);
}
}
}
if (other.hasIndexDef()) {
mergeIndexDef(other.getIndexDef());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasLimit()) {
setLimit(other.getLimit());
}
if (other.hasKeysOnly()) {
setKeysOnly(other.getKeysOnly());
}
if (!other.propertyName_.isEmpty()) {
if (propertyName_.isEmpty()) {
propertyName_ = other.propertyName_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensurePropertyNameIsMutable();
propertyName_.addAll(other.propertyName_);
}
onChanged();
}
if (other.hasDistinctInfixSize()) {
setDistinctInfixSize(other.getDistinctInfixSize());
}
if (other.hasKeyPathLength()) {
setKeyPathLength(other.getKeyPathLength());
}
if (other.hasEntityFilter()) {
mergeEntityFilter(other.getEntityFilter());
}
if (other.hasPlanLabel()) {
planLabel_ = other.planLabel_;
bitField0_ |= 0x00000400;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasPrimaryScan()) {
return false;
}
if (!hasKeysOnly()) {
return false;
}
for (int i = 0; i < getMergeJoinScanCount(); i++) {
if (!getMergeJoinScan(i).isInitialized()) {
return false;
}
}
if (hasIndexDef()) {
if (!getIndexDef().isInitialized()) {
return false;
}
}
if (hasEntityFilter()) {
if (!getEntityFilter().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 11: {
input.readGroup(1,
getPrimaryScanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 11
case 59: {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan m =
input.readGroup(7,
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.PARSER,
extensionRegistry);
if (mergeJoinScanBuilder_ == null) {
ensureMergeJoinScanIsMutable();
mergeJoinScan_.add(m);
} else {
mergeJoinScanBuilder_.addMessage(m);
}
break;
} // case 59
case 80: {
offset_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 80
case 88: {
limit_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 88
case 96: {
keysOnly_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 96
case 107: {
input.readGroup(13,
getEntityFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 107
case 170: {
input.readMessage(
getIndexDefFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 170
case 194: {
com.google.protobuf.ByteString bs = input.readBytes();
ensurePropertyNameIsMutable();
propertyName_.add(bs);
break;
} // case 194
case 200: {
distinctInfixSize_ = input.readInt32();
bitField0_ |= 0x00000080;
break;
} // case 200
case 210: {
planLabel_ = input.readBytes();
bitField0_ |= 0x00000400;
break;
} // case 210
case 216: {
keyPathLength_ = input.readInt32();
bitField0_ |= 0x00000100;
break;
} // case 216
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.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan primaryScan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder> primaryScanBuilder_;
/**
* required group PrimaryScan = 1 { ... }
* @return Whether the primaryscan field is set.
*/
public boolean hasPrimaryScan() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required group PrimaryScan = 1 { ... }
* @return The primaryscan.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getPrimaryScan() {
if (primaryScanBuilder_ == null) {
return primaryScan_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance() : primaryScan_;
} else {
return primaryScanBuilder_.getMessage();
}
}
/**
* required group PrimaryScan = 1 { ... }
*/
public Builder setPrimaryScan(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan value) {
if (primaryScanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
primaryScan_ = value;
} else {
primaryScanBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required group PrimaryScan = 1 { ... }
*/
public Builder setPrimaryScan(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder builderForValue) {
if (primaryScanBuilder_ == null) {
primaryScan_ = builderForValue.build();
} else {
primaryScanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required group PrimaryScan = 1 { ... }
*/
public Builder mergePrimaryScan(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan value) {
if (primaryScanBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
primaryScan_ != null &&
primaryScan_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance()) {
getPrimaryScanBuilder().mergeFrom(value);
} else {
primaryScan_ = value;
}
} else {
primaryScanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required group PrimaryScan = 1 { ... }
*/
public Builder clearPrimaryScan() {
bitField0_ = (bitField0_ & ~0x00000001);
primaryScan_ = null;
if (primaryScanBuilder_ != null) {
primaryScanBuilder_.dispose();
primaryScanBuilder_ = null;
}
onChanged();
return this;
}
/**
* required group PrimaryScan = 1 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder getPrimaryScanBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPrimaryScanFieldBuilder().getBuilder();
}
/**
* required group PrimaryScan = 1 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder getPrimaryScanOrBuilder() {
if (primaryScanBuilder_ != null) {
return primaryScanBuilder_.getMessageOrBuilder();
} else {
return primaryScan_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance() : primaryScan_;
}
}
/**
* required group PrimaryScan = 1 { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder>
getPrimaryScanFieldBuilder() {
if (primaryScanBuilder_ == null) {
primaryScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder>(
getPrimaryScan(),
getParentForChildren(),
isClean());
primaryScan_ = null;
}
return primaryScanBuilder_;
}
private java.util.List mergeJoinScan_ =
java.util.Collections.emptyList();
private void ensureMergeJoinScanIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
mergeJoinScan_ = new java.util.ArrayList(mergeJoinScan_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder> mergeJoinScanBuilder_;
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public java.util.List getMergeJoinScanList() {
if (mergeJoinScanBuilder_ == null) {
return java.util.Collections.unmodifiableList(mergeJoinScan_);
} else {
return mergeJoinScanBuilder_.getMessageList();
}
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public int getMergeJoinScanCount() {
if (mergeJoinScanBuilder_ == null) {
return mergeJoinScan_.size();
} else {
return mergeJoinScanBuilder_.getCount();
}
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getMergeJoinScan(int index) {
if (mergeJoinScanBuilder_ == null) {
return mergeJoinScan_.get(index);
} else {
return mergeJoinScanBuilder_.getMessage(index);
}
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder setMergeJoinScan(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan value) {
if (mergeJoinScanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMergeJoinScanIsMutable();
mergeJoinScan_.set(index, value);
onChanged();
} else {
mergeJoinScanBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder setMergeJoinScan(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder builderForValue) {
if (mergeJoinScanBuilder_ == null) {
ensureMergeJoinScanIsMutable();
mergeJoinScan_.set(index, builderForValue.build());
onChanged();
} else {
mergeJoinScanBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder addMergeJoinScan(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan value) {
if (mergeJoinScanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMergeJoinScanIsMutable();
mergeJoinScan_.add(value);
onChanged();
} else {
mergeJoinScanBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder addMergeJoinScan(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan value) {
if (mergeJoinScanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMergeJoinScanIsMutable();
mergeJoinScan_.add(index, value);
onChanged();
} else {
mergeJoinScanBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder addMergeJoinScan(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder builderForValue) {
if (mergeJoinScanBuilder_ == null) {
ensureMergeJoinScanIsMutable();
mergeJoinScan_.add(builderForValue.build());
onChanged();
} else {
mergeJoinScanBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder addMergeJoinScan(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder builderForValue) {
if (mergeJoinScanBuilder_ == null) {
ensureMergeJoinScanIsMutable();
mergeJoinScan_.add(index, builderForValue.build());
onChanged();
} else {
mergeJoinScanBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder addAllMergeJoinScan(
java.lang.Iterable extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan> values) {
if (mergeJoinScanBuilder_ == null) {
ensureMergeJoinScanIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mergeJoinScan_);
onChanged();
} else {
mergeJoinScanBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder clearMergeJoinScan() {
if (mergeJoinScanBuilder_ == null) {
mergeJoinScan_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
mergeJoinScanBuilder_.clear();
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public Builder removeMergeJoinScan(int index) {
if (mergeJoinScanBuilder_ == null) {
ensureMergeJoinScanIsMutable();
mergeJoinScan_.remove(index);
onChanged();
} else {
mergeJoinScanBuilder_.remove(index);
}
return this;
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder getMergeJoinScanBuilder(
int index) {
return getMergeJoinScanFieldBuilder().getBuilder(index);
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder getMergeJoinScanOrBuilder(
int index) {
if (mergeJoinScanBuilder_ == null) {
return mergeJoinScan_.get(index); } else {
return mergeJoinScanBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder>
getMergeJoinScanOrBuilderList() {
if (mergeJoinScanBuilder_ != null) {
return mergeJoinScanBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mergeJoinScan_);
}
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder addMergeJoinScanBuilder() {
return getMergeJoinScanFieldBuilder().addBuilder(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance());
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder addMergeJoinScanBuilder(
int index) {
return getMergeJoinScanFieldBuilder().addBuilder(
index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance());
}
/**
* repeated group MergeJoinScan = 7 { ... }
*/
public java.util.List
getMergeJoinScanBuilderList() {
return getMergeJoinScanFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder>
getMergeJoinScanFieldBuilder() {
if (mergeJoinScanBuilder_ == null) {
mergeJoinScanBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder>(
mergeJoinScan_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
mergeJoinScan_ = null;
}
return mergeJoinScanBuilder_;
}
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index indexDef_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder> indexDefBuilder_;
/**
*
* The index definition to use when decoding the composite index data for a
* result. Only set for scans on a composite index
*
*
* optional .storage_onestore_v3.Index index_def = 21;
* @return Whether the indexDef field is set.
*/
public boolean hasIndexDef() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The index definition to use when decoding the composite index data for a
* result. Only set for scans on a composite index
*
*
* repeated string property_name = 24;
* @return A list containing the propertyName.
*/
public com.google.protobuf.ProtocolStringList
getPropertyNameList() {
return propertyName_.getUnmodifiableView();
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @return The count of propertyName.
*/
public int getPropertyNameCount() {
return propertyName_.size();
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param index The index of the element to return.
* @return The propertyName at the given index.
*/
public java.lang.String getPropertyName(int index) {
return propertyName_.get(index);
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param index The index of the value to return.
* @return The bytes of the propertyName at the given index.
*/
public com.google.protobuf.ByteString
getPropertyNameBytes(int index) {
return propertyName_.getByteString(index);
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param index The index to set the value at.
* @param value The propertyName to set.
* @return This builder for chaining.
*/
public Builder setPropertyName(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyNameIsMutable();
propertyName_.set(index, value);
onChanged();
return this;
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param value The propertyName to add.
* @return This builder for chaining.
*/
public Builder addPropertyName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyNameIsMutable();
propertyName_.add(value);
onChanged();
return this;
}
/**
*
* see property_name on Query
*
*
* repeated string property_name = 24;
* @param values The propertyName to add.
* @return This builder for chaining.
*/
public Builder addAllPropertyName(
java.lang.Iterable values) {
ensurePropertyNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, propertyName_);
onChanged();
return this;
}
/**
*
*
* repeated string property_name = 24;
* @param value The bytes of the propertyName to add.
* @return This builder for chaining.
*/
public Builder addPropertyNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyNameIsMutable();
propertyName_.add(value);
onChanged();
return this;
}
private int distinctInfixSize_ ;
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @return Whether the distinctInfixSize field is set.
*/
@java.lang.Override
public boolean hasDistinctInfixSize() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @return The distinctInfixSize.
*/
@java.lang.Override
public int getDistinctInfixSize() {
return distinctInfixSize_;
}
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @param value The distinctInfixSize to set.
* @return This builder for chaining.
*/
public Builder setDistinctInfixSize(int value) {
distinctInfixSize_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* the number of postfix properties that should be distinct
*
*
* optional int32 distinct_infix_size = 25;
* @return This builder for chaining.
*/
public Builder clearDistinctInfixSize() {
bitField0_ = (bitField0_ & ~0x00000080);
distinctInfixSize_ = 0;
onChanged();
return this;
}
private int keyPathLength_ ;
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @return Whether the keyPathLength field is set.
*/
@java.lang.Override
public boolean hasKeyPathLength() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @return The keyPathLength.
*/
@java.lang.Override
public int getKeyPathLength() {
return keyPathLength_;
}
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @param value The keyPathLength to set.
* @return This builder for chaining.
*/
public Builder setKeyPathLength(int value) {
keyPathLength_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* the number of key path elements that results must have
*
*
* optional int32 key_path_length = 27;
* @return This builder for chaining.
*/
public Builder clearKeyPathLength() {
bitField0_ = (bitField0_ & ~0x00000100);
keyPathLength_ = 0;
onChanged();
return this;
}
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter entityFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder> entityFilterBuilder_;
/**
* optional group EntityFilter = 13 { ... }
* @return Whether the entityfilter field is set.
*/
public boolean hasEntityFilter() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional group EntityFilter = 13 { ... }
* @return The entityfilter.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getEntityFilter() {
if (entityFilterBuilder_ == null) {
return entityFilter_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_;
} else {
return entityFilterBuilder_.getMessage();
}
}
/**
* optional group EntityFilter = 13 { ... }
*/
public Builder setEntityFilter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter value) {
if (entityFilterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entityFilter_ = value;
} else {
entityFilterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional group EntityFilter = 13 { ... }
*/
public Builder setEntityFilter(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder builderForValue) {
if (entityFilterBuilder_ == null) {
entityFilter_ = builderForValue.build();
} else {
entityFilterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional group EntityFilter = 13 { ... }
*/
public Builder mergeEntityFilter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter value) {
if (entityFilterBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
entityFilter_ != null &&
entityFilter_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance()) {
getEntityFilterBuilder().mergeFrom(value);
} else {
entityFilter_ = value;
}
} else {
entityFilterBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional group EntityFilter = 13 { ... }
*/
public Builder clearEntityFilter() {
bitField0_ = (bitField0_ & ~0x00000200);
entityFilter_ = null;
if (entityFilterBuilder_ != null) {
entityFilterBuilder_.dispose();
entityFilterBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional group EntityFilter = 13 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder getEntityFilterBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getEntityFilterFieldBuilder().getBuilder();
}
/**
* optional group EntityFilter = 13 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder getEntityFilterOrBuilder() {
if (entityFilterBuilder_ != null) {
return entityFilterBuilder_.getMessageOrBuilder();
} else {
return entityFilter_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_;
}
}
/**
* optional group EntityFilter = 13 { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder>
getEntityFilterFieldBuilder() {
if (entityFilterBuilder_ == null) {
entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder>(
getEntityFilter(),
getParentForChildren(),
isClean());
entityFilter_ = null;
}
return entityFilterBuilder_;
}
private java.lang.Object planLabel_ = "";
/**
* optional string plan_label = 26;
* @return Whether the planLabel field is set.
*/
public boolean hasPlanLabel() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string plan_label = 26;
* @return The planLabel.
*/
public java.lang.String getPlanLabel() {
java.lang.Object ref = planLabel_;
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()) {
planLabel_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string plan_label = 26;
* @return The bytes for planLabel.
*/
public com.google.protobuf.ByteString
getPlanLabelBytes() {
java.lang.Object ref = planLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
planLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string plan_label = 26;
* @param value The planLabel to set.
* @return This builder for chaining.
*/
public Builder setPlanLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
planLabel_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* optional string plan_label = 26;
* @return This builder for chaining.
*/
public Builder clearPlanLabel() {
planLabel_ = getDefaultInstance().getPlanLabel();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* optional string plan_label = 26;
* @param value The bytes for planLabel to set.
* @return This builder for chaining.
*/
public Builder setPlanLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
planLabel_ = value;
bitField0_ |= 0x00000400;
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:apphosting_datastore_v3.CompiledQuery)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledQuery)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompiledCursorOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledCursor)
com.google.protobuf.MessageOrBuilder {
/**
* optional group Position = 2 [deprecated = true] { ... }
* @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated.
* See datastore_v3.proto;l=453
* @return Whether the position field is set.
*/
@java.lang.Deprecated boolean hasPosition();
/**
* optional group Position = 2 [deprecated = true] { ... }
* @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated.
* See datastore_v3.proto;l=453
* @return The position.
*/
@java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getPosition();
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder getPositionOrBuilder();
/**
*
* If specified, this is a plannable cursor.
*
*
* optional .storage_onestore_v3.IndexPostfix postfix_position = 1;
* @return Whether the postfixPosition field is set.
*/
boolean hasPostfixPosition();
/**
*
* A message that represents a compiled query cursor.
* Cursors returned by the backend populate at most one of postfix_position
* (for plannable positions) or absolute_position (for encoded positions).
* The position group can encode either a plannable or encoded positions (as
* described in detail below), but it is accepted for backwards compatibility
* only and is cleared during normalization.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledCursor}
*/
public static final class CompiledCursor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledCursor)
CompiledCursorOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompiledCursor.newBuilder() to construct.
private CompiledCursor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompiledCursor() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompiledCursor();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder.class);
}
public interface PositionOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledCursor.Position)
com.google.protobuf.MessageOrBuilder {
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return Whether the startKey field is set.
*/
@java.lang.Deprecated boolean hasStartKey();
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return The startKey.
*/
@java.lang.Deprecated java.lang.String getStartKey();
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return The bytes for startKey.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getStartKeyBytes();
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Deprecated java.util.List
getIndexValueList();
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getIndexValue(int index);
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Deprecated int getIndexValueCount();
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Deprecated java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder>
getIndexValueOrBuilderList();
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder getIndexValueOrBuilder(
int index);
/**
* optional .storage_onestore_v3.Reference key = 32 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated.
* See datastore_v3.proto;l=465
* @return Whether the key field is set.
*/
@java.lang.Deprecated boolean hasKey();
/**
* optional .storage_onestore_v3.Reference key = 32 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated.
* See datastore_v3.proto;l=465
* @return The key.
*/
@java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey();
/**
* optional .storage_onestore_v3.Reference key = 32 [deprecated = true];
*/
@java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder();
/**
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
*
* optional bool start_inclusive = 28 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated.
* See datastore_v3.proto;l=474
* @return Whether the startInclusive field is set.
*/
@java.lang.Deprecated boolean hasStartInclusive();
/**
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @return Whether the beforeAscending field is set.
*/
@java.lang.Deprecated boolean hasBeforeAscending();
/**
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @return The beforeAscending.
*/
@java.lang.Deprecated boolean getBeforeAscending();
}
/**
*
* The position for the given query.
* If no position is provided or the position is empty this is a valid cursor
* that points to the first element of the given result set.
* The position can be encoded in one of two ways. If IndexValues or key is
* specified then this is a "plannable" position that can be used regardless
* of how the query is planned. If start_key is specified then it is a
* "compiled" or "encoded" position which can only be used on the exact same
* scan that it was generated from. Both start_key and key/IndexValue cannot
* be specified in a single position.
* NOTE: All fields have been marked deprecated because the
* deprecation annotations aren't well-supported on groups.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledCursor.Position}
*/
public static final class Position extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledCursor.Position)
PositionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Position.newBuilder() to construct.
private Position(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Position() {
startKey_ = "";
indexValue_ = java.util.Collections.emptyList();
startInclusive_ = true;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Position();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder.class);
}
public interface IndexValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledCursor.Position.IndexValue)
com.google.protobuf.MessageOrBuilder {
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return Whether the property field is set.
*/
@java.lang.Deprecated boolean hasProperty();
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return The property.
*/
@java.lang.Deprecated java.lang.String getProperty();
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return The bytes for property.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getPropertyBytes();
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated.
* See datastore_v3.proto;l=462
* @return Whether the value field is set.
*/
@java.lang.Deprecated boolean hasValue();
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated.
* See datastore_v3.proto;l=462
* @return The value.
*/
@java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue getValue();
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code apphosting_datastore_v3.CompiledCursor.Position.IndexValue}
*/
public static final class IndexValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledCursor.Position.IndexValue)
IndexValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexValue.newBuilder() to construct.
private IndexValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexValue() {
property_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexValue();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder.class);
}
private int bitField0_;
public static final int PROPERTY_FIELD_NUMBER = 30;
@SuppressWarnings("serial")
private volatile java.lang.Object property_ = "";
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return Whether the property field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasProperty() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return The property.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getProperty() {
java.lang.Object ref = property_;
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()) {
property_ = s;
}
return s;
}
}
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return The bytes for property.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getPropertyBytes() {
java.lang.Object ref = property_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
property_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 31;
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value_;
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated.
* See datastore_v3.proto;l=462
* @return Whether the value field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated.
* See datastore_v3.proto;l=462
* @return The value.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue getValue() {
return value_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_;
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder getValueOrBuilder() {
return value_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_;
}
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 (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
if (!getValue().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, 30, property_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(31, getValue());
}
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(30, property_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, getValue());
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue) obj;
if (hasProperty() != other.hasProperty()) return false;
if (hasProperty()) {
if (!getProperty()
.equals(other.getProperty())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) 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 (hasProperty()) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getProperty().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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 apphosting_datastore_v3.CompiledCursor.Position.IndexValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledCursor.Position.IndexValue)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
property_ = "";
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.property_ = property_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.getDefaultInstance()) return this;
if (other.hasProperty()) {
property_ = other.property_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasValue()) {
return false;
}
if (!getValue().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 242: {
property_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 242
case 250: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 250
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 property_ = "";
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return Whether the property field is set.
*/
@java.lang.Deprecated public boolean hasProperty() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return The property.
*/
@java.lang.Deprecated public java.lang.String getProperty() {
java.lang.Object ref = property_;
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()) {
property_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return The bytes for property.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPropertyBytes() {
java.lang.Object ref = property_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
property_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @param value The property to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setProperty(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
property_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearProperty() {
property_ = getDefaultInstance().getProperty();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string property = 30 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated.
* See datastore_v3.proto;l=461
* @param value The bytes for property to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPropertyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
property_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder> valueBuilder_;
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated.
* See datastore_v3.proto;l=462
* @return Whether the value field is set.
*/
@java.lang.Deprecated public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated.
* See datastore_v3.proto;l=462
* @return The value.
*/
@java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Deprecated public Builder setValue(com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Deprecated public Builder setValue(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeValue(com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
@java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_;
}
}
/**
* required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder>(
getValue(),
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:apphosting_datastore_v3.CompiledCursor.Position.IndexValue)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledCursor.Position.IndexValue)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int START_KEY_FIELD_NUMBER = 27;
@SuppressWarnings("serial")
private volatile java.lang.Object startKey_ = "";
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return Whether the startKey field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasStartKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return The startKey.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getStartKey() {
java.lang.Object ref = startKey_;
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()) {
startKey_ = s;
}
return s;
}
}
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return The bytes for startKey.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getStartKeyBytes() {
java.lang.Object ref = startKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEXVALUE_FIELD_NUMBER = 29;
@SuppressWarnings("serial")
private java.util.List indexValue_;
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getIndexValueList() {
return indexValue_;
}
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder>
getIndexValueOrBuilderList() {
return indexValue_;
}
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Override
@java.lang.Deprecated public int getIndexValueCount() {
return indexValue_.size();
}
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Override
@java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getIndexValue(int index) {
return indexValue_.get(index);
}
/**
* repeated group IndexValue = 29 [deprecated = true] { ... }
*/
@java.lang.Override
@java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder getIndexValueOrBuilder(
int index) {
return indexValue_.get(index);
}
public static final int KEY_FIELD_NUMBER = 32;
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_;
/**
* optional .storage_onestore_v3.Reference key = 32 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated.
* See datastore_v3.proto;l=465
* @return Whether the key field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .storage_onestore_v3.Reference key = 32 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated.
* See datastore_v3.proto;l=465
* @return The key.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() {
return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_;
}
/**
* optional .storage_onestore_v3.Reference key = 32 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() {
return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_;
}
public static final int START_INCLUSIVE_FIELD_NUMBER = 28;
private boolean startInclusive_ = true;
/**
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
*
* optional bool start_inclusive = 28 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated.
* See datastore_v3.proto;l=474
* @return Whether the startInclusive field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasStartInclusive() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
*
* optional bool start_inclusive = 28 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated.
* See datastore_v3.proto;l=474
* @return The startInclusive.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getStartInclusive() {
return startInclusive_;
}
public static final int BEFORE_ASCENDING_FIELD_NUMBER = 33;
private boolean beforeAscending_ = false;
/**
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @return Whether the beforeAscending field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBeforeAscending() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @return The beforeAscending.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getBeforeAscending() {
return beforeAscending_;
}
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 < getIndexValueCount(); i++) {
if (!getIndexValue(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasKey()) {
if (!getKey().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, 27, startKey_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(28, startInclusive_);
}
for (int i = 0; i < indexValue_.size(); i++) {
output.writeGroup(29, indexValue_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(32, getKey());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(33, beforeAscending_);
}
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(27, startKey_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(28, startInclusive_);
}
for (int i = 0; i < indexValue_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(29, indexValue_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, getKey());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(33, beforeAscending_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position) obj;
if (hasStartKey() != other.hasStartKey()) return false;
if (hasStartKey()) {
if (!getStartKey()
.equals(other.getStartKey())) return false;
}
if (!getIndexValueList()
.equals(other.getIndexValueList())) return false;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasStartInclusive() != other.hasStartInclusive()) return false;
if (hasStartInclusive()) {
if (getStartInclusive()
!= other.getStartInclusive()) return false;
}
if (hasBeforeAscending() != other.hasBeforeAscending()) return false;
if (hasBeforeAscending()) {
if (getBeforeAscending()
!= other.getBeforeAscending()) 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 (hasStartKey()) {
hash = (37 * hash) + START_KEY_FIELD_NUMBER;
hash = (53 * hash) + getStartKey().hashCode();
}
if (getIndexValueCount() > 0) {
hash = (37 * hash) + INDEXVALUE_FIELD_NUMBER;
hash = (53 * hash) + getIndexValueList().hashCode();
}
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasStartInclusive()) {
hash = (37 * hash) + START_INCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStartInclusive());
}
if (hasBeforeAscending()) {
hash = (37 * hash) + BEFORE_ASCENDING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBeforeAscending());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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 position for the given query.
* If no position is provided or the position is empty this is a valid cursor
* that points to the first element of the given result set.
* The position can be encoded in one of two ways. If IndexValues or key is
* specified then this is a "plannable" position that can be used regardless
* of how the query is planned. If start_key is specified then it is a
* "compiled" or "encoded" position which can only be used on the exact same
* scan that it was generated from. Both start_key and key/IndexValue cannot
* be specified in a single position.
* NOTE: All fields have been marked deprecated because the
* deprecation annotations aren't well-supported on groups.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledCursor.Position}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledCursor.Position)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIndexValueFieldBuilder();
getKeyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startKey_ = "";
if (indexValueBuilder_ == null) {
indexValue_ = java.util.Collections.emptyList();
} else {
indexValue_ = null;
indexValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
startInclusive_ = true;
beforeAscending_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result) {
if (indexValueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
indexValue_ = java.util.Collections.unmodifiableList(indexValue_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.indexValue_ = indexValue_;
} else {
result.indexValue_ = indexValueBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startKey_ = startKey_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.key_ = keyBuilder_ == null
? key_
: keyBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.startInclusive_ = startInclusive_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.beforeAscending_ = beforeAscending_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance()) return this;
if (other.hasStartKey()) {
startKey_ = other.startKey_;
bitField0_ |= 0x00000001;
onChanged();
}
if (indexValueBuilder_ == null) {
if (!other.indexValue_.isEmpty()) {
if (indexValue_.isEmpty()) {
indexValue_ = other.indexValue_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIndexValueIsMutable();
indexValue_.addAll(other.indexValue_);
}
onChanged();
}
} else {
if (!other.indexValue_.isEmpty()) {
if (indexValueBuilder_.isEmpty()) {
indexValueBuilder_.dispose();
indexValueBuilder_ = null;
indexValue_ = other.indexValue_;
bitField0_ = (bitField0_ & ~0x00000002);
indexValueBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIndexValueFieldBuilder() : null;
} else {
indexValueBuilder_.addAllMessages(other.indexValue_);
}
}
}
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.hasStartInclusive()) {
setStartInclusive(other.getStartInclusive());
}
if (other.hasBeforeAscending()) {
setBeforeAscending(other.getBeforeAscending());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getIndexValueCount(); i++) {
if (!getIndexValue(i).isInitialized()) {
return false;
}
}
if (hasKey()) {
if (!getKey().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 218: {
startKey_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 218
case 224: {
startInclusive_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 224
case 235: {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue m =
input.readGroup(29,
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.PARSER,
extensionRegistry);
if (indexValueBuilder_ == null) {
ensureIndexValueIsMutable();
indexValue_.add(m);
} else {
indexValueBuilder_.addMessage(m);
}
break;
} // case 235
case 258: {
input.readMessage(
getKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 258
case 264: {
beforeAscending_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 264
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 startKey_ = "";
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return Whether the startKey field is set.
*/
@java.lang.Deprecated public boolean hasStartKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return The startKey.
*/
@java.lang.Deprecated public java.lang.String getStartKey() {
java.lang.Object ref = startKey_;
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()) {
startKey_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return The bytes for startKey.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getStartKeyBytes() {
java.lang.Object ref = startKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @param value The startKey to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setStartKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startKey_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
*
* optional string start_key = 27 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated.
* See datastore_v3.proto;l=458
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearStartKey() {
startKey_ = getDefaultInstance().getStartKey();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The encoded key to which this cursor position refers to. This is an
* encoded index or primary key.
* TODO: rename to "encoded_key"
* TODO: consider removing after 1.4.5
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
*
* optional bool start_inclusive = 28 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated.
* See datastore_v3.proto;l=474
* @return Whether the startInclusive field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasStartInclusive() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
*
* optional bool start_inclusive = 28 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated.
* See datastore_v3.proto;l=474
* @return The startInclusive.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getStartInclusive() {
return startInclusive_;
}
/**
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
*
* optional bool start_inclusive = 28 [default = true, deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated.
* See datastore_v3.proto;l=474
* @param value The startInclusive to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setStartInclusive(boolean value) {
startInclusive_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* If the position is inclusive when used as the start for a query. If used
* as an end position this value will be inverted by the datastore before
* applying it to a query. For example if a cursor points to the position
* between 'B' and 'C' in 'ABCD' that position is encoded either as B
* exclusive or C inclusive. Using either one of these as a start position
* will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
* position of the cursor needs to be B inclusive or C exclusive.
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @return Whether the beforeAscending field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBeforeAscending() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @return The beforeAscending.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getBeforeAscending() {
return beforeAscending_;
}
/**
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @param value The beforeAscending to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setBeforeAscending(boolean value) {
beforeAscending_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* If true, and the first sort order direction from the query is ascending,
* this cursor points to immediately before the position it contains. If
* false, or the first sort order from the query is descending, it points
* to immediately after the position it contains.
* before_ascending | sort order | before/after
* --------------------------------------------
* true ASC before
* true DESC after
* false ASC after
* false DESC before
* Ultimately, all non-empty cursors returned by the backend will
* populate this field, and all non-empty cursors received by the backend
* will be upconverted to contain it before query execution.
* This field will ultimately replace start_inclusive.
*
*
* optional bool before_ascending = 33 [deprecated = true];
* @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated.
* See datastore_v3.proto;l=493
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearBeforeAscending() {
bitField0_ = (bitField0_ & ~0x00000010);
beforeAscending_ = 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:apphosting_datastore_v3.CompiledCursor.Position)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledCursor.Position)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int POSITION_FIELD_NUMBER = 2;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position position_;
/**
* optional group Position = 2 [deprecated = true] { ... }
* @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated.
* See datastore_v3.proto;l=453
* @return Whether the position field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasPosition() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional group Position = 2 [deprecated = true] { ... }
* @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated.
* See datastore_v3.proto;l=453
* @return The position.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getPosition() {
return position_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_;
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Override
@java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder getPositionOrBuilder() {
return position_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_;
}
public static final int POSTFIX_POSITION_FIELD_NUMBER = 1;
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix postfixPosition_;
/**
*
* If specified, this is a plannable cursor.
*
*
* optional .storage_onestore_v3.IndexPostfix postfix_position = 1;
* @return Whether the postfixPosition field is set.
*/
@java.lang.Override
public boolean hasPostfixPosition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
* optional .storage_onestore_v3.IndexPosition absolute_position = 3;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPositionOrBuilder getAbsolutePositionOrBuilder() {
return absolutePosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.getDefaultInstance() : absolutePosition_;
}
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 (hasPosition()) {
if (!getPosition().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasPostfixPosition()) {
if (!getPostfixPosition().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_ & 0x00000002) != 0)) {
output.writeMessage(1, getPostfixPosition());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeGroup(2, getPosition());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getAbsolutePosition());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPostfixPosition());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(2, getPosition());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAbsolutePosition());
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor) obj;
if (hasPosition() != other.hasPosition()) return false;
if (hasPosition()) {
if (!getPosition()
.equals(other.getPosition())) return false;
}
if (hasPostfixPosition() != other.hasPostfixPosition()) return false;
if (hasPostfixPosition()) {
if (!getPostfixPosition()
.equals(other.getPostfixPosition())) return false;
}
if (hasAbsolutePosition() != other.hasAbsolutePosition()) return false;
if (hasAbsolutePosition()) {
if (!getAbsolutePosition()
.equals(other.getAbsolutePosition())) 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 (hasPosition()) {
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPosition().hashCode();
}
if (hasPostfixPosition()) {
hash = (37 * hash) + POSTFIX_POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPostfixPosition().hashCode();
}
if (hasAbsolutePosition()) {
hash = (37 * hash) + ABSOLUTE_POSITION_FIELD_NUMBER;
hash = (53 * hash) + getAbsolutePosition().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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 message that represents a compiled query cursor.
* Cursors returned by the backend populate at most one of postfix_position
* (for plannable positions) or absolute_position (for encoded positions).
* The position group can encode either a plannable or encoded positions (as
* described in detail below), but it is accepted for backwards compatibility
* only and is cleared during normalization.
*
*
* Protobuf type {@code apphosting_datastore_v3.CompiledCursor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledCursor)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPositionFieldBuilder();
getPostfixPositionFieldBuilder();
getAbsolutePositionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
position_ = null;
if (positionBuilder_ != null) {
positionBuilder_.dispose();
positionBuilder_ = null;
}
postfixPosition_ = null;
if (postfixPositionBuilder_ != null) {
postfixPositionBuilder_.dispose();
postfixPositionBuilder_ = null;
}
absolutePosition_ = null;
if (absolutePositionBuilder_ != null) {
absolutePositionBuilder_.dispose();
absolutePositionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.position_ = positionBuilder_ == null
? position_
: positionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.postfixPosition_ = postfixPositionBuilder_ == null
? postfixPosition_
: postfixPositionBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.absolutePosition_ = absolutePositionBuilder_ == null
? absolutePosition_
: absolutePositionBuilder_.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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()) return this;
if (other.hasPosition()) {
mergePosition(other.getPosition());
}
if (other.hasPostfixPosition()) {
mergePostfixPosition(other.getPostfixPosition());
}
if (other.hasAbsolutePosition()) {
mergeAbsolutePosition(other.getAbsolutePosition());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasPosition()) {
if (!getPosition().isInitialized()) {
return false;
}
}
if (hasPostfixPosition()) {
if (!getPostfixPosition().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(
getPostfixPositionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 10
case 19: {
input.readGroup(2,
getPositionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 19
case 26: {
input.readMessage(
getAbsolutePositionFieldBuilder().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 com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position position_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder> positionBuilder_;
/**
* optional group Position = 2 [deprecated = true] { ... }
* @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated.
* See datastore_v3.proto;l=453
* @return Whether the position field is set.
*/
@java.lang.Deprecated public boolean hasPosition() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional group Position = 2 [deprecated = true] { ... }
* @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated.
* See datastore_v3.proto;l=453
* @return The position.
*/
@java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getPosition() {
if (positionBuilder_ == null) {
return position_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_;
} else {
return positionBuilder_.getMessage();
}
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Deprecated public Builder setPosition(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position value) {
if (positionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
position_ = value;
} else {
positionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Deprecated public Builder setPosition(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder builderForValue) {
if (positionBuilder_ == null) {
position_ = builderForValue.build();
} else {
positionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Deprecated public Builder mergePosition(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position value) {
if (positionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
position_ != null &&
position_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance()) {
getPositionBuilder().mergeFrom(value);
} else {
position_ = value;
}
} else {
positionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Deprecated public Builder clearPosition() {
bitField0_ = (bitField0_ & ~0x00000001);
position_ = null;
if (positionBuilder_ != null) {
positionBuilder_.dispose();
positionBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder getPositionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPositionFieldBuilder().getBuilder();
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
@java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder getPositionOrBuilder() {
if (positionBuilder_ != null) {
return positionBuilder_.getMessageOrBuilder();
} else {
return position_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_;
}
}
/**
* optional group Position = 2 [deprecated = true] { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder>
getPositionFieldBuilder() {
if (positionBuilder_ == null) {
positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder>(
getPosition(),
getParentForChildren(),
isClean());
position_ = null;
}
return positionBuilder_;
}
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix postfixPosition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfixOrBuilder> postfixPositionBuilder_;
/**
*
* If specified, this is a plannable cursor.
*
*
* optional .storage_onestore_v3.IndexPostfix postfix_position = 1;
* @return Whether the postfixPosition field is set.
*/
public boolean hasPostfixPosition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
* optional string database_id = 3;
* @param value The bytes for databaseId to set.
* @return This builder for chaining.
*/
public Builder setDatabaseIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
databaseId_ = 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:apphosting_datastore_v3.Cursor)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Cursor)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Cursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Error)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* RPC request and response objects, along with response error codes for error
* handling. Prometheus uses Stubby's application error reporting mechanism, and
* always sets an error detail message. However, in the case of internal errors,
* these messages should not be reported to users.
*
*
* Protobuf type {@code apphosting_datastore_v3.Error}
*/
public static final class Error extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Error)
ErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Error.newBuilder() to construct.
private Error(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Error() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Error();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.Builder.class);
}
/**
*
* If you add a new error code here, then also add it to the list of
* tunneled datastore error codes in taskqueue.
* LINT.IfChange
*
*
* BAD_REQUEST = 1;
*/
public static final int BAD_REQUEST_VALUE = 1;
/**
* CONCURRENT_TRANSACTION = 2;
*/
public static final int CONCURRENT_TRANSACTION_VALUE = 2;
/**
* INTERNAL_ERROR = 3;
*/
public static final int INTERNAL_ERROR_VALUE = 3;
/**
* NEED_INDEX = 4;
*/
public static final int NEED_INDEX_VALUE = 4;
/**
* TIMEOUT = 5;
*/
public static final int TIMEOUT_VALUE = 5;
/**
* PERMISSION_DENIED = 6;
*/
public static final int PERMISSION_DENIED_VALUE = 6;
/**
* BIGTABLE_ERROR = 7;
*/
public static final int BIGTABLE_ERROR_VALUE = 7;
/**
* COMMITTED_BUT_STILL_APPLYING = 8;
*/
public static final int COMMITTED_BUT_STILL_APPLYING_VALUE = 8;
/**
* CAPABILITY_DISABLED = 9;
*/
public static final int CAPABILITY_DISABLED_VALUE = 9;
/**
* TRY_ALTERNATE_BACKEND = 10;
*/
public static final int TRY_ALTERNATE_BACKEND_VALUE = 10;
/**
* SAFE_TIME_TOO_OLD = 11;
*/
public static final int SAFE_TIME_TOO_OLD_VALUE = 11;
/**
* RESOURCE_EXHAUSTED = 12;
*/
public static final int RESOURCE_EXHAUSTED_VALUE = 12;
/**
*
* Each error code's default log level is specified in
* DatastoreException.DEFAULT_LOG_LEVELS.
*
*
* SNAPSHOT_VERSION_TOO_OLD = 18;
*/
public static final int SNAPSHOT_VERSION_TOO_OLD_VALUE = 18;
/**
*
* Codes that are never returned by this service but which are used
* internally because they correspond to canonical error codes.
*
*
* NOT_FOUND = 13;
*/
public static final int NOT_FOUND_VALUE = 13;
/**
* ALREADY_EXISTS = 14;
*/
public static final int ALREADY_EXISTS_VALUE = 14;
/**
* FAILED_PRECONDITION = 15;
*/
public static final int FAILED_PRECONDITION_VALUE = 15;
/**
* UNAUTHENTICATED = 16;
*/
public static final int UNAUTHENTICATED_VALUE = 16;
/**
* ABORTED = 17;
*/
public static final int ABORTED_VALUE = 17;
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 1: return BAD_REQUEST;
case 2: return CONCURRENT_TRANSACTION;
case 3: return INTERNAL_ERROR;
case 4: return NEED_INDEX;
case 5: return TIMEOUT;
case 6: return PERMISSION_DENIED;
case 7: return BIGTABLE_ERROR;
case 8: return COMMITTED_BUT_STILL_APPLYING;
case 9: return CAPABILITY_DISABLED;
case 10: return TRY_ALTERNATE_BACKEND;
case 11: return SAFE_TIME_TOO_OLD;
case 12: return RESOURCE_EXHAUSTED;
case 18: return SNAPSHOT_VERSION_TOO_OLD;
case 13: return NOT_FOUND;
case 14: return ALREADY_EXISTS;
case 15: return FAILED_PRECONDITION;
case 16: return UNAUTHENTICATED;
case 17: return ABORTED;
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.apphosting.datastore.proto2api.DatastoreV3Pb.Error.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:apphosting_datastore_v3.Error.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.apphosting.datastore.proto2api.DatastoreV3Pb.Error)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error) 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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;
}
/**
*
* RPC request and response objects, along with response error codes for error
* handling. Prometheus uses Stubby's application error reporting mechanism, and
* always sets an error detail message. However, in the case of internal errors,
* these messages should not be reported to users.
*
*
* Protobuf type {@code apphosting_datastore_v3.Error}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Error)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.ErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error(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.apphosting.datastore.proto2api.DatastoreV3Pb.Error) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.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:apphosting_datastore_v3.Error)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Error)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CostOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Cost)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 index_writes = 1;
* @return Whether the indexWrites field is set.
*/
boolean hasIndexWrites();
/**
* optional int32 index_writes = 1;
* @return The indexWrites.
*/
int getIndexWrites();
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @return Whether the indexWriteBytes field is set.
*/
boolean hasIndexWriteBytes();
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @return The indexWriteBytes.
*/
int getIndexWriteBytes();
/**
* optional int32 entity_writes = 3;
* @return Whether the entityWrites field is set.
*/
boolean hasEntityWrites();
/**
* optional int32 entity_writes = 3;
* @return The entityWrites.
*/
int getEntityWrites();
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @return Whether the entityWriteBytes field is set.
*/
boolean hasEntityWriteBytes();
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @return The entityWriteBytes.
*/
int getEntityWriteBytes();
/**
* optional group CommitCost = 5 { ... }
* @return Whether the commitcost field is set.
*/
boolean hasCommitCost();
/**
* optional group CommitCost = 5 { ... }
* @return The commitcost.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getCommitCost();
/**
* optional group CommitCost = 5 { ... }
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder getCommitCostOrBuilder();
/**
* optional int32 approximate_storage_delta = 8;
* @return Whether the approximateStorageDelta field is set.
*/
boolean hasApproximateStorageDelta();
/**
* optional int32 approximate_storage_delta = 8;
* @return The approximateStorageDelta.
*/
int getApproximateStorageDelta();
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @return Whether the idSequenceUpdates field is set.
*/
boolean hasIdSequenceUpdates();
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @return The idSequenceUpdates.
*/
int getIdSequenceUpdates();
}
/**
* Protobuf type {@code apphosting_datastore_v3.Cost}
*/
public static final class Cost extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Cost)
CostOrBuilder {
private static final long serialVersionUID = 0L;
// Use Cost.newBuilder() to construct.
private Cost(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Cost() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Cost();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder.class);
}
public interface CommitCostOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Cost.CommitCost)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 requested_entity_puts = 6;
* @return Whether the requestedEntityPuts field is set.
*/
boolean hasRequestedEntityPuts();
/**
* optional int32 requested_entity_puts = 6;
* @return The requestedEntityPuts.
*/
int getRequestedEntityPuts();
/**
* optional int32 requested_entity_deletes = 7;
* @return Whether the requestedEntityDeletes field is set.
*/
boolean hasRequestedEntityDeletes();
/**
* optional int32 requested_entity_deletes = 7;
* @return The requestedEntityDeletes.
*/
int getRequestedEntityDeletes();
}
/**
*
* Used in the Commit response so we know how many put and delete ops to
* charge for (we charge based on the number of puts and deletes requested,
* not the number of puts and deletes actually performed).
*
*
* Protobuf type {@code apphosting_datastore_v3.Cost.CommitCost}
*/
public static final class CommitCost extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Cost.CommitCost)
CommitCostOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitCost.newBuilder() to construct.
private CommitCost(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitCost() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CommitCost();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder.class);
}
private int bitField0_;
public static final int REQUESTED_ENTITY_PUTS_FIELD_NUMBER = 6;
private int requestedEntityPuts_ = 0;
/**
* optional int32 requested_entity_puts = 6;
* @return Whether the requestedEntityPuts field is set.
*/
@java.lang.Override
public boolean hasRequestedEntityPuts() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 requested_entity_puts = 6;
* @return The requestedEntityPuts.
*/
@java.lang.Override
public int getRequestedEntityPuts() {
return requestedEntityPuts_;
}
public static final int REQUESTED_ENTITY_DELETES_FIELD_NUMBER = 7;
private int requestedEntityDeletes_ = 0;
/**
* optional int32 requested_entity_deletes = 7;
* @return Whether the requestedEntityDeletes field is set.
*/
@java.lang.Override
public boolean hasRequestedEntityDeletes() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 requested_entity_deletes = 7;
* @return The requestedEntityDeletes.
*/
@java.lang.Override
public int getRequestedEntityDeletes() {
return requestedEntityDeletes_;
}
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(6, requestedEntityPuts_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(7, requestedEntityDeletes_);
}
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(6, requestedEntityPuts_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, requestedEntityDeletes_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost) obj;
if (hasRequestedEntityPuts() != other.hasRequestedEntityPuts()) return false;
if (hasRequestedEntityPuts()) {
if (getRequestedEntityPuts()
!= other.getRequestedEntityPuts()) return false;
}
if (hasRequestedEntityDeletes() != other.hasRequestedEntityDeletes()) return false;
if (hasRequestedEntityDeletes()) {
if (getRequestedEntityDeletes()
!= other.getRequestedEntityDeletes()) 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 (hasRequestedEntityPuts()) {
hash = (37 * hash) + REQUESTED_ENTITY_PUTS_FIELD_NUMBER;
hash = (53 * hash) + getRequestedEntityPuts();
}
if (hasRequestedEntityDeletes()) {
hash = (37 * hash) + REQUESTED_ENTITY_DELETES_FIELD_NUMBER;
hash = (53 * hash) + getRequestedEntityDeletes();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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;
}
/**
*
* Used in the Commit response so we know how many put and delete ops to
* charge for (we charge based on the number of puts and deletes requested,
* not the number of puts and deletes actually performed).
*
*
* Protobuf type {@code apphosting_datastore_v3.Cost.CommitCost}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Cost.CommitCost)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
requestedEntityPuts_ = 0;
requestedEntityDeletes_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.requestedEntityPuts_ = requestedEntityPuts_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.requestedEntityDeletes_ = requestedEntityDeletes_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance()) return this;
if (other.hasRequestedEntityPuts()) {
setRequestedEntityPuts(other.getRequestedEntityPuts());
}
if (other.hasRequestedEntityDeletes()) {
setRequestedEntityDeletes(other.getRequestedEntityDeletes());
}
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 48: {
requestedEntityPuts_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 48
case 56: {
requestedEntityDeletes_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 56
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 requestedEntityPuts_ ;
/**
* optional int32 requested_entity_puts = 6;
* @return Whether the requestedEntityPuts field is set.
*/
@java.lang.Override
public boolean hasRequestedEntityPuts() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 requested_entity_puts = 6;
* @return The requestedEntityPuts.
*/
@java.lang.Override
public int getRequestedEntityPuts() {
return requestedEntityPuts_;
}
/**
* optional int32 requested_entity_puts = 6;
* @param value The requestedEntityPuts to set.
* @return This builder for chaining.
*/
public Builder setRequestedEntityPuts(int value) {
requestedEntityPuts_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 requested_entity_puts = 6;
* @return This builder for chaining.
*/
public Builder clearRequestedEntityPuts() {
bitField0_ = (bitField0_ & ~0x00000001);
requestedEntityPuts_ = 0;
onChanged();
return this;
}
private int requestedEntityDeletes_ ;
/**
* optional int32 requested_entity_deletes = 7;
* @return Whether the requestedEntityDeletes field is set.
*/
@java.lang.Override
public boolean hasRequestedEntityDeletes() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 requested_entity_deletes = 7;
* @return The requestedEntityDeletes.
*/
@java.lang.Override
public int getRequestedEntityDeletes() {
return requestedEntityDeletes_;
}
/**
* optional int32 requested_entity_deletes = 7;
* @param value The requestedEntityDeletes to set.
* @return This builder for chaining.
*/
public Builder setRequestedEntityDeletes(int value) {
requestedEntityDeletes_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int32 requested_entity_deletes = 7;
* @return This builder for chaining.
*/
public Builder clearRequestedEntityDeletes() {
bitField0_ = (bitField0_ & ~0x00000002);
requestedEntityDeletes_ = 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:apphosting_datastore_v3.Cost.CommitCost)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Cost.CommitCost)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int INDEX_WRITES_FIELD_NUMBER = 1;
private int indexWrites_ = 0;
/**
* optional int32 index_writes = 1;
* @return Whether the indexWrites field is set.
*/
@java.lang.Override
public boolean hasIndexWrites() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 index_writes = 1;
* @return The indexWrites.
*/
@java.lang.Override
public int getIndexWrites() {
return indexWrites_;
}
public static final int INDEX_WRITE_BYTES_FIELD_NUMBER = 2;
private int indexWriteBytes_ = 0;
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @return Whether the indexWriteBytes field is set.
*/
@java.lang.Override
public boolean hasIndexWriteBytes() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @return The indexWriteBytes.
*/
@java.lang.Override
public int getIndexWriteBytes() {
return indexWriteBytes_;
}
public static final int ENTITY_WRITES_FIELD_NUMBER = 3;
private int entityWrites_ = 0;
/**
* optional int32 entity_writes = 3;
* @return Whether the entityWrites field is set.
*/
@java.lang.Override
public boolean hasEntityWrites() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 entity_writes = 3;
* @return The entityWrites.
*/
@java.lang.Override
public int getEntityWrites() {
return entityWrites_;
}
public static final int ENTITY_WRITE_BYTES_FIELD_NUMBER = 4;
private int entityWriteBytes_ = 0;
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @return Whether the entityWriteBytes field is set.
*/
@java.lang.Override
public boolean hasEntityWriteBytes() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @return The entityWriteBytes.
*/
@java.lang.Override
public int getEntityWriteBytes() {
return entityWriteBytes_;
}
public static final int COMMITCOST_FIELD_NUMBER = 5;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost commitCost_;
/**
* optional group CommitCost = 5 { ... }
* @return Whether the commitcost field is set.
*/
@java.lang.Override
public boolean hasCommitCost() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional group CommitCost = 5 { ... }
* @return The commitcost.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getCommitCost() {
return commitCost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_;
}
/**
* optional group CommitCost = 5 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder getCommitCostOrBuilder() {
return commitCost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_;
}
public static final int APPROXIMATE_STORAGE_DELTA_FIELD_NUMBER = 8;
private int approximateStorageDelta_ = 0;
/**
* optional int32 approximate_storage_delta = 8;
* @return Whether the approximateStorageDelta field is set.
*/
@java.lang.Override
public boolean hasApproximateStorageDelta() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 approximate_storage_delta = 8;
* @return The approximateStorageDelta.
*/
@java.lang.Override
public int getApproximateStorageDelta() {
return approximateStorageDelta_;
}
public static final int ID_SEQUENCE_UPDATES_FIELD_NUMBER = 9;
private int idSequenceUpdates_ = 0;
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @return Whether the idSequenceUpdates field is set.
*/
@java.lang.Override
public boolean hasIdSequenceUpdates() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @return The idSequenceUpdates.
*/
@java.lang.Override
public int getIdSequenceUpdates() {
return idSequenceUpdates_;
}
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, indexWrites_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, indexWriteBytes_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, entityWrites_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(4, entityWriteBytes_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeGroup(5, getCommitCost());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(8, approximateStorageDelta_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt32(9, idSequenceUpdates_);
}
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, indexWrites_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, indexWriteBytes_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, entityWrites_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, entityWriteBytes_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(5, getCommitCost());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, approximateStorageDelta_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, idSequenceUpdates_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost) obj;
if (hasIndexWrites() != other.hasIndexWrites()) return false;
if (hasIndexWrites()) {
if (getIndexWrites()
!= other.getIndexWrites()) return false;
}
if (hasIndexWriteBytes() != other.hasIndexWriteBytes()) return false;
if (hasIndexWriteBytes()) {
if (getIndexWriteBytes()
!= other.getIndexWriteBytes()) return false;
}
if (hasEntityWrites() != other.hasEntityWrites()) return false;
if (hasEntityWrites()) {
if (getEntityWrites()
!= other.getEntityWrites()) return false;
}
if (hasEntityWriteBytes() != other.hasEntityWriteBytes()) return false;
if (hasEntityWriteBytes()) {
if (getEntityWriteBytes()
!= other.getEntityWriteBytes()) return false;
}
if (hasCommitCost() != other.hasCommitCost()) return false;
if (hasCommitCost()) {
if (!getCommitCost()
.equals(other.getCommitCost())) return false;
}
if (hasApproximateStorageDelta() != other.hasApproximateStorageDelta()) return false;
if (hasApproximateStorageDelta()) {
if (getApproximateStorageDelta()
!= other.getApproximateStorageDelta()) return false;
}
if (hasIdSequenceUpdates() != other.hasIdSequenceUpdates()) return false;
if (hasIdSequenceUpdates()) {
if (getIdSequenceUpdates()
!= other.getIdSequenceUpdates()) 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 (hasIndexWrites()) {
hash = (37 * hash) + INDEX_WRITES_FIELD_NUMBER;
hash = (53 * hash) + getIndexWrites();
}
if (hasIndexWriteBytes()) {
hash = (37 * hash) + INDEX_WRITE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getIndexWriteBytes();
}
if (hasEntityWrites()) {
hash = (37 * hash) + ENTITY_WRITES_FIELD_NUMBER;
hash = (53 * hash) + getEntityWrites();
}
if (hasEntityWriteBytes()) {
hash = (37 * hash) + ENTITY_WRITE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getEntityWriteBytes();
}
if (hasCommitCost()) {
hash = (37 * hash) + COMMITCOST_FIELD_NUMBER;
hash = (53 * hash) + getCommitCost().hashCode();
}
if (hasApproximateStorageDelta()) {
hash = (37 * hash) + APPROXIMATE_STORAGE_DELTA_FIELD_NUMBER;
hash = (53 * hash) + getApproximateStorageDelta();
}
if (hasIdSequenceUpdates()) {
hash = (37 * hash) + ID_SEQUENCE_UPDATES_FIELD_NUMBER;
hash = (53 * hash) + getIdSequenceUpdates();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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 apphosting_datastore_v3.Cost}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Cost)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCommitCostFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexWrites_ = 0;
indexWriteBytes_ = 0;
entityWrites_ = 0;
entityWriteBytes_ = 0;
commitCost_ = null;
if (commitCostBuilder_ != null) {
commitCostBuilder_.dispose();
commitCostBuilder_ = null;
}
approximateStorageDelta_ = 0;
idSequenceUpdates_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexWrites_ = indexWrites_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.indexWriteBytes_ = indexWriteBytes_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.entityWrites_ = entityWrites_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.entityWriteBytes_ = entityWriteBytes_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.commitCost_ = commitCostBuilder_ == null
? commitCost_
: commitCostBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.approximateStorageDelta_ = approximateStorageDelta_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.idSequenceUpdates_ = idSequenceUpdates_;
to_bitField0_ |= 0x00000040;
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) return this;
if (other.hasIndexWrites()) {
setIndexWrites(other.getIndexWrites());
}
if (other.hasIndexWriteBytes()) {
setIndexWriteBytes(other.getIndexWriteBytes());
}
if (other.hasEntityWrites()) {
setEntityWrites(other.getEntityWrites());
}
if (other.hasEntityWriteBytes()) {
setEntityWriteBytes(other.getEntityWriteBytes());
}
if (other.hasCommitCost()) {
mergeCommitCost(other.getCommitCost());
}
if (other.hasApproximateStorageDelta()) {
setApproximateStorageDelta(other.getApproximateStorageDelta());
}
if (other.hasIdSequenceUpdates()) {
setIdSequenceUpdates(other.getIdSequenceUpdates());
}
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: {
indexWrites_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
indexWriteBytes_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
entityWrites_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
entityWriteBytes_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 43: {
input.readGroup(5,
getCommitCostFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 43
case 64: {
approximateStorageDelta_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 64
case 72: {
idSequenceUpdates_ = input.readInt32();
bitField0_ |= 0x00000040;
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 int indexWrites_ ;
/**
* optional int32 index_writes = 1;
* @return Whether the indexWrites field is set.
*/
@java.lang.Override
public boolean hasIndexWrites() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 index_writes = 1;
* @return The indexWrites.
*/
@java.lang.Override
public int getIndexWrites() {
return indexWrites_;
}
/**
* optional int32 index_writes = 1;
* @param value The indexWrites to set.
* @return This builder for chaining.
*/
public Builder setIndexWrites(int value) {
indexWrites_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 index_writes = 1;
* @return This builder for chaining.
*/
public Builder clearIndexWrites() {
bitField0_ = (bitField0_ & ~0x00000001);
indexWrites_ = 0;
onChanged();
return this;
}
private int indexWriteBytes_ ;
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @return Whether the indexWriteBytes field is set.
*/
@java.lang.Override
public boolean hasIndexWriteBytes() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @return The indexWriteBytes.
*/
@java.lang.Override
public int getIndexWriteBytes() {
return indexWriteBytes_;
}
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @param value The indexWriteBytes to set.
* @return This builder for chaining.
*/
public Builder setIndexWriteBytes(int value) {
indexWriteBytes_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Deprecated
*
*
* optional int32 index_write_bytes = 2;
* @return This builder for chaining.
*/
public Builder clearIndexWriteBytes() {
bitField0_ = (bitField0_ & ~0x00000002);
indexWriteBytes_ = 0;
onChanged();
return this;
}
private int entityWrites_ ;
/**
* optional int32 entity_writes = 3;
* @return Whether the entityWrites field is set.
*/
@java.lang.Override
public boolean hasEntityWrites() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 entity_writes = 3;
* @return The entityWrites.
*/
@java.lang.Override
public int getEntityWrites() {
return entityWrites_;
}
/**
* optional int32 entity_writes = 3;
* @param value The entityWrites to set.
* @return This builder for chaining.
*/
public Builder setEntityWrites(int value) {
entityWrites_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional int32 entity_writes = 3;
* @return This builder for chaining.
*/
public Builder clearEntityWrites() {
bitField0_ = (bitField0_ & ~0x00000004);
entityWrites_ = 0;
onChanged();
return this;
}
private int entityWriteBytes_ ;
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @return Whether the entityWriteBytes field is set.
*/
@java.lang.Override
public boolean hasEntityWriteBytes() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @return The entityWriteBytes.
*/
@java.lang.Override
public int getEntityWriteBytes() {
return entityWriteBytes_;
}
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @param value The entityWriteBytes to set.
* @return This builder for chaining.
*/
public Builder setEntityWriteBytes(int value) {
entityWriteBytes_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Deprecated
*
*
* optional int32 entity_write_bytes = 4;
* @return This builder for chaining.
*/
public Builder clearEntityWriteBytes() {
bitField0_ = (bitField0_ & ~0x00000008);
entityWriteBytes_ = 0;
onChanged();
return this;
}
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost commitCost_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder> commitCostBuilder_;
/**
* optional group CommitCost = 5 { ... }
* @return Whether the commitcost field is set.
*/
public boolean hasCommitCost() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional group CommitCost = 5 { ... }
* @return The commitcost.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getCommitCost() {
if (commitCostBuilder_ == null) {
return commitCost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_;
} else {
return commitCostBuilder_.getMessage();
}
}
/**
* optional group CommitCost = 5 { ... }
*/
public Builder setCommitCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost value) {
if (commitCostBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commitCost_ = value;
} else {
commitCostBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional group CommitCost = 5 { ... }
*/
public Builder setCommitCost(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder builderForValue) {
if (commitCostBuilder_ == null) {
commitCost_ = builderForValue.build();
} else {
commitCostBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional group CommitCost = 5 { ... }
*/
public Builder mergeCommitCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost value) {
if (commitCostBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
commitCost_ != null &&
commitCost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance()) {
getCommitCostBuilder().mergeFrom(value);
} else {
commitCost_ = value;
}
} else {
commitCostBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional group CommitCost = 5 { ... }
*/
public Builder clearCommitCost() {
bitField0_ = (bitField0_ & ~0x00000010);
commitCost_ = null;
if (commitCostBuilder_ != null) {
commitCostBuilder_.dispose();
commitCostBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional group CommitCost = 5 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder getCommitCostBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getCommitCostFieldBuilder().getBuilder();
}
/**
* optional group CommitCost = 5 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder getCommitCostOrBuilder() {
if (commitCostBuilder_ != null) {
return commitCostBuilder_.getMessageOrBuilder();
} else {
return commitCost_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_;
}
}
/**
* optional group CommitCost = 5 { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder>
getCommitCostFieldBuilder() {
if (commitCostBuilder_ == null) {
commitCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder>(
getCommitCost(),
getParentForChildren(),
isClean());
commitCost_ = null;
}
return commitCostBuilder_;
}
private int approximateStorageDelta_ ;
/**
* optional int32 approximate_storage_delta = 8;
* @return Whether the approximateStorageDelta field is set.
*/
@java.lang.Override
public boolean hasApproximateStorageDelta() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 approximate_storage_delta = 8;
* @return The approximateStorageDelta.
*/
@java.lang.Override
public int getApproximateStorageDelta() {
return approximateStorageDelta_;
}
/**
* optional int32 approximate_storage_delta = 8;
* @param value The approximateStorageDelta to set.
* @return This builder for chaining.
*/
public Builder setApproximateStorageDelta(int value) {
approximateStorageDelta_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional int32 approximate_storage_delta = 8;
* @return This builder for chaining.
*/
public Builder clearApproximateStorageDelta() {
bitField0_ = (bitField0_ & ~0x00000020);
approximateStorageDelta_ = 0;
onChanged();
return this;
}
private int idSequenceUpdates_ ;
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @return Whether the idSequenceUpdates field is set.
*/
@java.lang.Override
public boolean hasIdSequenceUpdates() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @return The idSequenceUpdates.
*/
@java.lang.Override
public int getIdSequenceUpdates() {
return idSequenceUpdates_;
}
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @param value The idSequenceUpdates to set.
* @return This builder for chaining.
*/
public Builder setIdSequenceUpdates(int value) {
idSequenceUpdates_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Number of times any id sequence was updated as a result of the request.
*
*
* optional int32 id_sequence_updates = 9;
* @return This builder for chaining.
*/
public Builder clearIdSequenceUpdates() {
bitField0_ = (bitField0_ & ~0x00000040);
idSequenceUpdates_ = 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:apphosting_datastore_v3.Cost)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Cost)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GetRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 3;
* @return Whether the failoverMs field is set.
*/
boolean hasFailoverMs();
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 3;
* @return The failoverMs.
*/
long getFailoverMs();
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
*
* optional bool strong = 4;
* @return Whether the strong field is set.
*/
boolean hasStrong();
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
*
* optional bool allow_deferred = 5 [default = false];
* @return Whether the allowDeferred field is set.
*/
boolean hasAllowDeferred();
/**
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
*
* optional bool allow_deferred = 5 [default = false];
* @return The allowDeferred.
*/
boolean getAllowDeferred();
}
/**
* Protobuf type {@code apphosting_datastore_v3.GetRequest}
*/
public static final class GetRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GetRequest)
GetRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetRequest.newBuilder() to construct.
private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRequest() {
key_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetRequest();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List key_;
/**
*
*
* repeated .storage_onestore_v3.Reference key = 1;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder(
int index) {
return key_.get(index);
}
public static final int TRANSACTION_FIELD_NUMBER = 2;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_;
/**
* optional .apphosting_datastore_v3.Transaction transaction = 2;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .apphosting_datastore_v3.Transaction transaction = 2;
* @return The transaction.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() {
return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_;
}
/**
* optional .apphosting_datastore_v3.Transaction transaction = 2;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() {
return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_;
}
public static final int FAILOVER_MS_FIELD_NUMBER = 3;
private long failoverMs_ = 0L;
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 3;
* @return Whether the failoverMs field is set.
*/
@java.lang.Override
public boolean hasFailoverMs() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 3;
* @return The failoverMs.
*/
@java.lang.Override
public long getFailoverMs() {
return failoverMs_;
}
public static final int STRONG_FIELD_NUMBER = 4;
private boolean strong_ = false;
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
*
* optional bool strong = 4;
* @return Whether the strong field is set.
*/
@java.lang.Override
public boolean hasStrong() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
*
* optional bool strong = 4;
* @return The strong.
*/
@java.lang.Override
public boolean getStrong() {
return strong_;
}
public static final int ALLOW_DEFERRED_FIELD_NUMBER = 5;
private boolean allowDeferred_ = false;
/**
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
*
* optional bool allow_deferred = 5 [default = false];
* @return Whether the allowDeferred field is set.
*/
@java.lang.Override
public boolean hasAllowDeferred() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
*
* optional bool allow_deferred = 5 [default = false];
* @return The allowDeferred.
*/
@java.lang.Override
public boolean getAllowDeferred() {
return allowDeferred_;
}
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 < getKeyCount(); i++) {
if (!getKey(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().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 < key_.size(); i++) {
output.writeMessage(1, key_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTransaction());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(3, failoverMs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(4, strong_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(5, allowDeferred_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < key_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, key_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTransaction());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, failoverMs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, strong_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, allowDeferred_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest) obj;
if (!getKeyList()
.equals(other.getKeyList())) return false;
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
if (hasFailoverMs() != other.hasFailoverMs()) return false;
if (hasFailoverMs()) {
if (getFailoverMs()
!= other.getFailoverMs()) return false;
}
if (hasStrong() != other.hasStrong()) return false;
if (hasStrong()) {
if (getStrong()
!= other.getStrong()) return false;
}
if (hasAllowDeferred() != other.hasAllowDeferred()) return false;
if (hasAllowDeferred()) {
if (getAllowDeferred()
!= other.getAllowDeferred()) 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 (getKeyCount() > 0) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKeyList().hashCode();
}
if (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
if (hasFailoverMs()) {
hash = (37 * hash) + FAILOVER_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFailoverMs());
}
if (hasStrong()) {
hash = (37 * hash) + STRONG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStrong());
}
if (hasAllowDeferred()) {
hash = (37 * hash) + ALLOW_DEFERRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowDeferred());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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 apphosting_datastore_v3.GetRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GetRequest)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyFieldBuilder();
getTransactionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (keyBuilder_ == null) {
key_ = java.util.Collections.emptyList();
} else {
key_ = null;
keyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
failoverMs_ = 0L;
strong_ = false;
allowDeferred_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result) {
if (keyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
key_ = java.util.Collections.unmodifiableList(key_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transaction_ = transactionBuilder_ == null
? transaction_
: transactionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.failoverMs_ = failoverMs_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.strong_ = strong_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.allowDeferred_ = allowDeferred_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.getDefaultInstance()) return this;
if (keyBuilder_ == null) {
if (!other.key_.isEmpty()) {
if (key_.isEmpty()) {
key_ = other.key_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeyIsMutable();
key_.addAll(other.key_);
}
onChanged();
}
} else {
if (!other.key_.isEmpty()) {
if (keyBuilder_.isEmpty()) {
keyBuilder_.dispose();
keyBuilder_ = null;
key_ = other.key_;
bitField0_ = (bitField0_ & ~0x00000001);
keyBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyFieldBuilder() : null;
} else {
keyBuilder_.addAllMessages(other.key_);
}
}
}
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (other.hasFailoverMs()) {
setFailoverMs(other.getFailoverMs());
}
if (other.hasStrong()) {
setStrong(other.getStrong());
}
if (other.hasAllowDeferred()) {
setAllowDeferred(other.getAllowDeferred());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getKeyCount(); i++) {
if (!getKey(i).isInitialized()) {
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().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.storage.onestore.v3.proto2api.OnestoreEntity.Reference m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER,
extensionRegistry);
if (keyBuilder_ == null) {
ensureKeyIsMutable();
key_.add(m);
} else {
keyBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
failoverMs_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
strong_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
allowDeferred_ = 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 java.util.List key_ =
java.util.Collections.emptyList();
private void ensureKeyIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
key_ = new java.util.ArrayList(key_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_;
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 3;
* @return Whether the failoverMs field is set.
*/
@java.lang.Override
public boolean hasFailoverMs() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 3;
* @return The failoverMs.
*/
@java.lang.Override
public long getFailoverMs() {
return failoverMs_;
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
*
* optional int64 failover_ms = 3;
* @param value The failoverMs to set.
* @return This builder for chaining.
*/
public Builder setFailoverMs(long value) {
failoverMs_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* How long to wait on the primary replica before attempting to read from a
* secondary, possibly stale replica. May not be set if a transaction is
* provided.
* NOTE: The actual value is overwritten by the datastore, setting
* only has the effect of enabling failover in M/S.
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
*
* optional bool strong = 4;
* @return Whether the strong field is set.
*/
@java.lang.Override
public boolean hasStrong() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
*
* optional bool strong = 4;
* @param value The strong to set.
* @return This builder for chaining.
*/
public Builder setStrong(boolean value) {
strong_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Should Datastore use READ_CURRENT (strong reads) for this request?
* If unset the datastore decides based on a flag that defaults to
* READ_CONSISTENT. This lets the caller choose between low latency/eventual
* consistency (false) and potentially higher latency/strong consistency
* (true). This is typically not a concern with 1.0.1 replication as (false)
* will never return results more than one job behind, but is important for
* paxos where (false) can return results that are significantly behind.
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
*
* optional bool allow_deferred = 5 [default = false];
* @return Whether the allowDeferred field is set.
*/
@java.lang.Override
public boolean hasAllowDeferred() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
*
* optional bool allow_deferred = 5 [default = false];
* @param value The allowDeferred to set.
* @return This builder for chaining.
*/
public Builder setAllowDeferred(boolean value) {
allowDeferred_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* This flag allows the datastore to defer fetching some of the requested
* keys. If set, results may not be returned in the same order as requested,
* and the deferred field will be populated with any keys that were not
* fetched. If not set, the datastore may throw an exception instead of
* fetching all the requested entities to protect itself from running out of
* memory.
*
*
* optional bool allow_deferred = 5 [default = false];
* @return This builder for chaining.
*/
public Builder clearAllowDeferred() {
bitField0_ = (bitField0_ & ~0x00000010);
allowDeferred_ = 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:apphosting_datastore_v3.GetRequest)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GetRequest)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GetResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated group Entity = 1 { ... }
*/
java.util.List
getEntityList();
/**
* repeated group Entity = 1 { ... }
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getEntity(int index);
/**
* repeated group Entity = 1 { ... }
*/
int getEntityCount();
/**
* repeated group Entity = 1 { ... }
*/
java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder>
getEntityOrBuilderList();
/**
* repeated group Entity = 1 { ... }
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder getEntityOrBuilder(
int index);
/**
*
* A list of keys that were not looked up due to resource constraints.
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
*
* optional bool in_order = 6 [default = true];
* @return Whether the inOrder field is set.
*/
boolean hasInOrder();
/**
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
*
* optional bool in_order = 6 [default = true];
* @return The inOrder.
*/
boolean getInOrder();
}
/**
* Protobuf type {@code apphosting_datastore_v3.GetResponse}
*/
public static final class GetResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GetResponse)
GetResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetResponse.newBuilder() to construct.
private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetResponse() {
entity_ = java.util.Collections.emptyList();
deferred_ = java.util.Collections.emptyList();
inOrder_ = true;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetResponse();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Builder.class);
}
public interface EntityOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GetResponse.Entity)
com.google.protobuf.MessageOrBuilder {
/**
* optional .storage_onestore_v3.EntityProto entity = 2;
* @return Whether the entity field is set.
*/
boolean hasEntity();
/**
* optional .storage_onestore_v3.EntityProto entity = 2;
* @return The entity.
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity();
/**
* optional .storage_onestore_v3.EntityProto entity = 2;
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder();
/**
* optional .storage_onestore_v3.Reference key = 4;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* optional .storage_onestore_v3.Reference key = 4;
* @return The key.
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey();
/**
* optional .storage_onestore_v3.Reference key = 4;
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder();
/**
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @return The version.
*/
long getVersion();
}
/**
*
* The entity field will be set for keys that were found, and the key field
* will be set for keys that weren't found.
* If allow_deferred was set in the request, then these Entities may not be in
* the same order as the keys in the request. See the in_order field.
* Additionally, there would be no guarantee on how many results will appear
* if the request contained duplicate keys.
* If allow_deferred was not set in the request, then these Entities will
* always be in the same order as the request, and the in_order field will be
* true.
*
*
* Protobuf type {@code apphosting_datastore_v3.GetResponse.Entity}
*/
public static final class Entity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GetResponse.Entity)
EntityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entity.newBuilder() to construct.
private Entity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Entity() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Entity();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_Entity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_Entity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder.class);
}
private int bitField0_;
public static final int ENTITY_FIELD_NUMBER = 2;
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto entity_;
/**
* optional .storage_onestore_v3.EntityProto entity = 2;
* @return Whether the entity field is set.
*/
@java.lang.Override
public boolean hasEntity() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .storage_onestore_v3.EntityProto entity = 2;
* @return The entity.
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity() {
return entity_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entity_;
}
/**
* optional .storage_onestore_v3.EntityProto entity = 2;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder() {
return entity_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entity_;
}
public static final int KEY_FIELD_NUMBER = 4;
private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_;
/**
* optional .storage_onestore_v3.Reference key = 4;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .storage_onestore_v3.Reference key = 4;
* @return The key.
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() {
return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_;
}
/**
* optional .storage_onestore_v3.Reference key = 4;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() {
return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_;
}
public static final int VERSION_FIELD_NUMBER = 3;
private long version_ = 0L;
/**
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
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 (hasEntity()) {
if (!getEntity().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasKey()) {
if (!getKey().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(2, getEntity());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, version_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getKey());
}
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(2, getEntity());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, version_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getKey());
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity) obj;
if (hasEntity() != other.hasEntity()) return false;
if (hasEntity()) {
if (!getEntity()
.equals(other.getEntity())) return false;
}
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (getVersion()
!= other.getVersion()) 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 (hasEntity()) {
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
}
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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 entity field will be set for keys that were found, and the key field
* will be set for keys that weren't found.
* If allow_deferred was set in the request, then these Entities may not be in
* the same order as the keys in the request. See the in_order field.
* Additionally, there would be no guarantee on how many results will appear
* if the request contained duplicate keys.
* If allow_deferred was not set in the request, then these Entities will
* always be in the same order as the request, and the in_order field will be
* true.
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
/**
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(long value) {
version_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The version of the entity
* If the entity does not exist, a version number is returned for <empty>
* iff 'strong' or 'transaction' was set.
*
*
* optional int64 version = 3;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
version_ = 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:apphosting_datastore_v3.GetResponse.Entity)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GetResponse.Entity)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ENTITY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List entity_;
/**
* repeated group Entity = 1 { ... }
*/
@java.lang.Override
public java.util.List getEntityList() {
return entity_;
}
/**
* repeated group Entity = 1 { ... }
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder>
getEntityOrBuilderList() {
return entity_;
}
/**
* repeated group Entity = 1 { ... }
*/
@java.lang.Override
public int getEntityCount() {
return entity_.size();
}
/**
* repeated group Entity = 1 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getEntity(int index) {
return entity_.get(index);
}
/**
* repeated group Entity = 1 { ... }
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder getEntityOrBuilder(
int index) {
return entity_.get(index);
}
public static final int DEFERRED_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List deferred_;
/**
*
* A list of keys that were not looked up due to resource constraints.
*
* A list of keys that were not looked up due to resource constraints.
*
*
* repeated .storage_onestore_v3.Reference deferred = 5;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getDeferredOrBuilder(
int index) {
return deferred_.get(index);
}
public static final int IN_ORDER_FIELD_NUMBER = 6;
private boolean inOrder_ = true;
/**
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
*
* optional bool in_order = 6 [default = true];
* @return Whether the inOrder field is set.
*/
@java.lang.Override
public boolean hasInOrder() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
*
* optional bool in_order = 6 [default = true];
* @return The inOrder.
*/
@java.lang.Override
public boolean getInOrder() {
return inOrder_;
}
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 < getEntityCount(); i++) {
if (!getEntity(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getDeferredCount(); i++) {
if (!getDeferred(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 < entity_.size(); i++) {
output.writeGroup(1, entity_.get(i));
}
for (int i = 0; i < deferred_.size(); i++) {
output.writeMessage(5, deferred_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(6, inOrder_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entity_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(1, entity_.get(i));
}
for (int i = 0; i < deferred_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, deferred_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, inOrder_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse) obj;
if (!getEntityList()
.equals(other.getEntityList())) return false;
if (!getDeferredList()
.equals(other.getDeferredList())) return false;
if (hasInOrder() != other.hasInOrder()) return false;
if (hasInOrder()) {
if (getInOrder()
!= other.getInOrder()) 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 (getEntityCount() > 0) {
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntityList().hashCode();
}
if (getDeferredCount() > 0) {
hash = (37 * hash) + DEFERRED_FIELD_NUMBER;
hash = (53 * hash) + getDeferredList().hashCode();
}
if (hasInOrder()) {
hash = (37 * hash) + IN_ORDER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInOrder());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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 apphosting_datastore_v3.GetResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GetResponse)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (entityBuilder_ == null) {
entity_ = java.util.Collections.emptyList();
} else {
entity_ = null;
entityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (deferredBuilder_ == null) {
deferred_ = java.util.Collections.emptyList();
} else {
deferred_ = null;
deferredBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
inOrder_ = true;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result) {
if (entityBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entity_ = java.util.Collections.unmodifiableList(entity_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entity_ = entity_;
} else {
result.entity_ = entityBuilder_.build();
}
if (deferredBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
deferred_ = java.util.Collections.unmodifiableList(deferred_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.deferred_ = deferred_;
} else {
result.deferred_ = deferredBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.inOrder_ = inOrder_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.getDefaultInstance()) return this;
if (entityBuilder_ == null) {
if (!other.entity_.isEmpty()) {
if (entity_.isEmpty()) {
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntityIsMutable();
entity_.addAll(other.entity_);
}
onChanged();
}
} else {
if (!other.entity_.isEmpty()) {
if (entityBuilder_.isEmpty()) {
entityBuilder_.dispose();
entityBuilder_ = null;
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x00000001);
entityBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntityFieldBuilder() : null;
} else {
entityBuilder_.addAllMessages(other.entity_);
}
}
}
if (deferredBuilder_ == null) {
if (!other.deferred_.isEmpty()) {
if (deferred_.isEmpty()) {
deferred_ = other.deferred_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDeferredIsMutable();
deferred_.addAll(other.deferred_);
}
onChanged();
}
} else {
if (!other.deferred_.isEmpty()) {
if (deferredBuilder_.isEmpty()) {
deferredBuilder_.dispose();
deferredBuilder_ = null;
deferred_ = other.deferred_;
bitField0_ = (bitField0_ & ~0x00000002);
deferredBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeferredFieldBuilder() : null;
} else {
deferredBuilder_.addAllMessages(other.deferred_);
}
}
}
if (other.hasInOrder()) {
setInOrder(other.getInOrder());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getEntityCount(); i++) {
if (!getEntity(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getDeferredCount(); i++) {
if (!getDeferred(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 11: {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity m =
input.readGroup(1,
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.PARSER,
extensionRegistry);
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(m);
} else {
entityBuilder_.addMessage(m);
}
break;
} // case 11
case 42: {
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER,
extensionRegistry);
if (deferredBuilder_ == null) {
ensureDeferredIsMutable();
deferred_.add(m);
} else {
deferredBuilder_.addMessage(m);
}
break;
} // case 42
case 48: {
inOrder_ = input.readBool();
bitField0_ |= 0x00000004;
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 entity_ =
java.util.Collections.emptyList();
private void ensureEntityIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entity_ = new java.util.ArrayList(entity_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder> entityBuilder_;
/**
* repeated group Entity = 1 { ... }
*/
public java.util.List getEntityList() {
if (entityBuilder_ == null) {
return java.util.Collections.unmodifiableList(entity_);
} else {
return entityBuilder_.getMessageList();
}
}
/**
* repeated group Entity = 1 { ... }
*/
public int getEntityCount() {
if (entityBuilder_ == null) {
return entity_.size();
} else {
return entityBuilder_.getCount();
}
}
/**
* repeated group Entity = 1 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getEntity(int index) {
if (entityBuilder_ == null) {
return entity_.get(index);
} else {
return entityBuilder_.getMessage(index);
}
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder setEntity(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.set(index, value);
onChanged();
} else {
entityBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder setEntity(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.set(index, builderForValue.build());
onChanged();
} else {
entityBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder addEntity(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.add(value);
onChanged();
} else {
entityBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder addEntity(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.add(index, value);
onChanged();
} else {
entityBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder addEntity(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(builderForValue.build());
onChanged();
} else {
entityBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder addEntity(
int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(index, builderForValue.build());
onChanged();
} else {
entityBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder addAllEntity(
java.lang.Iterable extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity> values) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entity_);
onChanged();
} else {
entityBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder clearEntity() {
if (entityBuilder_ == null) {
entity_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entityBuilder_.clear();
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public Builder removeEntity(int index) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.remove(index);
onChanged();
} else {
entityBuilder_.remove(index);
}
return this;
}
/**
* repeated group Entity = 1 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder getEntityBuilder(
int index) {
return getEntityFieldBuilder().getBuilder(index);
}
/**
* repeated group Entity = 1 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder getEntityOrBuilder(
int index) {
if (entityBuilder_ == null) {
return entity_.get(index); } else {
return entityBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group Entity = 1 { ... }
*/
public java.util.List extends com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder>
getEntityOrBuilderList() {
if (entityBuilder_ != null) {
return entityBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entity_);
}
}
/**
* repeated group Entity = 1 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder addEntityBuilder() {
return getEntityFieldBuilder().addBuilder(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.getDefaultInstance());
}
/**
* repeated group Entity = 1 { ... }
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder addEntityBuilder(
int index) {
return getEntityFieldBuilder().addBuilder(
index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.getDefaultInstance());
}
/**
* repeated group Entity = 1 { ... }
*/
public java.util.List
getEntityBuilderList() {
return getEntityFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder>
getEntityFieldBuilder() {
if (entityBuilder_ == null) {
entityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder>(
entity_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
entity_ = null;
}
return entityBuilder_;
}
private java.util.List deferred_ =
java.util.Collections.emptyList();
private void ensureDeferredIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
deferred_ = new java.util.ArrayList(deferred_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> deferredBuilder_;
/**
*
* A list of keys that were not looked up due to resource constraints.
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
*
* optional bool in_order = 6 [default = true];
* @return Whether the inOrder field is set.
*/
@java.lang.Override
public boolean hasInOrder() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
*
* optional bool in_order = 6 [default = true];
* @param value The inOrder to set.
* @return This builder for chaining.
*/
public Builder setInOrder(boolean value) {
inOrder_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Signifies whether or not the entities in this response match the order of
* the keys in the GetRequest. This also implies that there are no deferred
* results.
* TODO: We should eventually switch this default value to false.
* It is nice to have it default to true during initial rollout so that
* clients will fall back to their existing behavior if we need to rollback
* the backend and this is unset.
*
*
* optional bool in_order = 6 [default = true];
* @return This builder for chaining.
*/
public Builder clearInOrder() {
bitField0_ = (bitField0_ & ~0x00000004);
inOrder_ = true;
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:apphosting_datastore_v3.GetResponse)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GetResponse)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.PutRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @return Whether the force field is set.
*/
boolean hasForce();
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @return The force.
*/
boolean getForce();
/**
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
*
* optional bool mark_changes = 8 [default = false];
* @return Whether the markChanges field is set.
*/
boolean hasMarkChanges();
/**
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @return Whether the sequenceNumber field is set.
*/
boolean hasSequenceNumber();
/**
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @return The sequenceNumber.
*/
long getSequenceNumber();
}
/**
* Protobuf type {@code apphosting_datastore_v3.PutRequest}
*/
public static final class PutRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.PutRequest)
PutRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PutRequest.newBuilder() to construct.
private PutRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutRequest() {
entity_ = java.util.Collections.emptyList();
compositeIndex_ = java.util.Collections.emptyList();
snapshot_ = java.util.Collections.emptyList();
autoIdPolicy_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PutRequest();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder.class);
}
/**
*
* TODO: Remove once sequential auto id deprecation period expires.
*
*
* Protobuf enum {@code apphosting_datastore_v3.PutRequest.AutoIdPolicy}
*/
public enum AutoIdPolicy
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CURRENT = 0;
*/
CURRENT(0),
/**
* SEQUENTIAL = 1;
*/
SEQUENTIAL(1),
;
/**
* CURRENT = 0;
*/
public static final int CURRENT_VALUE = 0;
/**
* SEQUENTIAL = 1;
*/
public static final int SEQUENTIAL_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 AutoIdPolicy 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 AutoIdPolicy forNumber(int value) {
switch (value) {
case 0: return CURRENT;
case 1: return SEQUENTIAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AutoIdPolicy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AutoIdPolicy findValueByNumber(int number) {
return AutoIdPolicy.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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDescriptor().getEnumTypes().get(0);
}
private static final AutoIdPolicy[] VALUES = values();
public static AutoIdPolicy 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 AutoIdPolicy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.PutRequest.AutoIdPolicy)
}
private int bitField0_;
public static final int ENTITY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List entity_;
/**
*
*
* repeated .storage_onestore_v3.EntityProto entity = 1;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder(
int index) {
return entity_.get(index);
}
public static final int TRANSACTION_FIELD_NUMBER = 2;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_;
/**
* optional .apphosting_datastore_v3.Transaction transaction = 2;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .apphosting_datastore_v3.Transaction transaction = 2;
* @return The transaction.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() {
return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_;
}
/**
* optional .apphosting_datastore_v3.Transaction transaction = 2;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() {
return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_;
}
public static final int COMPOSITE_INDEX_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List compositeIndex_;
/**
* repeated .storage_onestore_v3.CompositeIndex composite_index = 3;
*/
@java.lang.Override
public java.util.List getCompositeIndexList() {
return compositeIndex_;
}
/**
* repeated .storage_onestore_v3.CompositeIndex composite_index = 3;
*/
@java.lang.Override
public java.util.List extends com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>
getCompositeIndexOrBuilderList() {
return compositeIndex_;
}
/**
* repeated .storage_onestore_v3.CompositeIndex composite_index = 3;
*/
@java.lang.Override
public int getCompositeIndexCount() {
return compositeIndex_.size();
}
/**
* repeated .storage_onestore_v3.CompositeIndex composite_index = 3;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) {
return compositeIndex_.get(index);
}
/**
* repeated .storage_onestore_v3.CompositeIndex composite_index = 3;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder(
int index) {
return compositeIndex_.get(index);
}
public static final int TRUSTED_FIELD_NUMBER = 4;
private boolean trusted_ = false;
/**
*
* Currently, the only supported trusted put operation is for modifying
* entities with reserved names.
*
*
* optional bool trusted = 4 [default = false];
* @return Whether the trusted field is set.
*/
@java.lang.Override
public boolean hasTrusted() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Currently, the only supported trusted put operation is for modifying
* entities with reserved names.
*
*
* optional bool trusted = 4 [default = false];
* @return The trusted.
*/
@java.lang.Override
public boolean getTrusted() {
return trusted_;
}
public static final int FORCE_FIELD_NUMBER = 7;
private boolean force_ = false;
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @return Whether the force field is set.
*/
@java.lang.Override
public boolean hasForce() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
public static final int MARK_CHANGES_FIELD_NUMBER = 8;
private boolean markChanges_ = false;
/**
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
*
* optional bool mark_changes = 8 [default = false];
* @return Whether the markChanges field is set.
*/
@java.lang.Override
public boolean hasMarkChanges() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
*
* optional bool mark_changes = 8 [default = false];
* @return The markChanges.
*/
@java.lang.Override
public boolean getMarkChanges() {
return markChanges_;
}
public static final int SNAPSHOT_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List snapshot_;
/**
*
*
* repeated .storage_onestore_v3.Snapshot snapshot = 9;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder(
int index) {
return snapshot_.get(index);
}
public static final int AUTO_ID_POLICY_FIELD_NUMBER = 10;
private int autoIdPolicy_ = 0;
/**
* optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT];
* @return Whether the autoIdPolicy field is set.
*/
@java.lang.Override public boolean hasAutoIdPolicy() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT];
* @return The autoIdPolicy.
*/
@java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy getAutoIdPolicy() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.forNumber(autoIdPolicy_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.CURRENT : result;
}
public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 12;
private long sequenceNumber_ = 0L;
/**
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @return Whether the sequenceNumber field is set.
*/
@java.lang.Override
public boolean hasSequenceNumber() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @return The sequenceNumber.
*/
@java.lang.Override
public long getSequenceNumber() {
return sequenceNumber_;
}
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 < getEntityCount(); i++) {
if (!getEntity(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCompositeIndexCount(); i++) {
if (!getCompositeIndex(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getSnapshotCount(); i++) {
if (!getSnapshot(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 < entity_.size(); i++) {
output.writeMessage(1, entity_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTransaction());
}
for (int i = 0; i < compositeIndex_.size(); i++) {
output.writeMessage(3, compositeIndex_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(4, trusted_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(7, force_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(8, markChanges_);
}
for (int i = 0; i < snapshot_.size(); i++) {
output.writeMessage(9, snapshot_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeEnum(10, autoIdPolicy_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(12, sequenceNumber_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entity_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entity_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTransaction());
}
for (int i = 0; i < compositeIndex_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, compositeIndex_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, trusted_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, force_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, markChanges_);
}
for (int i = 0; i < snapshot_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, snapshot_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, autoIdPolicy_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, sequenceNumber_);
}
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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest) obj;
if (!getEntityList()
.equals(other.getEntityList())) return false;
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
if (!getCompositeIndexList()
.equals(other.getCompositeIndexList())) return false;
if (hasTrusted() != other.hasTrusted()) return false;
if (hasTrusted()) {
if (getTrusted()
!= other.getTrusted()) return false;
}
if (hasForce() != other.hasForce()) return false;
if (hasForce()) {
if (getForce()
!= other.getForce()) return false;
}
if (hasMarkChanges() != other.hasMarkChanges()) return false;
if (hasMarkChanges()) {
if (getMarkChanges()
!= other.getMarkChanges()) return false;
}
if (!getSnapshotList()
.equals(other.getSnapshotList())) return false;
if (hasAutoIdPolicy() != other.hasAutoIdPolicy()) return false;
if (hasAutoIdPolicy()) {
if (autoIdPolicy_ != other.autoIdPolicy_) return false;
}
if (hasSequenceNumber() != other.hasSequenceNumber()) return false;
if (hasSequenceNumber()) {
if (getSequenceNumber()
!= other.getSequenceNumber()) 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 (getEntityCount() > 0) {
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntityList().hashCode();
}
if (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
if (getCompositeIndexCount() > 0) {
hash = (37 * hash) + COMPOSITE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getCompositeIndexList().hashCode();
}
if (hasTrusted()) {
hash = (37 * hash) + TRUSTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTrusted());
}
if (hasForce()) {
hash = (37 * hash) + FORCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForce());
}
if (hasMarkChanges()) {
hash = (37 * hash) + MARK_CHANGES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMarkChanges());
}
if (getSnapshotCount() > 0) {
hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotList().hashCode();
}
if (hasAutoIdPolicy()) {
hash = (37 * hash) + AUTO_ID_POLICY_FIELD_NUMBER;
hash = (53 * hash) + autoIdPolicy_;
}
if (hasSequenceNumber()) {
hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequenceNumber());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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 apphosting_datastore_v3.PutRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.PutRequest)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntityFieldBuilder();
getTransactionFieldBuilder();
getCompositeIndexFieldBuilder();
getSnapshotFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (entityBuilder_ == null) {
entity_ = java.util.Collections.emptyList();
} else {
entity_ = null;
entityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
if (compositeIndexBuilder_ == null) {
compositeIndex_ = java.util.Collections.emptyList();
} else {
compositeIndex_ = null;
compositeIndexBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
trusted_ = false;
force_ = false;
markChanges_ = false;
if (snapshotBuilder_ == null) {
snapshot_ = java.util.Collections.emptyList();
} else {
snapshot_ = null;
snapshotBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
autoIdPolicy_ = 0;
sequenceNumber_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result) {
if (entityBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entity_ = java.util.Collections.unmodifiableList(entity_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entity_ = entity_;
} else {
result.entity_ = entityBuilder_.build();
}
if (compositeIndexBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
compositeIndex_ = java.util.Collections.unmodifiableList(compositeIndex_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.compositeIndex_ = compositeIndex_;
} else {
result.compositeIndex_ = compositeIndexBuilder_.build();
}
if (snapshotBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
snapshot_ = java.util.Collections.unmodifiableList(snapshot_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.snapshot_ = snapshot_;
} else {
result.snapshot_ = snapshotBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transaction_ = transactionBuilder_ == null
? transaction_
: transactionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.trusted_ = trusted_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.force_ = force_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.markChanges_ = markChanges_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.autoIdPolicy_ = autoIdPolicy_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.sequenceNumber_ = sequenceNumber_;
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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance()) return this;
if (entityBuilder_ == null) {
if (!other.entity_.isEmpty()) {
if (entity_.isEmpty()) {
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntityIsMutable();
entity_.addAll(other.entity_);
}
onChanged();
}
} else {
if (!other.entity_.isEmpty()) {
if (entityBuilder_.isEmpty()) {
entityBuilder_.dispose();
entityBuilder_ = null;
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x00000001);
entityBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntityFieldBuilder() : null;
} else {
entityBuilder_.addAllMessages(other.entity_);
}
}
}
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (compositeIndexBuilder_ == null) {
if (!other.compositeIndex_.isEmpty()) {
if (compositeIndex_.isEmpty()) {
compositeIndex_ = other.compositeIndex_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCompositeIndexIsMutable();
compositeIndex_.addAll(other.compositeIndex_);
}
onChanged();
}
} else {
if (!other.compositeIndex_.isEmpty()) {
if (compositeIndexBuilder_.isEmpty()) {
compositeIndexBuilder_.dispose();
compositeIndexBuilder_ = null;
compositeIndex_ = other.compositeIndex_;
bitField0_ = (bitField0_ & ~0x00000004);
compositeIndexBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCompositeIndexFieldBuilder() : null;
} else {
compositeIndexBuilder_.addAllMessages(other.compositeIndex_);
}
}
}
if (other.hasTrusted()) {
setTrusted(other.getTrusted());
}
if (other.hasForce()) {
setForce(other.getForce());
}
if (other.hasMarkChanges()) {
setMarkChanges(other.getMarkChanges());
}
if (snapshotBuilder_ == null) {
if (!other.snapshot_.isEmpty()) {
if (snapshot_.isEmpty()) {
snapshot_ = other.snapshot_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureSnapshotIsMutable();
snapshot_.addAll(other.snapshot_);
}
onChanged();
}
} else {
if (!other.snapshot_.isEmpty()) {
if (snapshotBuilder_.isEmpty()) {
snapshotBuilder_.dispose();
snapshotBuilder_ = null;
snapshot_ = other.snapshot_;
bitField0_ = (bitField0_ & ~0x00000040);
snapshotBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSnapshotFieldBuilder() : null;
} else {
snapshotBuilder_.addAllMessages(other.snapshot_);
}
}
}
if (other.hasAutoIdPolicy()) {
setAutoIdPolicy(other.getAutoIdPolicy());
}
if (other.hasSequenceNumber()) {
setSequenceNumber(other.getSequenceNumber());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getEntityCount(); i++) {
if (!getEntity(i).isInitialized()) {
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().isInitialized()) {
return false;
}
}
for (int i = 0; i < getCompositeIndexCount(); i++) {
if (!getCompositeIndex(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getSnapshotCount(); i++) {
if (!getSnapshot(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.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.PARSER,
extensionRegistry);
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(m);
} else {
entityBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER,
extensionRegistry);
if (compositeIndexBuilder_ == null) {
ensureCompositeIndexIsMutable();
compositeIndex_.add(m);
} else {
compositeIndexBuilder_.addMessage(m);
}
break;
} // case 26
case 32: {
trusted_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 56: {
force_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 56
case 64: {
markChanges_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 64
case 74: {
com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.PARSER,
extensionRegistry);
if (snapshotBuilder_ == null) {
ensureSnapshotIsMutable();
snapshot_.add(m);
} else {
snapshotBuilder_.addMessage(m);
}
break;
} // case 74
case 80: {
int tmpRaw = input.readEnum();
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy tmpValue =
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(10, tmpRaw);
} else {
autoIdPolicy_ = tmpRaw;
bitField0_ |= 0x00000080;
}
break;
} // case 80
case 96: {
sequenceNumber_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 96
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 entity_ =
java.util.Collections.emptyList();
private void ensureEntityIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entity_ = new java.util.ArrayList(entity_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> entityBuilder_;
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @return Whether the force field is set.
*/
@java.lang.Override
public boolean hasForce() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @param value The force to set.
* @return This builder for chaining.
*/
public Builder setForce(boolean value) {
force_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Used by the app server to ignore a user specified read-only period
*
*
* optional bool force = 7 [default = false];
* @return This builder for chaining.
*/
public Builder clearForce() {
bitField0_ = (bitField0_ & ~0x00000010);
force_ = false;
onChanged();
return this;
}
private boolean markChanges_ ;
/**
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
*
* optional bool mark_changes = 8 [default = false];
* @return Whether the markChanges field is set.
*/
@java.lang.Override
public boolean hasMarkChanges() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
*
* optional bool mark_changes = 8 [default = false];
* @param value The markChanges to set.
* @return This builder for chaining.
*/
public Builder setMarkChanges(boolean value) {
markChanges_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* For each changed entity a child marker entity will be created
* to trace the mutation.
* The flag shouldn't be set in transactional requests:
* Commit request controls the behavior for all mutations in the transaction.
*
*
* repeated .storage_onestore_v3.Snapshot snapshot = 9;
*/
public java.util.List
getSnapshotBuilderList() {
return getSnapshotFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder>
getSnapshotFieldBuilder() {
if (snapshotBuilder_ == null) {
snapshotBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder>(
snapshot_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
snapshot_ = null;
}
return snapshotBuilder_;
}
private int autoIdPolicy_ = 0;
/**
* optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT];
* @return Whether the autoIdPolicy field is set.
*/
@java.lang.Override public boolean hasAutoIdPolicy() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT];
* @return The autoIdPolicy.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy getAutoIdPolicy() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.forNumber(autoIdPolicy_);
return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.CURRENT : result;
}
/**
* optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT];
* @param value The autoIdPolicy to set.
* @return This builder for chaining.
*/
public Builder setAutoIdPolicy(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
autoIdPolicy_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT];
* @return This builder for chaining.
*/
public Builder clearAutoIdPolicy() {
bitField0_ = (bitField0_ & ~0x00000080);
autoIdPolicy_ = 0;
onChanged();
return this;
}
private long sequenceNumber_ ;
/**
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @return Whether the sequenceNumber field is set.
*/
@java.lang.Override
public boolean hasSequenceNumber() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @return The sequenceNumber.
*/
@java.lang.Override
public long getSequenceNumber() {
return sequenceNumber_;
}
/**
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @param value The sequenceNumber to set.
* @return This builder for chaining.
*/
public Builder setSequenceNumber(long value) {
sequenceNumber_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Monotonically increasing sequence number provided by the client
* to indicate ordering of put/delete requests in a transaction.
* Note:
* - Negative sequence numbers are invalid.
* - Requests without a sequence number is equivalent to setting it to 0
* and will be ordered before requests with sequence numbers.
* - Multiple requests with the same sequence number will be processed
* in the order which they are received.
*
*
* optional int64 sequence_number = 12;
* @return This builder for chaining.
*/
public Builder clearSequenceNumber() {
bitField0_ = (bitField0_ & ~0x00000100);
sequenceNumber_ = 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:apphosting_datastore_v3.PutRequest)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.PutRequest)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.PutResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
java.util.List
getKeyList();
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index);
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
int getKeyCount();
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
java.util.List extends com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>
getKeyOrBuilderList();
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder(
int index);
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
* @return Whether the cost field is set.
*/
boolean hasCost();
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
* @return The cost.
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost();
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder();
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @return A list containing the version.
*/
java.util.List getVersionList();
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @return The count of version.
*/
int getVersionCount();
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @param index The index of the element to return.
* @return The version at the given index.
*/
long getVersion(int index);
}
/**
* Protobuf type {@code apphosting_datastore_v3.PutResponse}
*/
public static final class PutResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:apphosting_datastore_v3.PutResponse)
PutResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PutResponse.newBuilder() to construct.
private PutResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutResponse() {
key_ = java.util.Collections.emptyList();
version_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PutResponse();
}
@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.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List key_;
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
@java.lang.Override
public java.util.List getKeyList() {
return key_;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
@java.lang.Override
public java.util.List extends com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>
getKeyOrBuilderList() {
return key_;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
@java.lang.Override
public int getKeyCount() {
return key_.size();
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) {
return key_.get(index);
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
@java.lang.Override
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder(
int index) {
return key_.get(index);
}
public static final int COST_FIELD_NUMBER = 2;
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_;
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
* @return Whether the cost field is set.
*/
@java.lang.Override
public boolean hasCost() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
* @return The cost.
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() {
return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_;
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() {
return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_;
}
public static final int VERSION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList version_;
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @return A list containing the version.
*/
@java.lang.Override
public java.util.List
getVersionList() {
return version_;
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @return The count of version.
*/
public int getVersionCount() {
return version_.size();
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @param index The index of the element to return.
* @return The version at the given index.
*/
public long getVersion(int index) {
return version_.getLong(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 < getKeyCount(); i++) {
if (!getKey(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 < key_.size(); i++) {
output.writeMessage(1, key_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCost());
}
for (int i = 0; i < version_.size(); i++) {
output.writeInt64(3, version_.getLong(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 < key_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, key_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCost());
}
{
int dataSize = 0;
for (int i = 0; i < version_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(version_.getLong(i));
}
size += dataSize;
size += 1 * getVersionList().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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse)) {
return super.equals(obj);
}
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse) obj;
if (!getKeyList()
.equals(other.getKeyList())) return false;
if (hasCost() != other.hasCost()) return false;
if (hasCost()) {
if (!getCost()
.equals(other.getCost())) return false;
}
if (!getVersionList()
.equals(other.getVersionList())) 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 (getKeyCount() > 0) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKeyList().hashCode();
}
if (hasCost()) {
hash = (37 * hash) + COST_FIELD_NUMBER;
hash = (53 * hash) + getCost().hashCode();
}
if (getVersionCount() > 0) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersionList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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 apphosting_datastore_v3.PutResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.PutResponse)
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.Builder.class);
}
// Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyFieldBuilder();
getCostFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (keyBuilder_ == null) {
key_ = java.util.Collections.emptyList();
} else {
key_ = null;
keyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
cost_ = null;
if (costBuilder_ != null) {
costBuilder_.dispose();
costBuilder_ = null;
}
version_ = emptyLongList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_descriptor;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse getDefaultInstanceForType() {
return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse build() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse buildPartial() {
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result) {
if (keyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
key_ = java.util.Collections.unmodifiableList(key_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
if (((bitField0_ & 0x00000004) != 0)) {
version_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.version_ = version_;
}
private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.cost_ = costBuilder_ == null
? cost_
: costBuilder_.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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse) {
return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse other) {
if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.getDefaultInstance()) return this;
if (keyBuilder_ == null) {
if (!other.key_.isEmpty()) {
if (key_.isEmpty()) {
key_ = other.key_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeyIsMutable();
key_.addAll(other.key_);
}
onChanged();
}
} else {
if (!other.key_.isEmpty()) {
if (keyBuilder_.isEmpty()) {
keyBuilder_.dispose();
keyBuilder_ = null;
key_ = other.key_;
bitField0_ = (bitField0_ & ~0x00000001);
keyBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyFieldBuilder() : null;
} else {
keyBuilder_.addAllMessages(other.key_);
}
}
}
if (other.hasCost()) {
mergeCost(other.getCost());
}
if (!other.version_.isEmpty()) {
if (version_.isEmpty()) {
version_ = other.version_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureVersionIsMutable();
version_.addAll(other.version_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getKeyCount(); i++) {
if (!getKey(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.storage.onestore.v3.proto2api.OnestoreEntity.Reference m =
input.readMessage(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER,
extensionRegistry);
if (keyBuilder_ == null) {
ensureKeyIsMutable();
key_.add(m);
} else {
keyBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getCostFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
long v = input.readInt64();
ensureVersionIsMutable();
version_.addLong(v);
break;
} // case 24
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureVersionIsMutable();
while (input.getBytesUntilLimit() > 0) {
version_.addLong(input.readInt64());
}
input.popLimit(limit);
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 key_ =
java.util.Collections.emptyList();
private void ensureKeyIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
key_ = new java.util.ArrayList(key_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_;
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public java.util.List getKeyList() {
if (keyBuilder_ == null) {
return java.util.Collections.unmodifiableList(key_);
} else {
return keyBuilder_.getMessageList();
}
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public int getKeyCount() {
if (keyBuilder_ == null) {
return key_.size();
} else {
return keyBuilder_.getCount();
}
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) {
if (keyBuilder_ == null) {
return key_.get(index);
} else {
return keyBuilder_.getMessage(index);
}
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder setKey(
int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyIsMutable();
key_.set(index, value);
onChanged();
} else {
keyBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder setKey(
int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) {
if (keyBuilder_ == null) {
ensureKeyIsMutable();
key_.set(index, builderForValue.build());
onChanged();
} else {
keyBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder addKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyIsMutable();
key_.add(value);
onChanged();
} else {
keyBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder addKey(
int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyIsMutable();
key_.add(index, value);
onChanged();
} else {
keyBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder addKey(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) {
if (keyBuilder_ == null) {
ensureKeyIsMutable();
key_.add(builderForValue.build());
onChanged();
} else {
keyBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder addKey(
int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) {
if (keyBuilder_ == null) {
ensureKeyIsMutable();
key_.add(index, builderForValue.build());
onChanged();
} else {
keyBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder addAllKey(
java.lang.Iterable extends com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference> values) {
if (keyBuilder_ == null) {
ensureKeyIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, key_);
onChanged();
} else {
keyBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder clearKey() {
if (keyBuilder_ == null) {
key_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
keyBuilder_.clear();
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public Builder removeKey(int index) {
if (keyBuilder_ == null) {
ensureKeyIsMutable();
key_.remove(index);
onChanged();
} else {
keyBuilder_.remove(index);
}
return this;
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder(
int index) {
return getKeyFieldBuilder().getBuilder(index);
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder(
int index) {
if (keyBuilder_ == null) {
return key_.get(index); } else {
return keyBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public java.util.List extends com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>
getKeyOrBuilderList() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(key_);
}
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder() {
return getKeyFieldBuilder().addBuilder(
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance());
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder(
int index) {
return getKeyFieldBuilder().addBuilder(
index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance());
}
/**
* repeated .storage_onestore_v3.Reference key = 1;
*/
public java.util.List
getKeyBuilderList() {
return getKeyFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>(
key_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> costBuilder_;
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
* @return Whether the cost field is set.
*/
public boolean hasCost() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
* @return The cost.
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() {
if (costBuilder_ == null) {
return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_;
} else {
return costBuilder_.getMessage();
}
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
public Builder setCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) {
if (costBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cost_ = value;
} else {
costBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
public Builder setCost(
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder builderForValue) {
if (costBuilder_ == null) {
cost_ = builderForValue.build();
} else {
costBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
public Builder mergeCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) {
if (costBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
cost_ != null &&
cost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) {
getCostBuilder().mergeFrom(value);
} else {
cost_ = value;
}
} else {
costBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
public Builder clearCost() {
bitField0_ = (bitField0_ & ~0x00000002);
cost_ = null;
if (costBuilder_ != null) {
costBuilder_.dispose();
costBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder getCostBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCostFieldBuilder().getBuilder();
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() {
if (costBuilder_ != null) {
return costBuilder_.getMessageOrBuilder();
} else {
return cost_ == null ?
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_;
}
}
/**
* optional .apphosting_datastore_v3.Cost cost = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder>
getCostFieldBuilder() {
if (costBuilder_ == null) {
costBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder>(
getCost(),
getParentForChildren(),
isClean());
cost_ = null;
}
return costBuilder_;
}
private com.google.protobuf.Internal.LongList version_ = emptyLongList();
private void ensureVersionIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
version_ = mutableCopy(version_);
bitField0_ |= 0x00000004;
}
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @return A list containing the version.
*/
public java.util.List
getVersionList() {
return ((bitField0_ & 0x00000004) != 0) ?
java.util.Collections.unmodifiableList(version_) : version_;
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @return The count of version.
*/
public int getVersionCount() {
return version_.size();
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @param index The index of the element to return.
* @return The version at the given index.
*/
public long getVersion(int index) {
return version_.getLong(index);
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @param index The index to set the value at.
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
int index, long value) {
ensureVersionIsMutable();
version_.setLong(index, value);
onChanged();
return this;
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @param value The version to add.
* @return This builder for chaining.
*/
public Builder addVersion(long value) {
ensureVersionIsMutable();
version_.addLong(value);
onChanged();
return this;
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @param values The version to add.
* @return This builder for chaining.
*/
public Builder addAllVersion(
java.lang.Iterable extends java.lang.Long> values) {
ensureVersionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, version_);
onChanged();
return this;
}
/**
*
* The new version number for each entity put.
* Noop puts will return the version of the existing entity.
*
*
* repeated int64 version = 3;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = emptyLongList();
bitField0_ = (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:apphosting_datastore_v3.PutResponse)
}
// @@protoc_insertion_point(class_scope:apphosting_datastore_v3.PutResponse)
private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse();
}
public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TouchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.TouchRequest)
com.google.protobuf.MessageOrBuilder {
/**
*