com.passkit.grpc.PaginationOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/common/pagination.proto
package com.passkit.grpc;
public final class PaginationOuterClass {
private PaginationOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface PaginationOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Pagination)
com.google.protobuf.MessageOrBuilder {
/**
*
* Limit the number of records returned. If not specified, a default of 25 is used. Enter -1 for all records.
*
*
* int32 limit = 1;
* @return The limit.
*/
int getLimit();
/**
*
* Allows you to offset the first record returned by the limit.
*
*
* int32 offset = 2;
* @return The offset.
*/
int getOffset();
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @return A list containing the filterField.
*/
java.util.List
getFilterFieldList();
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @return The count of filterField.
*/
int getFilterFieldCount();
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param index The index of the element to return.
* @return The filterField at the given index.
*/
java.lang.String getFilterField(int index);
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param index The index of the value to return.
* @return The bytes of the filterField at the given index.
*/
com.google.protobuf.ByteString
getFilterFieldBytes(int index);
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @return A list containing the filterValue.
*/
java.util.List
getFilterValueList();
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @return The count of filterValue.
*/
int getFilterValueCount();
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param index The index of the element to return.
* @return The filterValue at the given index.
*/
java.lang.String getFilterValue(int index);
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param index The index of the value to return.
* @return The bytes of the filterValue at the given index.
*/
com.google.protobuf.ByteString
getFilterValueBytes(int index);
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @return A list containing the filterOperator.
*/
java.util.List
getFilterOperatorList();
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @return The count of filterOperator.
*/
int getFilterOperatorCount();
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param index The index of the element to return.
* @return The filterOperator at the given index.
*/
java.lang.String getFilterOperator(int index);
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param index The index of the value to return.
* @return The bytes of the filterOperator at the given index.
*/
com.google.protobuf.ByteString
getFilterOperatorBytes(int index);
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @return The orderBy.
*/
java.lang.String getOrderBy();
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @return The bytes for orderBy.
*/
com.google.protobuf.ByteString
getOrderByBytes();
/**
*
* Will return in ascending order if true, or descending order if false.
*
*
* bool orderAsc = 7;
* @return The orderAsc.
*/
boolean getOrderAsc();
}
/**
* Protobuf type {@code io.Pagination}
*/
public static final class Pagination extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Pagination)
PaginationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Pagination.newBuilder() to construct.
private Pagination(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Pagination() {
filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
orderBy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Pagination();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Pagination(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
limit_ = input.readInt32();
break;
}
case 16: {
offset_ = input.readInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
filterField_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
filterField_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
filterValue_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
filterValue_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
filterOperator_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
filterOperator_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
orderBy_ = s;
break;
}
case 56: {
orderAsc_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
filterField_ = filterField_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
filterValue_ = filterValue_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
filterOperator_ = filterOperator_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Pagination_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Pagination_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.PaginationOuterClass.Pagination.class, com.passkit.grpc.PaginationOuterClass.Pagination.Builder.class);
}
public static final int LIMIT_FIELD_NUMBER = 1;
private int limit_;
/**
*
* Limit the number of records returned. If not specified, a default of 25 is used. Enter -1 for all records.
*
*
* int32 limit = 1;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int OFFSET_FIELD_NUMBER = 2;
private int offset_;
/**
*
* Allows you to offset the first record returned by the limit.
*
*
* int32 offset = 2;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
public static final int FILTERFIELD_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList filterField_;
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @return A list containing the filterField.
*/
public com.google.protobuf.ProtocolStringList
getFilterFieldList() {
return filterField_;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @return The count of filterField.
*/
public int getFilterFieldCount() {
return filterField_.size();
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param index The index of the element to return.
* @return The filterField at the given index.
*/
public java.lang.String getFilterField(int index) {
return filterField_.get(index);
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param index The index of the value to return.
* @return The bytes of the filterField at the given index.
*/
public com.google.protobuf.ByteString
getFilterFieldBytes(int index) {
return filterField_.getByteString(index);
}
public static final int FILTERVALUE_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList filterValue_;
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @return A list containing the filterValue.
*/
public com.google.protobuf.ProtocolStringList
getFilterValueList() {
return filterValue_;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @return The count of filterValue.
*/
public int getFilterValueCount() {
return filterValue_.size();
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param index The index of the element to return.
* @return The filterValue at the given index.
*/
public java.lang.String getFilterValue(int index) {
return filterValue_.get(index);
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param index The index of the value to return.
* @return The bytes of the filterValue at the given index.
*/
public com.google.protobuf.ByteString
getFilterValueBytes(int index) {
return filterValue_.getByteString(index);
}
public static final int FILTEROPERATOR_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList filterOperator_;
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @return A list containing the filterOperator.
*/
public com.google.protobuf.ProtocolStringList
getFilterOperatorList() {
return filterOperator_;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @return The count of filterOperator.
*/
public int getFilterOperatorCount() {
return filterOperator_.size();
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param index The index of the element to return.
* @return The filterOperator at the given index.
*/
public java.lang.String getFilterOperator(int index) {
return filterOperator_.get(index);
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param index The index of the value to return.
* @return The bytes of the filterOperator at the given index.
*/
public com.google.protobuf.ByteString
getFilterOperatorBytes(int index) {
return filterOperator_.getByteString(index);
}
public static final int ORDERBY_FIELD_NUMBER = 6;
private volatile java.lang.Object orderBy_;
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @return The orderBy.
*/
@java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
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();
orderBy_ = s;
return s;
}
}
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @return The bytes for orderBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORDERASC_FIELD_NUMBER = 7;
private boolean orderAsc_;
/**
*
* Will return in ascending order if true, or descending order if false.
*
*
* bool orderAsc = 7;
* @return The orderAsc.
*/
@java.lang.Override
public boolean getOrderAsc() {
return orderAsc_;
}
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 (limit_ != 0) {
output.writeInt32(1, limit_);
}
if (offset_ != 0) {
output.writeInt32(2, offset_);
}
for (int i = 0; i < filterField_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filterField_.getRaw(i));
}
for (int i = 0; i < filterValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filterValue_.getRaw(i));
}
for (int i = 0; i < filterOperator_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filterOperator_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_);
}
if (orderAsc_ != false) {
output.writeBool(7, orderAsc_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (limit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, limit_);
}
if (offset_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, offset_);
}
{
int dataSize = 0;
for (int i = 0; i < filterField_.size(); i++) {
dataSize += computeStringSizeNoTag(filterField_.getRaw(i));
}
size += dataSize;
size += 1 * getFilterFieldList().size();
}
{
int dataSize = 0;
for (int i = 0; i < filterValue_.size(); i++) {
dataSize += computeStringSizeNoTag(filterValue_.getRaw(i));
}
size += dataSize;
size += 1 * getFilterValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < filterOperator_.size(); i++) {
dataSize += computeStringSizeNoTag(filterOperator_.getRaw(i));
}
size += dataSize;
size += 1 * getFilterOperatorList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_);
}
if (orderAsc_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, orderAsc_);
}
size += unknownFields.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.passkit.grpc.PaginationOuterClass.Pagination)) {
return super.equals(obj);
}
com.passkit.grpc.PaginationOuterClass.Pagination other = (com.passkit.grpc.PaginationOuterClass.Pagination) obj;
if (getLimit()
!= other.getLimit()) return false;
if (getOffset()
!= other.getOffset()) return false;
if (!getFilterFieldList()
.equals(other.getFilterFieldList())) return false;
if (!getFilterValueList()
.equals(other.getFilterValueList())) return false;
if (!getFilterOperatorList()
.equals(other.getFilterOperatorList())) return false;
if (!getOrderBy()
.equals(other.getOrderBy())) return false;
if (getOrderAsc()
!= other.getOrderAsc()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset();
if (getFilterFieldCount() > 0) {
hash = (37 * hash) + FILTERFIELD_FIELD_NUMBER;
hash = (53 * hash) + getFilterFieldList().hashCode();
}
if (getFilterValueCount() > 0) {
hash = (37 * hash) + FILTERVALUE_FIELD_NUMBER;
hash = (53 * hash) + getFilterValueList().hashCode();
}
if (getFilterOperatorCount() > 0) {
hash = (37 * hash) + FILTEROPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getFilterOperatorList().hashCode();
}
hash = (37 * hash) + ORDERBY_FIELD_NUMBER;
hash = (53 * hash) + getOrderBy().hashCode();
hash = (37 * hash) + ORDERASC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOrderAsc());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.PaginationOuterClass.Pagination parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination 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.passkit.grpc.PaginationOuterClass.Pagination parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination 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.passkit.grpc.PaginationOuterClass.Pagination parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.PaginationOuterClass.Pagination 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.passkit.grpc.PaginationOuterClass.Pagination 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 io.Pagination}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Pagination)
com.passkit.grpc.PaginationOuterClass.PaginationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Pagination_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Pagination_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.PaginationOuterClass.Pagination.class, com.passkit.grpc.PaginationOuterClass.Pagination.Builder.class);
}
// Construct using com.passkit.grpc.PaginationOuterClass.Pagination.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
limit_ = 0;
offset_ = 0;
filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
orderBy_ = "";
orderAsc_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Pagination_descriptor;
}
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.Pagination getDefaultInstanceForType() {
return com.passkit.grpc.PaginationOuterClass.Pagination.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.Pagination build() {
com.passkit.grpc.PaginationOuterClass.Pagination result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.Pagination buildPartial() {
com.passkit.grpc.PaginationOuterClass.Pagination result = new com.passkit.grpc.PaginationOuterClass.Pagination(this);
int from_bitField0_ = bitField0_;
result.limit_ = limit_;
result.offset_ = offset_;
if (((bitField0_ & 0x00000001) != 0)) {
filterField_ = filterField_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.filterField_ = filterField_;
if (((bitField0_ & 0x00000002) != 0)) {
filterValue_ = filterValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.filterValue_ = filterValue_;
if (((bitField0_ & 0x00000004) != 0)) {
filterOperator_ = filterOperator_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.filterOperator_ = filterOperator_;
result.orderBy_ = orderBy_;
result.orderAsc_ = orderAsc_;
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.passkit.grpc.PaginationOuterClass.Pagination) {
return mergeFrom((com.passkit.grpc.PaginationOuterClass.Pagination)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.PaginationOuterClass.Pagination other) {
if (other == com.passkit.grpc.PaginationOuterClass.Pagination.getDefaultInstance()) return this;
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
if (other.getOffset() != 0) {
setOffset(other.getOffset());
}
if (!other.filterField_.isEmpty()) {
if (filterField_.isEmpty()) {
filterField_ = other.filterField_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFilterFieldIsMutable();
filterField_.addAll(other.filterField_);
}
onChanged();
}
if (!other.filterValue_.isEmpty()) {
if (filterValue_.isEmpty()) {
filterValue_ = other.filterValue_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFilterValueIsMutable();
filterValue_.addAll(other.filterValue_);
}
onChanged();
}
if (!other.filterOperator_.isEmpty()) {
if (filterOperator_.isEmpty()) {
filterOperator_ = other.filterOperator_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFilterOperatorIsMutable();
filterOperator_.addAll(other.filterOperator_);
}
onChanged();
}
if (!other.getOrderBy().isEmpty()) {
orderBy_ = other.orderBy_;
onChanged();
}
if (other.getOrderAsc() != false) {
setOrderAsc(other.getOrderAsc());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.PaginationOuterClass.Pagination parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.PaginationOuterClass.Pagination) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int limit_ ;
/**
*
* Limit the number of records returned. If not specified, a default of 25 is used. Enter -1 for all records.
*
*
* int32 limit = 1;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
/**
*
* Limit the number of records returned. If not specified, a default of 25 is used. Enter -1 for all records.
*
*
* int32 limit = 1;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
onChanged();
return this;
}
/**
*
* Limit the number of records returned. If not specified, a default of 25 is used. Enter -1 for all records.
*
*
* int32 limit = 1;
* @return This builder for chaining.
*/
public Builder clearLimit() {
limit_ = 0;
onChanged();
return this;
}
private int offset_ ;
/**
*
* Allows you to offset the first record returned by the limit.
*
*
* int32 offset = 2;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
/**
*
* Allows you to offset the first record returned by the limit.
*
*
* int32 offset = 2;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(int value) {
offset_ = value;
onChanged();
return this;
}
/**
*
* Allows you to offset the first record returned by the limit.
*
*
* int32 offset = 2;
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFilterFieldIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
filterField_ = new com.google.protobuf.LazyStringArrayList(filterField_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @return A list containing the filterField.
*/
public com.google.protobuf.ProtocolStringList
getFilterFieldList() {
return filterField_.getUnmodifiableView();
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @return The count of filterField.
*/
public int getFilterFieldCount() {
return filterField_.size();
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param index The index of the element to return.
* @return The filterField at the given index.
*/
public java.lang.String getFilterField(int index) {
return filterField_.get(index);
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param index The index of the value to return.
* @return The bytes of the filterField at the given index.
*/
public com.google.protobuf.ByteString
getFilterFieldBytes(int index) {
return filterField_.getByteString(index);
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param index The index to set the value at.
* @param value The filterField to set.
* @return This builder for chaining.
*/
public Builder setFilterField(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterFieldIsMutable();
filterField_.set(index, value);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param value The filterField to add.
* @return This builder for chaining.
*/
public Builder addFilterField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterFieldIsMutable();
filterField_.add(value);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param values The filterField to add.
* @return This builder for chaining.
*/
public Builder addAllFilterField(
java.lang.Iterable values) {
ensureFilterFieldIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filterField_);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @return This builder for chaining.
*/
public Builder clearFilterField() {
filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 3;
* @param value The bytes of the filterField to add.
* @return This builder for chaining.
*/
public Builder addFilterFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFilterFieldIsMutable();
filterField_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFilterValueIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
filterValue_ = new com.google.protobuf.LazyStringArrayList(filterValue_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @return A list containing the filterValue.
*/
public com.google.protobuf.ProtocolStringList
getFilterValueList() {
return filterValue_.getUnmodifiableView();
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @return The count of filterValue.
*/
public int getFilterValueCount() {
return filterValue_.size();
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param index The index of the element to return.
* @return The filterValue at the given index.
*/
public java.lang.String getFilterValue(int index) {
return filterValue_.get(index);
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param index The index of the value to return.
* @return The bytes of the filterValue at the given index.
*/
public com.google.protobuf.ByteString
getFilterValueBytes(int index) {
return filterValue_.getByteString(index);
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param index The index to set the value at.
* @param value The filterValue to set.
* @return This builder for chaining.
*/
public Builder setFilterValue(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterValueIsMutable();
filterValue_.set(index, value);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param value The filterValue to add.
* @return This builder for chaining.
*/
public Builder addFilterValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterValueIsMutable();
filterValue_.add(value);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param values The filterValue to add.
* @return This builder for chaining.
*/
public Builder addAllFilterValue(
java.lang.Iterable values) {
ensureFilterValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filterValue_);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @return This builder for chaining.
*/
public Builder clearFilterValue() {
filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 4;
* @param value The bytes of the filterValue to add.
* @return This builder for chaining.
*/
public Builder addFilterValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFilterValueIsMutable();
filterValue_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFilterOperatorIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
filterOperator_ = new com.google.protobuf.LazyStringArrayList(filterOperator_);
bitField0_ |= 0x00000004;
}
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @return A list containing the filterOperator.
*/
public com.google.protobuf.ProtocolStringList
getFilterOperatorList() {
return filterOperator_.getUnmodifiableView();
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @return The count of filterOperator.
*/
public int getFilterOperatorCount() {
return filterOperator_.size();
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param index The index of the element to return.
* @return The filterOperator at the given index.
*/
public java.lang.String getFilterOperator(int index) {
return filterOperator_.get(index);
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param index The index of the value to return.
* @return The bytes of the filterOperator at the given index.
*/
public com.google.protobuf.ByteString
getFilterOperatorBytes(int index) {
return filterOperator_.getByteString(index);
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param index The index to set the value at.
* @param value The filterOperator to set.
* @return This builder for chaining.
*/
public Builder setFilterOperator(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterOperatorIsMutable();
filterOperator_.set(index, value);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param value The filterOperator to add.
* @return This builder for chaining.
*/
public Builder addFilterOperator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterOperatorIsMutable();
filterOperator_.add(value);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param values The filterOperator to add.
* @return This builder for chaining.
*/
public Builder addAllFilterOperator(
java.lang.Iterable values) {
ensureFilterOperatorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filterOperator_);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @return This builder for chaining.
*/
public Builder clearFilterOperator() {
filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 5;
* @param value The bytes of the filterOperator to add.
* @return This builder for chaining.
*/
public Builder addFilterOperatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFilterOperatorIsMutable();
filterOperator_.add(value);
onChanged();
return this;
}
private java.lang.Object orderBy_ = "";
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @return The orderBy.
*/
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderBy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @return The bytes for orderBy.
*/
public com.google.protobuf.ByteString
getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @param value The orderBy to set.
* @return This builder for chaining.
*/
public Builder setOrderBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
orderBy_ = value;
onChanged();
return this;
}
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @return This builder for chaining.
*/
public Builder clearOrderBy() {
orderBy_ = getDefaultInstance().getOrderBy();
onChanged();
return this;
}
/**
*
* Field to order results by.
*
*
* string orderBy = 6;
* @param value The bytes for orderBy to set.
* @return This builder for chaining.
*/
public Builder setOrderByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
orderBy_ = value;
onChanged();
return this;
}
private boolean orderAsc_ ;
/**
*
* Will return in ascending order if true, or descending order if false.
*
*
* bool orderAsc = 7;
* @return The orderAsc.
*/
@java.lang.Override
public boolean getOrderAsc() {
return orderAsc_;
}
/**
*
* Will return in ascending order if true, or descending order if false.
*
*
* bool orderAsc = 7;
* @param value The orderAsc to set.
* @return This builder for chaining.
*/
public Builder setOrderAsc(boolean value) {
orderAsc_ = value;
onChanged();
return this;
}
/**
*
* Will return in ascending order if true, or descending order if false.
*
*
* bool orderAsc = 7;
* @return This builder for chaining.
*/
public Builder clearOrderAsc() {
orderAsc_ = 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:io.Pagination)
}
// @@protoc_insertion_point(class_scope:io.Pagination)
private static final com.passkit.grpc.PaginationOuterClass.Pagination DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.PaginationOuterClass.Pagination();
}
public static com.passkit.grpc.PaginationOuterClass.Pagination getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Pagination parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pagination(input, extensionRegistry);
}
};
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.passkit.grpc.PaginationOuterClass.Pagination getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Filter)
com.google.protobuf.MessageOrBuilder {
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @return A list containing the filterField.
*/
java.util.List
getFilterFieldList();
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @return The count of filterField.
*/
int getFilterFieldCount();
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param index The index of the element to return.
* @return The filterField at the given index.
*/
java.lang.String getFilterField(int index);
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param index The index of the value to return.
* @return The bytes of the filterField at the given index.
*/
com.google.protobuf.ByteString
getFilterFieldBytes(int index);
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @return A list containing the filterValue.
*/
java.util.List
getFilterValueList();
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @return The count of filterValue.
*/
int getFilterValueCount();
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param index The index of the element to return.
* @return The filterValue at the given index.
*/
java.lang.String getFilterValue(int index);
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param index The index of the value to return.
* @return The bytes of the filterValue at the given index.
*/
com.google.protobuf.ByteString
getFilterValueBytes(int index);
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @return A list containing the filterOperator.
*/
java.util.List
getFilterOperatorList();
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @return The count of filterOperator.
*/
int getFilterOperatorCount();
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param index The index of the element to return.
* @return The filterOperator at the given index.
*/
java.lang.String getFilterOperator(int index);
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param index The index of the value to return.
* @return The bytes of the filterOperator at the given index.
*/
com.google.protobuf.ByteString
getFilterOperatorBytes(int index);
}
/**
* Protobuf type {@code io.Filter}
*/
public static final class Filter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.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() {
filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@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;
}
private Filter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
filterField_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
filterField_.add(s);
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
filterValue_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
filterValue_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
filterOperator_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
filterOperator_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
filterField_ = filterField_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
filterValue_ = filterValue_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
filterOperator_ = filterOperator_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Filter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Filter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.PaginationOuterClass.Filter.class, com.passkit.grpc.PaginationOuterClass.Filter.Builder.class);
}
public static final int FILTERFIELD_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList filterField_;
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @return A list containing the filterField.
*/
public com.google.protobuf.ProtocolStringList
getFilterFieldList() {
return filterField_;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @return The count of filterField.
*/
public int getFilterFieldCount() {
return filterField_.size();
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param index The index of the element to return.
* @return The filterField at the given index.
*/
public java.lang.String getFilterField(int index) {
return filterField_.get(index);
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param index The index of the value to return.
* @return The bytes of the filterField at the given index.
*/
public com.google.protobuf.ByteString
getFilterFieldBytes(int index) {
return filterField_.getByteString(index);
}
public static final int FILTERVALUE_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList filterValue_;
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @return A list containing the filterValue.
*/
public com.google.protobuf.ProtocolStringList
getFilterValueList() {
return filterValue_;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @return The count of filterValue.
*/
public int getFilterValueCount() {
return filterValue_.size();
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param index The index of the element to return.
* @return The filterValue at the given index.
*/
public java.lang.String getFilterValue(int index) {
return filterValue_.get(index);
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param index The index of the value to return.
* @return The bytes of the filterValue at the given index.
*/
public com.google.protobuf.ByteString
getFilterValueBytes(int index) {
return filterValue_.getByteString(index);
}
public static final int FILTEROPERATOR_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList filterOperator_;
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @return A list containing the filterOperator.
*/
public com.google.protobuf.ProtocolStringList
getFilterOperatorList() {
return filterOperator_;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @return The count of filterOperator.
*/
public int getFilterOperatorCount() {
return filterOperator_.size();
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param index The index of the element to return.
* @return The filterOperator at the given index.
*/
public java.lang.String getFilterOperator(int index) {
return filterOperator_.get(index);
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param index The index of the value to return.
* @return The bytes of the filterOperator at the given index.
*/
public com.google.protobuf.ByteString
getFilterOperatorBytes(int index) {
return filterOperator_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < filterField_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filterField_.getRaw(i));
}
for (int i = 0; i < filterValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filterValue_.getRaw(i));
}
for (int i = 0; i < filterOperator_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filterOperator_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < filterField_.size(); i++) {
dataSize += computeStringSizeNoTag(filterField_.getRaw(i));
}
size += dataSize;
size += 1 * getFilterFieldList().size();
}
{
int dataSize = 0;
for (int i = 0; i < filterValue_.size(); i++) {
dataSize += computeStringSizeNoTag(filterValue_.getRaw(i));
}
size += dataSize;
size += 1 * getFilterValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < filterOperator_.size(); i++) {
dataSize += computeStringSizeNoTag(filterOperator_.getRaw(i));
}
size += dataSize;
size += 1 * getFilterOperatorList().size();
}
size += unknownFields.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.passkit.grpc.PaginationOuterClass.Filter)) {
return super.equals(obj);
}
com.passkit.grpc.PaginationOuterClass.Filter other = (com.passkit.grpc.PaginationOuterClass.Filter) obj;
if (!getFilterFieldList()
.equals(other.getFilterFieldList())) return false;
if (!getFilterValueList()
.equals(other.getFilterValueList())) return false;
if (!getFilterOperatorList()
.equals(other.getFilterOperatorList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFilterFieldCount() > 0) {
hash = (37 * hash) + FILTERFIELD_FIELD_NUMBER;
hash = (53 * hash) + getFilterFieldList().hashCode();
}
if (getFilterValueCount() > 0) {
hash = (37 * hash) + FILTERVALUE_FIELD_NUMBER;
hash = (53 * hash) + getFilterValueList().hashCode();
}
if (getFilterOperatorCount() > 0) {
hash = (37 * hash) + FILTEROPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getFilterOperatorList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.PaginationOuterClass.Filter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.PaginationOuterClass.Filter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.PaginationOuterClass.Filter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.PaginationOuterClass.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.passkit.grpc.PaginationOuterClass.Filter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.PaginationOuterClass.Filter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.PaginationOuterClass.Filter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.PaginationOuterClass.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.passkit.grpc.PaginationOuterClass.Filter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.PaginationOuterClass.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.passkit.grpc.PaginationOuterClass.Filter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.PaginationOuterClass.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.passkit.grpc.PaginationOuterClass.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;
}
/**
* Protobuf type {@code io.Filter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Filter)
com.passkit.grpc.PaginationOuterClass.FilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Filter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Filter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.PaginationOuterClass.Filter.class, com.passkit.grpc.PaginationOuterClass.Filter.Builder.class);
}
// Construct using com.passkit.grpc.PaginationOuterClass.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.PaginationOuterClass.internal_static_io_Filter_descriptor;
}
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.Filter getDefaultInstanceForType() {
return com.passkit.grpc.PaginationOuterClass.Filter.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.Filter build() {
com.passkit.grpc.PaginationOuterClass.Filter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.Filter buildPartial() {
com.passkit.grpc.PaginationOuterClass.Filter result = new com.passkit.grpc.PaginationOuterClass.Filter(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
filterField_ = filterField_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.filterField_ = filterField_;
if (((bitField0_ & 0x00000002) != 0)) {
filterValue_ = filterValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.filterValue_ = filterValue_;
if (((bitField0_ & 0x00000004) != 0)) {
filterOperator_ = filterOperator_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.filterOperator_ = filterOperator_;
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.passkit.grpc.PaginationOuterClass.Filter) {
return mergeFrom((com.passkit.grpc.PaginationOuterClass.Filter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.PaginationOuterClass.Filter other) {
if (other == com.passkit.grpc.PaginationOuterClass.Filter.getDefaultInstance()) return this;
if (!other.filterField_.isEmpty()) {
if (filterField_.isEmpty()) {
filterField_ = other.filterField_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFilterFieldIsMutable();
filterField_.addAll(other.filterField_);
}
onChanged();
}
if (!other.filterValue_.isEmpty()) {
if (filterValue_.isEmpty()) {
filterValue_ = other.filterValue_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFilterValueIsMutable();
filterValue_.addAll(other.filterValue_);
}
onChanged();
}
if (!other.filterOperator_.isEmpty()) {
if (filterOperator_.isEmpty()) {
filterOperator_ = other.filterOperator_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFilterOperatorIsMutable();
filterOperator_.addAll(other.filterOperator_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.PaginationOuterClass.Filter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.PaginationOuterClass.Filter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFilterFieldIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
filterField_ = new com.google.protobuf.LazyStringArrayList(filterField_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @return A list containing the filterField.
*/
public com.google.protobuf.ProtocolStringList
getFilterFieldList() {
return filterField_.getUnmodifiableView();
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @return The count of filterField.
*/
public int getFilterFieldCount() {
return filterField_.size();
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param index The index of the element to return.
* @return The filterField at the given index.
*/
public java.lang.String getFilterField(int index) {
return filterField_.get(index);
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param index The index of the value to return.
* @return The bytes of the filterField at the given index.
*/
public com.google.protobuf.ByteString
getFilterFieldBytes(int index) {
return filterField_.getByteString(index);
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param index The index to set the value at.
* @param value The filterField to set.
* @return This builder for chaining.
*/
public Builder setFilterField(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterFieldIsMutable();
filterField_.set(index, value);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param value The filterField to add.
* @return This builder for chaining.
*/
public Builder addFilterField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterFieldIsMutable();
filterField_.add(value);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param values The filterField to add.
* @return This builder for chaining.
*/
public Builder addAllFilterField(
java.lang.Iterable values) {
ensureFilterFieldIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filterField_);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @return This builder for chaining.
*/
public Builder clearFilterField() {
filterField_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Array of column names to filter results by.
*
*
* repeated string filterField = 1;
* @param value The bytes of the filterField to add.
* @return This builder for chaining.
*/
public Builder addFilterFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFilterFieldIsMutable();
filterField_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFilterValueIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
filterValue_ = new com.google.protobuf.LazyStringArrayList(filterValue_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @return A list containing the filterValue.
*/
public com.google.protobuf.ProtocolStringList
getFilterValueList() {
return filterValue_.getUnmodifiableView();
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @return The count of filterValue.
*/
public int getFilterValueCount() {
return filterValue_.size();
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param index The index of the element to return.
* @return The filterValue at the given index.
*/
public java.lang.String getFilterValue(int index) {
return filterValue_.get(index);
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param index The index of the value to return.
* @return The bytes of the filterValue at the given index.
*/
public com.google.protobuf.ByteString
getFilterValueBytes(int index) {
return filterValue_.getByteString(index);
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param index The index to set the value at.
* @param value The filterValue to set.
* @return This builder for chaining.
*/
public Builder setFilterValue(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterValueIsMutable();
filterValue_.set(index, value);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param value The filterValue to add.
* @return This builder for chaining.
*/
public Builder addFilterValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterValueIsMutable();
filterValue_.add(value);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param values The filterValue to add.
* @return This builder for chaining.
*/
public Builder addAllFilterValue(
java.lang.Iterable values) {
ensureFilterValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filterValue_);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @return This builder for chaining.
*/
public Builder clearFilterValue() {
filterValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Array of values to test against the filter fields.
*
*
* repeated string filterValue = 2;
* @param value The bytes of the filterValue to add.
* @return This builder for chaining.
*/
public Builder addFilterValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFilterValueIsMutable();
filterValue_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFilterOperatorIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
filterOperator_ = new com.google.protobuf.LazyStringArrayList(filterOperator_);
bitField0_ |= 0x00000004;
}
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @return A list containing the filterOperator.
*/
public com.google.protobuf.ProtocolStringList
getFilterOperatorList() {
return filterOperator_.getUnmodifiableView();
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @return The count of filterOperator.
*/
public int getFilterOperatorCount() {
return filterOperator_.size();
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param index The index of the element to return.
* @return The filterOperator at the given index.
*/
public java.lang.String getFilterOperator(int index) {
return filterOperator_.get(index);
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param index The index of the value to return.
* @return The bytes of the filterOperator at the given index.
*/
public com.google.protobuf.ByteString
getFilterOperatorBytes(int index) {
return filterOperator_.getByteString(index);
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param index The index to set the value at.
* @param value The filterOperator to set.
* @return This builder for chaining.
*/
public Builder setFilterOperator(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterOperatorIsMutable();
filterOperator_.set(index, value);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param value The filterOperator to add.
* @return This builder for chaining.
*/
public Builder addFilterOperator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFilterOperatorIsMutable();
filterOperator_.add(value);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param values The filterOperator to add.
* @return This builder for chaining.
*/
public Builder addAllFilterOperator(
java.lang.Iterable values) {
ensureFilterOperatorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filterOperator_);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @return This builder for chaining.
*/
public Builder clearFilterOperator() {
filterOperator_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* will be whitelisted operators in io core
*
*
* repeated string filterOperator = 3;
* @param value The bytes of the filterOperator to add.
* @return This builder for chaining.
*/
public Builder addFilterOperatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFilterOperatorIsMutable();
filterOperator_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.Filter)
}
// @@protoc_insertion_point(class_scope:io.Filter)
private static final com.passkit.grpc.PaginationOuterClass.Filter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.PaginationOuterClass.Filter();
}
public static com.passkit.grpc.PaginationOuterClass.Filter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private 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 {
return new Filter(input, extensionRegistry);
}
};
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.passkit.grpc.PaginationOuterClass.Filter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Pagination_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Pagination_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Filter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Filter_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032io/common/pagination.proto\022\002io\032.protoc" +
"-gen-openapiv2/options/annotations.proto" +
"\"\340\001\n\nPagination\022\r\n\005limit\030\001 \001(\005\022\016\n\006offset" +
"\030\002 \001(\005\022\023\n\013filterField\030\003 \003(\t\022\023\n\013filterVal" +
"ue\030\004 \003(\t\022\026\n\016filterOperator\030\005 \003(\t\022\017\n\007orde" +
"rBy\030\006 \001(\t\022\020\n\010orderAsc\030\007 \001(\010:N\222AK\nI*\nPagi" +
"nation2;Pagination object used to split " +
"content into smaller parts.\"J\n\006Filter\022\023\n" +
"\013filterField\030\001 \003(\t\022\023\n\013filterValue\030\002 \003(\t\022" +
"\026\n\016filterOperator\030\003 \003(\tBG\n\020com.passkit.g" +
"rpcZ$stash.passkit.com/io/model/sdk/go/i" +
"o\252\002\014PassKit.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
});
internal_static_io_Pagination_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_Pagination_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Pagination_descriptor,
new java.lang.String[] { "Limit", "Offset", "FilterField", "FilterValue", "FilterOperator", "OrderBy", "OrderAsc", });
internal_static_io_Filter_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_Filter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Filter_descriptor,
new java.lang.String[] { "FilterField", "FilterValue", "FilterOperator", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy