com.passkit.grpc.Members.ProgramOuterClass 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/member/program.proto
package com.passkit.grpc.Members;
public final class ProgramOuterClass {
private ProgramOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code members.ProgramAutoUpDownGradeTierType}
*/
public enum ProgramAutoUpDownGradeTierType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Auto up / down grades based on points.
*
*
* UPDOWNGRADE_POINTS = 0;
*/
UPDOWNGRADE_POINTS(0),
/**
*
* Auto up / down grades based on secondary points.
*
*
* UPDOWNGRADE_SECONDARY_POINTS = 1;
*/
UPDOWNGRADE_SECONDARY_POINTS(1),
/**
*
* Auto up / down grades based on tier points.
*
*
* UPDOWNGRADE_TIER_POINTS = 2;
*/
UPDOWNGRADE_TIER_POINTS(2),
/**
*
* Auto up / down grades based on # of visits.
*
*
* UPDOWNGRADE_VISITS = 3;
*/
UPDOWNGRADE_VISITS(3),
UNRECOGNIZED(-1),
;
/**
*
* Auto up / down grades based on points.
*
*
* UPDOWNGRADE_POINTS = 0;
*/
public static final int UPDOWNGRADE_POINTS_VALUE = 0;
/**
*
* Auto up / down grades based on secondary points.
*
*
* UPDOWNGRADE_SECONDARY_POINTS = 1;
*/
public static final int UPDOWNGRADE_SECONDARY_POINTS_VALUE = 1;
/**
*
* Auto up / down grades based on tier points.
*
*
* UPDOWNGRADE_TIER_POINTS = 2;
*/
public static final int UPDOWNGRADE_TIER_POINTS_VALUE = 2;
/**
*
* Auto up / down grades based on # of visits.
*
*
* UPDOWNGRADE_VISITS = 3;
*/
public static final int UPDOWNGRADE_VISITS_VALUE = 3;
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 ProgramAutoUpDownGradeTierType 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 ProgramAutoUpDownGradeTierType forNumber(int value) {
switch (value) {
case 0: return UPDOWNGRADE_POINTS;
case 1: return UPDOWNGRADE_SECONDARY_POINTS;
case 2: return UPDOWNGRADE_TIER_POINTS;
case 3: return UPDOWNGRADE_VISITS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ProgramAutoUpDownGradeTierType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProgramAutoUpDownGradeTierType findValueByNumber(int number) {
return ProgramAutoUpDownGradeTierType.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.Members.ProgramOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final ProgramAutoUpDownGradeTierType[] VALUES = values();
public static ProgramAutoUpDownGradeTierType 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 ProgramAutoUpDownGradeTierType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:members.ProgramAutoUpDownGradeTierType)
}
/**
* Protobuf enum {@code members.BalanceType}
*/
public enum BalanceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* BALANCE_TYPE_STRING = 0;
*/
BALANCE_TYPE_STRING(0),
/**
* BALANCE_TYPE_INT = 1;
*/
BALANCE_TYPE_INT(1),
/**
* BALANCE_TYPE_DOUBLE = 2;
*/
BALANCE_TYPE_DOUBLE(2),
/**
* BALANCE_TYPE_MONEY = 3;
*/
BALANCE_TYPE_MONEY(3),
UNRECOGNIZED(-1),
;
/**
* BALANCE_TYPE_STRING = 0;
*/
public static final int BALANCE_TYPE_STRING_VALUE = 0;
/**
* BALANCE_TYPE_INT = 1;
*/
public static final int BALANCE_TYPE_INT_VALUE = 1;
/**
* BALANCE_TYPE_DOUBLE = 2;
*/
public static final int BALANCE_TYPE_DOUBLE_VALUE = 2;
/**
* BALANCE_TYPE_MONEY = 3;
*/
public static final int BALANCE_TYPE_MONEY_VALUE = 3;
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 BalanceType 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 BalanceType forNumber(int value) {
switch (value) {
case 0: return BALANCE_TYPE_STRING;
case 1: return BALANCE_TYPE_INT;
case 2: return BALANCE_TYPE_DOUBLE;
case 3: return BALANCE_TYPE_MONEY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BalanceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BalanceType findValueByNumber(int number) {
return BalanceType.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.Members.ProgramOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final BalanceType[] VALUES = values();
public static BalanceType 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 BalanceType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:members.BalanceType)
}
/**
* Protobuf enum {@code members.ProfileImageSetting}
*/
public enum ProfileImageSetting
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PROFILE_IMAGE_NONE = 0;
*/
PROFILE_IMAGE_NONE(0),
/**
* PROFILE_IMAGE_OPTIONAL = 1;
*/
PROFILE_IMAGE_OPTIONAL(1),
/**
* PROFILE_IMAGE_REQUIRED = 2;
*/
PROFILE_IMAGE_REQUIRED(2),
UNRECOGNIZED(-1),
;
/**
* PROFILE_IMAGE_NONE = 0;
*/
public static final int PROFILE_IMAGE_NONE_VALUE = 0;
/**
* PROFILE_IMAGE_OPTIONAL = 1;
*/
public static final int PROFILE_IMAGE_OPTIONAL_VALUE = 1;
/**
* PROFILE_IMAGE_REQUIRED = 2;
*/
public static final int PROFILE_IMAGE_REQUIRED_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 ProfileImageSetting 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 ProfileImageSetting forNumber(int value) {
switch (value) {
case 0: return PROFILE_IMAGE_NONE;
case 1: return PROFILE_IMAGE_OPTIONAL;
case 2: return PROFILE_IMAGE_REQUIRED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ProfileImageSetting> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProfileImageSetting findValueByNumber(int number) {
return ProfileImageSetting.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.Members.ProgramOuterClass.getDescriptor().getEnumTypes().get(2);
}
private static final ProfileImageSetting[] VALUES = values();
public static ProfileImageSetting 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 ProfileImageSetting(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:members.ProfileImageSetting)
}
public interface PointsTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:members.PointsType)
com.google.protobuf.MessageOrBuilder {
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @return The enum numeric value on the wire for balanceType.
*/
int getBalanceTypeValue();
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @return The balanceType.
*/
com.passkit.grpc.Members.ProgramOuterClass.BalanceType getBalanceType();
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @return The currencyCode.
*/
java.lang.String getCurrencyCode();
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @return The bytes for currencyCode.
*/
com.google.protobuf.ByteString
getCurrencyCodeBytes();
}
/**
* Protobuf type {@code members.PointsType}
*/
public static final class PointsType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:members.PointsType)
PointsTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use PointsType.newBuilder() to construct.
private PointsType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PointsType() {
balanceType_ = 0;
currencyCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PointsType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PointsType(
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: {
int rawValue = input.readEnum();
balanceType_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
currencyCode_ = 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.Members.ProgramOuterClass.internal_static_members_PointsType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_PointsType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.PointsType.class, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder.class);
}
public static final int BALANCETYPE_FIELD_NUMBER = 1;
private int balanceType_;
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @return The enum numeric value on the wire for balanceType.
*/
@java.lang.Override public int getBalanceTypeValue() {
return balanceType_;
}
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @return The balanceType.
*/
@java.lang.Override public com.passkit.grpc.Members.ProgramOuterClass.BalanceType getBalanceType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Members.ProgramOuterClass.BalanceType result = com.passkit.grpc.Members.ProgramOuterClass.BalanceType.valueOf(balanceType_);
return result == null ? com.passkit.grpc.Members.ProgramOuterClass.BalanceType.UNRECOGNIZED : result;
}
public static final int CURRENCYCODE_FIELD_NUMBER = 2;
private volatile java.lang.Object currencyCode_;
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @return The currencyCode.
*/
@java.lang.Override
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
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();
currencyCode_ = s;
return s;
}
}
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @return The bytes for currencyCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = 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 (balanceType_ != com.passkit.grpc.Members.ProgramOuterClass.BalanceType.BALANCE_TYPE_STRING.getNumber()) {
output.writeEnum(1, balanceType_);
}
if (!getCurrencyCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currencyCode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (balanceType_ != com.passkit.grpc.Members.ProgramOuterClass.BalanceType.BALANCE_TYPE_STRING.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, balanceType_);
}
if (!getCurrencyCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currencyCode_);
}
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.Members.ProgramOuterClass.PointsType)) {
return super.equals(obj);
}
com.passkit.grpc.Members.ProgramOuterClass.PointsType other = (com.passkit.grpc.Members.ProgramOuterClass.PointsType) obj;
if (balanceType_ != other.balanceType_) return false;
if (!getCurrencyCode()
.equals(other.getCurrencyCode())) 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) + BALANCETYPE_FIELD_NUMBER;
hash = (53 * hash) + balanceType_;
hash = (37 * hash) + CURRENCYCODE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyCode().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType 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.Members.ProgramOuterClass.PointsType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType 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.Members.ProgramOuterClass.PointsType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType 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.Members.ProgramOuterClass.PointsType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType 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.Members.ProgramOuterClass.PointsType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType 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.Members.ProgramOuterClass.PointsType 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 members.PointsType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:members.PointsType)
com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_PointsType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_PointsType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.PointsType.class, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder.class);
}
// Construct using com.passkit.grpc.Members.ProgramOuterClass.PointsType.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();
balanceType_ = 0;
currencyCode_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_PointsType_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.PointsType getDefaultInstanceForType() {
return com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.PointsType build() {
com.passkit.grpc.Members.ProgramOuterClass.PointsType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.PointsType buildPartial() {
com.passkit.grpc.Members.ProgramOuterClass.PointsType result = new com.passkit.grpc.Members.ProgramOuterClass.PointsType(this);
result.balanceType_ = balanceType_;
result.currencyCode_ = currencyCode_;
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.Members.ProgramOuterClass.PointsType) {
return mergeFrom((com.passkit.grpc.Members.ProgramOuterClass.PointsType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Members.ProgramOuterClass.PointsType other) {
if (other == com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance()) return this;
if (other.balanceType_ != 0) {
setBalanceTypeValue(other.getBalanceTypeValue());
}
if (!other.getCurrencyCode().isEmpty()) {
currencyCode_ = other.currencyCode_;
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.Members.ProgramOuterClass.PointsType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Members.ProgramOuterClass.PointsType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int balanceType_ = 0;
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @return The enum numeric value on the wire for balanceType.
*/
@java.lang.Override public int getBalanceTypeValue() {
return balanceType_;
}
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @param value The enum numeric value on the wire for balanceType to set.
* @return This builder for chaining.
*/
public Builder setBalanceTypeValue(int value) {
balanceType_ = value;
onChanged();
return this;
}
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @return The balanceType.
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.BalanceType getBalanceType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Members.ProgramOuterClass.BalanceType result = com.passkit.grpc.Members.ProgramOuterClass.BalanceType.valueOf(balanceType_);
return result == null ? com.passkit.grpc.Members.ProgramOuterClass.BalanceType.UNRECOGNIZED : result;
}
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @param value The balanceType to set.
* @return This builder for chaining.
*/
public Builder setBalanceType(com.passkit.grpc.Members.ProgramOuterClass.BalanceType value) {
if (value == null) {
throw new NullPointerException();
}
balanceType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The balance type.
*
*
* .members.BalanceType balanceType = 1;
* @return This builder for chaining.
*/
public Builder clearBalanceType() {
balanceType_ = 0;
onChanged();
return this;
}
private java.lang.Object currencyCode_ = "";
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @return The currencyCode.
*/
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currencyCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @return The bytes for currencyCode.
*/
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @param value The currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
currencyCode_ = value;
onChanged();
return this;
}
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @return This builder for chaining.
*/
public Builder clearCurrencyCode() {
currencyCode_ = getDefaultInstance().getCurrencyCode();
onChanged();
return this;
}
/**
*
* The currency code; only needs to be provided if balance type equals BALANCE_TYPE_MONEY.
*
*
* string currencyCode = 2;
* @param value The bytes for currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
currencyCode_ = 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:members.PointsType)
}
// @@protoc_insertion_point(class_scope:members.PointsType)
private static final com.passkit.grpc.Members.ProgramOuterClass.PointsType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Members.ProgramOuterClass.PointsType();
}
public static com.passkit.grpc.Members.ProgramOuterClass.PointsType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PointsType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PointsType(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.Members.ProgramOuterClass.PointsType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProgramOrBuilder extends
// @@protoc_insertion_point(interface_extends:members.Program)
com.google.protobuf.MessageOrBuilder {
/**
*
* PassKit generated program id (22 characters).
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* PassKit generated program id (22 characters).
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
* @return Whether the localizedName field is set.
*/
boolean hasLocalizedName();
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
* @return The localizedName.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedName();
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder();
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return A list containing the status.
*/
java.util.List getStatusList();
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return The count of status.
*/
int getStatusCount();
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index of the element to return.
* @return The status at the given index.
*/
com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index);
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return A list containing the enum numeric values on the wire for status.
*/
java.util.List
getStatusValueList();
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
int getStatusValue(int index);
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
* @return Whether the quota field is set.
*/
boolean hasQuota();
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
* @return The quota.
*/
com.passkit.grpc.Billing.Quota getQuota();
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder();
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @return The passTypeIdentifier.
*/
java.lang.String getPassTypeIdentifier();
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @return The bytes for passTypeIdentifier.
*/
com.google.protobuf.ByteString
getPassTypeIdentifierBytes();
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
* @return Whether the distributionSettings field is set.
*/
boolean hasDistributionSettings();
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
* @return The distributionSettings.
*/
com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings();
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder();
/**
*
* Auto deletes the member after `autoDeleteDaysAfterExpiry` days.
*
*
* uint32 autoDeleteDaysAfterExpiry = 8;
* @return The autoDeleteDaysAfterExpiry.
*/
int getAutoDeleteDaysAfterExpiry();
/**
*
* Sets how many days before expiry to send a reminder lockscreen message to the member.
*
*
* uint32 autoReminderDaysBeforeExpiry = 9;
* @return The autoReminderDaysBeforeExpiry.
*/
int getAutoReminderDaysBeforeExpiry();
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @return The expiryMessage.
*/
java.lang.String getExpiryMessage();
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @return The bytes for expiryMessage.
*/
com.google.protobuf.ByteString
getExpiryMessageBytes();
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
* @return Whether the localizedExpiryMessage field is set.
*/
boolean hasLocalizedExpiryMessage();
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
* @return The localizedExpiryMessage.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedExpiryMessage();
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedExpiryMessageOrBuilder();
/**
*
* Auto deletes the member `autoDeleteDaysAfterNotInstalling` days after the card has not been installed.
*
*
* uint32 autoDeleteDaysAfterNotInstalling = 12;
* @return The autoDeleteDaysAfterNotInstalling.
*/
int getAutoDeleteDaysAfterNotInstalling();
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
int getCallbacksCount();
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
boolean containsCallbacks(
int key);
/**
* Use {@link #getCallbacksMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getCallbacks();
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
java.util.Map
getCallbacksMap();
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
com.passkit.grpc.CallbackOuterClass.Callback getCallbacksOrDefault(
int key,
com.passkit.grpc.CallbackOuterClass.Callback defaultValue);
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
com.passkit.grpc.CallbackOuterClass.Callback getCallbacksOrThrow(
int key);
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
* @return Whether the pointsType field is set.
*/
boolean hasPointsType();
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
* @return The pointsType.
*/
com.passkit.grpc.Members.ProgramOuterClass.PointsType getPointsType();
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder getPointsTypeOrBuilder();
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
* @return Whether the secondaryPointsType field is set.
*/
boolean hasSecondaryPointsType();
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
* @return The secondaryPointsType.
*/
com.passkit.grpc.Members.ProgramOuterClass.PointsType getSecondaryPointsType();
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder getSecondaryPointsTypeOrBuilder();
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
* @return Whether the metrics field is set.
*/
boolean hasMetrics();
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
* @return The metrics.
*/
com.passkit.grpc.MetricsOuterClass.Metrics getMetrics();
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder getMetricsOrBuilder();
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @return A list containing the metaFieldsList.
*/
java.util.List
getMetaFieldsListList();
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @return The count of metaFieldsList.
*/
int getMetaFieldsListCount();
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param index The index of the element to return.
* @return The metaFieldsList at the given index.
*/
java.lang.String getMetaFieldsList(int index);
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param index The index of the value to return.
* @return The bytes of the metaFieldsList at the given index.
*/
com.google.protobuf.ByteString
getMetaFieldsListBytes(int index);
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
* @return Whether the created field is set.
*/
boolean hasCreated();
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
* @return The created.
*/
com.google.protobuf.Timestamp getCreated();
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder();
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
* @return Whether the updated field is set.
*/
boolean hasUpdated();
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
* @return The updated.
*/
com.google.protobuf.Timestamp getUpdated();
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder();
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @return The enum numeric value on the wire for profileImageSettings.
*/
int getProfileImageSettingsValue();
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @return The profileImageSettings.
*/
com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting getProfileImageSettings();
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
* @return Whether the applyFieldToExternalIdOnEnrol field is set.
*/
boolean hasApplyFieldToExternalIdOnEnrol();
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
* @return The applyFieldToExternalIdOnEnrol.
*/
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId getApplyFieldToExternalIdOnEnrol();
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalIdOrBuilder getApplyFieldToExternalIdOnEnrolOrBuilder();
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
* @return Whether the eventCaptureSettings field is set.
*/
boolean hasEventCaptureSettings();
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
* @return The eventCaptureSettings.
*/
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings getEventCaptureSettings();
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettingsOrBuilder getEventCaptureSettingsOrBuilder();
}
/**
*
* The Program Details
*
*
* Protobuf type {@code members.Program}
*/
public static final class Program extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:members.Program)
ProgramOrBuilder {
private static final long serialVersionUID = 0L;
// Use Program.newBuilder() to construct.
private Program(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Program() {
id_ = "";
name_ = "";
status_ = java.util.Collections.emptyList();
passTypeIdentifier_ = "";
expiryMessage_ = "";
metaFieldsList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
profileImageSettings_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Program();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Program(
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();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedName_ != null) {
subBuilder = localizedName_.toBuilder();
}
localizedName_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedName_);
localizedName_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
status_.add(rawValue);
break;
}
case 34: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
status_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 42: {
com.passkit.grpc.Billing.Quota.Builder subBuilder = null;
if (quota_ != null) {
subBuilder = quota_.toBuilder();
}
quota_ = input.readMessage(com.passkit.grpc.Billing.Quota.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(quota_);
quota_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
passTypeIdentifier_ = s;
break;
}
case 58: {
com.passkit.grpc.Distribution.DistributionSettings.Builder subBuilder = null;
if (distributionSettings_ != null) {
subBuilder = distributionSettings_.toBuilder();
}
distributionSettings_ = input.readMessage(com.passkit.grpc.Distribution.DistributionSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(distributionSettings_);
distributionSettings_ = subBuilder.buildPartial();
}
break;
}
case 64: {
autoDeleteDaysAfterExpiry_ = input.readUInt32();
break;
}
case 72: {
autoReminderDaysBeforeExpiry_ = input.readUInt32();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
expiryMessage_ = s;
break;
}
case 90: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedExpiryMessage_ != null) {
subBuilder = localizedExpiryMessage_.toBuilder();
}
localizedExpiryMessage_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedExpiryMessage_);
localizedExpiryMessage_ = subBuilder.buildPartial();
}
break;
}
case 96: {
autoDeleteDaysAfterNotInstalling_ = input.readUInt32();
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
callbacks_ = com.google.protobuf.MapField.newMapField(
CallbacksDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
callbacks__ = input.readMessage(
CallbacksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
callbacks_.getMutableMap().put(
callbacks__.getKey(), callbacks__.getValue());
break;
}
case 130: {
com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder subBuilder = null;
if (pointsType_ != null) {
subBuilder = pointsType_.toBuilder();
}
pointsType_ = input.readMessage(com.passkit.grpc.Members.ProgramOuterClass.PointsType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pointsType_);
pointsType_ = subBuilder.buildPartial();
}
break;
}
case 138: {
com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder subBuilder = null;
if (secondaryPointsType_ != null) {
subBuilder = secondaryPointsType_.toBuilder();
}
secondaryPointsType_ = input.readMessage(com.passkit.grpc.Members.ProgramOuterClass.PointsType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(secondaryPointsType_);
secondaryPointsType_ = subBuilder.buildPartial();
}
break;
}
case 154: {
com.passkit.grpc.MetricsOuterClass.Metrics.Builder subBuilder = null;
if (metrics_ != null) {
subBuilder = metrics_.toBuilder();
}
metrics_ = input.readMessage(com.passkit.grpc.MetricsOuterClass.Metrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metrics_);
metrics_ = subBuilder.buildPartial();
}
break;
}
case 162: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
metaFieldsList_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
metaFieldsList_.add(s);
break;
}
case 170: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (created_ != null) {
subBuilder = created_.toBuilder();
}
created_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(created_);
created_ = subBuilder.buildPartial();
}
break;
}
case 178: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (updated_ != null) {
subBuilder = updated_.toBuilder();
}
updated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updated_);
updated_ = subBuilder.buildPartial();
}
break;
}
case 184: {
int rawValue = input.readEnum();
profileImageSettings_ = rawValue;
break;
}
case 194: {
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder subBuilder = null;
if (applyFieldToExternalIdOnEnrol_ != null) {
subBuilder = applyFieldToExternalIdOnEnrol_.toBuilder();
}
applyFieldToExternalIdOnEnrol_ = input.readMessage(com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applyFieldToExternalIdOnEnrol_);
applyFieldToExternalIdOnEnrol_ = subBuilder.buildPartial();
}
break;
}
case 202: {
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder subBuilder = null;
if (eventCaptureSettings_ != null) {
subBuilder = eventCaptureSettings_.toBuilder();
}
eventCaptureSettings_ = input.readMessage(com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eventCaptureSettings_);
eventCaptureSettings_ = subBuilder.buildPartial();
}
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)) {
status_ = java.util.Collections.unmodifiableList(status_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
metaFieldsList_ = metaFieldsList_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_Program_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 14:
return internalGetCallbacks();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_Program_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.Program.class, com.passkit.grpc.Members.ProgramOuterClass.Program.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* PassKit generated program id (22 characters).
*
*
* 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;
}
}
/**
*
* PassKit generated program id (22 characters).
*
*
* 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;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDNAME_FIELD_NUMBER = 3;
private com.passkit.grpc.Localization.LocalizedString localizedName_;
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
* @return Whether the localizedName field is set.
*/
@java.lang.Override
public boolean hasLocalizedName() {
return localizedName_ != null;
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
* @return The localizedName.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedName() {
return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_;
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder() {
return getLocalizedName();
}
public static final int STATUS_FIELD_NUMBER = 4;
private java.util.List status_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus> status_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>() {
public com.passkit.grpc.ProjectOuterClass.ProjectStatus convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.ProjectOuterClass.ProjectStatus result = com.passkit.grpc.ProjectOuterClass.ProjectStatus.valueOf(from);
return result == null ? com.passkit.grpc.ProjectOuterClass.ProjectStatus.UNRECOGNIZED : result;
}
};
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return A list containing the status.
*/
@java.lang.Override
public java.util.List getStatusList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_);
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return The count of status.
*/
@java.lang.Override
public int getStatusCount() {
return status_.size();
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index of the element to return.
* @return The status at the given index.
*/
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) {
return status_converter_.convert(status_.get(index));
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return A list containing the enum numeric values on the wire for status.
*/
@java.lang.Override
public java.util.List
getStatusValueList() {
return status_;
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
@java.lang.Override
public int getStatusValue(int index) {
return status_.get(index);
}
private int statusMemoizedSerializedSize;
public static final int QUOTA_FIELD_NUMBER = 5;
private com.passkit.grpc.Billing.Quota quota_;
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
* @return Whether the quota field is set.
*/
@java.lang.Override
public boolean hasQuota() {
return quota_ != null;
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
* @return The quota.
*/
@java.lang.Override
public com.passkit.grpc.Billing.Quota getQuota() {
return quota_ == null ? com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_;
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
@java.lang.Override
public com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder() {
return getQuota();
}
public static final int PASSTYPEIDENTIFIER_FIELD_NUMBER = 6;
private volatile java.lang.Object passTypeIdentifier_;
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @return The passTypeIdentifier.
*/
@java.lang.Override
public java.lang.String getPassTypeIdentifier() {
java.lang.Object ref = passTypeIdentifier_;
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();
passTypeIdentifier_ = s;
return s;
}
}
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @return The bytes for passTypeIdentifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPassTypeIdentifierBytes() {
java.lang.Object ref = passTypeIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passTypeIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISTRIBUTIONSETTINGS_FIELD_NUMBER = 7;
private com.passkit.grpc.Distribution.DistributionSettings distributionSettings_;
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
* @return Whether the distributionSettings field is set.
*/
@java.lang.Override
public boolean hasDistributionSettings() {
return distributionSettings_ != null;
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
* @return The distributionSettings.
*/
@java.lang.Override
public com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings() {
return distributionSettings_ == null ? com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_;
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
@java.lang.Override
public com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder() {
return getDistributionSettings();
}
public static final int AUTODELETEDAYSAFTEREXPIRY_FIELD_NUMBER = 8;
private int autoDeleteDaysAfterExpiry_;
/**
*
* Auto deletes the member after `autoDeleteDaysAfterExpiry` days.
*
*
* uint32 autoDeleteDaysAfterExpiry = 8;
* @return The autoDeleteDaysAfterExpiry.
*/
@java.lang.Override
public int getAutoDeleteDaysAfterExpiry() {
return autoDeleteDaysAfterExpiry_;
}
public static final int AUTOREMINDERDAYSBEFOREEXPIRY_FIELD_NUMBER = 9;
private int autoReminderDaysBeforeExpiry_;
/**
*
* Sets how many days before expiry to send a reminder lockscreen message to the member.
*
*
* uint32 autoReminderDaysBeforeExpiry = 9;
* @return The autoReminderDaysBeforeExpiry.
*/
@java.lang.Override
public int getAutoReminderDaysBeforeExpiry() {
return autoReminderDaysBeforeExpiry_;
}
public static final int EXPIRYMESSAGE_FIELD_NUMBER = 10;
private volatile java.lang.Object expiryMessage_;
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @return The expiryMessage.
*/
@java.lang.Override
public java.lang.String getExpiryMessage() {
java.lang.Object ref = expiryMessage_;
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();
expiryMessage_ = s;
return s;
}
}
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @return The bytes for expiryMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpiryMessageBytes() {
java.lang.Object ref = expiryMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expiryMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDEXPIRYMESSAGE_FIELD_NUMBER = 11;
private com.passkit.grpc.Localization.LocalizedString localizedExpiryMessage_;
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
* @return Whether the localizedExpiryMessage field is set.
*/
@java.lang.Override
public boolean hasLocalizedExpiryMessage() {
return localizedExpiryMessage_ != null;
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
* @return The localizedExpiryMessage.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedExpiryMessage() {
return localizedExpiryMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedExpiryMessage_;
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedExpiryMessageOrBuilder() {
return getLocalizedExpiryMessage();
}
public static final int AUTODELETEDAYSAFTERNOTINSTALLING_FIELD_NUMBER = 12;
private int autoDeleteDaysAfterNotInstalling_;
/**
*
* Auto deletes the member `autoDeleteDaysAfterNotInstalling` days after the card has not been installed.
*
*
* uint32 autoDeleteDaysAfterNotInstalling = 12;
* @return The autoDeleteDaysAfterNotInstalling.
*/
@java.lang.Override
public int getAutoDeleteDaysAfterNotInstalling() {
return autoDeleteDaysAfterNotInstalling_;
}
public static final int CALLBACKS_FIELD_NUMBER = 14;
private static final class CallbacksDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, com.passkit.grpc.CallbackOuterClass.Callback> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_Program_CallbacksEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.passkit.grpc.CallbackOuterClass.Callback.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.Integer, com.passkit.grpc.CallbackOuterClass.Callback> callbacks_;
private com.google.protobuf.MapField
internalGetCallbacks() {
if (callbacks_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CallbacksDefaultEntryHolder.defaultEntry);
}
return callbacks_;
}
public int getCallbacksCount() {
return internalGetCallbacks().getMap().size();
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public boolean containsCallbacks(
int key) {
return internalGetCallbacks().getMap().containsKey(key);
}
/**
* Use {@link #getCallbacksMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getCallbacks() {
return getCallbacksMap();
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public java.util.Map getCallbacksMap() {
return internalGetCallbacks().getMap();
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public com.passkit.grpc.CallbackOuterClass.Callback getCallbacksOrDefault(
int key,
com.passkit.grpc.CallbackOuterClass.Callback defaultValue) {
java.util.Map map =
internalGetCallbacks().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public com.passkit.grpc.CallbackOuterClass.Callback getCallbacksOrThrow(
int key) {
java.util.Map map =
internalGetCallbacks().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int POINTSTYPE_FIELD_NUMBER = 16;
private com.passkit.grpc.Members.ProgramOuterClass.PointsType pointsType_;
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
* @return Whether the pointsType field is set.
*/
@java.lang.Override
public boolean hasPointsType() {
return pointsType_ != null;
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
* @return The pointsType.
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.PointsType getPointsType() {
return pointsType_ == null ? com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance() : pointsType_;
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder getPointsTypeOrBuilder() {
return getPointsType();
}
public static final int SECONDARYPOINTSTYPE_FIELD_NUMBER = 17;
private com.passkit.grpc.Members.ProgramOuterClass.PointsType secondaryPointsType_;
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
* @return Whether the secondaryPointsType field is set.
*/
@java.lang.Override
public boolean hasSecondaryPointsType() {
return secondaryPointsType_ != null;
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
* @return The secondaryPointsType.
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.PointsType getSecondaryPointsType() {
return secondaryPointsType_ == null ? com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance() : secondaryPointsType_;
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder getSecondaryPointsTypeOrBuilder() {
return getSecondaryPointsType();
}
public static final int METRICS_FIELD_NUMBER = 19;
private com.passkit.grpc.MetricsOuterClass.Metrics metrics_;
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
* @return Whether the metrics field is set.
*/
@java.lang.Override
public boolean hasMetrics() {
return metrics_ != null;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
* @return The metrics.
*/
@java.lang.Override
public com.passkit.grpc.MetricsOuterClass.Metrics getMetrics() {
return metrics_ == null ? com.passkit.grpc.MetricsOuterClass.Metrics.getDefaultInstance() : metrics_;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
@java.lang.Override
public com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder getMetricsOrBuilder() {
return getMetrics();
}
public static final int METAFIELDSLIST_FIELD_NUMBER = 20;
private com.google.protobuf.LazyStringList metaFieldsList_;
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @return A list containing the metaFieldsList.
*/
public com.google.protobuf.ProtocolStringList
getMetaFieldsListList() {
return metaFieldsList_;
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @return The count of metaFieldsList.
*/
public int getMetaFieldsListCount() {
return metaFieldsList_.size();
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param index The index of the element to return.
* @return The metaFieldsList at the given index.
*/
public java.lang.String getMetaFieldsList(int index) {
return metaFieldsList_.get(index);
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param index The index of the value to return.
* @return The bytes of the metaFieldsList at the given index.
*/
public com.google.protobuf.ByteString
getMetaFieldsListBytes(int index) {
return metaFieldsList_.getByteString(index);
}
public static final int CREATED_FIELD_NUMBER = 21;
private com.google.protobuf.Timestamp created_;
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
* @return Whether the created field is set.
*/
@java.lang.Override
public boolean hasCreated() {
return created_ != null;
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
* @return The created.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreated() {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
return getCreated();
}
public static final int UPDATED_FIELD_NUMBER = 22;
private com.google.protobuf.Timestamp updated_;
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
* @return Whether the updated field is set.
*/
@java.lang.Override
public boolean hasUpdated() {
return updated_ != null;
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
* @return The updated.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdated() {
return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
return getUpdated();
}
public static final int PROFILEIMAGESETTINGS_FIELD_NUMBER = 23;
private int profileImageSettings_;
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @return The enum numeric value on the wire for profileImageSettings.
*/
@java.lang.Override public int getProfileImageSettingsValue() {
return profileImageSettings_;
}
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @return The profileImageSettings.
*/
@java.lang.Override public com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting getProfileImageSettings() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting result = com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting.valueOf(profileImageSettings_);
return result == null ? com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting.UNRECOGNIZED : result;
}
public static final int APPLYFIELDTOEXTERNALIDONENROL_FIELD_NUMBER = 24;
private com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId applyFieldToExternalIdOnEnrol_;
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
* @return Whether the applyFieldToExternalIdOnEnrol field is set.
*/
@java.lang.Override
public boolean hasApplyFieldToExternalIdOnEnrol() {
return applyFieldToExternalIdOnEnrol_ != null;
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
* @return The applyFieldToExternalIdOnEnrol.
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId getApplyFieldToExternalIdOnEnrol() {
return applyFieldToExternalIdOnEnrol_ == null ? com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.getDefaultInstance() : applyFieldToExternalIdOnEnrol_;
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalIdOrBuilder getApplyFieldToExternalIdOnEnrolOrBuilder() {
return getApplyFieldToExternalIdOnEnrol();
}
public static final int EVENTCAPTURESETTINGS_FIELD_NUMBER = 25;
private com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings eventCaptureSettings_;
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
* @return Whether the eventCaptureSettings field is set.
*/
@java.lang.Override
public boolean hasEventCaptureSettings() {
return eventCaptureSettings_ != null;
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
* @return The eventCaptureSettings.
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings getEventCaptureSettings() {
return eventCaptureSettings_ == null ? com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.getDefaultInstance() : eventCaptureSettings_;
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettingsOrBuilder getEventCaptureSettingsOrBuilder() {
return getEventCaptureSettings();
}
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 {
getSerializedSize();
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (localizedName_ != null) {
output.writeMessage(3, getLocalizedName());
}
if (getStatusList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(statusMemoizedSerializedSize);
}
for (int i = 0; i < status_.size(); i++) {
output.writeEnumNoTag(status_.get(i));
}
if (quota_ != null) {
output.writeMessage(5, getQuota());
}
if (!getPassTypeIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, passTypeIdentifier_);
}
if (distributionSettings_ != null) {
output.writeMessage(7, getDistributionSettings());
}
if (autoDeleteDaysAfterExpiry_ != 0) {
output.writeUInt32(8, autoDeleteDaysAfterExpiry_);
}
if (autoReminderDaysBeforeExpiry_ != 0) {
output.writeUInt32(9, autoReminderDaysBeforeExpiry_);
}
if (!getExpiryMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, expiryMessage_);
}
if (localizedExpiryMessage_ != null) {
output.writeMessage(11, getLocalizedExpiryMessage());
}
if (autoDeleteDaysAfterNotInstalling_ != 0) {
output.writeUInt32(12, autoDeleteDaysAfterNotInstalling_);
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetCallbacks(),
CallbacksDefaultEntryHolder.defaultEntry,
14);
if (pointsType_ != null) {
output.writeMessage(16, getPointsType());
}
if (secondaryPointsType_ != null) {
output.writeMessage(17, getSecondaryPointsType());
}
if (metrics_ != null) {
output.writeMessage(19, getMetrics());
}
for (int i = 0; i < metaFieldsList_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, metaFieldsList_.getRaw(i));
}
if (created_ != null) {
output.writeMessage(21, getCreated());
}
if (updated_ != null) {
output.writeMessage(22, getUpdated());
}
if (profileImageSettings_ != com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting.PROFILE_IMAGE_NONE.getNumber()) {
output.writeEnum(23, profileImageSettings_);
}
if (applyFieldToExternalIdOnEnrol_ != null) {
output.writeMessage(24, getApplyFieldToExternalIdOnEnrol());
}
if (eventCaptureSettings_ != null) {
output.writeMessage(25, getEventCaptureSettings());
}
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_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (localizedName_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocalizedName());
}
{
int dataSize = 0;
for (int i = 0; i < status_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(status_.get(i));
}
size += dataSize;
if (!getStatusList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}statusMemoizedSerializedSize = dataSize;
}
if (quota_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getQuota());
}
if (!getPassTypeIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, passTypeIdentifier_);
}
if (distributionSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getDistributionSettings());
}
if (autoDeleteDaysAfterExpiry_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, autoDeleteDaysAfterExpiry_);
}
if (autoReminderDaysBeforeExpiry_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, autoReminderDaysBeforeExpiry_);
}
if (!getExpiryMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, expiryMessage_);
}
if (localizedExpiryMessage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getLocalizedExpiryMessage());
}
if (autoDeleteDaysAfterNotInstalling_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, autoDeleteDaysAfterNotInstalling_);
}
for (java.util.Map.Entry entry
: internalGetCallbacks().getMap().entrySet()) {
com.google.protobuf.MapEntry
callbacks__ = CallbacksDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, callbacks__);
}
if (pointsType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getPointsType());
}
if (secondaryPointsType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getSecondaryPointsType());
}
if (metrics_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getMetrics());
}
{
int dataSize = 0;
for (int i = 0; i < metaFieldsList_.size(); i++) {
dataSize += computeStringSizeNoTag(metaFieldsList_.getRaw(i));
}
size += dataSize;
size += 2 * getMetaFieldsListList().size();
}
if (created_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getCreated());
}
if (updated_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getUpdated());
}
if (profileImageSettings_ != com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting.PROFILE_IMAGE_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(23, profileImageSettings_);
}
if (applyFieldToExternalIdOnEnrol_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getApplyFieldToExternalIdOnEnrol());
}
if (eventCaptureSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, getEventCaptureSettings());
}
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.Members.ProgramOuterClass.Program)) {
return super.equals(obj);
}
com.passkit.grpc.Members.ProgramOuterClass.Program other = (com.passkit.grpc.Members.ProgramOuterClass.Program) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (hasLocalizedName() != other.hasLocalizedName()) return false;
if (hasLocalizedName()) {
if (!getLocalizedName()
.equals(other.getLocalizedName())) return false;
}
if (!status_.equals(other.status_)) return false;
if (hasQuota() != other.hasQuota()) return false;
if (hasQuota()) {
if (!getQuota()
.equals(other.getQuota())) return false;
}
if (!getPassTypeIdentifier()
.equals(other.getPassTypeIdentifier())) return false;
if (hasDistributionSettings() != other.hasDistributionSettings()) return false;
if (hasDistributionSettings()) {
if (!getDistributionSettings()
.equals(other.getDistributionSettings())) return false;
}
if (getAutoDeleteDaysAfterExpiry()
!= other.getAutoDeleteDaysAfterExpiry()) return false;
if (getAutoReminderDaysBeforeExpiry()
!= other.getAutoReminderDaysBeforeExpiry()) return false;
if (!getExpiryMessage()
.equals(other.getExpiryMessage())) return false;
if (hasLocalizedExpiryMessage() != other.hasLocalizedExpiryMessage()) return false;
if (hasLocalizedExpiryMessage()) {
if (!getLocalizedExpiryMessage()
.equals(other.getLocalizedExpiryMessage())) return false;
}
if (getAutoDeleteDaysAfterNotInstalling()
!= other.getAutoDeleteDaysAfterNotInstalling()) return false;
if (!internalGetCallbacks().equals(
other.internalGetCallbacks())) return false;
if (hasPointsType() != other.hasPointsType()) return false;
if (hasPointsType()) {
if (!getPointsType()
.equals(other.getPointsType())) return false;
}
if (hasSecondaryPointsType() != other.hasSecondaryPointsType()) return false;
if (hasSecondaryPointsType()) {
if (!getSecondaryPointsType()
.equals(other.getSecondaryPointsType())) return false;
}
if (hasMetrics() != other.hasMetrics()) return false;
if (hasMetrics()) {
if (!getMetrics()
.equals(other.getMetrics())) return false;
}
if (!getMetaFieldsListList()
.equals(other.getMetaFieldsListList())) return false;
if (hasCreated() != other.hasCreated()) return false;
if (hasCreated()) {
if (!getCreated()
.equals(other.getCreated())) return false;
}
if (hasUpdated() != other.hasUpdated()) return false;
if (hasUpdated()) {
if (!getUpdated()
.equals(other.getUpdated())) return false;
}
if (profileImageSettings_ != other.profileImageSettings_) return false;
if (hasApplyFieldToExternalIdOnEnrol() != other.hasApplyFieldToExternalIdOnEnrol()) return false;
if (hasApplyFieldToExternalIdOnEnrol()) {
if (!getApplyFieldToExternalIdOnEnrol()
.equals(other.getApplyFieldToExternalIdOnEnrol())) return false;
}
if (hasEventCaptureSettings() != other.hasEventCaptureSettings()) return false;
if (hasEventCaptureSettings()) {
if (!getEventCaptureSettings()
.equals(other.getEventCaptureSettings())) 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 = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasLocalizedName()) {
hash = (37 * hash) + LOCALIZEDNAME_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedName().hashCode();
}
if (getStatusCount() > 0) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_.hashCode();
}
if (hasQuota()) {
hash = (37 * hash) + QUOTA_FIELD_NUMBER;
hash = (53 * hash) + getQuota().hashCode();
}
hash = (37 * hash) + PASSTYPEIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getPassTypeIdentifier().hashCode();
if (hasDistributionSettings()) {
hash = (37 * hash) + DISTRIBUTIONSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getDistributionSettings().hashCode();
}
hash = (37 * hash) + AUTODELETEDAYSAFTEREXPIRY_FIELD_NUMBER;
hash = (53 * hash) + getAutoDeleteDaysAfterExpiry();
hash = (37 * hash) + AUTOREMINDERDAYSBEFOREEXPIRY_FIELD_NUMBER;
hash = (53 * hash) + getAutoReminderDaysBeforeExpiry();
hash = (37 * hash) + EXPIRYMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getExpiryMessage().hashCode();
if (hasLocalizedExpiryMessage()) {
hash = (37 * hash) + LOCALIZEDEXPIRYMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedExpiryMessage().hashCode();
}
hash = (37 * hash) + AUTODELETEDAYSAFTERNOTINSTALLING_FIELD_NUMBER;
hash = (53 * hash) + getAutoDeleteDaysAfterNotInstalling();
if (!internalGetCallbacks().getMap().isEmpty()) {
hash = (37 * hash) + CALLBACKS_FIELD_NUMBER;
hash = (53 * hash) + internalGetCallbacks().hashCode();
}
if (hasPointsType()) {
hash = (37 * hash) + POINTSTYPE_FIELD_NUMBER;
hash = (53 * hash) + getPointsType().hashCode();
}
if (hasSecondaryPointsType()) {
hash = (37 * hash) + SECONDARYPOINTSTYPE_FIELD_NUMBER;
hash = (53 * hash) + getSecondaryPointsType().hashCode();
}
if (hasMetrics()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
if (getMetaFieldsListCount() > 0) {
hash = (37 * hash) + METAFIELDSLIST_FIELD_NUMBER;
hash = (53 * hash) + getMetaFieldsListList().hashCode();
}
if (hasCreated()) {
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + getCreated().hashCode();
}
if (hasUpdated()) {
hash = (37 * hash) + UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getUpdated().hashCode();
}
hash = (37 * hash) + PROFILEIMAGESETTINGS_FIELD_NUMBER;
hash = (53 * hash) + profileImageSettings_;
if (hasApplyFieldToExternalIdOnEnrol()) {
hash = (37 * hash) + APPLYFIELDTOEXTERNALIDONENROL_FIELD_NUMBER;
hash = (53 * hash) + getApplyFieldToExternalIdOnEnrol().hashCode();
}
if (hasEventCaptureSettings()) {
hash = (37 * hash) + EVENTCAPTURESETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getEventCaptureSettings().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program 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.Members.ProgramOuterClass.Program parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program 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.Members.ProgramOuterClass.Program parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program 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.Members.ProgramOuterClass.Program parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program 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.Members.ProgramOuterClass.Program parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program 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.Members.ProgramOuterClass.Program prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The Program Details
*
*
* Protobuf type {@code members.Program}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:members.Program)
com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_Program_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 14:
return internalGetCallbacks();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 14:
return internalGetMutableCallbacks();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_Program_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.Program.class, com.passkit.grpc.Members.ProgramOuterClass.Program.Builder.class);
}
// Construct using com.passkit.grpc.Members.ProgramOuterClass.Program.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_ = "";
name_ = "";
if (localizedNameBuilder_ == null) {
localizedName_ = null;
} else {
localizedName_ = null;
localizedNameBuilder_ = null;
}
status_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (quotaBuilder_ == null) {
quota_ = null;
} else {
quota_ = null;
quotaBuilder_ = null;
}
passTypeIdentifier_ = "";
if (distributionSettingsBuilder_ == null) {
distributionSettings_ = null;
} else {
distributionSettings_ = null;
distributionSettingsBuilder_ = null;
}
autoDeleteDaysAfterExpiry_ = 0;
autoReminderDaysBeforeExpiry_ = 0;
expiryMessage_ = "";
if (localizedExpiryMessageBuilder_ == null) {
localizedExpiryMessage_ = null;
} else {
localizedExpiryMessage_ = null;
localizedExpiryMessageBuilder_ = null;
}
autoDeleteDaysAfterNotInstalling_ = 0;
internalGetMutableCallbacks().clear();
if (pointsTypeBuilder_ == null) {
pointsType_ = null;
} else {
pointsType_ = null;
pointsTypeBuilder_ = null;
}
if (secondaryPointsTypeBuilder_ == null) {
secondaryPointsType_ = null;
} else {
secondaryPointsType_ = null;
secondaryPointsTypeBuilder_ = null;
}
if (metricsBuilder_ == null) {
metrics_ = null;
} else {
metrics_ = null;
metricsBuilder_ = null;
}
metaFieldsList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
if (createdBuilder_ == null) {
created_ = null;
} else {
created_ = null;
createdBuilder_ = null;
}
if (updatedBuilder_ == null) {
updated_ = null;
} else {
updated_ = null;
updatedBuilder_ = null;
}
profileImageSettings_ = 0;
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
applyFieldToExternalIdOnEnrol_ = null;
} else {
applyFieldToExternalIdOnEnrol_ = null;
applyFieldToExternalIdOnEnrolBuilder_ = null;
}
if (eventCaptureSettingsBuilder_ == null) {
eventCaptureSettings_ = null;
} else {
eventCaptureSettings_ = null;
eventCaptureSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_Program_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.Program getDefaultInstanceForType() {
return com.passkit.grpc.Members.ProgramOuterClass.Program.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.Program build() {
com.passkit.grpc.Members.ProgramOuterClass.Program result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.Program buildPartial() {
com.passkit.grpc.Members.ProgramOuterClass.Program result = new com.passkit.grpc.Members.ProgramOuterClass.Program(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.name_ = name_;
if (localizedNameBuilder_ == null) {
result.localizedName_ = localizedName_;
} else {
result.localizedName_ = localizedNameBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
status_ = java.util.Collections.unmodifiableList(status_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.status_ = status_;
if (quotaBuilder_ == null) {
result.quota_ = quota_;
} else {
result.quota_ = quotaBuilder_.build();
}
result.passTypeIdentifier_ = passTypeIdentifier_;
if (distributionSettingsBuilder_ == null) {
result.distributionSettings_ = distributionSettings_;
} else {
result.distributionSettings_ = distributionSettingsBuilder_.build();
}
result.autoDeleteDaysAfterExpiry_ = autoDeleteDaysAfterExpiry_;
result.autoReminderDaysBeforeExpiry_ = autoReminderDaysBeforeExpiry_;
result.expiryMessage_ = expiryMessage_;
if (localizedExpiryMessageBuilder_ == null) {
result.localizedExpiryMessage_ = localizedExpiryMessage_;
} else {
result.localizedExpiryMessage_ = localizedExpiryMessageBuilder_.build();
}
result.autoDeleteDaysAfterNotInstalling_ = autoDeleteDaysAfterNotInstalling_;
result.callbacks_ = internalGetCallbacks();
result.callbacks_.makeImmutable();
if (pointsTypeBuilder_ == null) {
result.pointsType_ = pointsType_;
} else {
result.pointsType_ = pointsTypeBuilder_.build();
}
if (secondaryPointsTypeBuilder_ == null) {
result.secondaryPointsType_ = secondaryPointsType_;
} else {
result.secondaryPointsType_ = secondaryPointsTypeBuilder_.build();
}
if (metricsBuilder_ == null) {
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.build();
}
if (((bitField0_ & 0x00000004) != 0)) {
metaFieldsList_ = metaFieldsList_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.metaFieldsList_ = metaFieldsList_;
if (createdBuilder_ == null) {
result.created_ = created_;
} else {
result.created_ = createdBuilder_.build();
}
if (updatedBuilder_ == null) {
result.updated_ = updated_;
} else {
result.updated_ = updatedBuilder_.build();
}
result.profileImageSettings_ = profileImageSettings_;
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
result.applyFieldToExternalIdOnEnrol_ = applyFieldToExternalIdOnEnrol_;
} else {
result.applyFieldToExternalIdOnEnrol_ = applyFieldToExternalIdOnEnrolBuilder_.build();
}
if (eventCaptureSettingsBuilder_ == null) {
result.eventCaptureSettings_ = eventCaptureSettings_;
} else {
result.eventCaptureSettings_ = eventCaptureSettingsBuilder_.build();
}
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.Members.ProgramOuterClass.Program) {
return mergeFrom((com.passkit.grpc.Members.ProgramOuterClass.Program)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Members.ProgramOuterClass.Program other) {
if (other == com.passkit.grpc.Members.ProgramOuterClass.Program.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasLocalizedName()) {
mergeLocalizedName(other.getLocalizedName());
}
if (!other.status_.isEmpty()) {
if (status_.isEmpty()) {
status_ = other.status_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatusIsMutable();
status_.addAll(other.status_);
}
onChanged();
}
if (other.hasQuota()) {
mergeQuota(other.getQuota());
}
if (!other.getPassTypeIdentifier().isEmpty()) {
passTypeIdentifier_ = other.passTypeIdentifier_;
onChanged();
}
if (other.hasDistributionSettings()) {
mergeDistributionSettings(other.getDistributionSettings());
}
if (other.getAutoDeleteDaysAfterExpiry() != 0) {
setAutoDeleteDaysAfterExpiry(other.getAutoDeleteDaysAfterExpiry());
}
if (other.getAutoReminderDaysBeforeExpiry() != 0) {
setAutoReminderDaysBeforeExpiry(other.getAutoReminderDaysBeforeExpiry());
}
if (!other.getExpiryMessage().isEmpty()) {
expiryMessage_ = other.expiryMessage_;
onChanged();
}
if (other.hasLocalizedExpiryMessage()) {
mergeLocalizedExpiryMessage(other.getLocalizedExpiryMessage());
}
if (other.getAutoDeleteDaysAfterNotInstalling() != 0) {
setAutoDeleteDaysAfterNotInstalling(other.getAutoDeleteDaysAfterNotInstalling());
}
internalGetMutableCallbacks().mergeFrom(
other.internalGetCallbacks());
if (other.hasPointsType()) {
mergePointsType(other.getPointsType());
}
if (other.hasSecondaryPointsType()) {
mergeSecondaryPointsType(other.getSecondaryPointsType());
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
if (!other.metaFieldsList_.isEmpty()) {
if (metaFieldsList_.isEmpty()) {
metaFieldsList_ = other.metaFieldsList_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureMetaFieldsListIsMutable();
metaFieldsList_.addAll(other.metaFieldsList_);
}
onChanged();
}
if (other.hasCreated()) {
mergeCreated(other.getCreated());
}
if (other.hasUpdated()) {
mergeUpdated(other.getUpdated());
}
if (other.profileImageSettings_ != 0) {
setProfileImageSettingsValue(other.getProfileImageSettingsValue());
}
if (other.hasApplyFieldToExternalIdOnEnrol()) {
mergeApplyFieldToExternalIdOnEnrol(other.getApplyFieldToExternalIdOnEnrol());
}
if (other.hasEventCaptureSettings()) {
mergeEventCaptureSettings(other.getEventCaptureSettings());
}
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.Members.ProgramOuterClass.Program parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Members.ProgramOuterClass.Program) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* PassKit generated program id (22 characters).
*
*
* 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;
}
}
/**
*
* PassKit generated program id (22 characters).
*
*
* 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;
}
}
/**
*
* PassKit generated program id (22 characters).
*
*
* 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;
}
/**
*
* PassKit generated program id (22 characters).
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* PassKit generated program id (22 characters).
*
*
* 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;
}
private java.lang.Object name_ = "";
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the membership programs; will be shown on the enrolment page (if set) and issuer name.
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedName_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedNameBuilder_;
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
* @return Whether the localizedName field is set.
*/
public boolean hasLocalizedName() {
return localizedNameBuilder_ != null || localizedName_ != null;
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
* @return The localizedName.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedName() {
if (localizedNameBuilder_ == null) {
return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_;
} else {
return localizedNameBuilder_.getMessage();
}
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
public Builder setLocalizedName(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedName_ = value;
onChanged();
} else {
localizedNameBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
public Builder setLocalizedName(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedNameBuilder_ == null) {
localizedName_ = builderForValue.build();
onChanged();
} else {
localizedNameBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
public Builder mergeLocalizedName(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedNameBuilder_ == null) {
if (localizedName_ != null) {
localizedName_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedName_).mergeFrom(value).buildPartial();
} else {
localizedName_ = value;
}
onChanged();
} else {
localizedNameBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
public Builder clearLocalizedName() {
if (localizedNameBuilder_ == null) {
localizedName_ = null;
onChanged();
} else {
localizedName_ = null;
localizedNameBuilder_ = null;
}
return this;
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedNameBuilder() {
onChanged();
return getLocalizedNameFieldBuilder().getBuilder();
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder() {
if (localizedNameBuilder_ != null) {
return localizedNameBuilder_.getMessageOrBuilder();
} else {
return localizedName_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_;
}
}
/**
*
* Localized name of the membership program.
*
*
* .io.LocalizedString localizedName = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedNameFieldBuilder() {
if (localizedNameBuilder_ == null) {
localizedNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedName(),
getParentForChildren(),
isClean());
localizedName_ = null;
}
return localizedNameBuilder_;
}
private java.util.List status_ =
java.util.Collections.emptyList();
private void ensureStatusIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList(status_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return A list containing the status.
*/
public java.util.List getStatusList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_);
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return The count of status.
*/
public int getStatusCount() {
return status_.size();
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index of the element to return.
* @return The status at the given index.
*/
public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) {
return status_converter_.convert(status_.get(index));
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index to set the value at.
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
int index, com.passkit.grpc.ProjectOuterClass.ProjectStatus value) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param value The status to add.
* @return This builder for chaining.
*/
public Builder addStatus(com.passkit.grpc.ProjectOuterClass.ProjectStatus value) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param values The status to add.
* @return This builder for chaining.
*/
public Builder addAllStatus(
java.lang.Iterable extends com.passkit.grpc.ProjectOuterClass.ProjectStatus> values) {
ensureStatusIsMutable();
for (com.passkit.grpc.ProjectOuterClass.ProjectStatus value : values) {
status_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @return A list containing the enum numeric values on the wire for status.
*/
public java.util.List
getStatusValueList() {
return java.util.Collections.unmodifiableList(status_);
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
public int getStatusValue(int index) {
return status_.get(index);
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
* @return This builder for chaining.
*/
public Builder setStatusValue(
int index, int value) {
ensureStatusIsMutable();
status_.set(index, value);
onChanged();
return this;
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param value The enum numeric value on the wire for status to add.
* @return This builder for chaining.
*/
public Builder addStatusValue(int value) {
ensureStatusIsMutable();
status_.add(value);
onChanged();
return this;
}
/**
*
* The program status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT.
*
*
* repeated .io.ProjectStatus status = 4;
* @param values The enum numeric values on the wire for status to add.
* @return This builder for chaining.
*/
public Builder addAllStatusValue(
java.lang.Iterable values) {
ensureStatusIsMutable();
for (int value : values) {
status_.add(value);
}
onChanged();
return this;
}
private com.passkit.grpc.Billing.Quota quota_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder> quotaBuilder_;
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
* @return Whether the quota field is set.
*/
public boolean hasQuota() {
return quotaBuilder_ != null || quota_ != null;
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
* @return The quota.
*/
public com.passkit.grpc.Billing.Quota getQuota() {
if (quotaBuilder_ == null) {
return quota_ == null ? com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_;
} else {
return quotaBuilder_.getMessage();
}
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
public Builder setQuota(com.passkit.grpc.Billing.Quota value) {
if (quotaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
quota_ = value;
onChanged();
} else {
quotaBuilder_.setMessage(value);
}
return this;
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
public Builder setQuota(
com.passkit.grpc.Billing.Quota.Builder builderForValue) {
if (quotaBuilder_ == null) {
quota_ = builderForValue.build();
onChanged();
} else {
quotaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
public Builder mergeQuota(com.passkit.grpc.Billing.Quota value) {
if (quotaBuilder_ == null) {
if (quota_ != null) {
quota_ =
com.passkit.grpc.Billing.Quota.newBuilder(quota_).mergeFrom(value).buildPartial();
} else {
quota_ = value;
}
onChanged();
} else {
quotaBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
public Builder clearQuota() {
if (quotaBuilder_ == null) {
quota_ = null;
onChanged();
} else {
quota_ = null;
quotaBuilder_ = null;
}
return this;
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
public com.passkit.grpc.Billing.Quota.Builder getQuotaBuilder() {
onChanged();
return getQuotaFieldBuilder().getBuilder();
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
public com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder() {
if (quotaBuilder_ != null) {
return quotaBuilder_.getMessageOrBuilder();
} else {
return quota_ == null ?
com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_;
}
}
/**
*
* The project quota.
*
*
* .io.Quota quota = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder>
getQuotaFieldBuilder() {
if (quotaBuilder_ == null) {
quotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder>(
getQuota(),
getParentForChildren(),
isClean());
quota_ = null;
}
return quotaBuilder_;
}
private java.lang.Object passTypeIdentifier_ = "";
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @return The passTypeIdentifier.
*/
public java.lang.String getPassTypeIdentifier() {
java.lang.Object ref = passTypeIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passTypeIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @return The bytes for passTypeIdentifier.
*/
public com.google.protobuf.ByteString
getPassTypeIdentifierBytes() {
java.lang.Object ref = passTypeIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passTypeIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @param value The passTypeIdentifier to set.
* @return This builder for chaining.
*/
public Builder setPassTypeIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passTypeIdentifier_ = value;
onChanged();
return this;
}
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @return This builder for chaining.
*/
public Builder clearPassTypeIdentifier() {
passTypeIdentifier_ = getDefaultInstance().getPassTypeIdentifier();
onChanged();
return this;
}
/**
*
* Leave empty for draft programs. Needs to be set for programs where status contains PROJECT_PUBLISHED.
*
*
* string passTypeIdentifier = 6;
* @param value The bytes for passTypeIdentifier to set.
* @return This builder for chaining.
*/
public Builder setPassTypeIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
passTypeIdentifier_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Distribution.DistributionSettings distributionSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder> distributionSettingsBuilder_;
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
* @return Whether the distributionSettings field is set.
*/
public boolean hasDistributionSettings() {
return distributionSettingsBuilder_ != null || distributionSettings_ != null;
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
* @return The distributionSettings.
*/
public com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings() {
if (distributionSettingsBuilder_ == null) {
return distributionSettings_ == null ? com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_;
} else {
return distributionSettingsBuilder_.getMessage();
}
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
public Builder setDistributionSettings(com.passkit.grpc.Distribution.DistributionSettings value) {
if (distributionSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
distributionSettings_ = value;
onChanged();
} else {
distributionSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
public Builder setDistributionSettings(
com.passkit.grpc.Distribution.DistributionSettings.Builder builderForValue) {
if (distributionSettingsBuilder_ == null) {
distributionSettings_ = builderForValue.build();
onChanged();
} else {
distributionSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
public Builder mergeDistributionSettings(com.passkit.grpc.Distribution.DistributionSettings value) {
if (distributionSettingsBuilder_ == null) {
if (distributionSettings_ != null) {
distributionSettings_ =
com.passkit.grpc.Distribution.DistributionSettings.newBuilder(distributionSettings_).mergeFrom(value).buildPartial();
} else {
distributionSettings_ = value;
}
onChanged();
} else {
distributionSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
public Builder clearDistributionSettings() {
if (distributionSettingsBuilder_ == null) {
distributionSettings_ = null;
onChanged();
} else {
distributionSettings_ = null;
distributionSettingsBuilder_ = null;
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
public com.passkit.grpc.Distribution.DistributionSettings.Builder getDistributionSettingsBuilder() {
onChanged();
return getDistributionSettingsFieldBuilder().getBuilder();
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
public com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder() {
if (distributionSettingsBuilder_ != null) {
return distributionSettingsBuilder_.getMessageOrBuilder();
} else {
return distributionSettings_ == null ?
com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_;
}
}
/**
*
* Contains the email & sms distribution settings for the program.
*
*
* .io.DistributionSettings distributionSettings = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder>
getDistributionSettingsFieldBuilder() {
if (distributionSettingsBuilder_ == null) {
distributionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder>(
getDistributionSettings(),
getParentForChildren(),
isClean());
distributionSettings_ = null;
}
return distributionSettingsBuilder_;
}
private int autoDeleteDaysAfterExpiry_ ;
/**
*
* Auto deletes the member after `autoDeleteDaysAfterExpiry` days.
*
*
* uint32 autoDeleteDaysAfterExpiry = 8;
* @return The autoDeleteDaysAfterExpiry.
*/
@java.lang.Override
public int getAutoDeleteDaysAfterExpiry() {
return autoDeleteDaysAfterExpiry_;
}
/**
*
* Auto deletes the member after `autoDeleteDaysAfterExpiry` days.
*
*
* uint32 autoDeleteDaysAfterExpiry = 8;
* @param value The autoDeleteDaysAfterExpiry to set.
* @return This builder for chaining.
*/
public Builder setAutoDeleteDaysAfterExpiry(int value) {
autoDeleteDaysAfterExpiry_ = value;
onChanged();
return this;
}
/**
*
* Auto deletes the member after `autoDeleteDaysAfterExpiry` days.
*
*
* uint32 autoDeleteDaysAfterExpiry = 8;
* @return This builder for chaining.
*/
public Builder clearAutoDeleteDaysAfterExpiry() {
autoDeleteDaysAfterExpiry_ = 0;
onChanged();
return this;
}
private int autoReminderDaysBeforeExpiry_ ;
/**
*
* Sets how many days before expiry to send a reminder lockscreen message to the member.
*
*
* uint32 autoReminderDaysBeforeExpiry = 9;
* @return The autoReminderDaysBeforeExpiry.
*/
@java.lang.Override
public int getAutoReminderDaysBeforeExpiry() {
return autoReminderDaysBeforeExpiry_;
}
/**
*
* Sets how many days before expiry to send a reminder lockscreen message to the member.
*
*
* uint32 autoReminderDaysBeforeExpiry = 9;
* @param value The autoReminderDaysBeforeExpiry to set.
* @return This builder for chaining.
*/
public Builder setAutoReminderDaysBeforeExpiry(int value) {
autoReminderDaysBeforeExpiry_ = value;
onChanged();
return this;
}
/**
*
* Sets how many days before expiry to send a reminder lockscreen message to the member.
*
*
* uint32 autoReminderDaysBeforeExpiry = 9;
* @return This builder for chaining.
*/
public Builder clearAutoReminderDaysBeforeExpiry() {
autoReminderDaysBeforeExpiry_ = 0;
onChanged();
return this;
}
private java.lang.Object expiryMessage_ = "";
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @return The expiryMessage.
*/
public java.lang.String getExpiryMessage() {
java.lang.Object ref = expiryMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
expiryMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @return The bytes for expiryMessage.
*/
public com.google.protobuf.ByteString
getExpiryMessageBytes() {
java.lang.Object ref = expiryMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expiryMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @param value The expiryMessage to set.
* @return This builder for chaining.
*/
public Builder setExpiryMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
expiryMessage_ = value;
onChanged();
return this;
}
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @return This builder for chaining.
*/
public Builder clearExpiryMessage() {
expiryMessage_ = getDefaultInstance().getExpiryMessage();
onChanged();
return this;
}
/**
*
* The message to send to the user `autoReminderDaysBeforeExpiry` days before expiry.
*
*
* string expiryMessage = 10;
* @param value The bytes for expiryMessage to set.
* @return This builder for chaining.
*/
public Builder setExpiryMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
expiryMessage_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedExpiryMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedExpiryMessageBuilder_;
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
* @return Whether the localizedExpiryMessage field is set.
*/
public boolean hasLocalizedExpiryMessage() {
return localizedExpiryMessageBuilder_ != null || localizedExpiryMessage_ != null;
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
* @return The localizedExpiryMessage.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedExpiryMessage() {
if (localizedExpiryMessageBuilder_ == null) {
return localizedExpiryMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedExpiryMessage_;
} else {
return localizedExpiryMessageBuilder_.getMessage();
}
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
public Builder setLocalizedExpiryMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedExpiryMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedExpiryMessage_ = value;
onChanged();
} else {
localizedExpiryMessageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
public Builder setLocalizedExpiryMessage(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedExpiryMessageBuilder_ == null) {
localizedExpiryMessage_ = builderForValue.build();
onChanged();
} else {
localizedExpiryMessageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
public Builder mergeLocalizedExpiryMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedExpiryMessageBuilder_ == null) {
if (localizedExpiryMessage_ != null) {
localizedExpiryMessage_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedExpiryMessage_).mergeFrom(value).buildPartial();
} else {
localizedExpiryMessage_ = value;
}
onChanged();
} else {
localizedExpiryMessageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
public Builder clearLocalizedExpiryMessage() {
if (localizedExpiryMessageBuilder_ == null) {
localizedExpiryMessage_ = null;
onChanged();
} else {
localizedExpiryMessage_ = null;
localizedExpiryMessageBuilder_ = null;
}
return this;
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedExpiryMessageBuilder() {
onChanged();
return getLocalizedExpiryMessageFieldBuilder().getBuilder();
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedExpiryMessageOrBuilder() {
if (localizedExpiryMessageBuilder_ != null) {
return localizedExpiryMessageBuilder_.getMessageOrBuilder();
} else {
return localizedExpiryMessage_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedExpiryMessage_;
}
}
/**
*
* Localized expiry message.
*
*
* .io.LocalizedString localizedExpiryMessage = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedExpiryMessageFieldBuilder() {
if (localizedExpiryMessageBuilder_ == null) {
localizedExpiryMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedExpiryMessage(),
getParentForChildren(),
isClean());
localizedExpiryMessage_ = null;
}
return localizedExpiryMessageBuilder_;
}
private int autoDeleteDaysAfterNotInstalling_ ;
/**
*
* Auto deletes the member `autoDeleteDaysAfterNotInstalling` days after the card has not been installed.
*
*
* uint32 autoDeleteDaysAfterNotInstalling = 12;
* @return The autoDeleteDaysAfterNotInstalling.
*/
@java.lang.Override
public int getAutoDeleteDaysAfterNotInstalling() {
return autoDeleteDaysAfterNotInstalling_;
}
/**
*
* Auto deletes the member `autoDeleteDaysAfterNotInstalling` days after the card has not been installed.
*
*
* uint32 autoDeleteDaysAfterNotInstalling = 12;
* @param value The autoDeleteDaysAfterNotInstalling to set.
* @return This builder for chaining.
*/
public Builder setAutoDeleteDaysAfterNotInstalling(int value) {
autoDeleteDaysAfterNotInstalling_ = value;
onChanged();
return this;
}
/**
*
* Auto deletes the member `autoDeleteDaysAfterNotInstalling` days after the card has not been installed.
*
*
* uint32 autoDeleteDaysAfterNotInstalling = 12;
* @return This builder for chaining.
*/
public Builder clearAutoDeleteDaysAfterNotInstalling() {
autoDeleteDaysAfterNotInstalling_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, com.passkit.grpc.CallbackOuterClass.Callback> callbacks_;
private com.google.protobuf.MapField
internalGetCallbacks() {
if (callbacks_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CallbacksDefaultEntryHolder.defaultEntry);
}
return callbacks_;
}
private com.google.protobuf.MapField
internalGetMutableCallbacks() {
onChanged();;
if (callbacks_ == null) {
callbacks_ = com.google.protobuf.MapField.newMapField(
CallbacksDefaultEntryHolder.defaultEntry);
}
if (!callbacks_.isMutable()) {
callbacks_ = callbacks_.copy();
}
return callbacks_;
}
public int getCallbacksCount() {
return internalGetCallbacks().getMap().size();
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public boolean containsCallbacks(
int key) {
return internalGetCallbacks().getMap().containsKey(key);
}
/**
* Use {@link #getCallbacksMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getCallbacks() {
return getCallbacksMap();
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public java.util.Map getCallbacksMap() {
return internalGetCallbacks().getMap();
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public com.passkit.grpc.CallbackOuterClass.Callback getCallbacksOrDefault(
int key,
com.passkit.grpc.CallbackOuterClass.Callback defaultValue) {
java.util.Map map =
internalGetCallbacks().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
@java.lang.Override
public com.passkit.grpc.CallbackOuterClass.Callback getCallbacksOrThrow(
int key) {
java.util.Map map =
internalGetCallbacks().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearCallbacks() {
internalGetMutableCallbacks().getMutableMap()
.clear();
return this;
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
public Builder removeCallbacks(
int key) {
internalGetMutableCallbacks().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableCallbacks() {
return internalGetMutableCallbacks().getMutableMap();
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
public Builder putCallbacks(
int key,
com.passkit.grpc.CallbackOuterClass.Callback value) {
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCallbacks().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Callbacks that are defined on program events. The key is the CallbackEvent ENUM.
*
*
* map<uint32, .io.Callback> callbacks = 14;
*/
public Builder putAllCallbacks(
java.util.Map values) {
internalGetMutableCallbacks().getMutableMap()
.putAll(values);
return this;
}
private com.passkit.grpc.Members.ProgramOuterClass.PointsType pointsType_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.PointsType, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder, com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder> pointsTypeBuilder_;
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
* @return Whether the pointsType field is set.
*/
public boolean hasPointsType() {
return pointsTypeBuilder_ != null || pointsType_ != null;
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
* @return The pointsType.
*/
public com.passkit.grpc.Members.ProgramOuterClass.PointsType getPointsType() {
if (pointsTypeBuilder_ == null) {
return pointsType_ == null ? com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance() : pointsType_;
} else {
return pointsTypeBuilder_.getMessage();
}
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
public Builder setPointsType(com.passkit.grpc.Members.ProgramOuterClass.PointsType value) {
if (pointsTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pointsType_ = value;
onChanged();
} else {
pointsTypeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
public Builder setPointsType(
com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder builderForValue) {
if (pointsTypeBuilder_ == null) {
pointsType_ = builderForValue.build();
onChanged();
} else {
pointsTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
public Builder mergePointsType(com.passkit.grpc.Members.ProgramOuterClass.PointsType value) {
if (pointsTypeBuilder_ == null) {
if (pointsType_ != null) {
pointsType_ =
com.passkit.grpc.Members.ProgramOuterClass.PointsType.newBuilder(pointsType_).mergeFrom(value).buildPartial();
} else {
pointsType_ = value;
}
onChanged();
} else {
pointsTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
public Builder clearPointsType() {
if (pointsTypeBuilder_ == null) {
pointsType_ = null;
onChanged();
} else {
pointsType_ = null;
pointsTypeBuilder_ = null;
}
return this;
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
public com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder getPointsTypeBuilder() {
onChanged();
return getPointsTypeFieldBuilder().getBuilder();
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
public com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder getPointsTypeOrBuilder() {
if (pointsTypeBuilder_ != null) {
return pointsTypeBuilder_.getMessageOrBuilder();
} else {
return pointsType_ == null ?
com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance() : pointsType_;
}
}
/**
*
* Points format for primary points.
*
*
* .members.PointsType pointsType = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.PointsType, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder, com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder>
getPointsTypeFieldBuilder() {
if (pointsTypeBuilder_ == null) {
pointsTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.PointsType, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder, com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder>(
getPointsType(),
getParentForChildren(),
isClean());
pointsType_ = null;
}
return pointsTypeBuilder_;
}
private com.passkit.grpc.Members.ProgramOuterClass.PointsType secondaryPointsType_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.PointsType, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder, com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder> secondaryPointsTypeBuilder_;
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
* @return Whether the secondaryPointsType field is set.
*/
public boolean hasSecondaryPointsType() {
return secondaryPointsTypeBuilder_ != null || secondaryPointsType_ != null;
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
* @return The secondaryPointsType.
*/
public com.passkit.grpc.Members.ProgramOuterClass.PointsType getSecondaryPointsType() {
if (secondaryPointsTypeBuilder_ == null) {
return secondaryPointsType_ == null ? com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance() : secondaryPointsType_;
} else {
return secondaryPointsTypeBuilder_.getMessage();
}
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
public Builder setSecondaryPointsType(com.passkit.grpc.Members.ProgramOuterClass.PointsType value) {
if (secondaryPointsTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
secondaryPointsType_ = value;
onChanged();
} else {
secondaryPointsTypeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
public Builder setSecondaryPointsType(
com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder builderForValue) {
if (secondaryPointsTypeBuilder_ == null) {
secondaryPointsType_ = builderForValue.build();
onChanged();
} else {
secondaryPointsTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
public Builder mergeSecondaryPointsType(com.passkit.grpc.Members.ProgramOuterClass.PointsType value) {
if (secondaryPointsTypeBuilder_ == null) {
if (secondaryPointsType_ != null) {
secondaryPointsType_ =
com.passkit.grpc.Members.ProgramOuterClass.PointsType.newBuilder(secondaryPointsType_).mergeFrom(value).buildPartial();
} else {
secondaryPointsType_ = value;
}
onChanged();
} else {
secondaryPointsTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
public Builder clearSecondaryPointsType() {
if (secondaryPointsTypeBuilder_ == null) {
secondaryPointsType_ = null;
onChanged();
} else {
secondaryPointsType_ = null;
secondaryPointsTypeBuilder_ = null;
}
return this;
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
public com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder getSecondaryPointsTypeBuilder() {
onChanged();
return getSecondaryPointsTypeFieldBuilder().getBuilder();
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
public com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder getSecondaryPointsTypeOrBuilder() {
if (secondaryPointsTypeBuilder_ != null) {
return secondaryPointsTypeBuilder_.getMessageOrBuilder();
} else {
return secondaryPointsType_ == null ?
com.passkit.grpc.Members.ProgramOuterClass.PointsType.getDefaultInstance() : secondaryPointsType_;
}
}
/**
*
* Points format for secondary points.
*
*
* .members.PointsType secondaryPointsType = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.PointsType, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder, com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder>
getSecondaryPointsTypeFieldBuilder() {
if (secondaryPointsTypeBuilder_ == null) {
secondaryPointsTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.PointsType, com.passkit.grpc.Members.ProgramOuterClass.PointsType.Builder, com.passkit.grpc.Members.ProgramOuterClass.PointsTypeOrBuilder>(
getSecondaryPointsType(),
getParentForChildren(),
isClean());
secondaryPointsType_ = null;
}
return secondaryPointsTypeBuilder_;
}
private com.passkit.grpc.MetricsOuterClass.Metrics metrics_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.MetricsOuterClass.Metrics, com.passkit.grpc.MetricsOuterClass.Metrics.Builder, com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder> metricsBuilder_;
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
* @return Whether the metrics field is set.
*/
public boolean hasMetrics() {
return metricsBuilder_ != null || metrics_ != null;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
* @return The metrics.
*/
public com.passkit.grpc.MetricsOuterClass.Metrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? com.passkit.grpc.MetricsOuterClass.Metrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
public Builder setMetrics(com.passkit.grpc.MetricsOuterClass.Metrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
} else {
metricsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
public Builder setMetrics(
com.passkit.grpc.MetricsOuterClass.Metrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
onChanged();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
public Builder mergeMetrics(com.passkit.grpc.MetricsOuterClass.Metrics value) {
if (metricsBuilder_ == null) {
if (metrics_ != null) {
metrics_ =
com.passkit.grpc.MetricsOuterClass.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial();
} else {
metrics_ = value;
}
onChanged();
} else {
metricsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = null;
onChanged();
} else {
metrics_ = null;
metricsBuilder_ = null;
}
return this;
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
public com.passkit.grpc.MetricsOuterClass.Metrics.Builder getMetricsBuilder() {
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
public com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
com.passkit.grpc.MetricsOuterClass.Metrics.getDefaultInstance() : metrics_;
}
}
/**
*
* Issued, installed, uninstalled and invalidated counts. Metrics are not writable.
*
*
* .io.Metrics metrics = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.MetricsOuterClass.Metrics, com.passkit.grpc.MetricsOuterClass.Metrics.Builder, com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.MetricsOuterClass.Metrics, com.passkit.grpc.MetricsOuterClass.Metrics.Builder, com.passkit.grpc.MetricsOuterClass.MetricsOrBuilder>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
private com.google.protobuf.LazyStringList metaFieldsList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMetaFieldsListIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
metaFieldsList_ = new com.google.protobuf.LazyStringArrayList(metaFieldsList_);
bitField0_ |= 0x00000004;
}
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @return A list containing the metaFieldsList.
*/
public com.google.protobuf.ProtocolStringList
getMetaFieldsListList() {
return metaFieldsList_.getUnmodifiableView();
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @return The count of metaFieldsList.
*/
public int getMetaFieldsListCount() {
return metaFieldsList_.size();
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param index The index of the element to return.
* @return The metaFieldsList at the given index.
*/
public java.lang.String getMetaFieldsList(int index) {
return metaFieldsList_.get(index);
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param index The index of the value to return.
* @return The bytes of the metaFieldsList at the given index.
*/
public com.google.protobuf.ByteString
getMetaFieldsListBytes(int index) {
return metaFieldsList_.getByteString(index);
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param index The index to set the value at.
* @param value The metaFieldsList to set.
* @return This builder for chaining.
*/
public Builder setMetaFieldsList(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMetaFieldsListIsMutable();
metaFieldsList_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param value The metaFieldsList to add.
* @return This builder for chaining.
*/
public Builder addMetaFieldsList(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMetaFieldsListIsMutable();
metaFieldsList_.add(value);
onChanged();
return this;
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param values The metaFieldsList to add.
* @return This builder for chaining.
*/
public Builder addAllMetaFieldsList(
java.lang.Iterable values) {
ensureMetaFieldsListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, metaFieldsList_);
onChanged();
return this;
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @return This builder for chaining.
*/
public Builder clearMetaFieldsList() {
metaFieldsList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* A list of dynamic fields which can be used to filter members.
*
*
* repeated string metaFieldsList = 20;
* @param value The bytes of the metaFieldsList to add.
* @return This builder for chaining.
*/
public Builder addMetaFieldsListBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureMetaFieldsListIsMutable();
metaFieldsList_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Timestamp created_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdBuilder_;
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
* @return Whether the created field is set.
*/
public boolean hasCreated() {
return createdBuilder_ != null || created_ != null;
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
* @return The created.
*/
public com.google.protobuf.Timestamp getCreated() {
if (createdBuilder_ == null) {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
} else {
return createdBuilder_.getMessage();
}
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
public Builder setCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
created_ = value;
onChanged();
} else {
createdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
public Builder setCreated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdBuilder_ == null) {
created_ = builderForValue.build();
onChanged();
} else {
createdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
public Builder mergeCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (created_ != null) {
created_ =
com.google.protobuf.Timestamp.newBuilder(created_).mergeFrom(value).buildPartial();
} else {
created_ = value;
}
onChanged();
} else {
createdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
public Builder clearCreated() {
if (createdBuilder_ == null) {
created_ = null;
onChanged();
} else {
created_ = null;
createdBuilder_ = null;
}
return this;
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
public com.google.protobuf.Timestamp.Builder getCreatedBuilder() {
onChanged();
return getCreatedFieldBuilder().getBuilder();
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
if (createdBuilder_ != null) {
return createdBuilder_.getMessageOrBuilder();
} else {
return created_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
}
/**
*
* The date the program was created.
*
*
* .google.protobuf.Timestamp created = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedFieldBuilder() {
if (createdBuilder_ == null) {
createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreated(),
getParentForChildren(),
isClean());
created_ = null;
}
return createdBuilder_;
}
private com.google.protobuf.Timestamp updated_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedBuilder_;
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
* @return Whether the updated field is set.
*/
public boolean hasUpdated() {
return updatedBuilder_ != null || updated_ != null;
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
* @return The updated.
*/
public com.google.protobuf.Timestamp getUpdated() {
if (updatedBuilder_ == null) {
return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
} else {
return updatedBuilder_.getMessage();
}
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
public Builder setUpdated(com.google.protobuf.Timestamp value) {
if (updatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updated_ = value;
onChanged();
} else {
updatedBuilder_.setMessage(value);
}
return this;
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
public Builder setUpdated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedBuilder_ == null) {
updated_ = builderForValue.build();
onChanged();
} else {
updatedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
public Builder mergeUpdated(com.google.protobuf.Timestamp value) {
if (updatedBuilder_ == null) {
if (updated_ != null) {
updated_ =
com.google.protobuf.Timestamp.newBuilder(updated_).mergeFrom(value).buildPartial();
} else {
updated_ = value;
}
onChanged();
} else {
updatedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
public Builder clearUpdated() {
if (updatedBuilder_ == null) {
updated_ = null;
onChanged();
} else {
updated_ = null;
updatedBuilder_ = null;
}
return this;
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
public com.google.protobuf.Timestamp.Builder getUpdatedBuilder() {
onChanged();
return getUpdatedFieldBuilder().getBuilder();
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
if (updatedBuilder_ != null) {
return updatedBuilder_.getMessageOrBuilder();
} else {
return updated_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
}
}
/**
*
* The date the program was updated.
*
*
* .google.protobuf.Timestamp updated = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedFieldBuilder() {
if (updatedBuilder_ == null) {
updatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdated(),
getParentForChildren(),
isClean());
updated_ = null;
}
return updatedBuilder_;
}
private int profileImageSettings_ = 0;
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @return The enum numeric value on the wire for profileImageSettings.
*/
@java.lang.Override public int getProfileImageSettingsValue() {
return profileImageSettings_;
}
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @param value The enum numeric value on the wire for profileImageSettings to set.
* @return This builder for chaining.
*/
public Builder setProfileImageSettingsValue(int value) {
profileImageSettings_ = value;
onChanged();
return this;
}
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @return The profileImageSettings.
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting getProfileImageSettings() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting result = com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting.valueOf(profileImageSettings_);
return result == null ? com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting.UNRECOGNIZED : result;
}
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @param value The profileImageSettings to set.
* @return This builder for chaining.
*/
public Builder setProfileImageSettings(com.passkit.grpc.Members.ProgramOuterClass.ProfileImageSetting value) {
if (value == null) {
throw new NullPointerException();
}
profileImageSettings_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Indicates if the program requires member profile images on enrol.
*
*
* .members.ProfileImageSetting profileImageSettings = 23;
* @return This builder for chaining.
*/
public Builder clearProfileImageSettings() {
profileImageSettings_ = 0;
onChanged();
return this;
}
private com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId applyFieldToExternalIdOnEnrol_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalIdOrBuilder> applyFieldToExternalIdOnEnrolBuilder_;
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
* @return Whether the applyFieldToExternalIdOnEnrol field is set.
*/
public boolean hasApplyFieldToExternalIdOnEnrol() {
return applyFieldToExternalIdOnEnrolBuilder_ != null || applyFieldToExternalIdOnEnrol_ != null;
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
* @return The applyFieldToExternalIdOnEnrol.
*/
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId getApplyFieldToExternalIdOnEnrol() {
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
return applyFieldToExternalIdOnEnrol_ == null ? com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.getDefaultInstance() : applyFieldToExternalIdOnEnrol_;
} else {
return applyFieldToExternalIdOnEnrolBuilder_.getMessage();
}
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
public Builder setApplyFieldToExternalIdOnEnrol(com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId value) {
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyFieldToExternalIdOnEnrol_ = value;
onChanged();
} else {
applyFieldToExternalIdOnEnrolBuilder_.setMessage(value);
}
return this;
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
public Builder setApplyFieldToExternalIdOnEnrol(
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder builderForValue) {
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
applyFieldToExternalIdOnEnrol_ = builderForValue.build();
onChanged();
} else {
applyFieldToExternalIdOnEnrolBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
public Builder mergeApplyFieldToExternalIdOnEnrol(com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId value) {
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
if (applyFieldToExternalIdOnEnrol_ != null) {
applyFieldToExternalIdOnEnrol_ =
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.newBuilder(applyFieldToExternalIdOnEnrol_).mergeFrom(value).buildPartial();
} else {
applyFieldToExternalIdOnEnrol_ = value;
}
onChanged();
} else {
applyFieldToExternalIdOnEnrolBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
public Builder clearApplyFieldToExternalIdOnEnrol() {
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
applyFieldToExternalIdOnEnrol_ = null;
onChanged();
} else {
applyFieldToExternalIdOnEnrol_ = null;
applyFieldToExternalIdOnEnrolBuilder_ = null;
}
return this;
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder getApplyFieldToExternalIdOnEnrolBuilder() {
onChanged();
return getApplyFieldToExternalIdOnEnrolFieldBuilder().getBuilder();
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalIdOrBuilder getApplyFieldToExternalIdOnEnrolOrBuilder() {
if (applyFieldToExternalIdOnEnrolBuilder_ != null) {
return applyFieldToExternalIdOnEnrolBuilder_.getMessageOrBuilder();
} else {
return applyFieldToExternalIdOnEnrol_ == null ?
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.getDefaultInstance() : applyFieldToExternalIdOnEnrol_;
}
}
/**
*
* Auto generate the external id from member object field. e.g. if you set person.emailAddress, then member's email address will be used as a value of external id.
*
*
* .members.CustomExternalId applyFieldToExternalIdOnEnrol = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalIdOrBuilder>
getApplyFieldToExternalIdOnEnrolFieldBuilder() {
if (applyFieldToExternalIdOnEnrolBuilder_ == null) {
applyFieldToExternalIdOnEnrolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalIdOrBuilder>(
getApplyFieldToExternalIdOnEnrol(),
getParentForChildren(),
isClean());
applyFieldToExternalIdOnEnrol_ = null;
}
return applyFieldToExternalIdOnEnrolBuilder_;
}
private com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings eventCaptureSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettingsOrBuilder> eventCaptureSettingsBuilder_;
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
* @return Whether the eventCaptureSettings field is set.
*/
public boolean hasEventCaptureSettings() {
return eventCaptureSettingsBuilder_ != null || eventCaptureSettings_ != null;
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
* @return The eventCaptureSettings.
*/
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings getEventCaptureSettings() {
if (eventCaptureSettingsBuilder_ == null) {
return eventCaptureSettings_ == null ? com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.getDefaultInstance() : eventCaptureSettings_;
} else {
return eventCaptureSettingsBuilder_.getMessage();
}
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
public Builder setEventCaptureSettings(com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings value) {
if (eventCaptureSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventCaptureSettings_ = value;
onChanged();
} else {
eventCaptureSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
public Builder setEventCaptureSettings(
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder builderForValue) {
if (eventCaptureSettingsBuilder_ == null) {
eventCaptureSettings_ = builderForValue.build();
onChanged();
} else {
eventCaptureSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
public Builder mergeEventCaptureSettings(com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings value) {
if (eventCaptureSettingsBuilder_ == null) {
if (eventCaptureSettings_ != null) {
eventCaptureSettings_ =
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.newBuilder(eventCaptureSettings_).mergeFrom(value).buildPartial();
} else {
eventCaptureSettings_ = value;
}
onChanged();
} else {
eventCaptureSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
public Builder clearEventCaptureSettings() {
if (eventCaptureSettingsBuilder_ == null) {
eventCaptureSettings_ = null;
onChanged();
} else {
eventCaptureSettings_ = null;
eventCaptureSettingsBuilder_ = null;
}
return this;
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder getEventCaptureSettingsBuilder() {
onChanged();
return getEventCaptureSettingsFieldBuilder().getBuilder();
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettingsOrBuilder getEventCaptureSettingsOrBuilder() {
if (eventCaptureSettingsBuilder_ != null) {
return eventCaptureSettingsBuilder_.getMessageOrBuilder();
} else {
return eventCaptureSettings_ == null ?
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.getDefaultInstance() : eventCaptureSettings_;
}
}
/**
*
* Event settings for the program. Can be used if the program captures member events.
*
*
* .members.EventCaptureSettings eventCaptureSettings = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettingsOrBuilder>
getEventCaptureSettingsFieldBuilder() {
if (eventCaptureSettingsBuilder_ == null) {
eventCaptureSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettingsOrBuilder>(
getEventCaptureSettings(),
getParentForChildren(),
isClean());
eventCaptureSettings_ = null;
}
return eventCaptureSettingsBuilder_;
}
@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:members.Program)
}
// @@protoc_insertion_point(class_scope:members.Program)
private static final com.passkit.grpc.Members.ProgramOuterClass.Program DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Members.ProgramOuterClass.Program();
}
public static com.passkit.grpc.Members.ProgramOuterClass.Program getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Program parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Program(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.Members.ProgramOuterClass.Program getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventCaptureSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:members.EventCaptureSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
int getEventDataRetentionSettingsCount();
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
boolean containsEventDataRetentionSettings(
int key);
/**
* Use {@link #getEventDataRetentionSettingsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getEventDataRetentionSettings();
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
java.util.Map
getEventDataRetentionSettingsMap();
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
int getEventDataRetentionSettingsOrDefault(
int key,
int defaultValue);
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
int getEventDataRetentionSettingsOrThrow(
int key);
/**
*
* If set, sends an SMS with unique link to member's registered phone number on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool smsConfirmUponCheckIn = 2;
* @return The smsConfirmUponCheckIn.
*/
boolean getSmsConfirmUponCheckIn();
/**
*
* If set, sends an Email with unique link to member's registered email on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool emailConfirmUponCheckIn = 3;
* @return The emailConfirmUponCheckIn.
*/
boolean getEmailConfirmUponCheckIn();
}
/**
* Protobuf type {@code members.EventCaptureSettings}
*/
public static final class EventCaptureSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:members.EventCaptureSettings)
EventCaptureSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventCaptureSettings.newBuilder() to construct.
private EventCaptureSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventCaptureSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventCaptureSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventCaptureSettings(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
eventDataRetentionSettings_ = com.google.protobuf.MapField.newMapField(
EventDataRetentionSettingsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
eventDataRetentionSettings__ = input.readMessage(
EventDataRetentionSettingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
eventDataRetentionSettings_.getMutableMap().put(
eventDataRetentionSettings__.getKey(), eventDataRetentionSettings__.getValue());
break;
}
case 16: {
smsConfirmUponCheckIn_ = input.readBool();
break;
}
case 24: {
emailConfirmUponCheckIn_ = 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.Members.ProgramOuterClass.internal_static_members_EventCaptureSettings_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetEventDataRetentionSettings();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_EventCaptureSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.class, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder.class);
}
public static final int EVENTDATARETENTIONSETTINGS_FIELD_NUMBER = 1;
private static final class EventDataRetentionSettingsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_EventCaptureSettings_EventDataRetentionSettingsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> eventDataRetentionSettings_;
private com.google.protobuf.MapField
internalGetEventDataRetentionSettings() {
if (eventDataRetentionSettings_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EventDataRetentionSettingsDefaultEntryHolder.defaultEntry);
}
return eventDataRetentionSettings_;
}
public int getEventDataRetentionSettingsCount() {
return internalGetEventDataRetentionSettings().getMap().size();
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public boolean containsEventDataRetentionSettings(
int key) {
return internalGetEventDataRetentionSettings().getMap().containsKey(key);
}
/**
* Use {@link #getEventDataRetentionSettingsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEventDataRetentionSettings() {
return getEventDataRetentionSettingsMap();
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public java.util.Map getEventDataRetentionSettingsMap() {
return internalGetEventDataRetentionSettings().getMap();
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public int getEventDataRetentionSettingsOrDefault(
int key,
int defaultValue) {
java.util.Map map =
internalGetEventDataRetentionSettings().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public int getEventDataRetentionSettingsOrThrow(
int key) {
java.util.Map map =
internalGetEventDataRetentionSettings().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SMSCONFIRMUPONCHECKIN_FIELD_NUMBER = 2;
private boolean smsConfirmUponCheckIn_;
/**
*
* If set, sends an SMS with unique link to member's registered phone number on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool smsConfirmUponCheckIn = 2;
* @return The smsConfirmUponCheckIn.
*/
@java.lang.Override
public boolean getSmsConfirmUponCheckIn() {
return smsConfirmUponCheckIn_;
}
public static final int EMAILCONFIRMUPONCHECKIN_FIELD_NUMBER = 3;
private boolean emailConfirmUponCheckIn_;
/**
*
* If set, sends an Email with unique link to member's registered email on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool emailConfirmUponCheckIn = 3;
* @return The emailConfirmUponCheckIn.
*/
@java.lang.Override
public boolean getEmailConfirmUponCheckIn() {
return emailConfirmUponCheckIn_;
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetEventDataRetentionSettings(),
EventDataRetentionSettingsDefaultEntryHolder.defaultEntry,
1);
if (smsConfirmUponCheckIn_ != false) {
output.writeBool(2, smsConfirmUponCheckIn_);
}
if (emailConfirmUponCheckIn_ != false) {
output.writeBool(3, emailConfirmUponCheckIn_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetEventDataRetentionSettings().getMap().entrySet()) {
com.google.protobuf.MapEntry
eventDataRetentionSettings__ = EventDataRetentionSettingsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, eventDataRetentionSettings__);
}
if (smsConfirmUponCheckIn_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, smsConfirmUponCheckIn_);
}
if (emailConfirmUponCheckIn_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, emailConfirmUponCheckIn_);
}
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.Members.ProgramOuterClass.EventCaptureSettings)) {
return super.equals(obj);
}
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings other = (com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings) obj;
if (!internalGetEventDataRetentionSettings().equals(
other.internalGetEventDataRetentionSettings())) return false;
if (getSmsConfirmUponCheckIn()
!= other.getSmsConfirmUponCheckIn()) return false;
if (getEmailConfirmUponCheckIn()
!= other.getEmailConfirmUponCheckIn()) 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 (!internalGetEventDataRetentionSettings().getMap().isEmpty()) {
hash = (37 * hash) + EVENTDATARETENTIONSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + internalGetEventDataRetentionSettings().hashCode();
}
hash = (37 * hash) + SMSCONFIRMUPONCHECKIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSmsConfirmUponCheckIn());
hash = (37 * hash) + EMAILCONFIRMUPONCHECKIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEmailConfirmUponCheckIn());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings 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.Members.ProgramOuterClass.EventCaptureSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings 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.Members.ProgramOuterClass.EventCaptureSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings 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.Members.ProgramOuterClass.EventCaptureSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings 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.Members.ProgramOuterClass.EventCaptureSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings 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.Members.ProgramOuterClass.EventCaptureSettings 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 members.EventCaptureSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:members.EventCaptureSettings)
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_EventCaptureSettings_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetEventDataRetentionSettings();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableEventDataRetentionSettings();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_EventCaptureSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.class, com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.Builder.class);
}
// Construct using com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.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();
internalGetMutableEventDataRetentionSettings().clear();
smsConfirmUponCheckIn_ = false;
emailConfirmUponCheckIn_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_EventCaptureSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings getDefaultInstanceForType() {
return com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings build() {
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings buildPartial() {
com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings result = new com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings(this);
int from_bitField0_ = bitField0_;
result.eventDataRetentionSettings_ = internalGetEventDataRetentionSettings();
result.eventDataRetentionSettings_.makeImmutable();
result.smsConfirmUponCheckIn_ = smsConfirmUponCheckIn_;
result.emailConfirmUponCheckIn_ = emailConfirmUponCheckIn_;
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.Members.ProgramOuterClass.EventCaptureSettings) {
return mergeFrom((com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings other) {
if (other == com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings.getDefaultInstance()) return this;
internalGetMutableEventDataRetentionSettings().mergeFrom(
other.internalGetEventDataRetentionSettings());
if (other.getSmsConfirmUponCheckIn() != false) {
setSmsConfirmUponCheckIn(other.getSmsConfirmUponCheckIn());
}
if (other.getEmailConfirmUponCheckIn() != false) {
setEmailConfirmUponCheckIn(other.getEmailConfirmUponCheckIn());
}
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.Members.ProgramOuterClass.EventCaptureSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> eventDataRetentionSettings_;
private com.google.protobuf.MapField
internalGetEventDataRetentionSettings() {
if (eventDataRetentionSettings_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EventDataRetentionSettingsDefaultEntryHolder.defaultEntry);
}
return eventDataRetentionSettings_;
}
private com.google.protobuf.MapField
internalGetMutableEventDataRetentionSettings() {
onChanged();;
if (eventDataRetentionSettings_ == null) {
eventDataRetentionSettings_ = com.google.protobuf.MapField.newMapField(
EventDataRetentionSettingsDefaultEntryHolder.defaultEntry);
}
if (!eventDataRetentionSettings_.isMutable()) {
eventDataRetentionSettings_ = eventDataRetentionSettings_.copy();
}
return eventDataRetentionSettings_;
}
public int getEventDataRetentionSettingsCount() {
return internalGetEventDataRetentionSettings().getMap().size();
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public boolean containsEventDataRetentionSettings(
int key) {
return internalGetEventDataRetentionSettings().getMap().containsKey(key);
}
/**
* Use {@link #getEventDataRetentionSettingsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEventDataRetentionSettings() {
return getEventDataRetentionSettingsMap();
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public java.util.Map getEventDataRetentionSettingsMap() {
return internalGetEventDataRetentionSettings().getMap();
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public int getEventDataRetentionSettingsOrDefault(
int key,
int defaultValue) {
java.util.Map map =
internalGetEventDataRetentionSettings().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
@java.lang.Override
public int getEventDataRetentionSettingsOrThrow(
int key) {
java.util.Map map =
internalGetEventDataRetentionSettings().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearEventDataRetentionSettings() {
internalGetMutableEventDataRetentionSettings().getMutableMap()
.clear();
return this;
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
public Builder removeEventDataRetentionSettings(
int key) {
internalGetMutableEventDataRetentionSettings().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableEventDataRetentionSettings() {
return internalGetMutableEventDataRetentionSettings().getMutableMap();
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
public Builder putEventDataRetentionSettings(
int key,
int value) {
internalGetMutableEventDataRetentionSettings().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Can be used to set data retention on event data. The key is the MemberEvents ENUM. Value is the data retention in days from the date the event record is created in the PassKit database.
*
*
* map<uint32, uint32> eventDataRetentionSettings = 1;
*/
public Builder putAllEventDataRetentionSettings(
java.util.Map values) {
internalGetMutableEventDataRetentionSettings().getMutableMap()
.putAll(values);
return this;
}
private boolean smsConfirmUponCheckIn_ ;
/**
*
* If set, sends an SMS with unique link to member's registered phone number on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool smsConfirmUponCheckIn = 2;
* @return The smsConfirmUponCheckIn.
*/
@java.lang.Override
public boolean getSmsConfirmUponCheckIn() {
return smsConfirmUponCheckIn_;
}
/**
*
* If set, sends an SMS with unique link to member's registered phone number on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool smsConfirmUponCheckIn = 2;
* @param value The smsConfirmUponCheckIn to set.
* @return This builder for chaining.
*/
public Builder setSmsConfirmUponCheckIn(boolean value) {
smsConfirmUponCheckIn_ = value;
onChanged();
return this;
}
/**
*
* If set, sends an SMS with unique link to member's registered phone number on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool smsConfirmUponCheckIn = 2;
* @return This builder for chaining.
*/
public Builder clearSmsConfirmUponCheckIn() {
smsConfirmUponCheckIn_ = false;
onChanged();
return this;
}
private boolean emailConfirmUponCheckIn_ ;
/**
*
* If set, sends an Email with unique link to member's registered email on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool emailConfirmUponCheckIn = 3;
* @return The emailConfirmUponCheckIn.
*/
@java.lang.Override
public boolean getEmailConfirmUponCheckIn() {
return emailConfirmUponCheckIn_;
}
/**
*
* If set, sends an Email with unique link to member's registered email on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool emailConfirmUponCheckIn = 3;
* @param value The emailConfirmUponCheckIn to set.
* @return This builder for chaining.
*/
public Builder setEmailConfirmUponCheckIn(boolean value) {
emailConfirmUponCheckIn_ = value;
onChanged();
return this;
}
/**
*
* If set, sends an Email with unique link to member's registered email on check-in. Member will have to click the link and show unique code to merchant / attendant.
*
*
* bool emailConfirmUponCheckIn = 3;
* @return This builder for chaining.
*/
public Builder clearEmailConfirmUponCheckIn() {
emailConfirmUponCheckIn_ = 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:members.EventCaptureSettings)
}
// @@protoc_insertion_point(class_scope:members.EventCaptureSettings)
private static final com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings();
}
public static com.passkit.grpc.Members.ProgramOuterClass.EventCaptureSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventCaptureSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventCaptureSettings(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.Members.ProgramOuterClass.EventCaptureSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProgramCopyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:members.ProgramCopyRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* uuid of the program to copy.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* uuid of the program to copy.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return A list containing the status.
*/
java.util.List getStatusList();
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return The count of status.
*/
int getStatusCount();
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index of the element to return.
* @return The status at the given index.
*/
com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index);
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return A list containing the enum numeric values on the wire for status.
*/
java.util.List
getStatusValueList();
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
int getStatusValue(int index);
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @return The passTypeIdentifier.
*/
java.lang.String getPassTypeIdentifier();
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @return The bytes for passTypeIdentifier.
*/
com.google.protobuf.ByteString
getPassTypeIdentifierBytes();
}
/**
*
* Contains payload for copying a program
*
*
* Protobuf type {@code members.ProgramCopyRequest}
*/
public static final class ProgramCopyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:members.ProgramCopyRequest)
ProgramCopyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProgramCopyRequest.newBuilder() to construct.
private ProgramCopyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProgramCopyRequest() {
id_ = "";
name_ = "";
status_ = java.util.Collections.emptyList();
passTypeIdentifier_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProgramCopyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProgramCopyRequest(
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();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
status_.add(rawValue);
break;
}
case 26: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
status_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
passTypeIdentifier_ = 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)) {
status_ = java.util.Collections.unmodifiableList(status_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ProgramCopyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ProgramCopyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest.class, com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* uuid of the program to copy.
*
*
* 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;
}
}
/**
*
* uuid of the program to copy.
*
*
* 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;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 3;
private java.util.List status_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus> status_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>() {
public com.passkit.grpc.ProjectOuterClass.ProjectStatus convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.ProjectOuterClass.ProjectStatus result = com.passkit.grpc.ProjectOuterClass.ProjectStatus.valueOf(from);
return result == null ? com.passkit.grpc.ProjectOuterClass.ProjectStatus.UNRECOGNIZED : result;
}
};
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return A list containing the status.
*/
@java.lang.Override
public java.util.List getStatusList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_);
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return The count of status.
*/
@java.lang.Override
public int getStatusCount() {
return status_.size();
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index of the element to return.
* @return The status at the given index.
*/
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) {
return status_converter_.convert(status_.get(index));
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return A list containing the enum numeric values on the wire for status.
*/
@java.lang.Override
public java.util.List
getStatusValueList() {
return status_;
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
@java.lang.Override
public int getStatusValue(int index) {
return status_.get(index);
}
private int statusMemoizedSerializedSize;
public static final int PASSTYPEIDENTIFIER_FIELD_NUMBER = 4;
private volatile java.lang.Object passTypeIdentifier_;
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @return The passTypeIdentifier.
*/
@java.lang.Override
public java.lang.String getPassTypeIdentifier() {
java.lang.Object ref = passTypeIdentifier_;
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();
passTypeIdentifier_ = s;
return s;
}
}
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @return The bytes for passTypeIdentifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPassTypeIdentifierBytes() {
java.lang.Object ref = passTypeIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passTypeIdentifier_ = 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 {
getSerializedSize();
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (getStatusList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(statusMemoizedSerializedSize);
}
for (int i = 0; i < status_.size(); i++) {
output.writeEnumNoTag(status_.get(i));
}
if (!getPassTypeIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, passTypeIdentifier_);
}
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_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
{
int dataSize = 0;
for (int i = 0; i < status_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(status_.get(i));
}
size += dataSize;
if (!getStatusList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}statusMemoizedSerializedSize = dataSize;
}
if (!getPassTypeIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, passTypeIdentifier_);
}
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.Members.ProgramOuterClass.ProgramCopyRequest)) {
return super.equals(obj);
}
com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest other = (com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!status_.equals(other.status_)) return false;
if (!getPassTypeIdentifier()
.equals(other.getPassTypeIdentifier())) 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 = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getStatusCount() > 0) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_.hashCode();
}
hash = (37 * hash) + PASSTYPEIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getPassTypeIdentifier().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest 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.Members.ProgramOuterClass.ProgramCopyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest 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.Members.ProgramOuterClass.ProgramCopyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest 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.Members.ProgramOuterClass.ProgramCopyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest 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.Members.ProgramOuterClass.ProgramCopyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest 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.Members.ProgramOuterClass.ProgramCopyRequest 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;
}
/**
*
* Contains payload for copying a program
*
*
* Protobuf type {@code members.ProgramCopyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:members.ProgramCopyRequest)
com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ProgramCopyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ProgramCopyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest.class, com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest.Builder.class);
}
// Construct using com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest.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_ = "";
name_ = "";
status_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
passTypeIdentifier_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ProgramCopyRequest_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest getDefaultInstanceForType() {
return com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest build() {
com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest buildPartial() {
com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest result = new com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.name_ = name_;
if (((bitField0_ & 0x00000001) != 0)) {
status_ = java.util.Collections.unmodifiableList(status_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.status_ = status_;
result.passTypeIdentifier_ = passTypeIdentifier_;
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.Members.ProgramOuterClass.ProgramCopyRequest) {
return mergeFrom((com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest other) {
if (other == com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.status_.isEmpty()) {
if (status_.isEmpty()) {
status_ = other.status_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatusIsMutable();
status_.addAll(other.status_);
}
onChanged();
}
if (!other.getPassTypeIdentifier().isEmpty()) {
passTypeIdentifier_ = other.passTypeIdentifier_;
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.Members.ProgramOuterClass.ProgramCopyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* uuid of the program to copy.
*
*
* 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;
}
}
/**
*
* uuid of the program to copy.
*
*
* 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;
}
}
/**
*
* uuid of the program to copy.
*
*
* 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;
}
/**
*
* uuid of the program to copy.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* uuid of the program to copy.
*
*
* 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;
}
private java.lang.Object name_ = "";
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* optional name for the new program.
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List status_ =
java.util.Collections.emptyList();
private void ensureStatusIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList(status_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return A list containing the status.
*/
public java.util.List getStatusList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_);
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return The count of status.
*/
public int getStatusCount() {
return status_.size();
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index of the element to return.
* @return The status at the given index.
*/
public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) {
return status_converter_.convert(status_.get(index));
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index to set the value at.
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
int index, com.passkit.grpc.ProjectOuterClass.ProjectStatus value) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param value The status to add.
* @return This builder for chaining.
*/
public Builder addStatus(com.passkit.grpc.ProjectOuterClass.ProjectStatus value) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param values The status to add.
* @return This builder for chaining.
*/
public Builder addAllStatus(
java.lang.Iterable extends com.passkit.grpc.ProjectOuterClass.ProjectStatus> values) {
ensureStatusIsMutable();
for (com.passkit.grpc.ProjectOuterClass.ProjectStatus value : values) {
status_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @return A list containing the enum numeric values on the wire for status.
*/
public java.util.List
getStatusValueList() {
return java.util.Collections.unmodifiableList(status_);
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
*/
public int getStatusValue(int index) {
return status_.get(index);
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of status at the given index.
* @return This builder for chaining.
*/
public Builder setStatusValue(
int index, int value) {
ensureStatusIsMutable();
status_.set(index, value);
onChanged();
return this;
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param value The enum numeric value on the wire for status to add.
* @return This builder for chaining.
*/
public Builder addStatusValue(int value) {
ensureStatusIsMutable();
status_.add(value);
onChanged();
return this;
}
/**
*
* Status to set the copied program to.
*
*
* repeated .io.ProjectStatus status = 3;
* @param values The enum numeric values on the wire for status to add.
* @return This builder for chaining.
*/
public Builder addAllStatusValue(
java.lang.Iterable values) {
ensureStatusIsMutable();
for (int value : values) {
status_.add(value);
}
onChanged();
return this;
}
private java.lang.Object passTypeIdentifier_ = "";
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @return The passTypeIdentifier.
*/
public java.lang.String getPassTypeIdentifier() {
java.lang.Object ref = passTypeIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passTypeIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @return The bytes for passTypeIdentifier.
*/
public com.google.protobuf.ByteString
getPassTypeIdentifierBytes() {
java.lang.Object ref = passTypeIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passTypeIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @param value The passTypeIdentifier to set.
* @return This builder for chaining.
*/
public Builder setPassTypeIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passTypeIdentifier_ = value;
onChanged();
return this;
}
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @return This builder for chaining.
*/
public Builder clearPassTypeIdentifier() {
passTypeIdentifier_ = getDefaultInstance().getPassTypeIdentifier();
onChanged();
return this;
}
/**
*
* Can optionally be provided if setting status to published (requires a prod cert).
*
*
* string passTypeIdentifier = 4;
* @param value The bytes for passTypeIdentifier to set.
* @return This builder for chaining.
*/
public Builder setPassTypeIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
passTypeIdentifier_ = 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:members.ProgramCopyRequest)
}
// @@protoc_insertion_point(class_scope:members.ProgramCopyRequest)
private static final com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest();
}
public static com.passkit.grpc.Members.ProgramOuterClass.ProgramCopyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProgramCopyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProgramCopyRequest(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.Members.ProgramOuterClass.ProgramCopyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListProgramsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:members.ListProgramsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
java.util.List
getProgramsList();
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
com.passkit.grpc.Members.ProgramOuterClass.Program getPrograms(int index);
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
int getProgramsCount();
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
java.util.List extends com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder>
getProgramsOrBuilderList();
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder getProgramsOrBuilder(
int index);
}
/**
*
* Contains an array of programs.
*
*
* Protobuf type {@code members.ListProgramsResponse}
*/
public static final class ListProgramsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:members.ListProgramsResponse)
ListProgramsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListProgramsResponse.newBuilder() to construct.
private ListProgramsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListProgramsResponse() {
programs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListProgramsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListProgramsResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
programs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
programs_.add(
input.readMessage(com.passkit.grpc.Members.ProgramOuterClass.Program.parser(), extensionRegistry));
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)) {
programs_ = java.util.Collections.unmodifiableList(programs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ListProgramsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ListProgramsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse.class, com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse.Builder.class);
}
public static final int PROGRAMS_FIELD_NUMBER = 1;
private java.util.List programs_;
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
@java.lang.Override
public java.util.List getProgramsList() {
return programs_;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder>
getProgramsOrBuilderList() {
return programs_;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
@java.lang.Override
public int getProgramsCount() {
return programs_.size();
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.Program getPrograms(int index) {
return programs_.get(index);
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder getProgramsOrBuilder(
int index) {
return programs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < programs_.size(); i++) {
output.writeMessage(1, programs_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < programs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, programs_.get(i));
}
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.Members.ProgramOuterClass.ListProgramsResponse)) {
return super.equals(obj);
}
com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse other = (com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse) obj;
if (!getProgramsList()
.equals(other.getProgramsList())) 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 (getProgramsCount() > 0) {
hash = (37 * hash) + PROGRAMS_FIELD_NUMBER;
hash = (53 * hash) + getProgramsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse 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.Members.ProgramOuterClass.ListProgramsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse 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.Members.ProgramOuterClass.ListProgramsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse 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.Members.ProgramOuterClass.ListProgramsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse 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.Members.ProgramOuterClass.ListProgramsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse 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.Members.ProgramOuterClass.ListProgramsResponse 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;
}
/**
*
* Contains an array of programs.
*
*
* Protobuf type {@code members.ListProgramsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:members.ListProgramsResponse)
com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ListProgramsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ListProgramsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse.class, com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse.Builder.class);
}
// Construct using com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProgramsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (programsBuilder_ == null) {
programs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
programsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_ListProgramsResponse_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse getDefaultInstanceForType() {
return com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse build() {
com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse buildPartial() {
com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse result = new com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse(this);
int from_bitField0_ = bitField0_;
if (programsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
programs_ = java.util.Collections.unmodifiableList(programs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.programs_ = programs_;
} else {
result.programs_ = programsBuilder_.build();
}
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.Members.ProgramOuterClass.ListProgramsResponse) {
return mergeFrom((com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse other) {
if (other == com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse.getDefaultInstance()) return this;
if (programsBuilder_ == null) {
if (!other.programs_.isEmpty()) {
if (programs_.isEmpty()) {
programs_ = other.programs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProgramsIsMutable();
programs_.addAll(other.programs_);
}
onChanged();
}
} else {
if (!other.programs_.isEmpty()) {
if (programsBuilder_.isEmpty()) {
programsBuilder_.dispose();
programsBuilder_ = null;
programs_ = other.programs_;
bitField0_ = (bitField0_ & ~0x00000001);
programsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProgramsFieldBuilder() : null;
} else {
programsBuilder_.addAllMessages(other.programs_);
}
}
}
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.Members.ProgramOuterClass.ListProgramsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List programs_ =
java.util.Collections.emptyList();
private void ensureProgramsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
programs_ = new java.util.ArrayList(programs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.Program, com.passkit.grpc.Members.ProgramOuterClass.Program.Builder, com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder> programsBuilder_;
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public java.util.List getProgramsList() {
if (programsBuilder_ == null) {
return java.util.Collections.unmodifiableList(programs_);
} else {
return programsBuilder_.getMessageList();
}
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public int getProgramsCount() {
if (programsBuilder_ == null) {
return programs_.size();
} else {
return programsBuilder_.getCount();
}
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public com.passkit.grpc.Members.ProgramOuterClass.Program getPrograms(int index) {
if (programsBuilder_ == null) {
return programs_.get(index);
} else {
return programsBuilder_.getMessage(index);
}
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder setPrograms(
int index, com.passkit.grpc.Members.ProgramOuterClass.Program value) {
if (programsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProgramsIsMutable();
programs_.set(index, value);
onChanged();
} else {
programsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder setPrograms(
int index, com.passkit.grpc.Members.ProgramOuterClass.Program.Builder builderForValue) {
if (programsBuilder_ == null) {
ensureProgramsIsMutable();
programs_.set(index, builderForValue.build());
onChanged();
} else {
programsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder addPrograms(com.passkit.grpc.Members.ProgramOuterClass.Program value) {
if (programsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProgramsIsMutable();
programs_.add(value);
onChanged();
} else {
programsBuilder_.addMessage(value);
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder addPrograms(
int index, com.passkit.grpc.Members.ProgramOuterClass.Program value) {
if (programsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProgramsIsMutable();
programs_.add(index, value);
onChanged();
} else {
programsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder addPrograms(
com.passkit.grpc.Members.ProgramOuterClass.Program.Builder builderForValue) {
if (programsBuilder_ == null) {
ensureProgramsIsMutable();
programs_.add(builderForValue.build());
onChanged();
} else {
programsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder addPrograms(
int index, com.passkit.grpc.Members.ProgramOuterClass.Program.Builder builderForValue) {
if (programsBuilder_ == null) {
ensureProgramsIsMutable();
programs_.add(index, builderForValue.build());
onChanged();
} else {
programsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder addAllPrograms(
java.lang.Iterable extends com.passkit.grpc.Members.ProgramOuterClass.Program> values) {
if (programsBuilder_ == null) {
ensureProgramsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, programs_);
onChanged();
} else {
programsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder clearPrograms() {
if (programsBuilder_ == null) {
programs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
programsBuilder_.clear();
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public Builder removePrograms(int index) {
if (programsBuilder_ == null) {
ensureProgramsIsMutable();
programs_.remove(index);
onChanged();
} else {
programsBuilder_.remove(index);
}
return this;
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public com.passkit.grpc.Members.ProgramOuterClass.Program.Builder getProgramsBuilder(
int index) {
return getProgramsFieldBuilder().getBuilder(index);
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder getProgramsOrBuilder(
int index) {
if (programsBuilder_ == null) {
return programs_.get(index); } else {
return programsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public java.util.List extends com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder>
getProgramsOrBuilderList() {
if (programsBuilder_ != null) {
return programsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(programs_);
}
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public com.passkit.grpc.Members.ProgramOuterClass.Program.Builder addProgramsBuilder() {
return getProgramsFieldBuilder().addBuilder(
com.passkit.grpc.Members.ProgramOuterClass.Program.getDefaultInstance());
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public com.passkit.grpc.Members.ProgramOuterClass.Program.Builder addProgramsBuilder(
int index) {
return getProgramsFieldBuilder().addBuilder(
index, com.passkit.grpc.Members.ProgramOuterClass.Program.getDefaultInstance());
}
/**
*
* An array of programs.
*
*
* repeated .members.Program programs = 1;
*/
public java.util.List
getProgramsBuilderList() {
return getProgramsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.Program, com.passkit.grpc.Members.ProgramOuterClass.Program.Builder, com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder>
getProgramsFieldBuilder() {
if (programsBuilder_ == null) {
programsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Members.ProgramOuterClass.Program, com.passkit.grpc.Members.ProgramOuterClass.Program.Builder, com.passkit.grpc.Members.ProgramOuterClass.ProgramOrBuilder>(
programs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
programs_ = null;
}
return programsBuilder_;
}
@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:members.ListProgramsResponse)
}
// @@protoc_insertion_point(class_scope:members.ListProgramsResponse)
private static final com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse();
}
public static com.passkit.grpc.Members.ProgramOuterClass.ListProgramsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListProgramsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListProgramsResponse(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.Members.ProgramOuterClass.ListProgramsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetMetaKeysResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:members.GetMetaKeysResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @return A list containing the keys.
*/
java.util.List
getKeysList();
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @return The count of keys.
*/
int getKeysCount();
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
java.lang.String getKeys(int index);
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
com.google.protobuf.ByteString
getKeysBytes(int index);
}
/**
* Protobuf type {@code members.GetMetaKeysResponse}
*/
public static final class GetMetaKeysResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:members.GetMetaKeysResponse)
GetMetaKeysResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetMetaKeysResponse.newBuilder() to construct.
private GetMetaKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetMetaKeysResponse() {
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetMetaKeysResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetMetaKeysResponse(
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)) {
keys_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
keys_.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)) {
keys_ = keys_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_GetMetaKeysResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_GetMetaKeysResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse.class, com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse.Builder.class);
}
public static final int KEYS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList keys_;
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @return A list containing the keys.
*/
public com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_;
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.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 < keys_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_.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 < keys_.size(); i++) {
dataSize += computeStringSizeNoTag(keys_.getRaw(i));
}
size += dataSize;
size += 1 * getKeysList().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.Members.ProgramOuterClass.GetMetaKeysResponse)) {
return super.equals(obj);
}
com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse other = (com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse) obj;
if (!getKeysList()
.equals(other.getKeysList())) 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 (getKeysCount() > 0) {
hash = (37 * hash) + KEYS_FIELD_NUMBER;
hash = (53 * hash) + getKeysList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse 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.Members.ProgramOuterClass.GetMetaKeysResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse 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.Members.ProgramOuterClass.GetMetaKeysResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse 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.Members.ProgramOuterClass.GetMetaKeysResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse 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.Members.ProgramOuterClass.GetMetaKeysResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse 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.Members.ProgramOuterClass.GetMetaKeysResponse 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 members.GetMetaKeysResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:members.GetMetaKeysResponse)
com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_GetMetaKeysResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_GetMetaKeysResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse.class, com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse.Builder.class);
}
// Construct using com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse.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();
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_GetMetaKeysResponse_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse getDefaultInstanceForType() {
return com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse build() {
com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse buildPartial() {
com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse result = new com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
keys_ = keys_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keys_ = keys_;
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.Members.ProgramOuterClass.GetMetaKeysResponse) {
return mergeFrom((com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse other) {
if (other == com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse.getDefaultInstance()) return this;
if (!other.keys_.isEmpty()) {
if (keys_.isEmpty()) {
keys_ = other.keys_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeysIsMutable();
keys_.addAll(other.keys_);
}
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.Members.ProgramOuterClass.GetMetaKeysResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keys_ = new com.google.protobuf.LazyStringArrayList(keys_);
bitField0_ |= 0x00000001;
}
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @return A list containing the keys.
*/
public com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_.getUnmodifiableView();
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.getByteString(index);
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param index The index to set the value at.
* @param value The keys to set.
* @return This builder for chaining.
*/
public Builder setKeys(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.set(index, value);
onChanged();
return this;
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param value The keys to add.
* @return This builder for chaining.
*/
public Builder addKeys(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.add(value);
onChanged();
return this;
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param values The keys to add.
* @return This builder for chaining.
*/
public Builder addAllKeys(
java.lang.Iterable values) {
ensureKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keys_);
onChanged();
return this;
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @return This builder for chaining.
*/
public Builder clearKeys() {
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* An array of distinct meta keys.
*
*
* repeated string keys = 1;
* @param value The bytes of the keys to add.
* @return This builder for chaining.
*/
public Builder addKeysBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureKeysIsMutable();
keys_.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:members.GetMetaKeysResponse)
}
// @@protoc_insertion_point(class_scope:members.GetMetaKeysResponse)
private static final com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse();
}
public static com.passkit.grpc.Members.ProgramOuterClass.GetMetaKeysResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetMetaKeysResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetMetaKeysResponse(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.Members.ProgramOuterClass.GetMetaKeysResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomExternalIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:members.CustomExternalId)
com.google.protobuf.MessageOrBuilder {
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @return The fieldUniqueName.
*/
java.lang.String getFieldUniqueName();
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @return The bytes for fieldUniqueName.
*/
com.google.protobuf.ByteString
getFieldUniqueNameBytes();
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
}
/**
* Protobuf type {@code members.CustomExternalId}
*/
public static final class CustomExternalId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:members.CustomExternalId)
CustomExternalIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomExternalId.newBuilder() to construct.
private CustomExternalId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomExternalId() {
fieldUniqueName_ = "";
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CustomExternalId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomExternalId(
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();
fieldUniqueName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = 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.Members.ProgramOuterClass.internal_static_members_CustomExternalId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_CustomExternalId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.class, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder.class);
}
public static final int FIELDUNIQUENAME_FIELD_NUMBER = 1;
private volatile java.lang.Object fieldUniqueName_;
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @return The fieldUniqueName.
*/
@java.lang.Override
public java.lang.String getFieldUniqueName() {
java.lang.Object ref = fieldUniqueName_;
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();
fieldUniqueName_ = s;
return s;
}
}
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @return The bytes for fieldUniqueName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldUniqueNameBytes() {
java.lang.Object ref = fieldUniqueName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldUniqueName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object errorMessage_;
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = 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 (!getFieldUniqueNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldUniqueName_);
}
if (!getErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFieldUniqueNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldUniqueName_);
}
if (!getErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
}
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.Members.ProgramOuterClass.CustomExternalId)) {
return super.equals(obj);
}
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId other = (com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId) obj;
if (!getFieldUniqueName()
.equals(other.getFieldUniqueName())) return false;
if (!getErrorMessage()
.equals(other.getErrorMessage())) 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) + FIELDUNIQUENAME_FIELD_NUMBER;
hash = (53 * hash) + getFieldUniqueName().hashCode();
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId 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.Members.ProgramOuterClass.CustomExternalId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId 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.Members.ProgramOuterClass.CustomExternalId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId 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.Members.ProgramOuterClass.CustomExternalId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId 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.Members.ProgramOuterClass.CustomExternalId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId 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.Members.ProgramOuterClass.CustomExternalId 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 members.CustomExternalId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:members.CustomExternalId)
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_CustomExternalId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_CustomExternalId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.class, com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.Builder.class);
}
// Construct using com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.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();
fieldUniqueName_ = "";
errorMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Members.ProgramOuterClass.internal_static_members_CustomExternalId_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId getDefaultInstanceForType() {
return com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId build() {
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId buildPartial() {
com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId result = new com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId(this);
result.fieldUniqueName_ = fieldUniqueName_;
result.errorMessage_ = errorMessage_;
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.Members.ProgramOuterClass.CustomExternalId) {
return mergeFrom((com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId other) {
if (other == com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId.getDefaultInstance()) return this;
if (!other.getFieldUniqueName().isEmpty()) {
fieldUniqueName_ = other.fieldUniqueName_;
onChanged();
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
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.Members.ProgramOuterClass.CustomExternalId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object fieldUniqueName_ = "";
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @return The fieldUniqueName.
*/
public java.lang.String getFieldUniqueName() {
java.lang.Object ref = fieldUniqueName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldUniqueName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @return The bytes for fieldUniqueName.
*/
public com.google.protobuf.ByteString
getFieldUniqueNameBytes() {
java.lang.Object ref = fieldUniqueName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldUniqueName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @param value The fieldUniqueName to set.
* @return This builder for chaining.
*/
public Builder setFieldUniqueName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldUniqueName_ = value;
onChanged();
return this;
}
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @return This builder for chaining.
*/
public Builder clearFieldUniqueName() {
fieldUniqueName_ = getDefaultInstance().getFieldUniqueName();
onChanged();
return this;
}
/**
*
* Field name which becomes a source of external id value. Available unique names are: null, person.emailAddress, person.mobileNumber.
*
*
* string fieldUniqueName = 1;
* @param value The bytes for fieldUniqueName to set.
* @return This builder for chaining.
*/
public Builder setFieldUniqueNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldUniqueName_ = value;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
*
* Error message shown when provided value has been taken already.
*
*
* string errorMessage = 2;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = 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:members.CustomExternalId)
}
// @@protoc_insertion_point(class_scope:members.CustomExternalId)
private static final com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId();
}
public static com.passkit.grpc.Members.ProgramOuterClass.CustomExternalId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomExternalId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomExternalId(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.Members.ProgramOuterClass.CustomExternalId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_PointsType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_PointsType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_Program_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_Program_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_Program_CallbacksEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_Program_CallbacksEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_EventCaptureSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_EventCaptureSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_EventCaptureSettings_EventDataRetentionSettingsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_EventCaptureSettings_EventDataRetentionSettingsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_ProgramCopyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_ProgramCopyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_ListProgramsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_ListProgramsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_GetMetaKeysResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_GetMetaKeysResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_members_CustomExternalId_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_members_CustomExternalId_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027io/member/program.proto\022\007members\032\037goog" +
"le/protobuf/timestamp.proto\032\030io/common/c" +
"allback.proto\032\034io/common/distribution.pr" +
"oto\032\034io/common/localization.proto\032\027io/co" +
"mmon/metrics.proto\032\027io/common/project.pr" +
"oto\032\027io/common/billing.proto\032.protoc-gen" +
"-openapiv2/options/annotations.proto\"M\n\n" +
"PointsType\022)\n\013balanceType\030\001 \001(\0162\024.member" +
"s.BalanceType\022\024\n\014currencyCode\030\002 \001(\t\"\272\010\n\007" +
"Program\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022*\n\rloc" +
"alizedName\030\003 \001(\0132\023.io.LocalizedString\022!\n" +
"\006status\030\004 \003(\0162\021.io.ProjectStatus\022\030\n\005quot" +
"a\030\005 \001(\0132\t.io.Quota\022\032\n\022passTypeIdentifier" +
"\030\006 \001(\t\0226\n\024distributionSettings\030\007 \001(\0132\030.i" +
"o.DistributionSettings\022!\n\031autoDeleteDays" +
"AfterExpiry\030\010 \001(\r\022$\n\034autoReminderDaysBef" +
"oreExpiry\030\t \001(\r\022\025\n\rexpiryMessage\030\n \001(\t\0223" +
"\n\026localizedExpiryMessage\030\013 \001(\0132\023.io.Loca" +
"lizedString\022(\n autoDeleteDaysAfterNotIns" +
"talling\030\014 \001(\r\0222\n\tcallbacks\030\016 \003(\0132\037.membe" +
"rs.Program.CallbacksEntry\022\'\n\npointsType\030" +
"\020 \001(\0132\023.members.PointsType\0220\n\023secondaryP" +
"ointsType\030\021 \001(\0132\023.members.PointsType\022\034\n\007" +
"metrics\030\023 \001(\0132\013.io.Metrics\022\026\n\016metaFields" +
"List\030\024 \003(\t\022+\n\007created\030\025 \001(\0132\032.google.pro" +
"tobuf.Timestamp\022+\n\007updated\030\026 \001(\0132\032.googl" +
"e.protobuf.Timestamp\022:\n\024profileImageSett" +
"ings\030\027 \001(\0162\034.members.ProfileImageSetting" +
"\022@\n\035applyFieldToExternalIdOnEnrol\030\030 \001(\0132" +
"\031.members.CustomExternalId\022;\n\024eventCaptu" +
"reSettings\030\031 \001(\0132\035.members.EventCaptureS" +
"ettings\032>\n\016CallbacksEntry\022\013\n\003key\030\001 \001(\r\022\033" +
"\n\005value\030\002 \001(\0132\014.io.Callback:\0028\001:s\222Ap\nn*\007" +
"Program2SMembership Programs allow a com" +
"pany to control the business logic of th" +
"eir program.\322\001\004name\322\001\006statusJ\004\010\r\020\016J\004\010\022\020\023" +
"\"\374\001\n\024EventCaptureSettings\022a\n\032eventDataRe" +
"tentionSettings\030\001 \003(\0132=.members.EventCap" +
"tureSettings.EventDataRetentionSettingsE" +
"ntry\022\035\n\025smsConfirmUponCheckIn\030\002 \001(\010\022\037\n\027e" +
"mailConfirmUponCheckIn\030\003 \001(\010\032A\n\037EventDat" +
"aRetentionSettingsEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005" +
"value\030\002 \001(\r:\0028\001\"m\n\022ProgramCopyRequest\022\n\n" +
"\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022!\n\006status\030\003 \003(\0162" +
"\021.io.ProjectStatus\022\032\n\022passTypeIdentifier" +
"\030\004 \001(\t\":\n\024ListProgramsResponse\022\"\n\010progra" +
"ms\030\001 \003(\0132\020.members.Program\"#\n\023GetMetaKey" +
"sResponse\022\014\n\004keys\030\001 \003(\t\"A\n\020CustomExterna" +
"lId\022\027\n\017fieldUniqueName\030\001 \001(\t\022\024\n\014errorMes" +
"sage\030\002 \001(\t*\217\001\n\036ProgramAutoUpDownGradeTie" +
"rType\022\026\n\022UPDOWNGRADE_POINTS\020\000\022 \n\034UPDOWNG" +
"RADE_SECONDARY_POINTS\020\001\022\033\n\027UPDOWNGRADE_T" +
"IER_POINTS\020\002\022\026\n\022UPDOWNGRADE_VISITS\020\003*m\n\013" +
"BalanceType\022\027\n\023BALANCE_TYPE_STRING\020\000\022\024\n\020" +
"BALANCE_TYPE_INT\020\001\022\027\n\023BALANCE_TYPE_DOUBL" +
"E\020\002\022\026\n\022BALANCE_TYPE_MONEY\020\003*e\n\023ProfileIm" +
"ageSetting\022\026\n\022PROFILE_IMAGE_NONE\020\000\022\032\n\026PR" +
"OFILE_IMAGE_OPTIONAL\020\001\022\032\n\026PROFILE_IMAGE_" +
"REQUIRED\020\002B_\n\030com.passkit.grpc.MembersZ," +
"stash.passkit.com/io/model/sdk/go/io/mem" +
"bers\252\002\024PassKit.Grpc.Membersb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
com.passkit.grpc.CallbackOuterClass.getDescriptor(),
com.passkit.grpc.Distribution.getDescriptor(),
com.passkit.grpc.Localization.getDescriptor(),
com.passkit.grpc.MetricsOuterClass.getDescriptor(),
com.passkit.grpc.ProjectOuterClass.getDescriptor(),
com.passkit.grpc.Billing.getDescriptor(),
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
});
internal_static_members_PointsType_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_members_PointsType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_PointsType_descriptor,
new java.lang.String[] { "BalanceType", "CurrencyCode", });
internal_static_members_Program_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_members_Program_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_Program_descriptor,
new java.lang.String[] { "Id", "Name", "LocalizedName", "Status", "Quota", "PassTypeIdentifier", "DistributionSettings", "AutoDeleteDaysAfterExpiry", "AutoReminderDaysBeforeExpiry", "ExpiryMessage", "LocalizedExpiryMessage", "AutoDeleteDaysAfterNotInstalling", "Callbacks", "PointsType", "SecondaryPointsType", "Metrics", "MetaFieldsList", "Created", "Updated", "ProfileImageSettings", "ApplyFieldToExternalIdOnEnrol", "EventCaptureSettings", });
internal_static_members_Program_CallbacksEntry_descriptor =
internal_static_members_Program_descriptor.getNestedTypes().get(0);
internal_static_members_Program_CallbacksEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_Program_CallbacksEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_members_EventCaptureSettings_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_members_EventCaptureSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_EventCaptureSettings_descriptor,
new java.lang.String[] { "EventDataRetentionSettings", "SmsConfirmUponCheckIn", "EmailConfirmUponCheckIn", });
internal_static_members_EventCaptureSettings_EventDataRetentionSettingsEntry_descriptor =
internal_static_members_EventCaptureSettings_descriptor.getNestedTypes().get(0);
internal_static_members_EventCaptureSettings_EventDataRetentionSettingsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_EventCaptureSettings_EventDataRetentionSettingsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_members_ProgramCopyRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_members_ProgramCopyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_ProgramCopyRequest_descriptor,
new java.lang.String[] { "Id", "Name", "Status", "PassTypeIdentifier", });
internal_static_members_ListProgramsResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_members_ListProgramsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_ListProgramsResponse_descriptor,
new java.lang.String[] { "Programs", });
internal_static_members_GetMetaKeysResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_members_GetMetaKeysResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_GetMetaKeysResponse_descriptor,
new java.lang.String[] { "Keys", });
internal_static_members_CustomExternalId_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_members_CustomExternalId_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_members_CustomExternalId_descriptor,
new java.lang.String[] { "FieldUniqueName", "ErrorMessage", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.TimestampProto.getDescriptor();
com.passkit.grpc.CallbackOuterClass.getDescriptor();
com.passkit.grpc.Distribution.getDescriptor();
com.passkit.grpc.Localization.getDescriptor();
com.passkit.grpc.MetricsOuterClass.getDescriptor();
com.passkit.grpc.ProjectOuterClass.getDescriptor();
com.passkit.grpc.Billing.getDescriptor();
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}