com.passkit.grpc.CommonObjects Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/common/common_objects.proto
package com.passkit.grpc;
public final class CommonObjects {
private CommonObjects() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* List position is used to denote behavior for list items that may already have been populated bay a parent object. Default is to append the item to the existing list.
*
*
* Protobuf enum {@code io.ListPosition}
*/
public enum ListPosition
implements com.google.protobuf.ProtocolMessageEnum {
/**
* APPEND = 0;
*/
APPEND(0),
/**
* PREPEND = 1;
*/
PREPEND(1),
/**
* REPLACE = 2;
*/
REPLACE(2),
UNRECOGNIZED(-1),
;
/**
* APPEND = 0;
*/
public static final int APPEND_VALUE = 0;
/**
* PREPEND = 1;
*/
public static final int PREPEND_VALUE = 1;
/**
* REPLACE = 2;
*/
public static final int REPLACE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 ListPosition 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 ListPosition forNumber(int value) {
switch (value) {
case 0: return APPEND;
case 1: return PREPEND;
case 2: return REPLACE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ListPosition> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ListPosition findValueByNumber(int number) {
return ListPosition.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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.passkit.grpc.CommonObjects.getDescriptor().getEnumTypes().get(0);
}
private static final ListPosition[] VALUES = values();
public static ListPosition valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ListPosition(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.ListPosition)
}
/**
* Protobuf enum {@code io.Toggle}
*/
public enum Toggle
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DO_NOT_USE = 0;
*/
DO_NOT_USE(0),
/**
* ON = 1;
*/
ON(1),
/**
* OFF = 2;
*/
OFF(2),
UNRECOGNIZED(-1),
;
/**
* DO_NOT_USE = 0;
*/
public static final int DO_NOT_USE_VALUE = 0;
/**
* ON = 1;
*/
public static final int ON_VALUE = 1;
/**
* OFF = 2;
*/
public static final int OFF_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 Toggle 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 Toggle forNumber(int value) {
switch (value) {
case 0: return DO_NOT_USE;
case 1: return ON;
case 2: return OFF;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Toggle> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Toggle findValueByNumber(int number) {
return Toggle.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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.passkit.grpc.CommonObjects.getDescriptor().getEnumTypes().get(1);
}
private static final Toggle[] VALUES = values();
public static Toggle valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Toggle(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.Toggle)
}
/**
*
* PassBundleFormat is used to specify which format(s) to provide the pass content.
*
*
* Protobuf enum {@code io.PassBundleFormat}
*/
public enum PassBundleFormat
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* The URL to the web landing page.
*
*
* PASS_URL = 0;
*/
PASS_URL(0),
/**
*
* A URL that can be used in an Android app or email. Note that this is not recommended for web use.
*
*
* GOOGLE_URL = 2;
*/
GOOGLE_URL(2),
/**
*
* The Base64 encoded bytes of the Apple Wallet pass bundle.
*
*
* APPLE_PASS_BUNDLE = 8;
*/
APPLE_PASS_BUNDLE(8),
/**
*
* The URL to a landing page for multiple passes containing a common identifier.
*
*
* MULTI_LINK = 16;
*/
MULTI_LINK(16),
UNRECOGNIZED(-1),
;
/**
*
* The URL to the web landing page.
*
*
* PASS_URL = 0;
*/
public static final int PASS_URL_VALUE = 0;
/**
*
* A URL that can be used in an Android app or email. Note that this is not recommended for web use.
*
*
* GOOGLE_URL = 2;
*/
public static final int GOOGLE_URL_VALUE = 2;
/**
*
* The Base64 encoded bytes of the Apple Wallet pass bundle.
*
*
* APPLE_PASS_BUNDLE = 8;
*/
public static final int APPLE_PASS_BUNDLE_VALUE = 8;
/**
*
* The URL to a landing page for multiple passes containing a common identifier.
*
*
* MULTI_LINK = 16;
*/
public static final int MULTI_LINK_VALUE = 16;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 PassBundleFormat 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 PassBundleFormat forNumber(int value) {
switch (value) {
case 0: return PASS_URL;
case 2: return GOOGLE_URL;
case 8: return APPLE_PASS_BUNDLE;
case 16: return MULTI_LINK;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PassBundleFormat> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PassBundleFormat findValueByNumber(int number) {
return PassBundleFormat.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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.passkit.grpc.CommonObjects.getDescriptor().getEnumTypes().get(2);
}
private static final PassBundleFormat[] VALUES = values();
public static PassBundleFormat valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private PassBundleFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.PassBundleFormat)
}
/**
*
* UsageType is used to indicate where a field or link is used / rendered
*
*
* Protobuf enum {@code io.UsageType}
*/
public enum UsageType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NO_USAGE = 0;
*/
NO_USAGE(0),
/**
*
* Rendered on Apple Wallet
*
*
* USAGE_APPLE_WALLET = 1;
*/
USAGE_APPLE_WALLET(1),
/**
*
* Rendered on Google Pay
*
*
* USAGE_GOOGLE_PAY = 2;
*/
USAGE_GOOGLE_PAY(2),
/**
*
* Rendered on data collection page
*
*
* USAGE_DATA_COLLECTION_PAGE = 4;
*/
USAGE_DATA_COLLECTION_PAGE(4),
UNRECOGNIZED(-1),
;
/**
* NO_USAGE = 0;
*/
public static final int NO_USAGE_VALUE = 0;
/**
*
* Rendered on Apple Wallet
*
*
* USAGE_APPLE_WALLET = 1;
*/
public static final int USAGE_APPLE_WALLET_VALUE = 1;
/**
*
* Rendered on Google Pay
*
*
* USAGE_GOOGLE_PAY = 2;
*/
public static final int USAGE_GOOGLE_PAY_VALUE = 2;
/**
*
* Rendered on data collection page
*
*
* USAGE_DATA_COLLECTION_PAGE = 4;
*/
public static final int USAGE_DATA_COLLECTION_PAGE_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 UsageType 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 UsageType forNumber(int value) {
switch (value) {
case 0: return NO_USAGE;
case 1: return USAGE_APPLE_WALLET;
case 2: return USAGE_GOOGLE_PAY;
case 4: return USAGE_DATA_COLLECTION_PAGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UsageType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UsageType findValueByNumber(int number) {
return UsageType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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.passkit.grpc.CommonObjects.getDescriptor().getEnumTypes().get(3);
}
private static final UsageType[] VALUES = values();
public static UsageType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private UsageType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.UsageType)
}
public interface IdOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Id)
com.google.protobuf.MessageOrBuilder {
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
}
/**
*
* An Id is used to access an unique object or record. Eg. a PassKit pass id.
*
*
* Protobuf type {@code io.Id}
*/
public static final class Id extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Id)
IdOrBuilder {
private static final long serialVersionUID = 0L;
// Use Id.newBuilder() to construct.
private Id(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Id() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Id();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Id(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
id_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Id_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Id_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Id.class, com.passkit.grpc.CommonObjects.Id.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
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.CommonObjects.Id)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Id other = (com.passkit.grpc.CommonObjects.Id) obj;
if (!getId()
.equals(other.getId())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Id parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Id 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.CommonObjects.Id parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Id 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.CommonObjects.Id parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Id parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Id parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Id 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.CommonObjects.Id parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Id 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.CommonObjects.Id parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Id 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.CommonObjects.Id prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An Id is used to access an unique object or record. Eg. a PassKit pass id.
*
*
* Protobuf type {@code io.Id}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Id)
com.passkit.grpc.CommonObjects.IdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Id_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Id_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Id.class, com.passkit.grpc.CommonObjects.Id.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Id.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();
id_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Id_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Id getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Id.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Id build() {
com.passkit.grpc.CommonObjects.Id result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Id buildPartial() {
com.passkit.grpc.CommonObjects.Id result = new com.passkit.grpc.CommonObjects.Id(this);
result.id_ = id_;
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.CommonObjects.Id) {
return mergeFrom((com.passkit.grpc.CommonObjects.Id)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Id other) {
if (other == com.passkit.grpc.CommonObjects.Id.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
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.CommonObjects.Id parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Id) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The unique identifier to an object or record.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = 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.Id)
}
// @@protoc_insertion_point(class_scope:io.Id)
private static final com.passkit.grpc.CommonObjects.Id DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Id();
}
public static com.passkit.grpc.CommonObjects.Id getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Id parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Id(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.CommonObjects.Id getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Ids)
com.google.protobuf.MessageOrBuilder {
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @return A list containing the id.
*/
java.util.List
getIdList();
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @return The count of id.
*/
int getIdCount();
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param index The index of the element to return.
* @return The id at the given index.
*/
java.lang.String getId(int index);
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
com.google.protobuf.ByteString
getIdBytes(int index);
}
/**
* Protobuf type {@code io.Ids}
*/
public static final class Ids extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Ids)
IdsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Ids.newBuilder() to construct.
private Ids(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Ids() {
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Ids();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Ids(
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)) {
id_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
id_.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)) {
id_ = id_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Ids_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Ids_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Ids.class, com.passkit.grpc.CommonObjects.Ids.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList id_;
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @return A list containing the id.
*/
public com.google.protobuf.ProtocolStringList
getIdList() {
return id_;
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @return The count of id.
*/
public int getIdCount() {
return id_.size();
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param index The index of the element to return.
* @return The id at the given index.
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.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 < id_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_.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 < id_.size(); i++) {
dataSize += computeStringSizeNoTag(id_.getRaw(i));
}
size += dataSize;
size += 1 * getIdList().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.CommonObjects.Ids)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Ids other = (com.passkit.grpc.CommonObjects.Ids) obj;
if (!getIdList()
.equals(other.getIdList())) 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 (getIdCount() > 0) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getIdList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Ids parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Ids 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.CommonObjects.Ids parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Ids 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.CommonObjects.Ids parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Ids parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Ids parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Ids 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.CommonObjects.Ids parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Ids 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.CommonObjects.Ids parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Ids 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.CommonObjects.Ids 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.Ids}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Ids)
com.passkit.grpc.CommonObjects.IdsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Ids_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Ids_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Ids.class, com.passkit.grpc.CommonObjects.Ids.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Ids.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();
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Ids_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Ids getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Ids.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Ids build() {
com.passkit.grpc.CommonObjects.Ids result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Ids buildPartial() {
com.passkit.grpc.CommonObjects.Ids result = new com.passkit.grpc.CommonObjects.Ids(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
id_ = id_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.id_ = id_;
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.CommonObjects.Ids) {
return mergeFrom((com.passkit.grpc.CommonObjects.Ids)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Ids other) {
if (other == com.passkit.grpc.CommonObjects.Ids.getDefaultInstance()) return this;
if (!other.id_.isEmpty()) {
if (id_.isEmpty()) {
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdIsMutable();
id_.addAll(other.id_);
}
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.CommonObjects.Ids parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Ids) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
id_ = new com.google.protobuf.LazyStringArrayList(id_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @return A list containing the id.
*/
public com.google.protobuf.ProtocolStringList
getIdList() {
return id_.getUnmodifiableView();
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @return The count of id.
*/
public int getIdCount() {
return id_.size();
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param index The index of the element to return.
* @return The id at the given index.
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.getByteString(index);
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param index The index to set the value at.
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.set(index, value);
onChanged();
return this;
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param value The id to add.
* @return This builder for chaining.
*/
public Builder addId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
return this;
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param values The id to add.
* @return This builder for chaining.
*/
public Builder addAllId(
java.lang.Iterable values) {
ensureIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, id_);
onChanged();
return this;
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The unique identifier to an object or record.
*
*
* repeated string id = 1;
* @param value The bytes of the id to add.
* @return This builder for chaining.
*/
public Builder addIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIdIsMutable();
id_.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.Ids)
}
// @@protoc_insertion_point(class_scope:io.Ids)
private static final com.passkit.grpc.CommonObjects.Ids DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Ids();
}
public static com.passkit.grpc.CommonObjects.Ids getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Ids parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Ids(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.CommonObjects.Ids getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UrlOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Url)
com.google.protobuf.MessageOrBuilder {
/**
* string url = 1;
* @return The url.
*/
java.lang.String getUrl();
/**
* string url = 1;
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
}
/**
* Protobuf type {@code io.Url}
*/
public static final class Url extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Url)
UrlOrBuilder {
private static final long serialVersionUID = 0L;
// Use Url.newBuilder() to construct.
private Url(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Url() {
url_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Url();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Url(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
url_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Url_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Url_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Url.class, com.passkit.grpc.CommonObjects.Url.Builder.class);
}
public static final int URL_FIELD_NUMBER = 1;
private volatile java.lang.Object url_;
/**
* string url = 1;
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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();
url_ = s;
return s;
}
}
/**
* string url = 1;
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_);
}
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.CommonObjects.Url)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Url other = (com.passkit.grpc.CommonObjects.Url) obj;
if (!getUrl()
.equals(other.getUrl())) 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) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Url parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Url 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.CommonObjects.Url parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Url 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.CommonObjects.Url parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Url parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Url parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Url 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.CommonObjects.Url parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Url 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.CommonObjects.Url parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Url 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.CommonObjects.Url 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.Url}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Url)
com.passkit.grpc.CommonObjects.UrlOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Url_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Url_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Url.class, com.passkit.grpc.CommonObjects.Url.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Url.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();
url_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Url_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Url getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Url.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Url build() {
com.passkit.grpc.CommonObjects.Url result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Url buildPartial() {
com.passkit.grpc.CommonObjects.Url result = new com.passkit.grpc.CommonObjects.Url(this);
result.url_ = url_;
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.CommonObjects.Url) {
return mergeFrom((com.passkit.grpc.CommonObjects.Url)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Url other) {
if (other == com.passkit.grpc.CommonObjects.Url.getDefaultInstance()) return this;
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
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.CommonObjects.Url parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Url) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object url_ = "";
/**
* string url = 1;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string url = 1;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string url = 1;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
return this;
}
/**
* string url = 1;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
* string url = 1;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = 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.Url)
}
// @@protoc_insertion_point(class_scope:io.Url)
private static final com.passkit.grpc.CommonObjects.Url DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Url();
}
public static com.passkit.grpc.CommonObjects.Url getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Url parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Url(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.CommonObjects.Url getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CountOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Count)
com.google.protobuf.MessageOrBuilder {
/**
*
* set as int32 so JSON renders as an integer
*
*
* int32 total = 1;
* @return The total.
*/
int getTotal();
}
/**
* Protobuf type {@code io.Count}
*/
public static final class Count extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Count)
CountOrBuilder {
private static final long serialVersionUID = 0L;
// Use Count.newBuilder() to construct.
private Count(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Count() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Count();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Count(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
total_ = input.readInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Count_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Count_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Count.class, com.passkit.grpc.CommonObjects.Count.Builder.class);
}
public static final int TOTAL_FIELD_NUMBER = 1;
private int total_;
/**
*
* set as int32 so JSON renders as an integer
*
*
* int32 total = 1;
* @return The total.
*/
@java.lang.Override
public int getTotal() {
return total_;
}
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 (total_ != 0) {
output.writeInt32(1, total_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (total_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, total_);
}
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.CommonObjects.Count)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Count other = (com.passkit.grpc.CommonObjects.Count) obj;
if (getTotal()
!= other.getTotal()) 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) + TOTAL_FIELD_NUMBER;
hash = (53 * hash) + getTotal();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Count parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Count 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.CommonObjects.Count parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Count 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.CommonObjects.Count parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Count parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Count parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Count 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.CommonObjects.Count parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Count 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.CommonObjects.Count parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Count 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.CommonObjects.Count 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.Count}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Count)
com.passkit.grpc.CommonObjects.CountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Count_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Count_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Count.class, com.passkit.grpc.CommonObjects.Count.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Count.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();
total_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Count_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Count getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Count.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Count build() {
com.passkit.grpc.CommonObjects.Count result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Count buildPartial() {
com.passkit.grpc.CommonObjects.Count result = new com.passkit.grpc.CommonObjects.Count(this);
result.total_ = total_;
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.CommonObjects.Count) {
return mergeFrom((com.passkit.grpc.CommonObjects.Count)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Count other) {
if (other == com.passkit.grpc.CommonObjects.Count.getDefaultInstance()) return this;
if (other.getTotal() != 0) {
setTotal(other.getTotal());
}
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.CommonObjects.Count parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Count) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int total_ ;
/**
*
* set as int32 so JSON renders as an integer
*
*
* int32 total = 1;
* @return The total.
*/
@java.lang.Override
public int getTotal() {
return total_;
}
/**
*
* set as int32 so JSON renders as an integer
*
*
* int32 total = 1;
* @param value The total to set.
* @return This builder for chaining.
*/
public Builder setTotal(int value) {
total_ = value;
onChanged();
return this;
}
/**
*
* set as int32 so JSON renders as an integer
*
*
* int32 total = 1;
* @return This builder for chaining.
*/
public Builder clearTotal() {
total_ = 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:io.Count)
}
// @@protoc_insertion_point(class_scope:io.Count)
private static final com.passkit.grpc.CommonObjects.Count DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Count();
}
public static com.passkit.grpc.CommonObjects.Count getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Count parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Count(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.CommonObjects.Count getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FileBytesOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.FileBytes)
com.google.protobuf.MessageOrBuilder {
/**
* bytes fileBytes = 1;
* @return The fileBytes.
*/
com.google.protobuf.ByteString getFileBytes();
}
/**
* Protobuf type {@code io.FileBytes}
*/
public static final class FileBytes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.FileBytes)
FileBytesOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileBytes.newBuilder() to construct.
private FileBytes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileBytes() {
fileBytes_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileBytes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileBytes(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
fileBytes_ = input.readBytes();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_FileBytes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_FileBytes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.FileBytes.class, com.passkit.grpc.CommonObjects.FileBytes.Builder.class);
}
public static final int FILEBYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString fileBytes_;
/**
* bytes fileBytes = 1;
* @return The fileBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFileBytes() {
return fileBytes_;
}
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 (!fileBytes_.isEmpty()) {
output.writeBytes(1, fileBytes_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!fileBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, fileBytes_);
}
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.CommonObjects.FileBytes)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.FileBytes other = (com.passkit.grpc.CommonObjects.FileBytes) obj;
if (!getFileBytes()
.equals(other.getFileBytes())) 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) + FILEBYTES_FIELD_NUMBER;
hash = (53 * hash) + getFileBytes().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.FileBytes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.FileBytes 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.CommonObjects.FileBytes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.FileBytes 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.CommonObjects.FileBytes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.FileBytes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.FileBytes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.FileBytes 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.CommonObjects.FileBytes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.FileBytes 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.CommonObjects.FileBytes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.FileBytes 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.CommonObjects.FileBytes 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.FileBytes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.FileBytes)
com.passkit.grpc.CommonObjects.FileBytesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_FileBytes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_FileBytes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.FileBytes.class, com.passkit.grpc.CommonObjects.FileBytes.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.FileBytes.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();
fileBytes_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_FileBytes_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.FileBytes getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.FileBytes.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.FileBytes build() {
com.passkit.grpc.CommonObjects.FileBytes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.FileBytes buildPartial() {
com.passkit.grpc.CommonObjects.FileBytes result = new com.passkit.grpc.CommonObjects.FileBytes(this);
result.fileBytes_ = fileBytes_;
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.CommonObjects.FileBytes) {
return mergeFrom((com.passkit.grpc.CommonObjects.FileBytes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.FileBytes other) {
if (other == com.passkit.grpc.CommonObjects.FileBytes.getDefaultInstance()) return this;
if (other.getFileBytes() != com.google.protobuf.ByteString.EMPTY) {
setFileBytes(other.getFileBytes());
}
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.CommonObjects.FileBytes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.FileBytes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString fileBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes fileBytes = 1;
* @return The fileBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFileBytes() {
return fileBytes_;
}
/**
* bytes fileBytes = 1;
* @param value The fileBytes to set.
* @return This builder for chaining.
*/
public Builder setFileBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
fileBytes_ = value;
onChanged();
return this;
}
/**
* bytes fileBytes = 1;
* @return This builder for chaining.
*/
public Builder clearFileBytes() {
fileBytes_ = getDefaultInstance().getFileBytes();
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.FileBytes)
}
// @@protoc_insertion_point(class_scope:io.FileBytes)
private static final com.passkit.grpc.CommonObjects.FileBytes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.FileBytes();
}
public static com.passkit.grpc.CommonObjects.FileBytes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileBytes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileBytes(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.CommonObjects.FileBytes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BooleanOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Boolean)
com.google.protobuf.MessageOrBuilder {
/**
* bool response = 1;
* @return The response.
*/
boolean getResponse();
}
/**
* Protobuf type {@code io.Boolean}
*/
public static final class Boolean extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Boolean)
BooleanOrBuilder {
private static final long serialVersionUID = 0L;
// Use Boolean.newBuilder() to construct.
private Boolean(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Boolean() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Boolean();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Boolean(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
response_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Boolean_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Boolean_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Boolean.class, com.passkit.grpc.CommonObjects.Boolean.Builder.class);
}
public static final int RESPONSE_FIELD_NUMBER = 1;
private boolean response_;
/**
* bool response = 1;
* @return The response.
*/
@java.lang.Override
public boolean getResponse() {
return response_;
}
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 (response_ != false) {
output.writeBool(1, response_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (response_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, response_);
}
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.CommonObjects.Boolean)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Boolean other = (com.passkit.grpc.CommonObjects.Boolean) obj;
if (getResponse()
!= other.getResponse()) 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) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getResponse());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Boolean parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Boolean 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.CommonObjects.Boolean parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Boolean 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.CommonObjects.Boolean parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Boolean parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Boolean parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Boolean 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.CommonObjects.Boolean parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Boolean 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.CommonObjects.Boolean parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Boolean 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.CommonObjects.Boolean 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.Boolean}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Boolean)
com.passkit.grpc.CommonObjects.BooleanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Boolean_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Boolean_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Boolean.class, com.passkit.grpc.CommonObjects.Boolean.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Boolean.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();
response_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Boolean_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Boolean getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Boolean.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Boolean build() {
com.passkit.grpc.CommonObjects.Boolean result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Boolean buildPartial() {
com.passkit.grpc.CommonObjects.Boolean result = new com.passkit.grpc.CommonObjects.Boolean(this);
result.response_ = response_;
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.CommonObjects.Boolean) {
return mergeFrom((com.passkit.grpc.CommonObjects.Boolean)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Boolean other) {
if (other == com.passkit.grpc.CommonObjects.Boolean.getDefaultInstance()) return this;
if (other.getResponse() != false) {
setResponse(other.getResponse());
}
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.CommonObjects.Boolean parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Boolean) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean response_ ;
/**
* bool response = 1;
* @return The response.
*/
@java.lang.Override
public boolean getResponse() {
return response_;
}
/**
* bool response = 1;
* @param value The response to set.
* @return This builder for chaining.
*/
public Builder setResponse(boolean value) {
response_ = value;
onChanged();
return this;
}
/**
* bool response = 1;
* @return This builder for chaining.
*/
public Builder clearResponse() {
response_ = 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.Boolean)
}
// @@protoc_insertion_point(class_scope:io.Boolean)
private static final com.passkit.grpc.CommonObjects.Boolean DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Boolean();
}
public static com.passkit.grpc.CommonObjects.Boolean getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Boolean parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Boolean(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.CommonObjects.Boolean getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Strings)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string response = 1;
* @return A list containing the response.
*/
java.util.List
getResponseList();
/**
* repeated string response = 1;
* @return The count of response.
*/
int getResponseCount();
/**
* repeated string response = 1;
* @param index The index of the element to return.
* @return The response at the given index.
*/
java.lang.String getResponse(int index);
/**
* repeated string response = 1;
* @param index The index of the value to return.
* @return The bytes of the response at the given index.
*/
com.google.protobuf.ByteString
getResponseBytes(int index);
}
/**
*
* Repeated field of dynamically typed values (including string, bool, option, syntax)
*
*
* Protobuf type {@code io.Strings}
*/
public static final class Strings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Strings)
StringsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Strings.newBuilder() to construct.
private Strings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Strings() {
response_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Strings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Strings(
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)) {
response_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
response_.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)) {
response_ = response_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Strings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Strings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Strings.class, com.passkit.grpc.CommonObjects.Strings.Builder.class);
}
public static final int RESPONSE_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList response_;
/**
* repeated string response = 1;
* @return A list containing the response.
*/
public com.google.protobuf.ProtocolStringList
getResponseList() {
return response_;
}
/**
* repeated string response = 1;
* @return The count of response.
*/
public int getResponseCount() {
return response_.size();
}
/**
* repeated string response = 1;
* @param index The index of the element to return.
* @return The response at the given index.
*/
public java.lang.String getResponse(int index) {
return response_.get(index);
}
/**
* repeated string response = 1;
* @param index The index of the value to return.
* @return The bytes of the response at the given index.
*/
public com.google.protobuf.ByteString
getResponseBytes(int index) {
return response_.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 < response_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, response_.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 < response_.size(); i++) {
dataSize += computeStringSizeNoTag(response_.getRaw(i));
}
size += dataSize;
size += 1 * getResponseList().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.CommonObjects.Strings)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Strings other = (com.passkit.grpc.CommonObjects.Strings) obj;
if (!getResponseList()
.equals(other.getResponseList())) 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 (getResponseCount() > 0) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponseList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Strings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Strings 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.CommonObjects.Strings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Strings 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.CommonObjects.Strings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Strings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Strings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Strings 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.CommonObjects.Strings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Strings 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.CommonObjects.Strings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Strings 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.CommonObjects.Strings 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;
}
/**
*
* Repeated field of dynamically typed values (including string, bool, option, syntax)
*
*
* Protobuf type {@code io.Strings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Strings)
com.passkit.grpc.CommonObjects.StringsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Strings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Strings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Strings.class, com.passkit.grpc.CommonObjects.Strings.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Strings.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();
response_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Strings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Strings getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Strings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Strings build() {
com.passkit.grpc.CommonObjects.Strings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Strings buildPartial() {
com.passkit.grpc.CommonObjects.Strings result = new com.passkit.grpc.CommonObjects.Strings(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
response_ = response_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.response_ = response_;
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.CommonObjects.Strings) {
return mergeFrom((com.passkit.grpc.CommonObjects.Strings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Strings other) {
if (other == com.passkit.grpc.CommonObjects.Strings.getDefaultInstance()) return this;
if (!other.response_.isEmpty()) {
if (response_.isEmpty()) {
response_ = other.response_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResponseIsMutable();
response_.addAll(other.response_);
}
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.CommonObjects.Strings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Strings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList response_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureResponseIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
response_ = new com.google.protobuf.LazyStringArrayList(response_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string response = 1;
* @return A list containing the response.
*/
public com.google.protobuf.ProtocolStringList
getResponseList() {
return response_.getUnmodifiableView();
}
/**
* repeated string response = 1;
* @return The count of response.
*/
public int getResponseCount() {
return response_.size();
}
/**
* repeated string response = 1;
* @param index The index of the element to return.
* @return The response at the given index.
*/
public java.lang.String getResponse(int index) {
return response_.get(index);
}
/**
* repeated string response = 1;
* @param index The index of the value to return.
* @return The bytes of the response at the given index.
*/
public com.google.protobuf.ByteString
getResponseBytes(int index) {
return response_.getByteString(index);
}
/**
* repeated string response = 1;
* @param index The index to set the value at.
* @param value The response to set.
* @return This builder for chaining.
*/
public Builder setResponse(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseIsMutable();
response_.set(index, value);
onChanged();
return this;
}
/**
* repeated string response = 1;
* @param value The response to add.
* @return This builder for chaining.
*/
public Builder addResponse(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseIsMutable();
response_.add(value);
onChanged();
return this;
}
/**
* repeated string response = 1;
* @param values The response to add.
* @return This builder for chaining.
*/
public Builder addAllResponse(
java.lang.Iterable values) {
ensureResponseIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, response_);
onChanged();
return this;
}
/**
* repeated string response = 1;
* @return This builder for chaining.
*/
public Builder clearResponse() {
response_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string response = 1;
* @param value The bytes of the response to add.
* @return This builder for chaining.
*/
public Builder addResponseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureResponseIsMutable();
response_.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.Strings)
}
// @@protoc_insertion_point(class_scope:io.Strings)
private static final com.passkit.grpc.CommonObjects.Strings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Strings();
}
public static com.passkit.grpc.CommonObjects.Strings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Strings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Strings(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.CommonObjects.Strings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DateOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Date)
com.google.protobuf.MessageOrBuilder {
/**
*
* Year.
*
*
* int32 year = 1;
* @return The year.
*/
int getYear();
/**
*
* Month.
*
*
* int32 month = 2;
* @return The month.
*/
int getMonth();
/**
*
* Day.
*
*
* int32 day = 3;
* @return The day.
*/
int getDay();
}
/**
*
* A fixed date without timezone information.
*
*
* Protobuf type {@code io.Date}
*/
public static final class Date extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Date)
DateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Date.newBuilder() to construct.
private Date(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Date() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Date();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Date(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
year_ = input.readInt32();
break;
}
case 16: {
month_ = input.readInt32();
break;
}
case 24: {
day_ = input.readInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Date_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Date_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Date.class, com.passkit.grpc.CommonObjects.Date.Builder.class);
}
public static final int YEAR_FIELD_NUMBER = 1;
private int year_;
/**
*
* Year.
*
*
* int32 year = 1;
* @return The year.
*/
@java.lang.Override
public int getYear() {
return year_;
}
public static final int MONTH_FIELD_NUMBER = 2;
private int month_;
/**
*
* Month.
*
*
* int32 month = 2;
* @return The month.
*/
@java.lang.Override
public int getMonth() {
return month_;
}
public static final int DAY_FIELD_NUMBER = 3;
private int day_;
/**
*
* Day.
*
*
* int32 day = 3;
* @return The day.
*/
@java.lang.Override
public int getDay() {
return day_;
}
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 (year_ != 0) {
output.writeInt32(1, year_);
}
if (month_ != 0) {
output.writeInt32(2, month_);
}
if (day_ != 0) {
output.writeInt32(3, day_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (year_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, year_);
}
if (month_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, month_);
}
if (day_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, day_);
}
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.CommonObjects.Date)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Date other = (com.passkit.grpc.CommonObjects.Date) obj;
if (getYear()
!= other.getYear()) return false;
if (getMonth()
!= other.getMonth()) return false;
if (getDay()
!= other.getDay()) 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) + YEAR_FIELD_NUMBER;
hash = (53 * hash) + getYear();
hash = (37 * hash) + MONTH_FIELD_NUMBER;
hash = (53 * hash) + getMonth();
hash = (37 * hash) + DAY_FIELD_NUMBER;
hash = (53 * hash) + getDay();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Date parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Date 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.CommonObjects.Date parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Date 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.CommonObjects.Date parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Date parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Date parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Date 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.CommonObjects.Date parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Date 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.CommonObjects.Date parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Date 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.CommonObjects.Date 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 fixed date without timezone information.
*
*
* Protobuf type {@code io.Date}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Date)
com.passkit.grpc.CommonObjects.DateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Date_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Date_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Date.class, com.passkit.grpc.CommonObjects.Date.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Date.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();
year_ = 0;
month_ = 0;
day_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Date_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Date.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date build() {
com.passkit.grpc.CommonObjects.Date result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Date buildPartial() {
com.passkit.grpc.CommonObjects.Date result = new com.passkit.grpc.CommonObjects.Date(this);
result.year_ = year_;
result.month_ = month_;
result.day_ = day_;
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.CommonObjects.Date) {
return mergeFrom((com.passkit.grpc.CommonObjects.Date)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Date other) {
if (other == com.passkit.grpc.CommonObjects.Date.getDefaultInstance()) return this;
if (other.getYear() != 0) {
setYear(other.getYear());
}
if (other.getMonth() != 0) {
setMonth(other.getMonth());
}
if (other.getDay() != 0) {
setDay(other.getDay());
}
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.CommonObjects.Date parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Date) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int year_ ;
/**
*
* Year.
*
*
* int32 year = 1;
* @return The year.
*/
@java.lang.Override
public int getYear() {
return year_;
}
/**
*
* Year.
*
*
* int32 year = 1;
* @param value The year to set.
* @return This builder for chaining.
*/
public Builder setYear(int value) {
year_ = value;
onChanged();
return this;
}
/**
*
* Year.
*
*
* int32 year = 1;
* @return This builder for chaining.
*/
public Builder clearYear() {
year_ = 0;
onChanged();
return this;
}
private int month_ ;
/**
*
* Month.
*
*
* int32 month = 2;
* @return The month.
*/
@java.lang.Override
public int getMonth() {
return month_;
}
/**
*
* Month.
*
*
* int32 month = 2;
* @param value The month to set.
* @return This builder for chaining.
*/
public Builder setMonth(int value) {
month_ = value;
onChanged();
return this;
}
/**
*
* Month.
*
*
* int32 month = 2;
* @return This builder for chaining.
*/
public Builder clearMonth() {
month_ = 0;
onChanged();
return this;
}
private int day_ ;
/**
*
* Day.
*
*
* int32 day = 3;
* @return The day.
*/
@java.lang.Override
public int getDay() {
return day_;
}
/**
*
* Day.
*
*
* int32 day = 3;
* @param value The day to set.
* @return This builder for chaining.
*/
public Builder setDay(int value) {
day_ = value;
onChanged();
return this;
}
/**
*
* Day.
*
*
* int32 day = 3;
* @return This builder for chaining.
*/
public Builder clearDay() {
day_ = 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:io.Date)
}
// @@protoc_insertion_point(class_scope:io.Date)
private static final com.passkit.grpc.CommonObjects.Date DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Date();
}
public static com.passkit.grpc.CommonObjects.Date getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Date parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Date(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.CommonObjects.Date getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TimeOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Time)
com.google.protobuf.MessageOrBuilder {
/**
*
* Hour.
*
*
* int32 hour = 1;
* @return The hour.
*/
int getHour();
/**
*
* Minute.
*
*
* int32 minute = 2;
* @return The minute.
*/
int getMinute();
/**
*
* Second.
*
*
* int32 second = 3;
* @return The second.
*/
int getSecond();
}
/**
*
* A fixed time without timezone information.
*
*
* Protobuf type {@code io.Time}
*/
public static final class Time extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Time)
TimeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Time.newBuilder() to construct.
private Time(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Time() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Time();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Time(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
hour_ = input.readInt32();
break;
}
case 16: {
minute_ = input.readInt32();
break;
}
case 24: {
second_ = input.readInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Time_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Time_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Time.class, com.passkit.grpc.CommonObjects.Time.Builder.class);
}
public static final int HOUR_FIELD_NUMBER = 1;
private int hour_;
/**
*
* Hour.
*
*
* int32 hour = 1;
* @return The hour.
*/
@java.lang.Override
public int getHour() {
return hour_;
}
public static final int MINUTE_FIELD_NUMBER = 2;
private int minute_;
/**
*
* Minute.
*
*
* int32 minute = 2;
* @return The minute.
*/
@java.lang.Override
public int getMinute() {
return minute_;
}
public static final int SECOND_FIELD_NUMBER = 3;
private int second_;
/**
*
* Second.
*
*
* int32 second = 3;
* @return The second.
*/
@java.lang.Override
public int getSecond() {
return second_;
}
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 (hour_ != 0) {
output.writeInt32(1, hour_);
}
if (minute_ != 0) {
output.writeInt32(2, minute_);
}
if (second_ != 0) {
output.writeInt32(3, second_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hour_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, hour_);
}
if (minute_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, minute_);
}
if (second_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, second_);
}
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.CommonObjects.Time)) {
return super.equals(obj);
}
com.passkit.grpc.CommonObjects.Time other = (com.passkit.grpc.CommonObjects.Time) obj;
if (getHour()
!= other.getHour()) return false;
if (getMinute()
!= other.getMinute()) return false;
if (getSecond()
!= other.getSecond()) 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) + HOUR_FIELD_NUMBER;
hash = (53 * hash) + getHour();
hash = (37 * hash) + MINUTE_FIELD_NUMBER;
hash = (53 * hash) + getMinute();
hash = (37 * hash) + SECOND_FIELD_NUMBER;
hash = (53 * hash) + getSecond();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.CommonObjects.Time parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Time 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.CommonObjects.Time parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Time 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.CommonObjects.Time parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.CommonObjects.Time parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.CommonObjects.Time parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Time 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.CommonObjects.Time parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Time 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.CommonObjects.Time parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.CommonObjects.Time 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.CommonObjects.Time 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 fixed time without timezone information.
*
*
* Protobuf type {@code io.Time}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Time)
com.passkit.grpc.CommonObjects.TimeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.CommonObjects.internal_static_io_Time_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.CommonObjects.internal_static_io_Time_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.CommonObjects.Time.class, com.passkit.grpc.CommonObjects.Time.Builder.class);
}
// Construct using com.passkit.grpc.CommonObjects.Time.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();
hour_ = 0;
minute_ = 0;
second_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.CommonObjects.internal_static_io_Time_descriptor;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Time getDefaultInstanceForType() {
return com.passkit.grpc.CommonObjects.Time.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Time build() {
com.passkit.grpc.CommonObjects.Time result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.CommonObjects.Time buildPartial() {
com.passkit.grpc.CommonObjects.Time result = new com.passkit.grpc.CommonObjects.Time(this);
result.hour_ = hour_;
result.minute_ = minute_;
result.second_ = second_;
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.CommonObjects.Time) {
return mergeFrom((com.passkit.grpc.CommonObjects.Time)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.CommonObjects.Time other) {
if (other == com.passkit.grpc.CommonObjects.Time.getDefaultInstance()) return this;
if (other.getHour() != 0) {
setHour(other.getHour());
}
if (other.getMinute() != 0) {
setMinute(other.getMinute());
}
if (other.getSecond() != 0) {
setSecond(other.getSecond());
}
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.CommonObjects.Time parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.CommonObjects.Time) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int hour_ ;
/**
*
* Hour.
*
*
* int32 hour = 1;
* @return The hour.
*/
@java.lang.Override
public int getHour() {
return hour_;
}
/**
*
* Hour.
*
*
* int32 hour = 1;
* @param value The hour to set.
* @return This builder for chaining.
*/
public Builder setHour(int value) {
hour_ = value;
onChanged();
return this;
}
/**
*
* Hour.
*
*
* int32 hour = 1;
* @return This builder for chaining.
*/
public Builder clearHour() {
hour_ = 0;
onChanged();
return this;
}
private int minute_ ;
/**
*
* Minute.
*
*
* int32 minute = 2;
* @return The minute.
*/
@java.lang.Override
public int getMinute() {
return minute_;
}
/**
*
* Minute.
*
*
* int32 minute = 2;
* @param value The minute to set.
* @return This builder for chaining.
*/
public Builder setMinute(int value) {
minute_ = value;
onChanged();
return this;
}
/**
*
* Minute.
*
*
* int32 minute = 2;
* @return This builder for chaining.
*/
public Builder clearMinute() {
minute_ = 0;
onChanged();
return this;
}
private int second_ ;
/**
*
* Second.
*
*
* int32 second = 3;
* @return The second.
*/
@java.lang.Override
public int getSecond() {
return second_;
}
/**
*
* Second.
*
*
* int32 second = 3;
* @param value The second to set.
* @return This builder for chaining.
*/
public Builder setSecond(int value) {
second_ = value;
onChanged();
return this;
}
/**
*
* Second.
*
*
* int32 second = 3;
* @return This builder for chaining.
*/
public Builder clearSecond() {
second_ = 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:io.Time)
}
// @@protoc_insertion_point(class_scope:io.Time)
private static final com.passkit.grpc.CommonObjects.Time DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.CommonObjects.Time();
}
public static com.passkit.grpc.CommonObjects.Time getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser