com.passkit.grpc.Template Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/common/template.proto
package com.passkit.grpc;
public final class Template {
private Template() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Apple pass types
*
*
* Protobuf enum {@code io.ApplePassType}
*/
public enum ApplePassType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Use if you do not wish to support Apple Wallet
*
*
* APPLE_NOT_SUPPORTED = 0;
*/
APPLE_NOT_SUPPORTED(0),
/**
* BOARDING_PASS = 1;
*/
BOARDING_PASS(1),
/**
* COUPON = 2;
*/
COUPON(2),
/**
* EVENT_TICKET = 3;
*/
EVENT_TICKET(3),
/**
* GENERIC = 4;
*/
GENERIC(4),
/**
* STORE_CARD = 5;
*/
STORE_CARD(5),
UNRECOGNIZED(-1),
;
/**
*
* Use if you do not wish to support Apple Wallet
*
*
* APPLE_NOT_SUPPORTED = 0;
*/
public static final int APPLE_NOT_SUPPORTED_VALUE = 0;
/**
* BOARDING_PASS = 1;
*/
public static final int BOARDING_PASS_VALUE = 1;
/**
* COUPON = 2;
*/
public static final int COUPON_VALUE = 2;
/**
* EVENT_TICKET = 3;
*/
public static final int EVENT_TICKET_VALUE = 3;
/**
* GENERIC = 4;
*/
public static final int GENERIC_VALUE = 4;
/**
* STORE_CARD = 5;
*/
public static final int STORE_CARD_VALUE = 5;
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 ApplePassType 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 ApplePassType forNumber(int value) {
switch (value) {
case 0: return APPLE_NOT_SUPPORTED;
case 1: return BOARDING_PASS;
case 2: return COUPON;
case 3: return EVENT_TICKET;
case 4: return GENERIC;
case 5: return STORE_CARD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ApplePassType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ApplePassType findValueByNumber(int number) {
return ApplePassType.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.Template.getDescriptor().getEnumTypes().get(0);
}
private static final ApplePassType[] VALUES = values();
public static ApplePassType 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 ApplePassType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.ApplePassType)
}
/**
*
* Google Pay pass types
*
*
* Protobuf enum {@code io.GooglePayPassType}
*/
public enum GooglePayPassType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Use if you do not wish to support Google Pay
*
*
* GOOGLE_PAY_NOT_SUPPORTED = 0;
*/
GOOGLE_PAY_NOT_SUPPORTED(0),
/**
* EVENT = 1;
*/
EVENT(1),
/**
* FLIGHT = 2;
*/
FLIGHT(2),
/**
* GIFT = 3;
*/
GIFT(3),
/**
* LOYALTY = 4;
*/
LOYALTY(4),
/**
* OFFER = 5;
*/
OFFER(5),
/**
* TRANSIT = 6;
*/
TRANSIT(6),
UNRECOGNIZED(-1),
;
/**
*
* Use if you do not wish to support Google Pay
*
*
* GOOGLE_PAY_NOT_SUPPORTED = 0;
*/
public static final int GOOGLE_PAY_NOT_SUPPORTED_VALUE = 0;
/**
* EVENT = 1;
*/
public static final int EVENT_VALUE = 1;
/**
* FLIGHT = 2;
*/
public static final int FLIGHT_VALUE = 2;
/**
* GIFT = 3;
*/
public static final int GIFT_VALUE = 3;
/**
* LOYALTY = 4;
*/
public static final int LOYALTY_VALUE = 4;
/**
* OFFER = 5;
*/
public static final int OFFER_VALUE = 5;
/**
* TRANSIT = 6;
*/
public static final int TRANSIT_VALUE = 6;
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 GooglePayPassType 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 GooglePayPassType forNumber(int value) {
switch (value) {
case 0: return GOOGLE_PAY_NOT_SUPPORTED;
case 1: return EVENT;
case 2: return FLIGHT;
case 3: return GIFT;
case 4: return LOYALTY;
case 5: return OFFER;
case 6: return TRANSIT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GooglePayPassType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public GooglePayPassType findValueByNumber(int number) {
return GooglePayPassType.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.Template.getDescriptor().getEnumTypes().get(1);
}
private static final GooglePayPassType[] VALUES = values();
public static GooglePayPassType 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 GooglePayPassType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.GooglePayPassType)
}
/**
*
* Barcode type sets the type of barcode for the pass.
*
*
* Protobuf enum {@code io.BarcodeType}
*/
public enum BarcodeType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* BARCODE_TYPE_DO_NOT_USE = 0;
*/
BARCODE_TYPE_DO_NOT_USE(0),
/**
*
* QR code can store 4 types of data: numeric, alphanumeric, byte/binary, and Kanji (Chinese characters).
*
*
* QR = 1;
*/
QR(1),
/**
*
* Aztec codes are commonly used by the transportation industry such as tickets and airline boarding passes.
*
*
* AZTEC = 2;
*/
AZTEC(2),
/**
*
* 2D barcode which can store multiple data encodings. Not recommended for large payloads.
*
*
* PDF417 = 3;
*/
PDF417(3),
/**
*
* Supports any character of the ASCII 128 character set which can store highly diversified information. Suitable for older scanners that may not support 2D barcodes, however, some older scanners may also not be able to read from a phone screen, so requires proper testing before use.
*
*
* CODE128 = 4;
*/
CODE128(4),
/**
*
* This does not set a barcode. If you set barcode type as none, no barcode will be shown on the pass.
*
*
* NONE = 5;
*/
NONE(5),
UNRECOGNIZED(-1),
;
/**
* BARCODE_TYPE_DO_NOT_USE = 0;
*/
public static final int BARCODE_TYPE_DO_NOT_USE_VALUE = 0;
/**
*
* QR code can store 4 types of data: numeric, alphanumeric, byte/binary, and Kanji (Chinese characters).
*
*
* QR = 1;
*/
public static final int QR_VALUE = 1;
/**
*
* Aztec codes are commonly used by the transportation industry such as tickets and airline boarding passes.
*
*
* AZTEC = 2;
*/
public static final int AZTEC_VALUE = 2;
/**
*
* 2D barcode which can store multiple data encodings. Not recommended for large payloads.
*
*
* PDF417 = 3;
*/
public static final int PDF417_VALUE = 3;
/**
*
* Supports any character of the ASCII 128 character set which can store highly diversified information. Suitable for older scanners that may not support 2D barcodes, however, some older scanners may also not be able to read from a phone screen, so requires proper testing before use.
*
*
* CODE128 = 4;
*/
public static final int CODE128_VALUE = 4;
/**
*
* This does not set a barcode. If you set barcode type as none, no barcode will be shown on the pass.
*
*
* NONE = 5;
*/
public static final int NONE_VALUE = 5;
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 BarcodeType 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 BarcodeType forNumber(int value) {
switch (value) {
case 0: return BARCODE_TYPE_DO_NOT_USE;
case 1: return QR;
case 2: return AZTEC;
case 3: return PDF417;
case 4: return CODE128;
case 5: return NONE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BarcodeType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BarcodeType findValueByNumber(int number) {
return BarcodeType.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.Template.getDescriptor().getEnumTypes().get(2);
}
private static final BarcodeType[] VALUES = values();
public static BarcodeType 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 BarcodeType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.BarcodeType)
}
/**
*
* Field type categorize a type of field rendered on pass or data collection page. The value will be auto-configured on the backend.
*
*
* Protobuf enum {@code io.FieldType}
*/
public enum FieldType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FIELD_TYPE_NONE = 0;
*/
FIELD_TYPE_NONE(0),
/**
*
* Meta fields. DataField.UniqueName needs to be meta.FIELDNAME.
*
*
* META = 1;
*/
META(1),
/**
*
* PII fields. DataField.UniqueName needs to be person.FIELDNAME.
*
*
* PII = 2;
*/
PII(2),
/**
*
* Universal fields used across protocols (e.g. Terms And Conditions, Locations, Messages). DataField.UniqueName needs to be universal.FIELDNAME (e.g. universal.messages).
*
*
* UNIVERSAL_FIELDS = 3;
*/
UNIVERSAL_FIELDS(3),
/**
*
* Protocol specific fields. DataField.UniqueName needs to be protocol.OBJECT.FIELDNAME.
*
*
* PROTOCOL_FIELDS = 4;
*/
PROTOCOL_FIELDS(4),
/**
*
* Custom fields are fields which are created only for pass render purpose and does not belong to other field type.
*
*
* CUSTOM_FIELDS = 5;
*/
CUSTOM_FIELDS(5),
UNRECOGNIZED(-1),
;
/**
* FIELD_TYPE_NONE = 0;
*/
public static final int FIELD_TYPE_NONE_VALUE = 0;
/**
*
* Meta fields. DataField.UniqueName needs to be meta.FIELDNAME.
*
*
* META = 1;
*/
public static final int META_VALUE = 1;
/**
*
* PII fields. DataField.UniqueName needs to be person.FIELDNAME.
*
*
* PII = 2;
*/
public static final int PII_VALUE = 2;
/**
*
* Universal fields used across protocols (e.g. Terms And Conditions, Locations, Messages). DataField.UniqueName needs to be universal.FIELDNAME (e.g. universal.messages).
*
*
* UNIVERSAL_FIELDS = 3;
*/
public static final int UNIVERSAL_FIELDS_VALUE = 3;
/**
*
* Protocol specific fields. DataField.UniqueName needs to be protocol.OBJECT.FIELDNAME.
*
*
* PROTOCOL_FIELDS = 4;
*/
public static final int PROTOCOL_FIELDS_VALUE = 4;
/**
*
* Custom fields are fields which are created only for pass render purpose and does not belong to other field type.
*
*
* CUSTOM_FIELDS = 5;
*/
public static final int CUSTOM_FIELDS_VALUE = 5;
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 FieldType 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 FieldType forNumber(int value) {
switch (value) {
case 0: return FIELD_TYPE_NONE;
case 1: return META;
case 2: return PII;
case 3: return UNIVERSAL_FIELDS;
case 4: return PROTOCOL_FIELDS;
case 5: return CUSTOM_FIELDS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FieldType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FieldType findValueByNumber(int number) {
return FieldType.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.Template.getDescriptor().getEnumTypes().get(3);
}
private static final FieldType[] VALUES = values();
public static FieldType 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 FieldType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.FieldType)
}
/**
* Protobuf enum {@code io.StandardFields}
*/
public enum StandardFields
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STANDARD_FIELDS_DO_NOT_USE = 0;
*/
STANDARD_FIELDS_DO_NOT_USE(0),
/**
* STANDARD_MESSAGES = 1;
*/
STANDARD_MESSAGES(1),
/**
* STANDARD_LEGAL = 2;
*/
STANDARD_LEGAL(2),
/**
* STANDARD_EXPIRY_DATE = 3;
*/
STANDARD_EXPIRY_DATE(3),
/**
* STANDARD_USEFUL_LINKS = 4;
*/
STANDARD_USEFUL_LINKS(4),
/**
* STANDARD_OPT_OUT = 5;
*/
STANDARD_OPT_OUT(5),
/**
* STANDARD_LOCATIONS = 6;
*/
STANDARD_LOCATIONS(6),
UNRECOGNIZED(-1),
;
/**
* STANDARD_FIELDS_DO_NOT_USE = 0;
*/
public static final int STANDARD_FIELDS_DO_NOT_USE_VALUE = 0;
/**
* STANDARD_MESSAGES = 1;
*/
public static final int STANDARD_MESSAGES_VALUE = 1;
/**
* STANDARD_LEGAL = 2;
*/
public static final int STANDARD_LEGAL_VALUE = 2;
/**
* STANDARD_EXPIRY_DATE = 3;
*/
public static final int STANDARD_EXPIRY_DATE_VALUE = 3;
/**
* STANDARD_USEFUL_LINKS = 4;
*/
public static final int STANDARD_USEFUL_LINKS_VALUE = 4;
/**
* STANDARD_OPT_OUT = 5;
*/
public static final int STANDARD_OPT_OUT_VALUE = 5;
/**
* STANDARD_LOCATIONS = 6;
*/
public static final int STANDARD_LOCATIONS_VALUE = 6;
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 StandardFields 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 StandardFields forNumber(int value) {
switch (value) {
case 0: return STANDARD_FIELDS_DO_NOT_USE;
case 1: return STANDARD_MESSAGES;
case 2: return STANDARD_LEGAL;
case 3: return STANDARD_EXPIRY_DATE;
case 4: return STANDARD_USEFUL_LINKS;
case 5: return STANDARD_OPT_OUT;
case 6: return STANDARD_LOCATIONS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StandardFields> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StandardFields findValueByNumber(int number) {
return StandardFields.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.Template.getDescriptor().getEnumTypes().get(4);
}
private static final StandardFields[] VALUES = values();
public static StandardFields 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 StandardFields(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.StandardFields)
}
/**
* Protobuf enum {@code io.TextAlignment}
*/
public enum TextAlignment
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TEXT_ALIGNMENT_DO_NOT_USE = 0;
*/
TEXT_ALIGNMENT_DO_NOT_USE(0),
/**
* LEFT = 1;
*/
LEFT(1),
/**
* CENTER = 2;
*/
CENTER(2),
/**
* RIGHT = 3;
*/
RIGHT(3),
/**
*
* Used for Apple only.
*
*
* NATURAL = 4;
*/
NATURAL(4),
UNRECOGNIZED(-1),
;
/**
* TEXT_ALIGNMENT_DO_NOT_USE = 0;
*/
public static final int TEXT_ALIGNMENT_DO_NOT_USE_VALUE = 0;
/**
* LEFT = 1;
*/
public static final int LEFT_VALUE = 1;
/**
* CENTER = 2;
*/
public static final int CENTER_VALUE = 2;
/**
* RIGHT = 3;
*/
public static final int RIGHT_VALUE = 3;
/**
*
* Used for Apple only.
*
*
* NATURAL = 4;
*/
public static final int NATURAL_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TextAlignment 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 TextAlignment forNumber(int value) {
switch (value) {
case 0: return TEXT_ALIGNMENT_DO_NOT_USE;
case 1: return LEFT;
case 2: return CENTER;
case 3: return RIGHT;
case 4: return NATURAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TextAlignment> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TextAlignment findValueByNumber(int number) {
return TextAlignment.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.Template.getDescriptor().getEnumTypes().get(5);
}
private static final TextAlignment[] VALUES = values();
public static TextAlignment 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 TextAlignment(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.TextAlignment)
}
/**
* Protobuf enum {@code io.DateTimeStyle}
*/
public enum DateTimeStyle
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DATE_TIME_STYLE_DO_NOT_USE = 0;
*/
DATE_TIME_STYLE_DO_NOT_USE(0),
/**
* DATE_TIME_STYLE_SHORT = 1;
*/
DATE_TIME_STYLE_SHORT(1),
/**
* DATE_TIME_STYLE_MEDIUM = 2;
*/
DATE_TIME_STYLE_MEDIUM(2),
/**
* DATE_TIME_STYLE_LONG = 3;
*/
DATE_TIME_STYLE_LONG(3),
/**
* DATE_TIME_STYLE_FULL = 4;
*/
DATE_TIME_STYLE_FULL(4),
UNRECOGNIZED(-1),
;
/**
* DATE_TIME_STYLE_DO_NOT_USE = 0;
*/
public static final int DATE_TIME_STYLE_DO_NOT_USE_VALUE = 0;
/**
* DATE_TIME_STYLE_SHORT = 1;
*/
public static final int DATE_TIME_STYLE_SHORT_VALUE = 1;
/**
* DATE_TIME_STYLE_MEDIUM = 2;
*/
public static final int DATE_TIME_STYLE_MEDIUM_VALUE = 2;
/**
* DATE_TIME_STYLE_LONG = 3;
*/
public static final int DATE_TIME_STYLE_LONG_VALUE = 3;
/**
* DATE_TIME_STYLE_FULL = 4;
*/
public static final int DATE_TIME_STYLE_FULL_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DateTimeStyle 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 DateTimeStyle forNumber(int value) {
switch (value) {
case 0: return DATE_TIME_STYLE_DO_NOT_USE;
case 1: return DATE_TIME_STYLE_SHORT;
case 2: return DATE_TIME_STYLE_MEDIUM;
case 3: return DATE_TIME_STYLE_LONG;
case 4: return DATE_TIME_STYLE_FULL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DateTimeStyle> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DateTimeStyle findValueByNumber(int number) {
return DateTimeStyle.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.Template.getDescriptor().getEnumTypes().get(6);
}
private static final DateTimeStyle[] VALUES = values();
public static DateTimeStyle 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 DateTimeStyle(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.DateTimeStyle)
}
/**
* Protobuf enum {@code io.LinkDetector}
*/
public enum LinkDetector
implements com.google.protobuf.ProtocolMessageEnum {
/**
* LINK_DETECTOR_DO_NOT_USE = 0;
*/
LINK_DETECTOR_DO_NOT_USE(0),
/**
* LINK_DETECTOR_ADDRESS = 1;
*/
LINK_DETECTOR_ADDRESS(1),
/**
* LINK_DETECTOR_DATE = 2;
*/
LINK_DETECTOR_DATE(2),
/**
* LINK_DETECTOR_URL = 3;
*/
LINK_DETECTOR_URL(3),
/**
* LINK_DETECTOR_PHONE = 4;
*/
LINK_DETECTOR_PHONE(4),
UNRECOGNIZED(-1),
;
/**
* LINK_DETECTOR_DO_NOT_USE = 0;
*/
public static final int LINK_DETECTOR_DO_NOT_USE_VALUE = 0;
/**
* LINK_DETECTOR_ADDRESS = 1;
*/
public static final int LINK_DETECTOR_ADDRESS_VALUE = 1;
/**
* LINK_DETECTOR_DATE = 2;
*/
public static final int LINK_DETECTOR_DATE_VALUE = 2;
/**
* LINK_DETECTOR_URL = 3;
*/
public static final int LINK_DETECTOR_URL_VALUE = 3;
/**
* LINK_DETECTOR_PHONE = 4;
*/
public static final int LINK_DETECTOR_PHONE_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LinkDetector 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 LinkDetector forNumber(int value) {
switch (value) {
case 0: return LINK_DETECTOR_DO_NOT_USE;
case 1: return LINK_DETECTOR_ADDRESS;
case 2: return LINK_DETECTOR_DATE;
case 3: return LINK_DETECTOR_URL;
case 4: return LINK_DETECTOR_PHONE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LinkDetector> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LinkDetector findValueByNumber(int number) {
return LinkDetector.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.Template.getDescriptor().getEnumTypes().get(7);
}
private static final LinkDetector[] VALUES = values();
public static LinkDetector 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 LinkDetector(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.LinkDetector)
}
/**
* Protobuf enum {@code io.NumberStyle}
*/
public enum NumberStyle
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NUMBER_STYLE_DO_NOT_USE = 0;
*/
NUMBER_STYLE_DO_NOT_USE(0),
/**
* NUMBER_STYLE_DECIMAL = 1;
*/
NUMBER_STYLE_DECIMAL(1),
/**
* NUMBER_STYLE_PERCENT = 2;
*/
NUMBER_STYLE_PERCENT(2),
/**
* NUMBER_STYLE_SCIENTIFIC = 3;
*/
NUMBER_STYLE_SCIENTIFIC(3),
/**
* NUMBER_STYLE_SPELL = 4;
*/
NUMBER_STYLE_SPELL(4),
UNRECOGNIZED(-1),
;
/**
* NUMBER_STYLE_DO_NOT_USE = 0;
*/
public static final int NUMBER_STYLE_DO_NOT_USE_VALUE = 0;
/**
* NUMBER_STYLE_DECIMAL = 1;
*/
public static final int NUMBER_STYLE_DECIMAL_VALUE = 1;
/**
* NUMBER_STYLE_PERCENT = 2;
*/
public static final int NUMBER_STYLE_PERCENT_VALUE = 2;
/**
* NUMBER_STYLE_SCIENTIFIC = 3;
*/
public static final int NUMBER_STYLE_SCIENTIFIC_VALUE = 3;
/**
* NUMBER_STYLE_SPELL = 4;
*/
public static final int NUMBER_STYLE_SPELL_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NumberStyle 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 NumberStyle forNumber(int value) {
switch (value) {
case 0: return NUMBER_STYLE_DO_NOT_USE;
case 1: return NUMBER_STYLE_DECIMAL;
case 2: return NUMBER_STYLE_PERCENT;
case 3: return NUMBER_STYLE_SCIENTIFIC;
case 4: return NUMBER_STYLE_SPELL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NumberStyle> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NumberStyle findValueByNumber(int number) {
return NumberStyle.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.Template.getDescriptor().getEnumTypes().get(8);
}
private static final NumberStyle[] VALUES = values();
public static NumberStyle 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 NumberStyle(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.NumberStyle)
}
/**
* Protobuf enum {@code io.TransitType}
*/
public enum TransitType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TRANSIT_TYPE_DO_NOT_USE = 0;
*/
TRANSIT_TYPE_DO_NOT_USE(0),
/**
* TRANSIT_TYPE_AIR = 1;
*/
TRANSIT_TYPE_AIR(1),
/**
* TRANSIT_TYPE_BOAT = 2;
*/
TRANSIT_TYPE_BOAT(2),
/**
* TRANSIT_TYPE_BUS = 3;
*/
TRANSIT_TYPE_BUS(3),
/**
* TRANSIT_TYPE_GENERIC = 4;
*/
TRANSIT_TYPE_GENERIC(4),
/**
* TRANSIT_TYPE_TRAIN = 5;
*/
TRANSIT_TYPE_TRAIN(5),
/**
*
* Google Pay only.
*
*
* TRANSIT_TYPE_TRAM = 6;
*/
TRANSIT_TYPE_TRAM(6),
UNRECOGNIZED(-1),
;
/**
* TRANSIT_TYPE_DO_NOT_USE = 0;
*/
public static final int TRANSIT_TYPE_DO_NOT_USE_VALUE = 0;
/**
* TRANSIT_TYPE_AIR = 1;
*/
public static final int TRANSIT_TYPE_AIR_VALUE = 1;
/**
* TRANSIT_TYPE_BOAT = 2;
*/
public static final int TRANSIT_TYPE_BOAT_VALUE = 2;
/**
* TRANSIT_TYPE_BUS = 3;
*/
public static final int TRANSIT_TYPE_BUS_VALUE = 3;
/**
* TRANSIT_TYPE_GENERIC = 4;
*/
public static final int TRANSIT_TYPE_GENERIC_VALUE = 4;
/**
* TRANSIT_TYPE_TRAIN = 5;
*/
public static final int TRANSIT_TYPE_TRAIN_VALUE = 5;
/**
*
* Google Pay only.
*
*
* TRANSIT_TYPE_TRAM = 6;
*/
public static final int TRANSIT_TYPE_TRAM_VALUE = 6;
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 TransitType 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 TransitType forNumber(int value) {
switch (value) {
case 0: return TRANSIT_TYPE_DO_NOT_USE;
case 1: return TRANSIT_TYPE_AIR;
case 2: return TRANSIT_TYPE_BOAT;
case 3: return TRANSIT_TYPE_BUS;
case 4: return TRANSIT_TYPE_GENERIC;
case 5: return TRANSIT_TYPE_TRAIN;
case 6: return TRANSIT_TYPE_TRAM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TransitType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TransitType findValueByNumber(int number) {
return TransitType.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.Template.getDescriptor().getEnumTypes().get(9);
}
private static final TransitType[] VALUES = values();
public static TransitType 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 TransitType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.TransitType)
}
/**
*
* Indicates the type of data.
* IMPOTANT: If string is changed, please update data collection page data-collection-page.html.tmpl if statements.
*
*
* Protobuf enum {@code io.DataType}
*/
public enum DataType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DATA_TYPE_NONE = 0;
*/
DATA_TYPE_NONE(0),
/**
*
* default
*
*
* TEXT = 1;
*/
TEXT(1),
/**
*
* The only difference with TEXT is that TEXT_LONG renders textarea tag on the data collection landing page.
*
*
* TEXT_LONG = 2;
*/
TEXT_LONG(2),
/**
*
* Date containing year, month and date. No style.
*
*
* DATE_YYYYMMDD = 3;
*/
DATE_YYYYMMDD(3),
/**
*
* Date containing year and month. No style.
*
*
* DATE_YYYYMM = 4;
*/
DATE_YYYYMM(4),
/**
*
* Date containing month and date. No style.
*
*
* DATE_MMDD = 5;
*/
DATE_MMDD(5),
/**
* TIME = 6;
*/
TIME(6),
/**
* DATE_TIME = 7;
*/
DATE_TIME(7),
/**
*
* A number (No decimal support).
*
*
* INT = 8;
*/
INT(8),
/**
*
* A number with decimal support.
*
*
* NUMBER = 9;
*/
NUMBER(9),
/**
* EMAIL = 10;
*/
EMAIL(10),
/**
* URL = 11;
*/
URL(11),
/**
* TEL = 12;
*/
TEL(12),
/**
* ADDRESS = 13;
*/
ADDRESS(13),
/**
*
* IMAGE = 15; // we can comment out IMAGE when backend implement the string logic for uploaded image file.
*
*
* IMAGE = 15;
*/
IMAGE(15),
/**
*
* A value of money amount in float (e.g. 5, 10.00, 40.95, 60.9333333333) .
*
*
* CURRENCY = 16;
*/
CURRENCY(16),
/**
* BOOLEAN = 17;
*/
BOOLEAN(17),
/**
*
* A list of key value pairs
*
*
* OPTIONS = 18;
*/
OPTIONS(18),
/**
* DATE_MM = 19;
*/
DATE_MM(19),
UNRECOGNIZED(-1),
;
/**
* DATA_TYPE_NONE = 0;
*/
public static final int DATA_TYPE_NONE_VALUE = 0;
/**
*
* default
*
*
* TEXT = 1;
*/
public static final int TEXT_VALUE = 1;
/**
*
* The only difference with TEXT is that TEXT_LONG renders textarea tag on the data collection landing page.
*
*
* TEXT_LONG = 2;
*/
public static final int TEXT_LONG_VALUE = 2;
/**
*
* Date containing year, month and date. No style.
*
*
* DATE_YYYYMMDD = 3;
*/
public static final int DATE_YYYYMMDD_VALUE = 3;
/**
*
* Date containing year and month. No style.
*
*
* DATE_YYYYMM = 4;
*/
public static final int DATE_YYYYMM_VALUE = 4;
/**
*
* Date containing month and date. No style.
*
*
* DATE_MMDD = 5;
*/
public static final int DATE_MMDD_VALUE = 5;
/**
* TIME = 6;
*/
public static final int TIME_VALUE = 6;
/**
* DATE_TIME = 7;
*/
public static final int DATE_TIME_VALUE = 7;
/**
*
* A number (No decimal support).
*
*
* INT = 8;
*/
public static final int INT_VALUE = 8;
/**
*
* A number with decimal support.
*
*
* NUMBER = 9;
*/
public static final int NUMBER_VALUE = 9;
/**
* EMAIL = 10;
*/
public static final int EMAIL_VALUE = 10;
/**
* URL = 11;
*/
public static final int URL_VALUE = 11;
/**
* TEL = 12;
*/
public static final int TEL_VALUE = 12;
/**
* ADDRESS = 13;
*/
public static final int ADDRESS_VALUE = 13;
/**
*
* IMAGE = 15; // we can comment out IMAGE when backend implement the string logic for uploaded image file.
*
*
* IMAGE = 15;
*/
public static final int IMAGE_VALUE = 15;
/**
*
* A value of money amount in float (e.g. 5, 10.00, 40.95, 60.9333333333) .
*
*
* CURRENCY = 16;
*/
public static final int CURRENCY_VALUE = 16;
/**
* BOOLEAN = 17;
*/
public static final int BOOLEAN_VALUE = 17;
/**
*
* A list of key value pairs
*
*
* OPTIONS = 18;
*/
public static final int OPTIONS_VALUE = 18;
/**
* DATE_MM = 19;
*/
public static final int DATE_MM_VALUE = 19;
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 DataType 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 DataType forNumber(int value) {
switch (value) {
case 0: return DATA_TYPE_NONE;
case 1: return TEXT;
case 2: return TEXT_LONG;
case 3: return DATE_YYYYMMDD;
case 4: return DATE_YYYYMM;
case 5: return DATE_MMDD;
case 6: return TIME;
case 7: return DATE_TIME;
case 8: return INT;
case 9: return NUMBER;
case 10: return EMAIL;
case 11: return URL;
case 12: return TEL;
case 13: return ADDRESS;
case 15: return IMAGE;
case 16: return CURRENCY;
case 17: return BOOLEAN;
case 18: return OPTIONS;
case 19: return DATE_MM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DataType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DataType findValueByNumber(int number) {
return DataType.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.Template.getDescriptor().getEnumTypes().get(10);
}
private static final DataType[] VALUES = values();
public static DataType 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 DataType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.DataType)
}
/**
*
* Data style controls how value will be rendered on the pass.
*
*
* Protobuf enum {@code io.DataStyle}
*/
public enum DataStyle
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NO_STYLE = 0;
*/
NO_STYLE(0),
/**
*
* Date containing year, month and date. Numeric only (e.g. 11/23/37).
*
*
* DATE_SHORT = 1;
*/
DATE_SHORT(1),
/**
*
* Date containing year, month and date. With abbreviated text (e.g. Nov 23, 1937).
*
*
* DATE_MEDIUM = 2;
*/
DATE_MEDIUM(2),
/**
*
* Date containing year, month and date. With full text (e.g. November 23, 1937).
*
*
* DATE_LONG = 3;
*/
DATE_LONG(3),
/**
*
* Date containing year, month and date. With complete details (e.g. Tuesday, April 12, 1952 AD).
*
*
* DATE_FULL = 4;
*/
DATE_FULL(4),
/**
*
* Date containing year, month and date. Numeric only (e.g. 3:30 PM).
*
*
* TIME_SHORT = 5;
*/
TIME_SHORT(5),
/**
*
* Date containing year, month and date. With abbreviated text (e.g. 3:30:32 PM).
*
*
* TIME_MEDIUM = 6;
*/
TIME_MEDIUM(6),
/**
*
* Date containing year, month and date. With full text (e.g. 3:30:32 PM PST).
*
*
* TIME_LONG = 7;
*/
TIME_LONG(7),
/**
*
* Date containing year, month and date. With complete details (e.g. 3:30:42 PM Pacific Standard Time).
*
*
* TIME_FULL = 8;
*/
TIME_FULL(8),
/**
*
* Date containing year, month and date. Numeric only (e.g. 11/23/37 3:30 PM).
*
*
* DATE_TIME_SHORT = 9;
*/
DATE_TIME_SHORT(9),
/**
*
* Date containing year, month and date. With abbreviated text (e.g. Nov 23, 1937 3:30:32 PM).
*
*
* DATE_TIME_MEDIUM = 10;
*/
DATE_TIME_MEDIUM(10),
/**
*
* Date containing year, month and date. With full text (e.g. November 23, 1937 3:30:32 PM PST).
*
*
* DATE_TIME_LONG = 11;
*/
DATE_TIME_LONG(11),
/**
*
* Date containing year, month and date. With complete details (e.g. Tuesday, April 12, 1952 AD 3:30:42 PM Pacific Standard Time).
*
*
* DATE_TIME_FULL = 12;
*/
DATE_TIME_FULL(12),
/**
* NUMBER_DECIMAL = 13;
*/
NUMBER_DECIMAL(13),
UNRECOGNIZED(-1),
;
/**
* NO_STYLE = 0;
*/
public static final int NO_STYLE_VALUE = 0;
/**
*
* Date containing year, month and date. Numeric only (e.g. 11/23/37).
*
*
* DATE_SHORT = 1;
*/
public static final int DATE_SHORT_VALUE = 1;
/**
*
* Date containing year, month and date. With abbreviated text (e.g. Nov 23, 1937).
*
*
* DATE_MEDIUM = 2;
*/
public static final int DATE_MEDIUM_VALUE = 2;
/**
*
* Date containing year, month and date. With full text (e.g. November 23, 1937).
*
*
* DATE_LONG = 3;
*/
public static final int DATE_LONG_VALUE = 3;
/**
*
* Date containing year, month and date. With complete details (e.g. Tuesday, April 12, 1952 AD).
*
*
* DATE_FULL = 4;
*/
public static final int DATE_FULL_VALUE = 4;
/**
*
* Date containing year, month and date. Numeric only (e.g. 3:30 PM).
*
*
* TIME_SHORT = 5;
*/
public static final int TIME_SHORT_VALUE = 5;
/**
*
* Date containing year, month and date. With abbreviated text (e.g. 3:30:32 PM).
*
*
* TIME_MEDIUM = 6;
*/
public static final int TIME_MEDIUM_VALUE = 6;
/**
*
* Date containing year, month and date. With full text (e.g. 3:30:32 PM PST).
*
*
* TIME_LONG = 7;
*/
public static final int TIME_LONG_VALUE = 7;
/**
*
* Date containing year, month and date. With complete details (e.g. 3:30:42 PM Pacific Standard Time).
*
*
* TIME_FULL = 8;
*/
public static final int TIME_FULL_VALUE = 8;
/**
*
* Date containing year, month and date. Numeric only (e.g. 11/23/37 3:30 PM).
*
*
* DATE_TIME_SHORT = 9;
*/
public static final int DATE_TIME_SHORT_VALUE = 9;
/**
*
* Date containing year, month and date. With abbreviated text (e.g. Nov 23, 1937 3:30:32 PM).
*
*
* DATE_TIME_MEDIUM = 10;
*/
public static final int DATE_TIME_MEDIUM_VALUE = 10;
/**
*
* Date containing year, month and date. With full text (e.g. November 23, 1937 3:30:32 PM PST).
*
*
* DATE_TIME_LONG = 11;
*/
public static final int DATE_TIME_LONG_VALUE = 11;
/**
*
* Date containing year, month and date. With complete details (e.g. Tuesday, April 12, 1952 AD 3:30:42 PM Pacific Standard Time).
*
*
* DATE_TIME_FULL = 12;
*/
public static final int DATE_TIME_FULL_VALUE = 12;
/**
* NUMBER_DECIMAL = 13;
*/
public static final int NUMBER_DECIMAL_VALUE = 13;
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 DataStyle 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 DataStyle forNumber(int value) {
switch (value) {
case 0: return NO_STYLE;
case 1: return DATE_SHORT;
case 2: return DATE_MEDIUM;
case 3: return DATE_LONG;
case 4: return DATE_FULL;
case 5: return TIME_SHORT;
case 6: return TIME_MEDIUM;
case 7: return TIME_LONG;
case 8: return TIME_FULL;
case 9: return DATE_TIME_SHORT;
case 10: return DATE_TIME_MEDIUM;
case 11: return DATE_TIME_LONG;
case 12: return DATE_TIME_FULL;
case 13: return NUMBER_DECIMAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DataStyle> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DataStyle findValueByNumber(int number) {
return DataStyle.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.Template.getDescriptor().getEnumTypes().get(11);
}
private static final DataStyle[] VALUES = values();
public static DataStyle 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 DataStyle(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.DataStyle)
}
/**
* Protobuf enum {@code io.FieldSection}
*/
public enum FieldSection
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FIELD_SECTION_DO_NOT_USE = 0;
*/
FIELD_SECTION_DO_NOT_USE(0),
/**
* BACK_FIELDS = 1;
*/
BACK_FIELDS(1),
/**
* PRIMARY_FIELDS = 2;
*/
PRIMARY_FIELDS(2),
/**
* SECONDARY_FIELDS = 3;
*/
SECONDARY_FIELDS(3),
/**
* AUXILIARY_FIELDS = 4;
*/
AUXILIARY_FIELDS(4),
/**
* HEADER_FIELDS = 5;
*/
HEADER_FIELDS(5),
UNRECOGNIZED(-1),
;
/**
* FIELD_SECTION_DO_NOT_USE = 0;
*/
public static final int FIELD_SECTION_DO_NOT_USE_VALUE = 0;
/**
* BACK_FIELDS = 1;
*/
public static final int BACK_FIELDS_VALUE = 1;
/**
* PRIMARY_FIELDS = 2;
*/
public static final int PRIMARY_FIELDS_VALUE = 2;
/**
* SECONDARY_FIELDS = 3;
*/
public static final int SECONDARY_FIELDS_VALUE = 3;
/**
* AUXILIARY_FIELDS = 4;
*/
public static final int AUXILIARY_FIELDS_VALUE = 4;
/**
* HEADER_FIELDS = 5;
*/
public static final int HEADER_FIELDS_VALUE = 5;
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 FieldSection 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 FieldSection forNumber(int value) {
switch (value) {
case 0: return FIELD_SECTION_DO_NOT_USE;
case 1: return BACK_FIELDS;
case 2: return PRIMARY_FIELDS;
case 3: return SECONDARY_FIELDS;
case 4: return AUXILIARY_FIELDS;
case 5: return HEADER_FIELDS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FieldSection> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FieldSection findValueByNumber(int number) {
return FieldSection.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.Template.getDescriptor().getEnumTypes().get(12);
}
private static final FieldSection[] VALUES = values();
public static FieldSection 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 FieldSection(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.FieldSection)
}
/**
* Protobuf enum {@code io.GooglePayField}
*/
public enum GooglePayField
implements com.google.protobuf.ProtocolMessageEnum {
/**
* GOOGLE_PAY_FIELD_DO_NOT_USE = 0;
*/
GOOGLE_PAY_FIELD_DO_NOT_USE(0),
/**
*
* Boarding 1-99
*
*
* GOOGLE_PAY_BOARDING_AIRLINE_NAME = 1;
*/
GOOGLE_PAY_BOARDING_AIRLINE_NAME(1),
/**
* GOOGLE_PAY_BOARDING_AIRLINE_CODE = 2;
*/
GOOGLE_PAY_BOARDING_AIRLINE_CODE(2),
/**
* GOOGLE_PAY_BOARDING_ORIGIN = 3;
*/
GOOGLE_PAY_BOARDING_ORIGIN(3),
/**
* GOOGLE_PAY_BOARDING_DESTINATION = 4;
*/
GOOGLE_PAY_BOARDING_DESTINATION(4),
/**
* GOOGLE_PAY_BOARDING_ORIGIN_TERMINAL = 5;
*/
GOOGLE_PAY_BOARDING_ORIGIN_TERMINAL(5),
/**
* GOOGLE_PAY_BOARDING_ORIGIN_GATE = 6;
*/
GOOGLE_PAY_BOARDING_ORIGIN_GATE(6),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_BOARDING_TIME = 7;
*/
GOOGLE_PAY_BOARDING_BOARDING_TIME(7),
/**
* GOOGLE_PAY_BOARDING_PASSENGER_NAME = 8;
*/
GOOGLE_PAY_BOARDING_PASSENGER_NAME(8),
/**
* GOOGLE_PAY_BOARDING_ZONE_GROUP = 9;
*/
GOOGLE_PAY_BOARDING_ZONE_GROUP(9),
/**
* GOOGLE_PAY_BOARDING_SEAT = 10;
*/
GOOGLE_PAY_BOARDING_SEAT(10),
/**
* GOOGLE_PAY_BOARDING_BOARDING_POSITION = 11;
*/
GOOGLE_PAY_BOARDING_BOARDING_POSITION(11),
/**
* GOOGLE_PAY_BOARDING_BOARDING_SEQUENCE = 12;
*/
GOOGLE_PAY_BOARDING_BOARDING_SEQUENCE(12),
/**
* GOOGLE_PAY_BOARDING_BOARDING_DOOR = 13;
*/
GOOGLE_PAY_BOARDING_BOARDING_DOOR(13),
/**
* GOOGLE_PAY_BOARDING_FLIGHT_NUMBER = 14;
*/
GOOGLE_PAY_BOARDING_FLIGHT_NUMBER(14),
/**
* GOOGLE_PAY_BOARDING_CONFIRMATION_NUMBER = 15;
*/
GOOGLE_PAY_BOARDING_CONFIRMATION_NUMBER(15),
/**
* GOOGLE_PAY_BOARDING_TICKET_NUMBER = 16;
*/
GOOGLE_PAY_BOARDING_TICKET_NUMBER(16),
/**
* GOOGLE_PAY_BOARDING_FREQUENT_FLYER_NUMBER = 17;
*/
GOOGLE_PAY_BOARDING_FREQUENT_FLYER_NUMBER(17),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_GATE_CLOSES = 18;
*/
GOOGLE_PAY_BOARDING_GATE_CLOSES(18),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_DEPARTURE_TIME = 19;
*/
GOOGLE_PAY_BOARDING_DEPARTURE_TIME(19),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_ARRIVAL_TIME = 20;
*/
GOOGLE_PAY_BOARDING_ARRIVAL_TIME(20),
/**
* GOOGLE_PAY_BOARDING_ARRIVAL_TERMINAL = 21;
*/
GOOGLE_PAY_BOARDING_ARRIVAL_TERMINAL(21),
/**
* GOOGLE_PAY_BOARDING_ARRIVAL_GATE = 22;
*/
GOOGLE_PAY_BOARDING_ARRIVAL_GATE(22),
/**
*
* Event 100-199
*
*
* GOOGLE_PAY_EVENT_NAME = 100;
*/
GOOGLE_PAY_EVENT_NAME(100),
/**
* GOOGLE_PAY_EVENT_VENUE_NAME = 101;
*/
GOOGLE_PAY_EVENT_VENUE_NAME(101),
/**
* GOOGLE_PAY_EVENT_VENUE_ADDRESS = 102;
*/
GOOGLE_PAY_EVENT_VENUE_ADDRESS(102),
/**
* GOOGLE_PAY_EVENT_GATE = 103;
*/
GOOGLE_PAY_EVENT_GATE(103),
/**
* GOOGLE_PAY_EVENT_SECTION = 104;
*/
GOOGLE_PAY_EVENT_SECTION(104),
/**
* GOOGLE_PAY_EVENT_ROW = 105;
*/
GOOGLE_PAY_EVENT_ROW(105),
/**
* GOOGLE_PAY_EVENT_SEAT = 106;
*/
GOOGLE_PAY_EVENT_SEAT(106),
/**
* GOOGLE_PAY_EVENT_TICKET_HOLDER = 107;
*/
GOOGLE_PAY_EVENT_TICKET_HOLDER(107),
/**
* GOOGLE_PAY_EVENT_DOORS_OPEN = 108;
*/
GOOGLE_PAY_EVENT_DOORS_OPEN(108),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_EVENT_START = 109;
*/
GOOGLE_PAY_EVENT_START(109),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_EVENT_END = 110;
*/
GOOGLE_PAY_EVENT_END(110),
/**
* GOOGLE_PAY_EVENT_TICKET_TYPE = 111;
*/
GOOGLE_PAY_EVENT_TICKET_TYPE(111),
/**
* GOOGLE_PAY_EVENT_TICKET_NUMBER = 112;
*/
GOOGLE_PAY_EVENT_TICKET_NUMBER(112),
/**
* GOOGLE_PAY_EVENT_CONFIRMATION_NUMBER = 113;
*/
GOOGLE_PAY_EVENT_CONFIRMATION_NUMBER(113),
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_EVENT_FACE_VALUE = 114;
*/
GOOGLE_PAY_EVENT_FACE_VALUE(114),
/**
* GOOGLE_PAY_EVENT_FINE_PRINT = 115;
*/
GOOGLE_PAY_EVENT_FINE_PRINT(115),
/**
*
* Gift 200-299
*
*
* GOOGLE_PAY_GIFT_MERCHANT_NAME = 200;
*/
GOOGLE_PAY_GIFT_MERCHANT_NAME(200),
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_GIFT_BALANCE = 201;
*/
GOOGLE_PAY_GIFT_BALANCE(201),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_GIFT_CARD_NUMBER = 202;
*/
GOOGLE_PAY_GIFT_CARD_NUMBER(202),
/**
* GOOGLE_PAY_GIFT_BALANCE_UPDATE_TIME = 203;
*/
GOOGLE_PAY_GIFT_BALANCE_UPDATE_TIME(203),
/**
* GOOGLE_PAY_GIFT_PIN = 204;
*/
GOOGLE_PAY_GIFT_PIN(204),
/**
* GOOGLE_PAY_GIFT_EVENT_NUMBER = 205;
*/
GOOGLE_PAY_GIFT_EVENT_NUMBER(205),
/**
*
* Loyalty 300-399
*
*
* GOOGLE_PAY_LOYALTY_PROGRAM_NAME = 300;
*/
GOOGLE_PAY_LOYALTY_PROGRAM_NAME(300),
/**
* GOOGLE_PAY_LOYALTY_POINTS = 301;
*/
GOOGLE_PAY_LOYALTY_POINTS(301),
/**
* GOOGLE_PAY_LOYALTY_SECONDARY_POINTS = 302;
*/
GOOGLE_PAY_LOYALTY_SECONDARY_POINTS(302),
/**
* GOOGLE_PAY_LOYALTY_ACCOUNT_NAME = 303;
*/
GOOGLE_PAY_LOYALTY_ACCOUNT_NAME(303),
/**
* GOOGLE_PAY_LOYALTY_ACCOUNT_ID = 304;
*/
GOOGLE_PAY_LOYALTY_ACCOUNT_ID(304),
/**
* GOOGLE_PAY_LOYALTY_REWARDS_TIER = 305;
*/
GOOGLE_PAY_LOYALTY_REWARDS_TIER(305),
/**
* GOOGLE_PAY_LOYALTY_SECONDARY_REWARDS_TIER = 306;
*/
GOOGLE_PAY_LOYALTY_SECONDARY_REWARDS_TIER(306),
/**
*
* Offer 400-499
*
*
* GOOGLE_PAY_OFFER_TITLE = 400;
*/
GOOGLE_PAY_OFFER_TITLE(400),
/**
* GOOGLE_PAY_OFFER_PROVIDER = 401;
*/
GOOGLE_PAY_OFFER_PROVIDER(401),
/**
* GOOGLE_PAY_OFFER_DETAILS = 402;
*/
GOOGLE_PAY_OFFER_DETAILS(402),
/**
* GOOGLE_PAY_OFFER_FINE_PRINT = 403;
*/
GOOGLE_PAY_OFFER_FINE_PRINT(403),
/**
* GOOGLE_PAY_OFFER_SHORT_TITLE = 404;
*/
GOOGLE_PAY_OFFER_SHORT_TITLE(404),
/**
*
* Transit 500-599
*
*
* GOOGLE_PAY_TRANSIT_ISSUER_NAME = 500;
*/
GOOGLE_PAY_TRANSIT_ISSUER_NAME(500),
/**
* GOOGLE_PAY_TRANSIT_DEPARTURE = 501;
*/
GOOGLE_PAY_TRANSIT_DEPARTURE(501),
/**
* GOOGLE_PAY_TRANSIT_DEPARTURE_TIME = 502;
*/
GOOGLE_PAY_TRANSIT_DEPARTURE_TIME(502),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_TRANSIT_VALID_FROM = 503;
*/
GOOGLE_PAY_TRANSIT_VALID_FROM(503),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_TRANSIT_VALID_UNTIL = 504;
*/
GOOGLE_PAY_TRANSIT_VALID_UNTIL(504),
/**
* GOOGLE_PAY_TRANSIT_ARRIVAL = 505;
*/
GOOGLE_PAY_TRANSIT_ARRIVAL(505),
/**
* GOOGLE_PAY_TRANSIT_PASSENGER_NAMES = 506;
*/
GOOGLE_PAY_TRANSIT_PASSENGER_NAMES(506),
/**
* GOOGLE_PAY_TRANSIT_CARRIAGE = 507;
*/
GOOGLE_PAY_TRANSIT_CARRIAGE(507),
/**
* GOOGLE_PAY_TRANSIT_COACH = 508;
*/
GOOGLE_PAY_TRANSIT_COACH(508),
/**
* GOOGLE_PAY_TRANSIT_SEAT = 509;
*/
GOOGLE_PAY_TRANSIT_SEAT(509),
/**
* GOOGLE_PAY_TRANSIT_TICKET_NUMBER = 510;
*/
GOOGLE_PAY_TRANSIT_TICKET_NUMBER(510),
/**
* GOOGLE_PAY_TRANSIT_TICKET_STATUS = 511;
*/
GOOGLE_PAY_TRANSIT_TICKET_STATUS(511),
/**
* GOOGLE_PAY_TRANSIT_FARE_NAME = 512;
*/
GOOGLE_PAY_TRANSIT_FARE_NAME(512),
/**
* GOOGLE_PAY_TRANSIT_PLATFORM = 513;
*/
GOOGLE_PAY_TRANSIT_PLATFORM(513),
/**
* GOOGLE_PAY_TRANSIT_ZONE = 514;
*/
GOOGLE_PAY_TRANSIT_ZONE(514),
/**
* GOOGLE_PAY_TRANSIT_FARE_CLASS = 515;
*/
GOOGLE_PAY_TRANSIT_FARE_CLASS(515),
/**
* GOOGLE_PAY_TRANSIT_CONCESSION_CATEGORY = 516;
*/
GOOGLE_PAY_TRANSIT_CONCESSION_CATEGORY(516),
/**
* GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTIONS = 517;
*/
GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTIONS(517),
/**
* GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTION_DETAILS = 518;
*/
GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTION_DETAILS(518),
/**
* GOOGLE_PAY_TRANSIT_TIME_RESTRICTIONS = 519;
*/
GOOGLE_PAY_TRANSIT_TIME_RESTRICTIONS(519),
/**
* GOOGLE_PAY_TRANSIT_OTHER_RESTRICTIONS = 520;
*/
GOOGLE_PAY_TRANSIT_OTHER_RESTRICTIONS(520),
/**
* GOOGLE_PAY_TRANSIT_RECEIPT_NUMBER = 521;
*/
GOOGLE_PAY_TRANSIT_RECEIPT_NUMBER(521),
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_TRANSIT_PURCHASE_DATE = 522;
*/
GOOGLE_PAY_TRANSIT_PURCHASE_DATE(522),
/**
* GOOGLE_PAY_TRANSIT_ACCOUNT_ID = 523;
*/
GOOGLE_PAY_TRANSIT_ACCOUNT_ID(523),
/**
* GOOGLE_PAY_TRANSIT_CONFIRMATION_CODE = 524;
*/
GOOGLE_PAY_TRANSIT_CONFIRMATION_CODE(524),
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_TRANSIT_FACE_VALUE = 525;
*/
GOOGLE_PAY_TRANSIT_FACE_VALUE(525),
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_TRANSIT_PURCHASE_PRICE = 526;
*/
GOOGLE_PAY_TRANSIT_PURCHASE_PRICE(526),
/**
* GOOGLE_PAY_TRANSIT_DISCOUNT_MESSAGE = 527;
*/
GOOGLE_PAY_TRANSIT_DISCOUNT_MESSAGE(527),
/**
*
* Common Fields >= 1000
*
*
* GOOGLE_PAY_TEXT_MODULE = 1000;
*/
GOOGLE_PAY_TEXT_MODULE(1000),
/**
* GOOGLE_PAY_ISSUER_NAME = 1001;
*/
GOOGLE_PAY_ISSUER_NAME(1001),
/**
* GOOGLE_PAY_STATIC_TEXT_MODULE = 1002;
*/
GOOGLE_PAY_STATIC_TEXT_MODULE(1002),
UNRECOGNIZED(-1),
;
/**
* GOOGLE_PAY_FIELD_DO_NOT_USE = 0;
*/
public static final int GOOGLE_PAY_FIELD_DO_NOT_USE_VALUE = 0;
/**
*
* Boarding 1-99
*
*
* GOOGLE_PAY_BOARDING_AIRLINE_NAME = 1;
*/
public static final int GOOGLE_PAY_BOARDING_AIRLINE_NAME_VALUE = 1;
/**
* GOOGLE_PAY_BOARDING_AIRLINE_CODE = 2;
*/
public static final int GOOGLE_PAY_BOARDING_AIRLINE_CODE_VALUE = 2;
/**
* GOOGLE_PAY_BOARDING_ORIGIN = 3;
*/
public static final int GOOGLE_PAY_BOARDING_ORIGIN_VALUE = 3;
/**
* GOOGLE_PAY_BOARDING_DESTINATION = 4;
*/
public static final int GOOGLE_PAY_BOARDING_DESTINATION_VALUE = 4;
/**
* GOOGLE_PAY_BOARDING_ORIGIN_TERMINAL = 5;
*/
public static final int GOOGLE_PAY_BOARDING_ORIGIN_TERMINAL_VALUE = 5;
/**
* GOOGLE_PAY_BOARDING_ORIGIN_GATE = 6;
*/
public static final int GOOGLE_PAY_BOARDING_ORIGIN_GATE_VALUE = 6;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_BOARDING_TIME = 7;
*/
public static final int GOOGLE_PAY_BOARDING_BOARDING_TIME_VALUE = 7;
/**
* GOOGLE_PAY_BOARDING_PASSENGER_NAME = 8;
*/
public static final int GOOGLE_PAY_BOARDING_PASSENGER_NAME_VALUE = 8;
/**
* GOOGLE_PAY_BOARDING_ZONE_GROUP = 9;
*/
public static final int GOOGLE_PAY_BOARDING_ZONE_GROUP_VALUE = 9;
/**
* GOOGLE_PAY_BOARDING_SEAT = 10;
*/
public static final int GOOGLE_PAY_BOARDING_SEAT_VALUE = 10;
/**
* GOOGLE_PAY_BOARDING_BOARDING_POSITION = 11;
*/
public static final int GOOGLE_PAY_BOARDING_BOARDING_POSITION_VALUE = 11;
/**
* GOOGLE_PAY_BOARDING_BOARDING_SEQUENCE = 12;
*/
public static final int GOOGLE_PAY_BOARDING_BOARDING_SEQUENCE_VALUE = 12;
/**
* GOOGLE_PAY_BOARDING_BOARDING_DOOR = 13;
*/
public static final int GOOGLE_PAY_BOARDING_BOARDING_DOOR_VALUE = 13;
/**
* GOOGLE_PAY_BOARDING_FLIGHT_NUMBER = 14;
*/
public static final int GOOGLE_PAY_BOARDING_FLIGHT_NUMBER_VALUE = 14;
/**
* GOOGLE_PAY_BOARDING_CONFIRMATION_NUMBER = 15;
*/
public static final int GOOGLE_PAY_BOARDING_CONFIRMATION_NUMBER_VALUE = 15;
/**
* GOOGLE_PAY_BOARDING_TICKET_NUMBER = 16;
*/
public static final int GOOGLE_PAY_BOARDING_TICKET_NUMBER_VALUE = 16;
/**
* GOOGLE_PAY_BOARDING_FREQUENT_FLYER_NUMBER = 17;
*/
public static final int GOOGLE_PAY_BOARDING_FREQUENT_FLYER_NUMBER_VALUE = 17;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_GATE_CLOSES = 18;
*/
public static final int GOOGLE_PAY_BOARDING_GATE_CLOSES_VALUE = 18;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_DEPARTURE_TIME = 19;
*/
public static final int GOOGLE_PAY_BOARDING_DEPARTURE_TIME_VALUE = 19;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_BOARDING_ARRIVAL_TIME = 20;
*/
public static final int GOOGLE_PAY_BOARDING_ARRIVAL_TIME_VALUE = 20;
/**
* GOOGLE_PAY_BOARDING_ARRIVAL_TERMINAL = 21;
*/
public static final int GOOGLE_PAY_BOARDING_ARRIVAL_TERMINAL_VALUE = 21;
/**
* GOOGLE_PAY_BOARDING_ARRIVAL_GATE = 22;
*/
public static final int GOOGLE_PAY_BOARDING_ARRIVAL_GATE_VALUE = 22;
/**
*
* Event 100-199
*
*
* GOOGLE_PAY_EVENT_NAME = 100;
*/
public static final int GOOGLE_PAY_EVENT_NAME_VALUE = 100;
/**
* GOOGLE_PAY_EVENT_VENUE_NAME = 101;
*/
public static final int GOOGLE_PAY_EVENT_VENUE_NAME_VALUE = 101;
/**
* GOOGLE_PAY_EVENT_VENUE_ADDRESS = 102;
*/
public static final int GOOGLE_PAY_EVENT_VENUE_ADDRESS_VALUE = 102;
/**
* GOOGLE_PAY_EVENT_GATE = 103;
*/
public static final int GOOGLE_PAY_EVENT_GATE_VALUE = 103;
/**
* GOOGLE_PAY_EVENT_SECTION = 104;
*/
public static final int GOOGLE_PAY_EVENT_SECTION_VALUE = 104;
/**
* GOOGLE_PAY_EVENT_ROW = 105;
*/
public static final int GOOGLE_PAY_EVENT_ROW_VALUE = 105;
/**
* GOOGLE_PAY_EVENT_SEAT = 106;
*/
public static final int GOOGLE_PAY_EVENT_SEAT_VALUE = 106;
/**
* GOOGLE_PAY_EVENT_TICKET_HOLDER = 107;
*/
public static final int GOOGLE_PAY_EVENT_TICKET_HOLDER_VALUE = 107;
/**
* GOOGLE_PAY_EVENT_DOORS_OPEN = 108;
*/
public static final int GOOGLE_PAY_EVENT_DOORS_OPEN_VALUE = 108;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_EVENT_START = 109;
*/
public static final int GOOGLE_PAY_EVENT_START_VALUE = 109;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_EVENT_END = 110;
*/
public static final int GOOGLE_PAY_EVENT_END_VALUE = 110;
/**
* GOOGLE_PAY_EVENT_TICKET_TYPE = 111;
*/
public static final int GOOGLE_PAY_EVENT_TICKET_TYPE_VALUE = 111;
/**
* GOOGLE_PAY_EVENT_TICKET_NUMBER = 112;
*/
public static final int GOOGLE_PAY_EVENT_TICKET_NUMBER_VALUE = 112;
/**
* GOOGLE_PAY_EVENT_CONFIRMATION_NUMBER = 113;
*/
public static final int GOOGLE_PAY_EVENT_CONFIRMATION_NUMBER_VALUE = 113;
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_EVENT_FACE_VALUE = 114;
*/
public static final int GOOGLE_PAY_EVENT_FACE_VALUE_VALUE = 114;
/**
* GOOGLE_PAY_EVENT_FINE_PRINT = 115;
*/
public static final int GOOGLE_PAY_EVENT_FINE_PRINT_VALUE = 115;
/**
*
* Gift 200-299
*
*
* GOOGLE_PAY_GIFT_MERCHANT_NAME = 200;
*/
public static final int GOOGLE_PAY_GIFT_MERCHANT_NAME_VALUE = 200;
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_GIFT_BALANCE = 201;
*/
public static final int GOOGLE_PAY_GIFT_BALANCE_VALUE = 201;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_GIFT_CARD_NUMBER = 202;
*/
public static final int GOOGLE_PAY_GIFT_CARD_NUMBER_VALUE = 202;
/**
* GOOGLE_PAY_GIFT_BALANCE_UPDATE_TIME = 203;
*/
public static final int GOOGLE_PAY_GIFT_BALANCE_UPDATE_TIME_VALUE = 203;
/**
* GOOGLE_PAY_GIFT_PIN = 204;
*/
public static final int GOOGLE_PAY_GIFT_PIN_VALUE = 204;
/**
* GOOGLE_PAY_GIFT_EVENT_NUMBER = 205;
*/
public static final int GOOGLE_PAY_GIFT_EVENT_NUMBER_VALUE = 205;
/**
*
* Loyalty 300-399
*
*
* GOOGLE_PAY_LOYALTY_PROGRAM_NAME = 300;
*/
public static final int GOOGLE_PAY_LOYALTY_PROGRAM_NAME_VALUE = 300;
/**
* GOOGLE_PAY_LOYALTY_POINTS = 301;
*/
public static final int GOOGLE_PAY_LOYALTY_POINTS_VALUE = 301;
/**
* GOOGLE_PAY_LOYALTY_SECONDARY_POINTS = 302;
*/
public static final int GOOGLE_PAY_LOYALTY_SECONDARY_POINTS_VALUE = 302;
/**
* GOOGLE_PAY_LOYALTY_ACCOUNT_NAME = 303;
*/
public static final int GOOGLE_PAY_LOYALTY_ACCOUNT_NAME_VALUE = 303;
/**
* GOOGLE_PAY_LOYALTY_ACCOUNT_ID = 304;
*/
public static final int GOOGLE_PAY_LOYALTY_ACCOUNT_ID_VALUE = 304;
/**
* GOOGLE_PAY_LOYALTY_REWARDS_TIER = 305;
*/
public static final int GOOGLE_PAY_LOYALTY_REWARDS_TIER_VALUE = 305;
/**
* GOOGLE_PAY_LOYALTY_SECONDARY_REWARDS_TIER = 306;
*/
public static final int GOOGLE_PAY_LOYALTY_SECONDARY_REWARDS_TIER_VALUE = 306;
/**
*
* Offer 400-499
*
*
* GOOGLE_PAY_OFFER_TITLE = 400;
*/
public static final int GOOGLE_PAY_OFFER_TITLE_VALUE = 400;
/**
* GOOGLE_PAY_OFFER_PROVIDER = 401;
*/
public static final int GOOGLE_PAY_OFFER_PROVIDER_VALUE = 401;
/**
* GOOGLE_PAY_OFFER_DETAILS = 402;
*/
public static final int GOOGLE_PAY_OFFER_DETAILS_VALUE = 402;
/**
* GOOGLE_PAY_OFFER_FINE_PRINT = 403;
*/
public static final int GOOGLE_PAY_OFFER_FINE_PRINT_VALUE = 403;
/**
* GOOGLE_PAY_OFFER_SHORT_TITLE = 404;
*/
public static final int GOOGLE_PAY_OFFER_SHORT_TITLE_VALUE = 404;
/**
*
* Transit 500-599
*
*
* GOOGLE_PAY_TRANSIT_ISSUER_NAME = 500;
*/
public static final int GOOGLE_PAY_TRANSIT_ISSUER_NAME_VALUE = 500;
/**
* GOOGLE_PAY_TRANSIT_DEPARTURE = 501;
*/
public static final int GOOGLE_PAY_TRANSIT_DEPARTURE_VALUE = 501;
/**
* GOOGLE_PAY_TRANSIT_DEPARTURE_TIME = 502;
*/
public static final int GOOGLE_PAY_TRANSIT_DEPARTURE_TIME_VALUE = 502;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_TRANSIT_VALID_FROM = 503;
*/
public static final int GOOGLE_PAY_TRANSIT_VALID_FROM_VALUE = 503;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_TRANSIT_VALID_UNTIL = 504;
*/
public static final int GOOGLE_PAY_TRANSIT_VALID_UNTIL_VALUE = 504;
/**
* GOOGLE_PAY_TRANSIT_ARRIVAL = 505;
*/
public static final int GOOGLE_PAY_TRANSIT_ARRIVAL_VALUE = 505;
/**
* GOOGLE_PAY_TRANSIT_PASSENGER_NAMES = 506;
*/
public static final int GOOGLE_PAY_TRANSIT_PASSENGER_NAMES_VALUE = 506;
/**
* GOOGLE_PAY_TRANSIT_CARRIAGE = 507;
*/
public static final int GOOGLE_PAY_TRANSIT_CARRIAGE_VALUE = 507;
/**
* GOOGLE_PAY_TRANSIT_COACH = 508;
*/
public static final int GOOGLE_PAY_TRANSIT_COACH_VALUE = 508;
/**
* GOOGLE_PAY_TRANSIT_SEAT = 509;
*/
public static final int GOOGLE_PAY_TRANSIT_SEAT_VALUE = 509;
/**
* GOOGLE_PAY_TRANSIT_TICKET_NUMBER = 510;
*/
public static final int GOOGLE_PAY_TRANSIT_TICKET_NUMBER_VALUE = 510;
/**
* GOOGLE_PAY_TRANSIT_TICKET_STATUS = 511;
*/
public static final int GOOGLE_PAY_TRANSIT_TICKET_STATUS_VALUE = 511;
/**
* GOOGLE_PAY_TRANSIT_FARE_NAME = 512;
*/
public static final int GOOGLE_PAY_TRANSIT_FARE_NAME_VALUE = 512;
/**
* GOOGLE_PAY_TRANSIT_PLATFORM = 513;
*/
public static final int GOOGLE_PAY_TRANSIT_PLATFORM_VALUE = 513;
/**
* GOOGLE_PAY_TRANSIT_ZONE = 514;
*/
public static final int GOOGLE_PAY_TRANSIT_ZONE_VALUE = 514;
/**
* GOOGLE_PAY_TRANSIT_FARE_CLASS = 515;
*/
public static final int GOOGLE_PAY_TRANSIT_FARE_CLASS_VALUE = 515;
/**
* GOOGLE_PAY_TRANSIT_CONCESSION_CATEGORY = 516;
*/
public static final int GOOGLE_PAY_TRANSIT_CONCESSION_CATEGORY_VALUE = 516;
/**
* GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTIONS = 517;
*/
public static final int GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTIONS_VALUE = 517;
/**
* GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTION_DETAILS = 518;
*/
public static final int GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTION_DETAILS_VALUE = 518;
/**
* GOOGLE_PAY_TRANSIT_TIME_RESTRICTIONS = 519;
*/
public static final int GOOGLE_PAY_TRANSIT_TIME_RESTRICTIONS_VALUE = 519;
/**
* GOOGLE_PAY_TRANSIT_OTHER_RESTRICTIONS = 520;
*/
public static final int GOOGLE_PAY_TRANSIT_OTHER_RESTRICTIONS_VALUE = 520;
/**
* GOOGLE_PAY_TRANSIT_RECEIPT_NUMBER = 521;
*/
public static final int GOOGLE_PAY_TRANSIT_RECEIPT_NUMBER_VALUE = 521;
/**
*
* This field must be of type DateTime
*
*
* GOOGLE_PAY_TRANSIT_PURCHASE_DATE = 522;
*/
public static final int GOOGLE_PAY_TRANSIT_PURCHASE_DATE_VALUE = 522;
/**
* GOOGLE_PAY_TRANSIT_ACCOUNT_ID = 523;
*/
public static final int GOOGLE_PAY_TRANSIT_ACCOUNT_ID_VALUE = 523;
/**
* GOOGLE_PAY_TRANSIT_CONFIRMATION_CODE = 524;
*/
public static final int GOOGLE_PAY_TRANSIT_CONFIRMATION_CODE_VALUE = 524;
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_TRANSIT_FACE_VALUE = 525;
*/
public static final int GOOGLE_PAY_TRANSIT_FACE_VALUE_VALUE = 525;
/**
*
* This field must be of type Currency
*
*
* GOOGLE_PAY_TRANSIT_PURCHASE_PRICE = 526;
*/
public static final int GOOGLE_PAY_TRANSIT_PURCHASE_PRICE_VALUE = 526;
/**
* GOOGLE_PAY_TRANSIT_DISCOUNT_MESSAGE = 527;
*/
public static final int GOOGLE_PAY_TRANSIT_DISCOUNT_MESSAGE_VALUE = 527;
/**
*
* Common Fields >= 1000
*
*
* GOOGLE_PAY_TEXT_MODULE = 1000;
*/
public static final int GOOGLE_PAY_TEXT_MODULE_VALUE = 1000;
/**
* GOOGLE_PAY_ISSUER_NAME = 1001;
*/
public static final int GOOGLE_PAY_ISSUER_NAME_VALUE = 1001;
/**
* GOOGLE_PAY_STATIC_TEXT_MODULE = 1002;
*/
public static final int GOOGLE_PAY_STATIC_TEXT_MODULE_VALUE = 1002;
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 GooglePayField 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 GooglePayField forNumber(int value) {
switch (value) {
case 0: return GOOGLE_PAY_FIELD_DO_NOT_USE;
case 1: return GOOGLE_PAY_BOARDING_AIRLINE_NAME;
case 2: return GOOGLE_PAY_BOARDING_AIRLINE_CODE;
case 3: return GOOGLE_PAY_BOARDING_ORIGIN;
case 4: return GOOGLE_PAY_BOARDING_DESTINATION;
case 5: return GOOGLE_PAY_BOARDING_ORIGIN_TERMINAL;
case 6: return GOOGLE_PAY_BOARDING_ORIGIN_GATE;
case 7: return GOOGLE_PAY_BOARDING_BOARDING_TIME;
case 8: return GOOGLE_PAY_BOARDING_PASSENGER_NAME;
case 9: return GOOGLE_PAY_BOARDING_ZONE_GROUP;
case 10: return GOOGLE_PAY_BOARDING_SEAT;
case 11: return GOOGLE_PAY_BOARDING_BOARDING_POSITION;
case 12: return GOOGLE_PAY_BOARDING_BOARDING_SEQUENCE;
case 13: return GOOGLE_PAY_BOARDING_BOARDING_DOOR;
case 14: return GOOGLE_PAY_BOARDING_FLIGHT_NUMBER;
case 15: return GOOGLE_PAY_BOARDING_CONFIRMATION_NUMBER;
case 16: return GOOGLE_PAY_BOARDING_TICKET_NUMBER;
case 17: return GOOGLE_PAY_BOARDING_FREQUENT_FLYER_NUMBER;
case 18: return GOOGLE_PAY_BOARDING_GATE_CLOSES;
case 19: return GOOGLE_PAY_BOARDING_DEPARTURE_TIME;
case 20: return GOOGLE_PAY_BOARDING_ARRIVAL_TIME;
case 21: return GOOGLE_PAY_BOARDING_ARRIVAL_TERMINAL;
case 22: return GOOGLE_PAY_BOARDING_ARRIVAL_GATE;
case 100: return GOOGLE_PAY_EVENT_NAME;
case 101: return GOOGLE_PAY_EVENT_VENUE_NAME;
case 102: return GOOGLE_PAY_EVENT_VENUE_ADDRESS;
case 103: return GOOGLE_PAY_EVENT_GATE;
case 104: return GOOGLE_PAY_EVENT_SECTION;
case 105: return GOOGLE_PAY_EVENT_ROW;
case 106: return GOOGLE_PAY_EVENT_SEAT;
case 107: return GOOGLE_PAY_EVENT_TICKET_HOLDER;
case 108: return GOOGLE_PAY_EVENT_DOORS_OPEN;
case 109: return GOOGLE_PAY_EVENT_START;
case 110: return GOOGLE_PAY_EVENT_END;
case 111: return GOOGLE_PAY_EVENT_TICKET_TYPE;
case 112: return GOOGLE_PAY_EVENT_TICKET_NUMBER;
case 113: return GOOGLE_PAY_EVENT_CONFIRMATION_NUMBER;
case 114: return GOOGLE_PAY_EVENT_FACE_VALUE;
case 115: return GOOGLE_PAY_EVENT_FINE_PRINT;
case 200: return GOOGLE_PAY_GIFT_MERCHANT_NAME;
case 201: return GOOGLE_PAY_GIFT_BALANCE;
case 202: return GOOGLE_PAY_GIFT_CARD_NUMBER;
case 203: return GOOGLE_PAY_GIFT_BALANCE_UPDATE_TIME;
case 204: return GOOGLE_PAY_GIFT_PIN;
case 205: return GOOGLE_PAY_GIFT_EVENT_NUMBER;
case 300: return GOOGLE_PAY_LOYALTY_PROGRAM_NAME;
case 301: return GOOGLE_PAY_LOYALTY_POINTS;
case 302: return GOOGLE_PAY_LOYALTY_SECONDARY_POINTS;
case 303: return GOOGLE_PAY_LOYALTY_ACCOUNT_NAME;
case 304: return GOOGLE_PAY_LOYALTY_ACCOUNT_ID;
case 305: return GOOGLE_PAY_LOYALTY_REWARDS_TIER;
case 306: return GOOGLE_PAY_LOYALTY_SECONDARY_REWARDS_TIER;
case 400: return GOOGLE_PAY_OFFER_TITLE;
case 401: return GOOGLE_PAY_OFFER_PROVIDER;
case 402: return GOOGLE_PAY_OFFER_DETAILS;
case 403: return GOOGLE_PAY_OFFER_FINE_PRINT;
case 404: return GOOGLE_PAY_OFFER_SHORT_TITLE;
case 500: return GOOGLE_PAY_TRANSIT_ISSUER_NAME;
case 501: return GOOGLE_PAY_TRANSIT_DEPARTURE;
case 502: return GOOGLE_PAY_TRANSIT_DEPARTURE_TIME;
case 503: return GOOGLE_PAY_TRANSIT_VALID_FROM;
case 504: return GOOGLE_PAY_TRANSIT_VALID_UNTIL;
case 505: return GOOGLE_PAY_TRANSIT_ARRIVAL;
case 506: return GOOGLE_PAY_TRANSIT_PASSENGER_NAMES;
case 507: return GOOGLE_PAY_TRANSIT_CARRIAGE;
case 508: return GOOGLE_PAY_TRANSIT_COACH;
case 509: return GOOGLE_PAY_TRANSIT_SEAT;
case 510: return GOOGLE_PAY_TRANSIT_TICKET_NUMBER;
case 511: return GOOGLE_PAY_TRANSIT_TICKET_STATUS;
case 512: return GOOGLE_PAY_TRANSIT_FARE_NAME;
case 513: return GOOGLE_PAY_TRANSIT_PLATFORM;
case 514: return GOOGLE_PAY_TRANSIT_ZONE;
case 515: return GOOGLE_PAY_TRANSIT_FARE_CLASS;
case 516: return GOOGLE_PAY_TRANSIT_CONCESSION_CATEGORY;
case 517: return GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTIONS;
case 518: return GOOGLE_PAY_TRANSIT_ROUTE_RESTRICTION_DETAILS;
case 519: return GOOGLE_PAY_TRANSIT_TIME_RESTRICTIONS;
case 520: return GOOGLE_PAY_TRANSIT_OTHER_RESTRICTIONS;
case 521: return GOOGLE_PAY_TRANSIT_RECEIPT_NUMBER;
case 522: return GOOGLE_PAY_TRANSIT_PURCHASE_DATE;
case 523: return GOOGLE_PAY_TRANSIT_ACCOUNT_ID;
case 524: return GOOGLE_PAY_TRANSIT_CONFIRMATION_CODE;
case 525: return GOOGLE_PAY_TRANSIT_FACE_VALUE;
case 526: return GOOGLE_PAY_TRANSIT_PURCHASE_PRICE;
case 527: return GOOGLE_PAY_TRANSIT_DISCOUNT_MESSAGE;
case 1000: return GOOGLE_PAY_TEXT_MODULE;
case 1001: return GOOGLE_PAY_ISSUER_NAME;
case 1002: return GOOGLE_PAY_STATIC_TEXT_MODULE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GooglePayField> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public GooglePayField findValueByNumber(int number) {
return GooglePayField.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.Template.getDescriptor().getEnumTypes().get(13);
}
private static final GooglePayField[] VALUES = values();
public static GooglePayField 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 GooglePayField(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.GooglePayField)
}
public interface SelectOptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.SelectOption)
com.google.protobuf.MessageOrBuilder {
/**
*
* The order of option in the select list. Option with listPriority 1 will be rendered at the top of drop-down list.
*
*
* uint32 listPriority = 1;
* @return The listPriority.
*/
int getListPriority();
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @return The textLabel.
*/
java.lang.String getTextLabel();
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @return The bytes for textLabel.
*/
com.google.protobuf.ByteString
getTextLabelBytes();
/**
* .io.LocalizedString localizedTextLabel = 3;
* @return Whether the localizedTextLabel field is set.
*/
boolean hasLocalizedTextLabel();
/**
* .io.LocalizedString localizedTextLabel = 3;
* @return The localizedTextLabel.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedTextLabel();
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTextLabelOrBuilder();
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @return The value.
*/
java.lang.String getValue();
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
*
* Sets value and display text for drop-down item.
*
*
* Protobuf type {@code io.SelectOption}
*/
public static final class SelectOption extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.SelectOption)
SelectOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SelectOption.newBuilder() to construct.
private SelectOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SelectOption() {
textLabel_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SelectOption();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SelectOption(
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: {
listPriority_ = input.readUInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
textLabel_ = s;
break;
}
case 26: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedTextLabel_ != null) {
subBuilder = localizedTextLabel_.toBuilder();
}
localizedTextLabel_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedTextLabel_);
localizedTextLabel_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
value_ = 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.Template.internal_static_io_SelectOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_SelectOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.SelectOption.class, com.passkit.grpc.Template.SelectOption.Builder.class);
}
public static final int LISTPRIORITY_FIELD_NUMBER = 1;
private int listPriority_;
/**
*
* The order of option in the select list. Option with listPriority 1 will be rendered at the top of drop-down list.
*
*
* uint32 listPriority = 1;
* @return The listPriority.
*/
@java.lang.Override
public int getListPriority() {
return listPriority_;
}
public static final int TEXTLABEL_FIELD_NUMBER = 2;
private volatile java.lang.Object textLabel_;
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @return The textLabel.
*/
@java.lang.Override
public java.lang.String getTextLabel() {
java.lang.Object ref = textLabel_;
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();
textLabel_ = s;
return s;
}
}
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @return The bytes for textLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextLabelBytes() {
java.lang.Object ref = textLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDTEXTLABEL_FIELD_NUMBER = 3;
private com.passkit.grpc.Localization.LocalizedString localizedTextLabel_;
/**
* .io.LocalizedString localizedTextLabel = 3;
* @return Whether the localizedTextLabel field is set.
*/
@java.lang.Override
public boolean hasLocalizedTextLabel() {
return localizedTextLabel_ != null;
}
/**
* .io.LocalizedString localizedTextLabel = 3;
* @return The localizedTextLabel.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedTextLabel() {
return localizedTextLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTextLabel_;
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTextLabelOrBuilder() {
return getLocalizedTextLabel();
}
public static final int VALUE_FIELD_NUMBER = 4;
private volatile java.lang.Object value_;
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (listPriority_ != 0) {
output.writeUInt32(1, listPriority_);
}
if (!getTextLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, textLabel_);
}
if (localizedTextLabel_ != null) {
output.writeMessage(3, getLocalizedTextLabel());
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (listPriority_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, listPriority_);
}
if (!getTextLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, textLabel_);
}
if (localizedTextLabel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocalizedTextLabel());
}
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_);
}
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.Template.SelectOption)) {
return super.equals(obj);
}
com.passkit.grpc.Template.SelectOption other = (com.passkit.grpc.Template.SelectOption) obj;
if (getListPriority()
!= other.getListPriority()) return false;
if (!getTextLabel()
.equals(other.getTextLabel())) return false;
if (hasLocalizedTextLabel() != other.hasLocalizedTextLabel()) return false;
if (hasLocalizedTextLabel()) {
if (!getLocalizedTextLabel()
.equals(other.getLocalizedTextLabel())) return false;
}
if (!getValue()
.equals(other.getValue())) 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) + LISTPRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getListPriority();
hash = (37 * hash) + TEXTLABEL_FIELD_NUMBER;
hash = (53 * hash) + getTextLabel().hashCode();
if (hasLocalizedTextLabel()) {
hash = (37 * hash) + LOCALIZEDTEXTLABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedTextLabel().hashCode();
}
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.SelectOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.SelectOption 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.Template.SelectOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.SelectOption 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.Template.SelectOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.SelectOption parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.SelectOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.SelectOption 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.Template.SelectOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.SelectOption 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.Template.SelectOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.SelectOption 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.Template.SelectOption 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;
}
/**
*
* Sets value and display text for drop-down item.
*
*
* Protobuf type {@code io.SelectOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.SelectOption)
com.passkit.grpc.Template.SelectOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_SelectOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_SelectOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.SelectOption.class, com.passkit.grpc.Template.SelectOption.Builder.class);
}
// Construct using com.passkit.grpc.Template.SelectOption.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();
listPriority_ = 0;
textLabel_ = "";
if (localizedTextLabelBuilder_ == null) {
localizedTextLabel_ = null;
} else {
localizedTextLabel_ = null;
localizedTextLabelBuilder_ = null;
}
value_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_SelectOption_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.SelectOption getDefaultInstanceForType() {
return com.passkit.grpc.Template.SelectOption.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.SelectOption build() {
com.passkit.grpc.Template.SelectOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.SelectOption buildPartial() {
com.passkit.grpc.Template.SelectOption result = new com.passkit.grpc.Template.SelectOption(this);
result.listPriority_ = listPriority_;
result.textLabel_ = textLabel_;
if (localizedTextLabelBuilder_ == null) {
result.localizedTextLabel_ = localizedTextLabel_;
} else {
result.localizedTextLabel_ = localizedTextLabelBuilder_.build();
}
result.value_ = value_;
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.Template.SelectOption) {
return mergeFrom((com.passkit.grpc.Template.SelectOption)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.SelectOption other) {
if (other == com.passkit.grpc.Template.SelectOption.getDefaultInstance()) return this;
if (other.getListPriority() != 0) {
setListPriority(other.getListPriority());
}
if (!other.getTextLabel().isEmpty()) {
textLabel_ = other.textLabel_;
onChanged();
}
if (other.hasLocalizedTextLabel()) {
mergeLocalizedTextLabel(other.getLocalizedTextLabel());
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
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.Template.SelectOption parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.SelectOption) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int listPriority_ ;
/**
*
* The order of option in the select list. Option with listPriority 1 will be rendered at the top of drop-down list.
*
*
* uint32 listPriority = 1;
* @return The listPriority.
*/
@java.lang.Override
public int getListPriority() {
return listPriority_;
}
/**
*
* The order of option in the select list. Option with listPriority 1 will be rendered at the top of drop-down list.
*
*
* uint32 listPriority = 1;
* @param value The listPriority to set.
* @return This builder for chaining.
*/
public Builder setListPriority(int value) {
listPriority_ = value;
onChanged();
return this;
}
/**
*
* The order of option in the select list. Option with listPriority 1 will be rendered at the top of drop-down list.
*
*
* uint32 listPriority = 1;
* @return This builder for chaining.
*/
public Builder clearListPriority() {
listPriority_ = 0;
onChanged();
return this;
}
private java.lang.Object textLabel_ = "";
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @return The textLabel.
*/
public java.lang.String getTextLabel() {
java.lang.Object ref = textLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
textLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @return The bytes for textLabel.
*/
public com.google.protobuf.ByteString
getTextLabelBytes() {
java.lang.Object ref = textLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @param value The textLabel to set.
* @return This builder for chaining.
*/
public Builder setTextLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
textLabel_ = value;
onChanged();
return this;
}
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @return This builder for chaining.
*/
public Builder clearTextLabel() {
textLabel_ = getDefaultInstance().getTextLabel();
onChanged();
return this;
}
/**
*
* Display text on the drop-down list (e.g. Hongkong and Shanghai Banking Corporation).
*
*
* string textLabel = 2;
* @param value The bytes for textLabel to set.
* @return This builder for chaining.
*/
public Builder setTextLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
textLabel_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedTextLabel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedTextLabelBuilder_;
/**
* .io.LocalizedString localizedTextLabel = 3;
* @return Whether the localizedTextLabel field is set.
*/
public boolean hasLocalizedTextLabel() {
return localizedTextLabelBuilder_ != null || localizedTextLabel_ != null;
}
/**
* .io.LocalizedString localizedTextLabel = 3;
* @return The localizedTextLabel.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedTextLabel() {
if (localizedTextLabelBuilder_ == null) {
return localizedTextLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTextLabel_;
} else {
return localizedTextLabelBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
public Builder setLocalizedTextLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTextLabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedTextLabel_ = value;
onChanged();
} else {
localizedTextLabelBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
public Builder setLocalizedTextLabel(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedTextLabelBuilder_ == null) {
localizedTextLabel_ = builderForValue.build();
onChanged();
} else {
localizedTextLabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
public Builder mergeLocalizedTextLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTextLabelBuilder_ == null) {
if (localizedTextLabel_ != null) {
localizedTextLabel_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedTextLabel_).mergeFrom(value).buildPartial();
} else {
localizedTextLabel_ = value;
}
onChanged();
} else {
localizedTextLabelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
public Builder clearLocalizedTextLabel() {
if (localizedTextLabelBuilder_ == null) {
localizedTextLabel_ = null;
onChanged();
} else {
localizedTextLabel_ = null;
localizedTextLabelBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedTextLabelBuilder() {
onChanged();
return getLocalizedTextLabelFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTextLabelOrBuilder() {
if (localizedTextLabelBuilder_ != null) {
return localizedTextLabelBuilder_.getMessageOrBuilder();
} else {
return localizedTextLabel_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTextLabel_;
}
}
/**
* .io.LocalizedString localizedTextLabel = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedTextLabelFieldBuilder() {
if (localizedTextLabelBuilder_ == null) {
localizedTextLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedTextLabel(),
getParentForChildren(),
isClean());
localizedTextLabel_ = null;
}
return localizedTextLabelBuilder_;
}
private java.lang.Object value_ = "";
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
* Value of selected text. (e.g. HSBC)
*
*
* string value = 4;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.SelectOption)
}
// @@protoc_insertion_point(class_scope:io.SelectOption)
private static final com.passkit.grpc.Template.SelectOption DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.SelectOption();
}
public static com.passkit.grpc.Template.SelectOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SelectOption parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SelectOption(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.Template.SelectOption getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BarcodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Barcode)
com.google.protobuf.MessageOrBuilder {
/**
* string payload = 1;
* @return The payload.
*/
java.lang.String getPayload();
/**
* string payload = 1;
* @return The bytes for payload.
*/
com.google.protobuf.ByteString
getPayloadBytes();
/**
* .io.BarcodeType format = 2;
* @return The enum numeric value on the wire for format.
*/
int getFormatValue();
/**
* .io.BarcodeType format = 2;
* @return The format.
*/
com.passkit.grpc.Template.BarcodeType getFormat();
/**
* string altText = 3;
* @return The altText.
*/
java.lang.String getAltText();
/**
* string altText = 3;
* @return The bytes for altText.
*/
com.google.protobuf.ByteString
getAltTextBytes();
/**
* .io.LocalizedString localizedAltText = 4;
* @return Whether the localizedAltText field is set.
*/
boolean hasLocalizedAltText();
/**
* .io.LocalizedString localizedAltText = 4;
* @return The localizedAltText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedAltText();
/**
* .io.LocalizedString localizedAltText = 4;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAltTextOrBuilder();
/**
* string messageEncoding = 5;
* @return The messageEncoding.
*/
java.lang.String getMessageEncoding();
/**
* string messageEncoding = 5;
* @return The bytes for messageEncoding.
*/
com.google.protobuf.ByteString
getMessageEncodingBytes();
}
/**
* Protobuf type {@code io.Barcode}
*/
public static final class Barcode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Barcode)
BarcodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Barcode.newBuilder() to construct.
private Barcode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Barcode() {
payload_ = "";
format_ = 0;
altText_ = "";
messageEncoding_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Barcode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Barcode(
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();
payload_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
format_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
altText_ = s;
break;
}
case 34: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedAltText_ != null) {
subBuilder = localizedAltText_.toBuilder();
}
localizedAltText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedAltText_);
localizedAltText_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
messageEncoding_ = 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.Template.internal_static_io_Barcode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Barcode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Barcode.class, com.passkit.grpc.Template.Barcode.Builder.class);
}
public static final int PAYLOAD_FIELD_NUMBER = 1;
private volatile java.lang.Object payload_;
/**
* string payload = 1;
* @return The payload.
*/
@java.lang.Override
public java.lang.String getPayload() {
java.lang.Object ref = payload_;
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();
payload_ = s;
return s;
}
}
/**
* string payload = 1;
* @return The bytes for payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPayloadBytes() {
java.lang.Object ref = payload_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
payload_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORMAT_FIELD_NUMBER = 2;
private int format_;
/**
* .io.BarcodeType format = 2;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
* .io.BarcodeType format = 2;
* @return The format.
*/
@java.lang.Override public com.passkit.grpc.Template.BarcodeType getFormat() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.BarcodeType result = com.passkit.grpc.Template.BarcodeType.valueOf(format_);
return result == null ? com.passkit.grpc.Template.BarcodeType.UNRECOGNIZED : result;
}
public static final int ALTTEXT_FIELD_NUMBER = 3;
private volatile java.lang.Object altText_;
/**
* string altText = 3;
* @return The altText.
*/
@java.lang.Override
public java.lang.String getAltText() {
java.lang.Object ref = altText_;
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();
altText_ = s;
return s;
}
}
/**
* string altText = 3;
* @return The bytes for altText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAltTextBytes() {
java.lang.Object ref = altText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
altText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDALTTEXT_FIELD_NUMBER = 4;
private com.passkit.grpc.Localization.LocalizedString localizedAltText_;
/**
* .io.LocalizedString localizedAltText = 4;
* @return Whether the localizedAltText field is set.
*/
@java.lang.Override
public boolean hasLocalizedAltText() {
return localizedAltText_ != null;
}
/**
* .io.LocalizedString localizedAltText = 4;
* @return The localizedAltText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedAltText() {
return localizedAltText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAltText_;
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAltTextOrBuilder() {
return getLocalizedAltText();
}
public static final int MESSAGEENCODING_FIELD_NUMBER = 5;
private volatile java.lang.Object messageEncoding_;
/**
* string messageEncoding = 5;
* @return The messageEncoding.
*/
@java.lang.Override
public java.lang.String getMessageEncoding() {
java.lang.Object ref = messageEncoding_;
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();
messageEncoding_ = s;
return s;
}
}
/**
* string messageEncoding = 5;
* @return The bytes for messageEncoding.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageEncodingBytes() {
java.lang.Object ref = messageEncoding_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageEncoding_ = 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 (!getPayloadBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payload_);
}
if (format_ != com.passkit.grpc.Template.BarcodeType.BARCODE_TYPE_DO_NOT_USE.getNumber()) {
output.writeEnum(2, format_);
}
if (!getAltTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, altText_);
}
if (localizedAltText_ != null) {
output.writeMessage(4, getLocalizedAltText());
}
if (!getMessageEncodingBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, messageEncoding_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPayloadBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, payload_);
}
if (format_ != com.passkit.grpc.Template.BarcodeType.BARCODE_TYPE_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, format_);
}
if (!getAltTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, altText_);
}
if (localizedAltText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocalizedAltText());
}
if (!getMessageEncodingBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, messageEncoding_);
}
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.Template.Barcode)) {
return super.equals(obj);
}
com.passkit.grpc.Template.Barcode other = (com.passkit.grpc.Template.Barcode) obj;
if (!getPayload()
.equals(other.getPayload())) return false;
if (format_ != other.format_) return false;
if (!getAltText()
.equals(other.getAltText())) return false;
if (hasLocalizedAltText() != other.hasLocalizedAltText()) return false;
if (hasLocalizedAltText()) {
if (!getLocalizedAltText()
.equals(other.getLocalizedAltText())) return false;
}
if (!getMessageEncoding()
.equals(other.getMessageEncoding())) 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) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
hash = (37 * hash) + FORMAT_FIELD_NUMBER;
hash = (53 * hash) + format_;
hash = (37 * hash) + ALTTEXT_FIELD_NUMBER;
hash = (53 * hash) + getAltText().hashCode();
if (hasLocalizedAltText()) {
hash = (37 * hash) + LOCALIZEDALTTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedAltText().hashCode();
}
hash = (37 * hash) + MESSAGEENCODING_FIELD_NUMBER;
hash = (53 * hash) + getMessageEncoding().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.Barcode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Barcode 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.Template.Barcode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Barcode 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.Template.Barcode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Barcode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.Barcode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Barcode 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.Template.Barcode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Barcode 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.Template.Barcode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Barcode 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.Template.Barcode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.Barcode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Barcode)
com.passkit.grpc.Template.BarcodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_Barcode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Barcode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Barcode.class, com.passkit.grpc.Template.Barcode.Builder.class);
}
// Construct using com.passkit.grpc.Template.Barcode.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();
payload_ = "";
format_ = 0;
altText_ = "";
if (localizedAltTextBuilder_ == null) {
localizedAltText_ = null;
} else {
localizedAltText_ = null;
localizedAltTextBuilder_ = null;
}
messageEncoding_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_Barcode_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.Barcode getDefaultInstanceForType() {
return com.passkit.grpc.Template.Barcode.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.Barcode build() {
com.passkit.grpc.Template.Barcode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.Barcode buildPartial() {
com.passkit.grpc.Template.Barcode result = new com.passkit.grpc.Template.Barcode(this);
result.payload_ = payload_;
result.format_ = format_;
result.altText_ = altText_;
if (localizedAltTextBuilder_ == null) {
result.localizedAltText_ = localizedAltText_;
} else {
result.localizedAltText_ = localizedAltTextBuilder_.build();
}
result.messageEncoding_ = messageEncoding_;
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.Template.Barcode) {
return mergeFrom((com.passkit.grpc.Template.Barcode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.Barcode other) {
if (other == com.passkit.grpc.Template.Barcode.getDefaultInstance()) return this;
if (!other.getPayload().isEmpty()) {
payload_ = other.payload_;
onChanged();
}
if (other.format_ != 0) {
setFormatValue(other.getFormatValue());
}
if (!other.getAltText().isEmpty()) {
altText_ = other.altText_;
onChanged();
}
if (other.hasLocalizedAltText()) {
mergeLocalizedAltText(other.getLocalizedAltText());
}
if (!other.getMessageEncoding().isEmpty()) {
messageEncoding_ = other.messageEncoding_;
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.Template.Barcode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.Barcode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object payload_ = "";
/**
* string payload = 1;
* @return The payload.
*/
public java.lang.String getPayload() {
java.lang.Object ref = payload_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
payload_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string payload = 1;
* @return The bytes for payload.
*/
public com.google.protobuf.ByteString
getPayloadBytes() {
java.lang.Object ref = payload_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
payload_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string payload = 1;
* @param value The payload to set.
* @return This builder for chaining.
*/
public Builder setPayload(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
return this;
}
/**
* string payload = 1;
* @return This builder for chaining.
*/
public Builder clearPayload() {
payload_ = getDefaultInstance().getPayload();
onChanged();
return this;
}
/**
* string payload = 1;
* @param value The bytes for payload to set.
* @return This builder for chaining.
*/
public Builder setPayloadBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
payload_ = value;
onChanged();
return this;
}
private int format_ = 0;
/**
* .io.BarcodeType format = 2;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
* .io.BarcodeType format = 2;
* @param value The enum numeric value on the wire for format to set.
* @return This builder for chaining.
*/
public Builder setFormatValue(int value) {
format_ = value;
onChanged();
return this;
}
/**
* .io.BarcodeType format = 2;
* @return The format.
*/
@java.lang.Override
public com.passkit.grpc.Template.BarcodeType getFormat() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.BarcodeType result = com.passkit.grpc.Template.BarcodeType.valueOf(format_);
return result == null ? com.passkit.grpc.Template.BarcodeType.UNRECOGNIZED : result;
}
/**
* .io.BarcodeType format = 2;
* @param value The format to set.
* @return This builder for chaining.
*/
public Builder setFormat(com.passkit.grpc.Template.BarcodeType value) {
if (value == null) {
throw new NullPointerException();
}
format_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.BarcodeType format = 2;
* @return This builder for chaining.
*/
public Builder clearFormat() {
format_ = 0;
onChanged();
return this;
}
private java.lang.Object altText_ = "";
/**
* string altText = 3;
* @return The altText.
*/
public java.lang.String getAltText() {
java.lang.Object ref = altText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
altText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string altText = 3;
* @return The bytes for altText.
*/
public com.google.protobuf.ByteString
getAltTextBytes() {
java.lang.Object ref = altText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
altText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string altText = 3;
* @param value The altText to set.
* @return This builder for chaining.
*/
public Builder setAltText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
altText_ = value;
onChanged();
return this;
}
/**
* string altText = 3;
* @return This builder for chaining.
*/
public Builder clearAltText() {
altText_ = getDefaultInstance().getAltText();
onChanged();
return this;
}
/**
* string altText = 3;
* @param value The bytes for altText to set.
* @return This builder for chaining.
*/
public Builder setAltTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
altText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedAltText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedAltTextBuilder_;
/**
* .io.LocalizedString localizedAltText = 4;
* @return Whether the localizedAltText field is set.
*/
public boolean hasLocalizedAltText() {
return localizedAltTextBuilder_ != null || localizedAltText_ != null;
}
/**
* .io.LocalizedString localizedAltText = 4;
* @return The localizedAltText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedAltText() {
if (localizedAltTextBuilder_ == null) {
return localizedAltText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAltText_;
} else {
return localizedAltTextBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
public Builder setLocalizedAltText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAltTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedAltText_ = value;
onChanged();
} else {
localizedAltTextBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
public Builder setLocalizedAltText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedAltTextBuilder_ == null) {
localizedAltText_ = builderForValue.build();
onChanged();
} else {
localizedAltTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
public Builder mergeLocalizedAltText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAltTextBuilder_ == null) {
if (localizedAltText_ != null) {
localizedAltText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedAltText_).mergeFrom(value).buildPartial();
} else {
localizedAltText_ = value;
}
onChanged();
} else {
localizedAltTextBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
public Builder clearLocalizedAltText() {
if (localizedAltTextBuilder_ == null) {
localizedAltText_ = null;
onChanged();
} else {
localizedAltText_ = null;
localizedAltTextBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedAltTextBuilder() {
onChanged();
return getLocalizedAltTextFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAltTextOrBuilder() {
if (localizedAltTextBuilder_ != null) {
return localizedAltTextBuilder_.getMessageOrBuilder();
} else {
return localizedAltText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAltText_;
}
}
/**
* .io.LocalizedString localizedAltText = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedAltTextFieldBuilder() {
if (localizedAltTextBuilder_ == null) {
localizedAltTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedAltText(),
getParentForChildren(),
isClean());
localizedAltText_ = null;
}
return localizedAltTextBuilder_;
}
private java.lang.Object messageEncoding_ = "";
/**
* string messageEncoding = 5;
* @return The messageEncoding.
*/
public java.lang.String getMessageEncoding() {
java.lang.Object ref = messageEncoding_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
messageEncoding_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string messageEncoding = 5;
* @return The bytes for messageEncoding.
*/
public com.google.protobuf.ByteString
getMessageEncodingBytes() {
java.lang.Object ref = messageEncoding_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageEncoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string messageEncoding = 5;
* @param value The messageEncoding to set.
* @return This builder for chaining.
*/
public Builder setMessageEncoding(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
messageEncoding_ = value;
onChanged();
return this;
}
/**
* string messageEncoding = 5;
* @return This builder for chaining.
*/
public Builder clearMessageEncoding() {
messageEncoding_ = getDefaultInstance().getMessageEncoding();
onChanged();
return this;
}
/**
* string messageEncoding = 5;
* @param value The bytes for messageEncoding to set.
* @return This builder for chaining.
*/
public Builder setMessageEncodingBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
messageEncoding_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.Barcode)
}
// @@protoc_insertion_point(class_scope:io.Barcode)
private static final com.passkit.grpc.Template.Barcode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.Barcode();
}
public static com.passkit.grpc.Template.Barcode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Barcode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Barcode(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.Template.Barcode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PassTemplateOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.PassTemplate)
com.google.protobuf.MessageOrBuilder {
/**
*
* This design id (not writable).
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* This design id (not writable).
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* A name to allow for searching within the console.
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* A name to allow for searching within the console.
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @return The enum numeric value on the wire for protocol.
*/
int getProtocolValue();
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @return The protocol.
*/
com.passkit.grpc.Protocols.PassProtocol getProtocol();
/**
*
* The version of the protocol design. (for protocols that support more than one pass style).
*
*
* uint32 revision = 4;
* @return The revision.
*/
int getRevision();
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @return The enum numeric value on the wire for defaultLanguage.
*/
int getDefaultLanguageValue();
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @return The defaultLanguage.
*/
com.passkit.grpc.Localization.LanguageCode getDefaultLanguage();
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @return The organizationName.
*/
java.lang.String getOrganizationName();
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @return The bytes for organizationName.
*/
com.google.protobuf.ByteString
getOrganizationNameBytes();
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
* @return Whether the localizedOrganizationName field is set.
*/
boolean hasLocalizedOrganizationName();
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
* @return The localizedOrganizationName.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedOrganizationName();
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOrganizationNameOrBuilder();
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
* @return Whether the localizedDescription field is set.
*/
boolean hasLocalizedDescription();
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
* @return The localizedDescription.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedDescription();
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder();
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
* @return Whether the data field is set.
*/
boolean hasData();
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
* @return The data.
*/
com.passkit.grpc.Template.Data getData();
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
com.passkit.grpc.Template.DataOrBuilder getDataOrBuilder();
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
* @return Whether the imageIds field is set.
*/
boolean hasImageIds();
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
* @return The imageIds.
*/
com.passkit.grpc.Image.ImageIds getImageIds();
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
com.passkit.grpc.Image.ImageIdsOrBuilder getImageIdsOrBuilder();
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
* @return Whether the images field is set.
*/
boolean hasImages();
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
* @return The images.
*/
com.passkit.grpc.Image.ImageData getImages();
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
com.passkit.grpc.Image.ImageDataOrBuilder getImagesOrBuilder();
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
* @return Whether the colors field is set.
*/
boolean hasColors();
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
* @return The colors.
*/
com.passkit.grpc.Template.Colors getColors();
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
com.passkit.grpc.Template.ColorsOrBuilder getColorsOrBuilder();
/**
* .io.Barcode barcode = 14;
* @return Whether the barcode field is set.
*/
boolean hasBarcode();
/**
* .io.Barcode barcode = 14;
* @return The barcode.
*/
com.passkit.grpc.Template.Barcode getBarcode();
/**
* .io.Barcode barcode = 14;
*/
com.passkit.grpc.Template.BarcodeOrBuilder getBarcodeOrBuilder();
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
* @return Whether the nfcEnabled field is set.
*/
boolean hasNfcEnabled();
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
* @return The nfcEnabled.
*/
com.passkit.grpc.Template.NFC getNfcEnabled();
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
com.passkit.grpc.Template.NFCOrBuilder getNfcEnabledOrBuilder();
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
* @return Whether the sharing field is set.
*/
boolean hasSharing();
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
* @return The sharing.
*/
com.passkit.grpc.Template.Sharing getSharing();
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
com.passkit.grpc.Template.SharingOrBuilder getSharingOrBuilder();
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
* @return Whether the appleWalletSettings field is set.
*/
boolean hasAppleWalletSettings();
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
* @return The appleWalletSettings.
*/
com.passkit.grpc.Template.AppleWalletSettings getAppleWalletSettings();
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
com.passkit.grpc.Template.AppleWalletSettingsOrBuilder getAppleWalletSettingsOrBuilder();
/**
* .io.GooglePaySettings googlePaySettings = 18;
* @return Whether the googlePaySettings field is set.
*/
boolean hasGooglePaySettings();
/**
* .io.GooglePaySettings googlePaySettings = 18;
* @return The googlePaySettings.
*/
com.passkit.grpc.Template.GooglePaySettings getGooglePaySettings();
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
com.passkit.grpc.Template.GooglePaySettingsOrBuilder getGooglePaySettingsOrBuilder();
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List
getLocationsList();
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.GPSLocation getLocations(int index);
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
int getLocationsCount();
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List extends com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationsOrBuilderList();
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationsOrBuilder(
int index);
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List
getBeaconsList();
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.Beacon getBeacons(int index);
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
int getBeaconsCount();
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
java.util.List extends com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconsOrBuilderList();
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconsOrBuilder(
int index);
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
java.util.List
getLinksList();
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
com.passkit.grpc.Links.Link getLinks(int index);
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
int getLinksCount();
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getLinksOrBuilderList();
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder(
int index);
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @return The timezone.
*/
java.lang.String getTimezone();
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @return The bytes for timezone.
*/
com.google.protobuf.ByteString
getTimezoneBytes();
/**
* .io.ExpirySettings expirySettings = 23;
* @return Whether the expirySettings field is set.
*/
boolean hasExpirySettings();
/**
* .io.ExpirySettings expirySettings = 23;
* @return The expirySettings.
*/
com.passkit.grpc.Expiry.ExpirySettings getExpirySettings();
/**
* .io.ExpirySettings expirySettings = 23;
*/
com.passkit.grpc.Expiry.ExpirySettingsOrBuilder getExpirySettingsOrBuilder();
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
* @return Whether the landingPageSettings field is set.
*/
boolean hasLandingPageSettings();
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
* @return The landingPageSettings.
*/
com.passkit.grpc.Template.LandingPageSettings getLandingPageSettings();
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
com.passkit.grpc.Template.LandingPageSettingsOrBuilder getLandingPageSettingsOrBuilder();
public com.passkit.grpc.Template.PassTemplate.ImageAssetsCase getImageAssetsCase();
}
/**
*
* Pass Template holds design and data elements for Apple Wallet and Google Pay passes.
*
*
* Protobuf type {@code io.PassTemplate}
*/
public static final class PassTemplate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.PassTemplate)
PassTemplateOrBuilder {
private static final long serialVersionUID = 0L;
// Use PassTemplate.newBuilder() to construct.
private PassTemplate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PassTemplate() {
id_ = "";
name_ = "";
protocol_ = 0;
defaultLanguage_ = 0;
organizationName_ = "";
description_ = "";
locations_ = java.util.Collections.emptyList();
beacons_ = java.util.Collections.emptyList();
links_ = java.util.Collections.emptyList();
timezone_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PassTemplate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PassTemplate(
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();
protocol_ = rawValue;
break;
}
case 32: {
revision_ = input.readUInt32();
break;
}
case 40: {
int rawValue = input.readEnum();
defaultLanguage_ = rawValue;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
organizationName_ = s;
break;
}
case 58: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedOrganizationName_ != null) {
subBuilder = localizedOrganizationName_.toBuilder();
}
localizedOrganizationName_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedOrganizationName_);
localizedOrganizationName_ = subBuilder.buildPartial();
}
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 74: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedDescription_ != null) {
subBuilder = localizedDescription_.toBuilder();
}
localizedDescription_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedDescription_);
localizedDescription_ = subBuilder.buildPartial();
}
break;
}
case 82: {
com.passkit.grpc.Template.Data.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.passkit.grpc.Template.Data.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 90: {
com.passkit.grpc.Image.ImageIds.Builder subBuilder = null;
if (imageAssetsCase_ == 11) {
subBuilder = ((com.passkit.grpc.Image.ImageIds) imageAssets_).toBuilder();
}
imageAssets_ =
input.readMessage(com.passkit.grpc.Image.ImageIds.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.passkit.grpc.Image.ImageIds) imageAssets_);
imageAssets_ = subBuilder.buildPartial();
}
imageAssetsCase_ = 11;
break;
}
case 98: {
com.passkit.grpc.Image.ImageData.Builder subBuilder = null;
if (imageAssetsCase_ == 12) {
subBuilder = ((com.passkit.grpc.Image.ImageData) imageAssets_).toBuilder();
}
imageAssets_ =
input.readMessage(com.passkit.grpc.Image.ImageData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.passkit.grpc.Image.ImageData) imageAssets_);
imageAssets_ = subBuilder.buildPartial();
}
imageAssetsCase_ = 12;
break;
}
case 106: {
com.passkit.grpc.Template.Colors.Builder subBuilder = null;
if (colors_ != null) {
subBuilder = colors_.toBuilder();
}
colors_ = input.readMessage(com.passkit.grpc.Template.Colors.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(colors_);
colors_ = subBuilder.buildPartial();
}
break;
}
case 114: {
com.passkit.grpc.Template.Barcode.Builder subBuilder = null;
if (barcode_ != null) {
subBuilder = barcode_.toBuilder();
}
barcode_ = input.readMessage(com.passkit.grpc.Template.Barcode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(barcode_);
barcode_ = subBuilder.buildPartial();
}
break;
}
case 122: {
com.passkit.grpc.Template.NFC.Builder subBuilder = null;
if (nfcEnabled_ != null) {
subBuilder = nfcEnabled_.toBuilder();
}
nfcEnabled_ = input.readMessage(com.passkit.grpc.Template.NFC.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nfcEnabled_);
nfcEnabled_ = subBuilder.buildPartial();
}
break;
}
case 130: {
com.passkit.grpc.Template.Sharing.Builder subBuilder = null;
if (sharing_ != null) {
subBuilder = sharing_.toBuilder();
}
sharing_ = input.readMessage(com.passkit.grpc.Template.Sharing.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sharing_);
sharing_ = subBuilder.buildPartial();
}
break;
}
case 138: {
com.passkit.grpc.Template.AppleWalletSettings.Builder subBuilder = null;
if (appleWalletSettings_ != null) {
subBuilder = appleWalletSettings_.toBuilder();
}
appleWalletSettings_ = input.readMessage(com.passkit.grpc.Template.AppleWalletSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(appleWalletSettings_);
appleWalletSettings_ = subBuilder.buildPartial();
}
break;
}
case 146: {
com.passkit.grpc.Template.GooglePaySettings.Builder subBuilder = null;
if (googlePaySettings_ != null) {
subBuilder = googlePaySettings_.toBuilder();
}
googlePaySettings_ = input.readMessage(com.passkit.grpc.Template.GooglePaySettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(googlePaySettings_);
googlePaySettings_ = subBuilder.buildPartial();
}
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
locations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
locations_.add(
input.readMessage(com.passkit.grpc.Proximity.GPSLocation.parser(), extensionRegistry));
break;
}
case 162: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
beacons_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
beacons_.add(
input.readMessage(com.passkit.grpc.Proximity.Beacon.parser(), extensionRegistry));
break;
}
case 170: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
links_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
links_.add(
input.readMessage(com.passkit.grpc.Links.Link.parser(), extensionRegistry));
break;
}
case 178: {
java.lang.String s = input.readStringRequireUtf8();
timezone_ = s;
break;
}
case 186: {
com.passkit.grpc.Expiry.ExpirySettings.Builder subBuilder = null;
if (expirySettings_ != null) {
subBuilder = expirySettings_.toBuilder();
}
expirySettings_ = input.readMessage(com.passkit.grpc.Expiry.ExpirySettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expirySettings_);
expirySettings_ = subBuilder.buildPartial();
}
break;
}
case 194: {
com.passkit.grpc.Template.LandingPageSettings.Builder subBuilder = null;
if (landingPageSettings_ != null) {
subBuilder = landingPageSettings_.toBuilder();
}
landingPageSettings_ = input.readMessage(com.passkit.grpc.Template.LandingPageSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(landingPageSettings_);
landingPageSettings_ = 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)) {
locations_ = java.util.Collections.unmodifiableList(locations_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
beacons_ = java.util.Collections.unmodifiableList(beacons_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_PassTemplate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_PassTemplate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.PassTemplate.class, com.passkit.grpc.Template.PassTemplate.Builder.class);
}
private int imageAssetsCase_ = 0;
private java.lang.Object imageAssets_;
public enum ImageAssetsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
IMAGEIDS(11),
IMAGES(12),
IMAGEASSETS_NOT_SET(0);
private final int value;
private ImageAssetsCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ImageAssetsCase valueOf(int value) {
return forNumber(value);
}
public static ImageAssetsCase forNumber(int value) {
switch (value) {
case 11: return IMAGEIDS;
case 12: return IMAGES;
case 0: return IMAGEASSETS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ImageAssetsCase
getImageAssetsCase() {
return ImageAssetsCase.forNumber(
imageAssetsCase_);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* This design id (not writable).
*
*
* 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;
}
}
/**
*
* This design id (not writable).
*
*
* 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_;
/**
*
* A name to allow for searching within the console.
*
*
* 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;
}
}
/**
*
* A name to allow for searching within the console.
*
*
* 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 PROTOCOL_FIELD_NUMBER = 3;
private int protocol_;
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @return The protocol.
*/
@java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
public static final int REVISION_FIELD_NUMBER = 4;
private int revision_;
/**
*
* The version of the protocol design. (for protocols that support more than one pass style).
*
*
* uint32 revision = 4;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
public static final int DEFAULTLANGUAGE_FIELD_NUMBER = 5;
private int defaultLanguage_;
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @return The enum numeric value on the wire for defaultLanguage.
*/
@java.lang.Override public int getDefaultLanguageValue() {
return defaultLanguage_;
}
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @return The defaultLanguage.
*/
@java.lang.Override public com.passkit.grpc.Localization.LanguageCode getDefaultLanguage() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Localization.LanguageCode result = com.passkit.grpc.Localization.LanguageCode.valueOf(defaultLanguage_);
return result == null ? com.passkit.grpc.Localization.LanguageCode.UNRECOGNIZED : result;
}
public static final int ORGANIZATIONNAME_FIELD_NUMBER = 6;
private volatile java.lang.Object organizationName_;
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @return The organizationName.
*/
@java.lang.Override
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
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();
organizationName_ = s;
return s;
}
}
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @return The bytes for organizationName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
java.lang.Object ref = organizationName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
organizationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDORGANIZATIONNAME_FIELD_NUMBER = 7;
private com.passkit.grpc.Localization.LocalizedString localizedOrganizationName_;
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
* @return Whether the localizedOrganizationName field is set.
*/
@java.lang.Override
public boolean hasLocalizedOrganizationName() {
return localizedOrganizationName_ != null;
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
* @return The localizedOrganizationName.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedOrganizationName() {
return localizedOrganizationName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOrganizationName_;
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOrganizationNameOrBuilder() {
return getLocalizedOrganizationName();
}
public static final int DESCRIPTION_FIELD_NUMBER = 8;
private volatile java.lang.Object description_;
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDDESCRIPTION_FIELD_NUMBER = 9;
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
* @return Whether the localizedDescription field is set.
*/
@java.lang.Override
public boolean hasLocalizedDescription() {
return localizedDescription_ != null;
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
* @return The localizedDescription.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
return getLocalizedDescription();
}
public static final int DATA_FIELD_NUMBER = 10;
private com.passkit.grpc.Template.Data data_;
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return data_ != null;
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
* @return The data.
*/
@java.lang.Override
public com.passkit.grpc.Template.Data getData() {
return data_ == null ? com.passkit.grpc.Template.Data.getDefaultInstance() : data_;
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
@java.lang.Override
public com.passkit.grpc.Template.DataOrBuilder getDataOrBuilder() {
return getData();
}
public static final int IMAGEIDS_FIELD_NUMBER = 11;
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
* @return Whether the imageIds field is set.
*/
@java.lang.Override
public boolean hasImageIds() {
return imageAssetsCase_ == 11;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
* @return The imageIds.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIds getImageIds() {
if (imageAssetsCase_ == 11) {
return (com.passkit.grpc.Image.ImageIds) imageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIdsOrBuilder getImageIdsOrBuilder() {
if (imageAssetsCase_ == 11) {
return (com.passkit.grpc.Image.ImageIds) imageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
public static final int IMAGES_FIELD_NUMBER = 12;
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
* @return Whether the images field is set.
*/
@java.lang.Override
public boolean hasImages() {
return imageAssetsCase_ == 12;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
* @return The images.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageData getImages() {
if (imageAssetsCase_ == 12) {
return (com.passkit.grpc.Image.ImageData) imageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageDataOrBuilder getImagesOrBuilder() {
if (imageAssetsCase_ == 12) {
return (com.passkit.grpc.Image.ImageData) imageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
public static final int COLORS_FIELD_NUMBER = 13;
private com.passkit.grpc.Template.Colors colors_;
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
* @return Whether the colors field is set.
*/
@java.lang.Override
public boolean hasColors() {
return colors_ != null;
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
* @return The colors.
*/
@java.lang.Override
public com.passkit.grpc.Template.Colors getColors() {
return colors_ == null ? com.passkit.grpc.Template.Colors.getDefaultInstance() : colors_;
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
@java.lang.Override
public com.passkit.grpc.Template.ColorsOrBuilder getColorsOrBuilder() {
return getColors();
}
public static final int BARCODE_FIELD_NUMBER = 14;
private com.passkit.grpc.Template.Barcode barcode_;
/**
* .io.Barcode barcode = 14;
* @return Whether the barcode field is set.
*/
@java.lang.Override
public boolean hasBarcode() {
return barcode_ != null;
}
/**
* .io.Barcode barcode = 14;
* @return The barcode.
*/
@java.lang.Override
public com.passkit.grpc.Template.Barcode getBarcode() {
return barcode_ == null ? com.passkit.grpc.Template.Barcode.getDefaultInstance() : barcode_;
}
/**
* .io.Barcode barcode = 14;
*/
@java.lang.Override
public com.passkit.grpc.Template.BarcodeOrBuilder getBarcodeOrBuilder() {
return getBarcode();
}
public static final int NFCENABLED_FIELD_NUMBER = 15;
private com.passkit.grpc.Template.NFC nfcEnabled_;
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
* @return Whether the nfcEnabled field is set.
*/
@java.lang.Override
public boolean hasNfcEnabled() {
return nfcEnabled_ != null;
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
* @return The nfcEnabled.
*/
@java.lang.Override
public com.passkit.grpc.Template.NFC getNfcEnabled() {
return nfcEnabled_ == null ? com.passkit.grpc.Template.NFC.getDefaultInstance() : nfcEnabled_;
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
@java.lang.Override
public com.passkit.grpc.Template.NFCOrBuilder getNfcEnabledOrBuilder() {
return getNfcEnabled();
}
public static final int SHARING_FIELD_NUMBER = 16;
private com.passkit.grpc.Template.Sharing sharing_;
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
* @return Whether the sharing field is set.
*/
@java.lang.Override
public boolean hasSharing() {
return sharing_ != null;
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
* @return The sharing.
*/
@java.lang.Override
public com.passkit.grpc.Template.Sharing getSharing() {
return sharing_ == null ? com.passkit.grpc.Template.Sharing.getDefaultInstance() : sharing_;
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
@java.lang.Override
public com.passkit.grpc.Template.SharingOrBuilder getSharingOrBuilder() {
return getSharing();
}
public static final int APPLEWALLETSETTINGS_FIELD_NUMBER = 17;
private com.passkit.grpc.Template.AppleWalletSettings appleWalletSettings_;
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
* @return Whether the appleWalletSettings field is set.
*/
@java.lang.Override
public boolean hasAppleWalletSettings() {
return appleWalletSettings_ != null;
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
* @return The appleWalletSettings.
*/
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletSettings getAppleWalletSettings() {
return appleWalletSettings_ == null ? com.passkit.grpc.Template.AppleWalletSettings.getDefaultInstance() : appleWalletSettings_;
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletSettingsOrBuilder getAppleWalletSettingsOrBuilder() {
return getAppleWalletSettings();
}
public static final int GOOGLEPAYSETTINGS_FIELD_NUMBER = 18;
private com.passkit.grpc.Template.GooglePaySettings googlePaySettings_;
/**
* .io.GooglePaySettings googlePaySettings = 18;
* @return Whether the googlePaySettings field is set.
*/
@java.lang.Override
public boolean hasGooglePaySettings() {
return googlePaySettings_ != null;
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
* @return The googlePaySettings.
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePaySettings getGooglePaySettings() {
return googlePaySettings_ == null ? com.passkit.grpc.Template.GooglePaySettings.getDefaultInstance() : googlePaySettings_;
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePaySettingsOrBuilder getGooglePaySettingsOrBuilder() {
return getGooglePaySettings();
}
public static final int LOCATIONS_FIELD_NUMBER = 19;
private java.util.List locations_;
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List getLocationsList() {
return locations_;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationsOrBuilderList() {
return locations_;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public int getLocationsCount() {
return locations_.size();
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.GPSLocation getLocations(int index) {
return locations_.get(index);
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationsOrBuilder(
int index) {
return locations_.get(index);
}
public static final int BEACONS_FIELD_NUMBER = 20;
private java.util.List beacons_;
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List getBeaconsList() {
return beacons_;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconsOrBuilderList() {
return beacons_;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public int getBeaconsCount() {
return beacons_.size();
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.Beacon getBeacons(int index) {
return beacons_.get(index);
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
@java.lang.Override
public com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconsOrBuilder(
int index) {
return beacons_.get(index);
}
public static final int LINKS_FIELD_NUMBER = 21;
private java.util.List links_;
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
@java.lang.Override
public java.util.List getLinksList() {
return links_;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getLinksOrBuilderList() {
return links_;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
@java.lang.Override
public int getLinksCount() {
return links_.size();
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
@java.lang.Override
public com.passkit.grpc.Links.Link getLinks(int index) {
return links_.get(index);
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
@java.lang.Override
public com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder(
int index) {
return links_.get(index);
}
public static final int TIMEZONE_FIELD_NUMBER = 22;
private volatile java.lang.Object timezone_;
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @return The timezone.
*/
@java.lang.Override
public java.lang.String getTimezone() {
java.lang.Object ref = timezone_;
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();
timezone_ = s;
return s;
}
}
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @return The bytes for timezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTimezoneBytes() {
java.lang.Object ref = timezone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timezone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRYSETTINGS_FIELD_NUMBER = 23;
private com.passkit.grpc.Expiry.ExpirySettings expirySettings_;
/**
* .io.ExpirySettings expirySettings = 23;
* @return Whether the expirySettings field is set.
*/
@java.lang.Override
public boolean hasExpirySettings() {
return expirySettings_ != null;
}
/**
* .io.ExpirySettings expirySettings = 23;
* @return The expirySettings.
*/
@java.lang.Override
public com.passkit.grpc.Expiry.ExpirySettings getExpirySettings() {
return expirySettings_ == null ? com.passkit.grpc.Expiry.ExpirySettings.getDefaultInstance() : expirySettings_;
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
@java.lang.Override
public com.passkit.grpc.Expiry.ExpirySettingsOrBuilder getExpirySettingsOrBuilder() {
return getExpirySettings();
}
public static final int LANDINGPAGESETTINGS_FIELD_NUMBER = 24;
private com.passkit.grpc.Template.LandingPageSettings landingPageSettings_;
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
* @return Whether the landingPageSettings field is set.
*/
@java.lang.Override
public boolean hasLandingPageSettings() {
return landingPageSettings_ != null;
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
* @return The landingPageSettings.
*/
@java.lang.Override
public com.passkit.grpc.Template.LandingPageSettings getLandingPageSettings() {
return landingPageSettings_ == null ? com.passkit.grpc.Template.LandingPageSettings.getDefaultInstance() : landingPageSettings_;
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
@java.lang.Override
public com.passkit.grpc.Template.LandingPageSettingsOrBuilder getLandingPageSettingsOrBuilder() {
return getLandingPageSettings();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
output.writeEnum(3, protocol_);
}
if (revision_ != 0) {
output.writeUInt32(4, revision_);
}
if (defaultLanguage_ != com.passkit.grpc.Localization.LanguageCode.EN.getNumber()) {
output.writeEnum(5, defaultLanguage_);
}
if (!getOrganizationNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, organizationName_);
}
if (localizedOrganizationName_ != null) {
output.writeMessage(7, getLocalizedOrganizationName());
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_);
}
if (localizedDescription_ != null) {
output.writeMessage(9, getLocalizedDescription());
}
if (data_ != null) {
output.writeMessage(10, getData());
}
if (imageAssetsCase_ == 11) {
output.writeMessage(11, (com.passkit.grpc.Image.ImageIds) imageAssets_);
}
if (imageAssetsCase_ == 12) {
output.writeMessage(12, (com.passkit.grpc.Image.ImageData) imageAssets_);
}
if (colors_ != null) {
output.writeMessage(13, getColors());
}
if (barcode_ != null) {
output.writeMessage(14, getBarcode());
}
if (nfcEnabled_ != null) {
output.writeMessage(15, getNfcEnabled());
}
if (sharing_ != null) {
output.writeMessage(16, getSharing());
}
if (appleWalletSettings_ != null) {
output.writeMessage(17, getAppleWalletSettings());
}
if (googlePaySettings_ != null) {
output.writeMessage(18, getGooglePaySettings());
}
for (int i = 0; i < locations_.size(); i++) {
output.writeMessage(19, locations_.get(i));
}
for (int i = 0; i < beacons_.size(); i++) {
output.writeMessage(20, beacons_.get(i));
}
for (int i = 0; i < links_.size(); i++) {
output.writeMessage(21, links_.get(i));
}
if (!getTimezoneBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, timezone_);
}
if (expirySettings_ != null) {
output.writeMessage(23, getExpirySettings());
}
if (landingPageSettings_ != null) {
output.writeMessage(24, getLandingPageSettings());
}
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 (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, protocol_);
}
if (revision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, revision_);
}
if (defaultLanguage_ != com.passkit.grpc.Localization.LanguageCode.EN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, defaultLanguage_);
}
if (!getOrganizationNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, organizationName_);
}
if (localizedOrganizationName_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLocalizedOrganizationName());
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_);
}
if (localizedDescription_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getLocalizedDescription());
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getData());
}
if (imageAssetsCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.passkit.grpc.Image.ImageIds) imageAssets_);
}
if (imageAssetsCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.passkit.grpc.Image.ImageData) imageAssets_);
}
if (colors_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getColors());
}
if (barcode_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getBarcode());
}
if (nfcEnabled_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getNfcEnabled());
}
if (sharing_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getSharing());
}
if (appleWalletSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getAppleWalletSettings());
}
if (googlePaySettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getGooglePaySettings());
}
for (int i = 0; i < locations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, locations_.get(i));
}
for (int i = 0; i < beacons_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, beacons_.get(i));
}
for (int i = 0; i < links_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, links_.get(i));
}
if (!getTimezoneBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, timezone_);
}
if (expirySettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, getExpirySettings());
}
if (landingPageSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getLandingPageSettings());
}
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.Template.PassTemplate)) {
return super.equals(obj);
}
com.passkit.grpc.Template.PassTemplate other = (com.passkit.grpc.Template.PassTemplate) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (protocol_ != other.protocol_) return false;
if (getRevision()
!= other.getRevision()) return false;
if (defaultLanguage_ != other.defaultLanguage_) return false;
if (!getOrganizationName()
.equals(other.getOrganizationName())) return false;
if (hasLocalizedOrganizationName() != other.hasLocalizedOrganizationName()) return false;
if (hasLocalizedOrganizationName()) {
if (!getLocalizedOrganizationName()
.equals(other.getLocalizedOrganizationName())) return false;
}
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasLocalizedDescription() != other.hasLocalizedDescription()) return false;
if (hasLocalizedDescription()) {
if (!getLocalizedDescription()
.equals(other.getLocalizedDescription())) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (hasColors() != other.hasColors()) return false;
if (hasColors()) {
if (!getColors()
.equals(other.getColors())) return false;
}
if (hasBarcode() != other.hasBarcode()) return false;
if (hasBarcode()) {
if (!getBarcode()
.equals(other.getBarcode())) return false;
}
if (hasNfcEnabled() != other.hasNfcEnabled()) return false;
if (hasNfcEnabled()) {
if (!getNfcEnabled()
.equals(other.getNfcEnabled())) return false;
}
if (hasSharing() != other.hasSharing()) return false;
if (hasSharing()) {
if (!getSharing()
.equals(other.getSharing())) return false;
}
if (hasAppleWalletSettings() != other.hasAppleWalletSettings()) return false;
if (hasAppleWalletSettings()) {
if (!getAppleWalletSettings()
.equals(other.getAppleWalletSettings())) return false;
}
if (hasGooglePaySettings() != other.hasGooglePaySettings()) return false;
if (hasGooglePaySettings()) {
if (!getGooglePaySettings()
.equals(other.getGooglePaySettings())) return false;
}
if (!getLocationsList()
.equals(other.getLocationsList())) return false;
if (!getBeaconsList()
.equals(other.getBeaconsList())) return false;
if (!getLinksList()
.equals(other.getLinksList())) return false;
if (!getTimezone()
.equals(other.getTimezone())) return false;
if (hasExpirySettings() != other.hasExpirySettings()) return false;
if (hasExpirySettings()) {
if (!getExpirySettings()
.equals(other.getExpirySettings())) return false;
}
if (hasLandingPageSettings() != other.hasLandingPageSettings()) return false;
if (hasLandingPageSettings()) {
if (!getLandingPageSettings()
.equals(other.getLandingPageSettings())) return false;
}
if (!getImageAssetsCase().equals(other.getImageAssetsCase())) return false;
switch (imageAssetsCase_) {
case 11:
if (!getImageIds()
.equals(other.getImageIds())) return false;
break;
case 12:
if (!getImages()
.equals(other.getImages())) return false;
break;
case 0:
default:
}
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();
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + protocol_;
hash = (37 * hash) + REVISION_FIELD_NUMBER;
hash = (53 * hash) + getRevision();
hash = (37 * hash) + DEFAULTLANGUAGE_FIELD_NUMBER;
hash = (53 * hash) + defaultLanguage_;
hash = (37 * hash) + ORGANIZATIONNAME_FIELD_NUMBER;
hash = (53 * hash) + getOrganizationName().hashCode();
if (hasLocalizedOrganizationName()) {
hash = (37 * hash) + LOCALIZEDORGANIZATIONNAME_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedOrganizationName().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasLocalizedDescription()) {
hash = (37 * hash) + LOCALIZEDDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedDescription().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasColors()) {
hash = (37 * hash) + COLORS_FIELD_NUMBER;
hash = (53 * hash) + getColors().hashCode();
}
if (hasBarcode()) {
hash = (37 * hash) + BARCODE_FIELD_NUMBER;
hash = (53 * hash) + getBarcode().hashCode();
}
if (hasNfcEnabled()) {
hash = (37 * hash) + NFCENABLED_FIELD_NUMBER;
hash = (53 * hash) + getNfcEnabled().hashCode();
}
if (hasSharing()) {
hash = (37 * hash) + SHARING_FIELD_NUMBER;
hash = (53 * hash) + getSharing().hashCode();
}
if (hasAppleWalletSettings()) {
hash = (37 * hash) + APPLEWALLETSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getAppleWalletSettings().hashCode();
}
if (hasGooglePaySettings()) {
hash = (37 * hash) + GOOGLEPAYSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getGooglePaySettings().hashCode();
}
if (getLocationsCount() > 0) {
hash = (37 * hash) + LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getLocationsList().hashCode();
}
if (getBeaconsCount() > 0) {
hash = (37 * hash) + BEACONS_FIELD_NUMBER;
hash = (53 * hash) + getBeaconsList().hashCode();
}
if (getLinksCount() > 0) {
hash = (37 * hash) + LINKS_FIELD_NUMBER;
hash = (53 * hash) + getLinksList().hashCode();
}
hash = (37 * hash) + TIMEZONE_FIELD_NUMBER;
hash = (53 * hash) + getTimezone().hashCode();
if (hasExpirySettings()) {
hash = (37 * hash) + EXPIRYSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getExpirySettings().hashCode();
}
if (hasLandingPageSettings()) {
hash = (37 * hash) + LANDINGPAGESETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getLandingPageSettings().hashCode();
}
switch (imageAssetsCase_) {
case 11:
hash = (37 * hash) + IMAGEIDS_FIELD_NUMBER;
hash = (53 * hash) + getImageIds().hashCode();
break;
case 12:
hash = (37 * hash) + IMAGES_FIELD_NUMBER;
hash = (53 * hash) + getImages().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.PassTemplate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PassTemplate 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.Template.PassTemplate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PassTemplate 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.Template.PassTemplate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PassTemplate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.PassTemplate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PassTemplate 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.Template.PassTemplate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PassTemplate 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.Template.PassTemplate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PassTemplate 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.Template.PassTemplate 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;
}
/**
*
* Pass Template holds design and data elements for Apple Wallet and Google Pay passes.
*
*
* Protobuf type {@code io.PassTemplate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.PassTemplate)
com.passkit.grpc.Template.PassTemplateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_PassTemplate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_PassTemplate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.PassTemplate.class, com.passkit.grpc.Template.PassTemplate.Builder.class);
}
// Construct using com.passkit.grpc.Template.PassTemplate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocationsFieldBuilder();
getBeaconsFieldBuilder();
getLinksFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
name_ = "";
protocol_ = 0;
revision_ = 0;
defaultLanguage_ = 0;
organizationName_ = "";
if (localizedOrganizationNameBuilder_ == null) {
localizedOrganizationName_ = null;
} else {
localizedOrganizationName_ = null;
localizedOrganizationNameBuilder_ = null;
}
description_ = "";
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (colorsBuilder_ == null) {
colors_ = null;
} else {
colors_ = null;
colorsBuilder_ = null;
}
if (barcodeBuilder_ == null) {
barcode_ = null;
} else {
barcode_ = null;
barcodeBuilder_ = null;
}
if (nfcEnabledBuilder_ == null) {
nfcEnabled_ = null;
} else {
nfcEnabled_ = null;
nfcEnabledBuilder_ = null;
}
if (sharingBuilder_ == null) {
sharing_ = null;
} else {
sharing_ = null;
sharingBuilder_ = null;
}
if (appleWalletSettingsBuilder_ == null) {
appleWalletSettings_ = null;
} else {
appleWalletSettings_ = null;
appleWalletSettingsBuilder_ = null;
}
if (googlePaySettingsBuilder_ == null) {
googlePaySettings_ = null;
} else {
googlePaySettings_ = null;
googlePaySettingsBuilder_ = null;
}
if (locationsBuilder_ == null) {
locations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
locationsBuilder_.clear();
}
if (beaconsBuilder_ == null) {
beacons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
beaconsBuilder_.clear();
}
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
linksBuilder_.clear();
}
timezone_ = "";
if (expirySettingsBuilder_ == null) {
expirySettings_ = null;
} else {
expirySettings_ = null;
expirySettingsBuilder_ = null;
}
if (landingPageSettingsBuilder_ == null) {
landingPageSettings_ = null;
} else {
landingPageSettings_ = null;
landingPageSettingsBuilder_ = null;
}
imageAssetsCase_ = 0;
imageAssets_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_PassTemplate_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.PassTemplate getDefaultInstanceForType() {
return com.passkit.grpc.Template.PassTemplate.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.PassTemplate build() {
com.passkit.grpc.Template.PassTemplate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.PassTemplate buildPartial() {
com.passkit.grpc.Template.PassTemplate result = new com.passkit.grpc.Template.PassTemplate(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.name_ = name_;
result.protocol_ = protocol_;
result.revision_ = revision_;
result.defaultLanguage_ = defaultLanguage_;
result.organizationName_ = organizationName_;
if (localizedOrganizationNameBuilder_ == null) {
result.localizedOrganizationName_ = localizedOrganizationName_;
} else {
result.localizedOrganizationName_ = localizedOrganizationNameBuilder_.build();
}
result.description_ = description_;
if (localizedDescriptionBuilder_ == null) {
result.localizedDescription_ = localizedDescription_;
} else {
result.localizedDescription_ = localizedDescriptionBuilder_.build();
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (imageAssetsCase_ == 11) {
if (imageIdsBuilder_ == null) {
result.imageAssets_ = imageAssets_;
} else {
result.imageAssets_ = imageIdsBuilder_.build();
}
}
if (imageAssetsCase_ == 12) {
if (imagesBuilder_ == null) {
result.imageAssets_ = imageAssets_;
} else {
result.imageAssets_ = imagesBuilder_.build();
}
}
if (colorsBuilder_ == null) {
result.colors_ = colors_;
} else {
result.colors_ = colorsBuilder_.build();
}
if (barcodeBuilder_ == null) {
result.barcode_ = barcode_;
} else {
result.barcode_ = barcodeBuilder_.build();
}
if (nfcEnabledBuilder_ == null) {
result.nfcEnabled_ = nfcEnabled_;
} else {
result.nfcEnabled_ = nfcEnabledBuilder_.build();
}
if (sharingBuilder_ == null) {
result.sharing_ = sharing_;
} else {
result.sharing_ = sharingBuilder_.build();
}
if (appleWalletSettingsBuilder_ == null) {
result.appleWalletSettings_ = appleWalletSettings_;
} else {
result.appleWalletSettings_ = appleWalletSettingsBuilder_.build();
}
if (googlePaySettingsBuilder_ == null) {
result.googlePaySettings_ = googlePaySettings_;
} else {
result.googlePaySettings_ = googlePaySettingsBuilder_.build();
}
if (locationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
locations_ = java.util.Collections.unmodifiableList(locations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.locations_ = locations_;
} else {
result.locations_ = locationsBuilder_.build();
}
if (beaconsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
beacons_ = java.util.Collections.unmodifiableList(beacons_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.beacons_ = beacons_;
} else {
result.beacons_ = beaconsBuilder_.build();
}
if (linksBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.links_ = links_;
} else {
result.links_ = linksBuilder_.build();
}
result.timezone_ = timezone_;
if (expirySettingsBuilder_ == null) {
result.expirySettings_ = expirySettings_;
} else {
result.expirySettings_ = expirySettingsBuilder_.build();
}
if (landingPageSettingsBuilder_ == null) {
result.landingPageSettings_ = landingPageSettings_;
} else {
result.landingPageSettings_ = landingPageSettingsBuilder_.build();
}
result.imageAssetsCase_ = imageAssetsCase_;
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.Template.PassTemplate) {
return mergeFrom((com.passkit.grpc.Template.PassTemplate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.PassTemplate other) {
if (other == com.passkit.grpc.Template.PassTemplate.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.protocol_ != 0) {
setProtocolValue(other.getProtocolValue());
}
if (other.getRevision() != 0) {
setRevision(other.getRevision());
}
if (other.defaultLanguage_ != 0) {
setDefaultLanguageValue(other.getDefaultLanguageValue());
}
if (!other.getOrganizationName().isEmpty()) {
organizationName_ = other.organizationName_;
onChanged();
}
if (other.hasLocalizedOrganizationName()) {
mergeLocalizedOrganizationName(other.getLocalizedOrganizationName());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasLocalizedDescription()) {
mergeLocalizedDescription(other.getLocalizedDescription());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasColors()) {
mergeColors(other.getColors());
}
if (other.hasBarcode()) {
mergeBarcode(other.getBarcode());
}
if (other.hasNfcEnabled()) {
mergeNfcEnabled(other.getNfcEnabled());
}
if (other.hasSharing()) {
mergeSharing(other.getSharing());
}
if (other.hasAppleWalletSettings()) {
mergeAppleWalletSettings(other.getAppleWalletSettings());
}
if (other.hasGooglePaySettings()) {
mergeGooglePaySettings(other.getGooglePaySettings());
}
if (locationsBuilder_ == null) {
if (!other.locations_.isEmpty()) {
if (locations_.isEmpty()) {
locations_ = other.locations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLocationsIsMutable();
locations_.addAll(other.locations_);
}
onChanged();
}
} else {
if (!other.locations_.isEmpty()) {
if (locationsBuilder_.isEmpty()) {
locationsBuilder_.dispose();
locationsBuilder_ = null;
locations_ = other.locations_;
bitField0_ = (bitField0_ & ~0x00000001);
locationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocationsFieldBuilder() : null;
} else {
locationsBuilder_.addAllMessages(other.locations_);
}
}
}
if (beaconsBuilder_ == null) {
if (!other.beacons_.isEmpty()) {
if (beacons_.isEmpty()) {
beacons_ = other.beacons_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureBeaconsIsMutable();
beacons_.addAll(other.beacons_);
}
onChanged();
}
} else {
if (!other.beacons_.isEmpty()) {
if (beaconsBuilder_.isEmpty()) {
beaconsBuilder_.dispose();
beaconsBuilder_ = null;
beacons_ = other.beacons_;
bitField0_ = (bitField0_ & ~0x00000002);
beaconsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBeaconsFieldBuilder() : null;
} else {
beaconsBuilder_.addAllMessages(other.beacons_);
}
}
}
if (linksBuilder_ == null) {
if (!other.links_.isEmpty()) {
if (links_.isEmpty()) {
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureLinksIsMutable();
links_.addAll(other.links_);
}
onChanged();
}
} else {
if (!other.links_.isEmpty()) {
if (linksBuilder_.isEmpty()) {
linksBuilder_.dispose();
linksBuilder_ = null;
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000004);
linksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinksFieldBuilder() : null;
} else {
linksBuilder_.addAllMessages(other.links_);
}
}
}
if (!other.getTimezone().isEmpty()) {
timezone_ = other.timezone_;
onChanged();
}
if (other.hasExpirySettings()) {
mergeExpirySettings(other.getExpirySettings());
}
if (other.hasLandingPageSettings()) {
mergeLandingPageSettings(other.getLandingPageSettings());
}
switch (other.getImageAssetsCase()) {
case IMAGEIDS: {
mergeImageIds(other.getImageIds());
break;
}
case IMAGES: {
mergeImages(other.getImages());
break;
}
case IMAGEASSETS_NOT_SET: {
break;
}
}
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.Template.PassTemplate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.PassTemplate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int imageAssetsCase_ = 0;
private java.lang.Object imageAssets_;
public ImageAssetsCase
getImageAssetsCase() {
return ImageAssetsCase.forNumber(
imageAssetsCase_);
}
public Builder clearImageAssets() {
imageAssetsCase_ = 0;
imageAssets_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* This design id (not writable).
*
*
* 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;
}
}
/**
*
* This design id (not writable).
*
*
* 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;
}
}
/**
*
* This design id (not writable).
*
*
* 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;
}
/**
*
* This design id (not writable).
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* This design id (not writable).
*
*
* 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_ = "";
/**
*
* A name to allow for searching within the console.
*
*
* 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;
}
}
/**
*
* A name to allow for searching within the console.
*
*
* 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;
}
}
/**
*
* A name to allow for searching within the console.
*
*
* 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;
}
/**
*
* A name to allow for searching within the console.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* A name to allow for searching within the console.
*
*
* 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 int protocol_ = 0;
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @param value The enum numeric value on the wire for protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocolValue(int value) {
protocol_ = value;
onChanged();
return this;
}
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @return The protocol.
*/
@java.lang.Override
public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @param value The protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) {
if (value == null) {
throw new NullPointerException();
}
protocol_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The protocol for the design.
*
*
* .io.PassProtocol protocol = 3;
* @return This builder for chaining.
*/
public Builder clearProtocol() {
protocol_ = 0;
onChanged();
return this;
}
private int revision_ ;
/**
*
* The version of the protocol design. (for protocols that support more than one pass style).
*
*
* uint32 revision = 4;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
/**
*
* The version of the protocol design. (for protocols that support more than one pass style).
*
*
* uint32 revision = 4;
* @param value The revision to set.
* @return This builder for chaining.
*/
public Builder setRevision(int value) {
revision_ = value;
onChanged();
return this;
}
/**
*
* The version of the protocol design. (for protocols that support more than one pass style).
*
*
* uint32 revision = 4;
* @return This builder for chaining.
*/
public Builder clearRevision() {
revision_ = 0;
onChanged();
return this;
}
private int defaultLanguage_ = 0;
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @return The enum numeric value on the wire for defaultLanguage.
*/
@java.lang.Override public int getDefaultLanguageValue() {
return defaultLanguage_;
}
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @param value The enum numeric value on the wire for defaultLanguage to set.
* @return This builder for chaining.
*/
public Builder setDefaultLanguageValue(int value) {
defaultLanguage_ = value;
onChanged();
return this;
}
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @return The defaultLanguage.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LanguageCode getDefaultLanguage() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Localization.LanguageCode result = com.passkit.grpc.Localization.LanguageCode.valueOf(defaultLanguage_);
return result == null ? com.passkit.grpc.Localization.LanguageCode.UNRECOGNIZED : result;
}
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @param value The defaultLanguage to set.
* @return This builder for chaining.
*/
public Builder setDefaultLanguage(com.passkit.grpc.Localization.LanguageCode value) {
if (value == null) {
throw new NullPointerException();
}
defaultLanguage_ = value.getNumber();
onChanged();
return this;
}
/**
*
* This defines the template’s default language. For a list of supported languages please see the Language List.
*
*
* .io.LanguageCode defaultLanguage = 5;
* @return This builder for chaining.
*/
public Builder clearDefaultLanguage() {
defaultLanguage_ = 0;
onChanged();
return this;
}
private java.lang.Object organizationName_ = "";
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @return The organizationName.
*/
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
organizationName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @return The bytes for organizationName.
*/
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
java.lang.Object ref = organizationName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
organizationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @param value The organizationName to set.
* @return This builder for chaining.
*/
public Builder setOrganizationName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
organizationName_ = value;
onChanged();
return this;
}
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @return This builder for chaining.
*/
public Builder clearOrganizationName() {
organizationName_ = getDefaultInstance().getOrganizationName();
onChanged();
return this;
}
/**
*
* This is the name of the company or organisation issuing the pass.
*
*
* string organizationName = 6;
* @param value The bytes for organizationName to set.
* @return This builder for chaining.
*/
public Builder setOrganizationNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
organizationName_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedOrganizationName_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedOrganizationNameBuilder_;
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
* @return Whether the localizedOrganizationName field is set.
*/
public boolean hasLocalizedOrganizationName() {
return localizedOrganizationNameBuilder_ != null || localizedOrganizationName_ != null;
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
* @return The localizedOrganizationName.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedOrganizationName() {
if (localizedOrganizationNameBuilder_ == null) {
return localizedOrganizationName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOrganizationName_;
} else {
return localizedOrganizationNameBuilder_.getMessage();
}
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
public Builder setLocalizedOrganizationName(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOrganizationNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedOrganizationName_ = value;
onChanged();
} else {
localizedOrganizationNameBuilder_.setMessage(value);
}
return this;
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
public Builder setLocalizedOrganizationName(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedOrganizationNameBuilder_ == null) {
localizedOrganizationName_ = builderForValue.build();
onChanged();
} else {
localizedOrganizationNameBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
public Builder mergeLocalizedOrganizationName(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOrganizationNameBuilder_ == null) {
if (localizedOrganizationName_ != null) {
localizedOrganizationName_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedOrganizationName_).mergeFrom(value).buildPartial();
} else {
localizedOrganizationName_ = value;
}
onChanged();
} else {
localizedOrganizationNameBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
public Builder clearLocalizedOrganizationName() {
if (localizedOrganizationNameBuilder_ == null) {
localizedOrganizationName_ = null;
onChanged();
} else {
localizedOrganizationName_ = null;
localizedOrganizationNameBuilder_ = null;
}
return this;
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedOrganizationNameBuilder() {
onChanged();
return getLocalizedOrganizationNameFieldBuilder().getBuilder();
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOrganizationNameOrBuilder() {
if (localizedOrganizationNameBuilder_ != null) {
return localizedOrganizationNameBuilder_.getMessageOrBuilder();
} else {
return localizedOrganizationName_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOrganizationName_;
}
}
/**
*
* Different language translations for the name of company or organisation issuing the pass.
*
*
* .io.LocalizedString localizedOrganizationName = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedOrganizationNameFieldBuilder() {
if (localizedOrganizationNameBuilder_ == null) {
localizedOrganizationNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedOrganizationName(),
getParentForChildren(),
isClean());
localizedOrganizationName_ = null;
}
return localizedOrganizationNameBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* This is your campaign description. The description will be displayed at the top on the back of the Apple pass, and when customers are downloading their pass. This value should detail the campaign offers and customer benefits.
*
*
* string description = 8;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedDescriptionBuilder_;
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
* @return Whether the localizedDescription field is set.
*/
public boolean hasLocalizedDescription() {
return localizedDescriptionBuilder_ != null || localizedDescription_ != null;
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
* @return The localizedDescription.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
} else {
return localizedDescriptionBuilder_.getMessage();
}
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
public Builder setLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedDescription_ = value;
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
public Builder setLocalizedDescription(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = builderForValue.build();
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
public Builder mergeLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (localizedDescription_ != null) {
localizedDescription_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedDescription_).mergeFrom(value).buildPartial();
} else {
localizedDescription_ = value;
}
onChanged();
} else {
localizedDescriptionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
public Builder clearLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
onChanged();
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
return this;
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedDescriptionBuilder() {
onChanged();
return getLocalizedDescriptionFieldBuilder().getBuilder();
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
if (localizedDescriptionBuilder_ != null) {
return localizedDescriptionBuilder_.getMessageOrBuilder();
} else {
return localizedDescription_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
}
/**
*
* Different language translations for the campaign description.
*
*
* .io.LocalizedString localizedDescription = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedDescriptionFieldBuilder() {
if (localizedDescriptionBuilder_ == null) {
localizedDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedDescription(),
getParentForChildren(),
isClean());
localizedDescription_ = null;
}
return localizedDescriptionBuilder_;
}
private com.passkit.grpc.Template.Data data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Data, com.passkit.grpc.Template.Data.Builder, com.passkit.grpc.Template.DataOrBuilder> dataBuilder_;
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
* @return The data.
*/
public com.passkit.grpc.Template.Data getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.passkit.grpc.Template.Data.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
public Builder setData(com.passkit.grpc.Template.Data value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
public Builder setData(
com.passkit.grpc.Template.Data.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
public Builder mergeData(com.passkit.grpc.Template.Data value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
com.passkit.grpc.Template.Data.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
public com.passkit.grpc.Template.Data.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
public com.passkit.grpc.Template.DataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
com.passkit.grpc.Template.Data.getDefaultInstance() : data_;
}
}
/**
*
* This holds pass fields for both front and back of the pass and settings of rendering pass fields and data collection page.
*
*
* .io.Data data = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Data, com.passkit.grpc.Template.Data.Builder, com.passkit.grpc.Template.DataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Data, com.passkit.grpc.Template.Data.Builder, com.passkit.grpc.Template.DataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageIds, com.passkit.grpc.Image.ImageIds.Builder, com.passkit.grpc.Image.ImageIdsOrBuilder> imageIdsBuilder_;
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
* @return Whether the imageIds field is set.
*/
@java.lang.Override
public boolean hasImageIds() {
return imageAssetsCase_ == 11;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
* @return The imageIds.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIds getImageIds() {
if (imageIdsBuilder_ == null) {
if (imageAssetsCase_ == 11) {
return (com.passkit.grpc.Image.ImageIds) imageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
} else {
if (imageAssetsCase_ == 11) {
return imageIdsBuilder_.getMessage();
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
public Builder setImageIds(com.passkit.grpc.Image.ImageIds value) {
if (imageIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
imageAssets_ = value;
onChanged();
} else {
imageIdsBuilder_.setMessage(value);
}
imageAssetsCase_ = 11;
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
public Builder setImageIds(
com.passkit.grpc.Image.ImageIds.Builder builderForValue) {
if (imageIdsBuilder_ == null) {
imageAssets_ = builderForValue.build();
onChanged();
} else {
imageIdsBuilder_.setMessage(builderForValue.build());
}
imageAssetsCase_ = 11;
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
public Builder mergeImageIds(com.passkit.grpc.Image.ImageIds value) {
if (imageIdsBuilder_ == null) {
if (imageAssetsCase_ == 11 &&
imageAssets_ != com.passkit.grpc.Image.ImageIds.getDefaultInstance()) {
imageAssets_ = com.passkit.grpc.Image.ImageIds.newBuilder((com.passkit.grpc.Image.ImageIds) imageAssets_)
.mergeFrom(value).buildPartial();
} else {
imageAssets_ = value;
}
onChanged();
} else {
if (imageAssetsCase_ == 11) {
imageIdsBuilder_.mergeFrom(value);
}
imageIdsBuilder_.setMessage(value);
}
imageAssetsCase_ = 11;
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
public Builder clearImageIds() {
if (imageIdsBuilder_ == null) {
if (imageAssetsCase_ == 11) {
imageAssetsCase_ = 0;
imageAssets_ = null;
onChanged();
}
} else {
if (imageAssetsCase_ == 11) {
imageAssetsCase_ = 0;
imageAssets_ = null;
}
imageIdsBuilder_.clear();
}
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
public com.passkit.grpc.Image.ImageIds.Builder getImageIdsBuilder() {
return getImageIdsFieldBuilder().getBuilder();
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIdsOrBuilder getImageIdsOrBuilder() {
if ((imageAssetsCase_ == 11) && (imageIdsBuilder_ != null)) {
return imageIdsBuilder_.getMessageOrBuilder();
} else {
if (imageAssetsCase_ == 11) {
return (com.passkit.grpc.Image.ImageIds) imageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageIds, com.passkit.grpc.Image.ImageIds.Builder, com.passkit.grpc.Image.ImageIdsOrBuilder>
getImageIdsFieldBuilder() {
if (imageIdsBuilder_ == null) {
if (!(imageAssetsCase_ == 11)) {
imageAssets_ = com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
imageIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageIds, com.passkit.grpc.Image.ImageIds.Builder, com.passkit.grpc.Image.ImageIdsOrBuilder>(
(com.passkit.grpc.Image.ImageIds) imageAssets_,
getParentForChildren(),
isClean());
imageAssets_ = null;
}
imageAssetsCase_ = 11;
onChanged();;
return imageIdsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageData, com.passkit.grpc.Image.ImageData.Builder, com.passkit.grpc.Image.ImageDataOrBuilder> imagesBuilder_;
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
* @return Whether the images field is set.
*/
@java.lang.Override
public boolean hasImages() {
return imageAssetsCase_ == 12;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
* @return The images.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageData getImages() {
if (imagesBuilder_ == null) {
if (imageAssetsCase_ == 12) {
return (com.passkit.grpc.Image.ImageData) imageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
} else {
if (imageAssetsCase_ == 12) {
return imagesBuilder_.getMessage();
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
public Builder setImages(com.passkit.grpc.Image.ImageData value) {
if (imagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
imageAssets_ = value;
onChanged();
} else {
imagesBuilder_.setMessage(value);
}
imageAssetsCase_ = 12;
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
public Builder setImages(
com.passkit.grpc.Image.ImageData.Builder builderForValue) {
if (imagesBuilder_ == null) {
imageAssets_ = builderForValue.build();
onChanged();
} else {
imagesBuilder_.setMessage(builderForValue.build());
}
imageAssetsCase_ = 12;
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
public Builder mergeImages(com.passkit.grpc.Image.ImageData value) {
if (imagesBuilder_ == null) {
if (imageAssetsCase_ == 12 &&
imageAssets_ != com.passkit.grpc.Image.ImageData.getDefaultInstance()) {
imageAssets_ = com.passkit.grpc.Image.ImageData.newBuilder((com.passkit.grpc.Image.ImageData) imageAssets_)
.mergeFrom(value).buildPartial();
} else {
imageAssets_ = value;
}
onChanged();
} else {
if (imageAssetsCase_ == 12) {
imagesBuilder_.mergeFrom(value);
}
imagesBuilder_.setMessage(value);
}
imageAssetsCase_ = 12;
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
public Builder clearImages() {
if (imagesBuilder_ == null) {
if (imageAssetsCase_ == 12) {
imageAssetsCase_ = 0;
imageAssets_ = null;
onChanged();
}
} else {
if (imageAssetsCase_ == 12) {
imageAssetsCase_ = 0;
imageAssets_ = null;
}
imagesBuilder_.clear();
}
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
public com.passkit.grpc.Image.ImageData.Builder getImagesBuilder() {
return getImagesFieldBuilder().getBuilder();
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageDataOrBuilder getImagesOrBuilder() {
if ((imageAssetsCase_ == 12) && (imagesBuilder_ != null)) {
return imagesBuilder_.getMessageOrBuilder();
} else {
if (imageAssetsCase_ == 12) {
return (com.passkit.grpc.Image.ImageData) imageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageData, com.passkit.grpc.Image.ImageData.Builder, com.passkit.grpc.Image.ImageDataOrBuilder>
getImagesFieldBuilder() {
if (imagesBuilder_ == null) {
if (!(imageAssetsCase_ == 12)) {
imageAssets_ = com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
imagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageData, com.passkit.grpc.Image.ImageData.Builder, com.passkit.grpc.Image.ImageDataOrBuilder>(
(com.passkit.grpc.Image.ImageData) imageAssets_,
getParentForChildren(),
isClean());
imageAssets_ = null;
}
imageAssetsCase_ = 12;
onChanged();;
return imagesBuilder_;
}
private com.passkit.grpc.Template.Colors colors_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Colors, com.passkit.grpc.Template.Colors.Builder, com.passkit.grpc.Template.ColorsOrBuilder> colorsBuilder_;
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
* @return Whether the colors field is set.
*/
public boolean hasColors() {
return colorsBuilder_ != null || colors_ != null;
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
* @return The colors.
*/
public com.passkit.grpc.Template.Colors getColors() {
if (colorsBuilder_ == null) {
return colors_ == null ? com.passkit.grpc.Template.Colors.getDefaultInstance() : colors_;
} else {
return colorsBuilder_.getMessage();
}
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
public Builder setColors(com.passkit.grpc.Template.Colors value) {
if (colorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
colors_ = value;
onChanged();
} else {
colorsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
public Builder setColors(
com.passkit.grpc.Template.Colors.Builder builderForValue) {
if (colorsBuilder_ == null) {
colors_ = builderForValue.build();
onChanged();
} else {
colorsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
public Builder mergeColors(com.passkit.grpc.Template.Colors value) {
if (colorsBuilder_ == null) {
if (colors_ != null) {
colors_ =
com.passkit.grpc.Template.Colors.newBuilder(colors_).mergeFrom(value).buildPartial();
} else {
colors_ = value;
}
onChanged();
} else {
colorsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
public Builder clearColors() {
if (colorsBuilder_ == null) {
colors_ = null;
onChanged();
} else {
colors_ = null;
colorsBuilder_ = null;
}
return this;
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
public com.passkit.grpc.Template.Colors.Builder getColorsBuilder() {
onChanged();
return getColorsFieldBuilder().getBuilder();
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
public com.passkit.grpc.Template.ColorsOrBuilder getColorsOrBuilder() {
if (colorsBuilder_ != null) {
return colorsBuilder_.getMessageOrBuilder();
} else {
return colors_ == null ?
com.passkit.grpc.Template.Colors.getDefaultInstance() : colors_;
}
}
/**
*
* Colours take a hex code input. A '#' prefix is optional. Not all colors have effect on each design.
*
*
* .io.Colors colors = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Colors, com.passkit.grpc.Template.Colors.Builder, com.passkit.grpc.Template.ColorsOrBuilder>
getColorsFieldBuilder() {
if (colorsBuilder_ == null) {
colorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Colors, com.passkit.grpc.Template.Colors.Builder, com.passkit.grpc.Template.ColorsOrBuilder>(
getColors(),
getParentForChildren(),
isClean());
colors_ = null;
}
return colorsBuilder_;
}
private com.passkit.grpc.Template.Barcode barcode_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Barcode, com.passkit.grpc.Template.Barcode.Builder, com.passkit.grpc.Template.BarcodeOrBuilder> barcodeBuilder_;
/**
* .io.Barcode barcode = 14;
* @return Whether the barcode field is set.
*/
public boolean hasBarcode() {
return barcodeBuilder_ != null || barcode_ != null;
}
/**
* .io.Barcode barcode = 14;
* @return The barcode.
*/
public com.passkit.grpc.Template.Barcode getBarcode() {
if (barcodeBuilder_ == null) {
return barcode_ == null ? com.passkit.grpc.Template.Barcode.getDefaultInstance() : barcode_;
} else {
return barcodeBuilder_.getMessage();
}
}
/**
* .io.Barcode barcode = 14;
*/
public Builder setBarcode(com.passkit.grpc.Template.Barcode value) {
if (barcodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
barcode_ = value;
onChanged();
} else {
barcodeBuilder_.setMessage(value);
}
return this;
}
/**
* .io.Barcode barcode = 14;
*/
public Builder setBarcode(
com.passkit.grpc.Template.Barcode.Builder builderForValue) {
if (barcodeBuilder_ == null) {
barcode_ = builderForValue.build();
onChanged();
} else {
barcodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.Barcode barcode = 14;
*/
public Builder mergeBarcode(com.passkit.grpc.Template.Barcode value) {
if (barcodeBuilder_ == null) {
if (barcode_ != null) {
barcode_ =
com.passkit.grpc.Template.Barcode.newBuilder(barcode_).mergeFrom(value).buildPartial();
} else {
barcode_ = value;
}
onChanged();
} else {
barcodeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.Barcode barcode = 14;
*/
public Builder clearBarcode() {
if (barcodeBuilder_ == null) {
barcode_ = null;
onChanged();
} else {
barcode_ = null;
barcodeBuilder_ = null;
}
return this;
}
/**
* .io.Barcode barcode = 14;
*/
public com.passkit.grpc.Template.Barcode.Builder getBarcodeBuilder() {
onChanged();
return getBarcodeFieldBuilder().getBuilder();
}
/**
* .io.Barcode barcode = 14;
*/
public com.passkit.grpc.Template.BarcodeOrBuilder getBarcodeOrBuilder() {
if (barcodeBuilder_ != null) {
return barcodeBuilder_.getMessageOrBuilder();
} else {
return barcode_ == null ?
com.passkit.grpc.Template.Barcode.getDefaultInstance() : barcode_;
}
}
/**
* .io.Barcode barcode = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Barcode, com.passkit.grpc.Template.Barcode.Builder, com.passkit.grpc.Template.BarcodeOrBuilder>
getBarcodeFieldBuilder() {
if (barcodeBuilder_ == null) {
barcodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Barcode, com.passkit.grpc.Template.Barcode.Builder, com.passkit.grpc.Template.BarcodeOrBuilder>(
getBarcode(),
getParentForChildren(),
isClean());
barcode_ = null;
}
return barcodeBuilder_;
}
private com.passkit.grpc.Template.NFC nfcEnabled_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.NFC, com.passkit.grpc.Template.NFC.Builder, com.passkit.grpc.Template.NFCOrBuilder> nfcEnabledBuilder_;
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
* @return Whether the nfcEnabled field is set.
*/
public boolean hasNfcEnabled() {
return nfcEnabledBuilder_ != null || nfcEnabled_ != null;
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
* @return The nfcEnabled.
*/
public com.passkit.grpc.Template.NFC getNfcEnabled() {
if (nfcEnabledBuilder_ == null) {
return nfcEnabled_ == null ? com.passkit.grpc.Template.NFC.getDefaultInstance() : nfcEnabled_;
} else {
return nfcEnabledBuilder_.getMessage();
}
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
public Builder setNfcEnabled(com.passkit.grpc.Template.NFC value) {
if (nfcEnabledBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nfcEnabled_ = value;
onChanged();
} else {
nfcEnabledBuilder_.setMessage(value);
}
return this;
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
public Builder setNfcEnabled(
com.passkit.grpc.Template.NFC.Builder builderForValue) {
if (nfcEnabledBuilder_ == null) {
nfcEnabled_ = builderForValue.build();
onChanged();
} else {
nfcEnabledBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
public Builder mergeNfcEnabled(com.passkit.grpc.Template.NFC value) {
if (nfcEnabledBuilder_ == null) {
if (nfcEnabled_ != null) {
nfcEnabled_ =
com.passkit.grpc.Template.NFC.newBuilder(nfcEnabled_).mergeFrom(value).buildPartial();
} else {
nfcEnabled_ = value;
}
onChanged();
} else {
nfcEnabledBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
public Builder clearNfcEnabled() {
if (nfcEnabledBuilder_ == null) {
nfcEnabled_ = null;
onChanged();
} else {
nfcEnabled_ = null;
nfcEnabledBuilder_ = null;
}
return this;
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
public com.passkit.grpc.Template.NFC.Builder getNfcEnabledBuilder() {
onChanged();
return getNfcEnabledFieldBuilder().getBuilder();
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
public com.passkit.grpc.Template.NFCOrBuilder getNfcEnabledOrBuilder() {
if (nfcEnabledBuilder_ != null) {
return nfcEnabledBuilder_.getMessageOrBuilder();
} else {
return nfcEnabled_ == null ?
com.passkit.grpc.Template.NFC.getDefaultInstance() : nfcEnabled_;
}
}
/**
*
* NFC enabled passes will depend on client certificate capabilities. Contact support for more information.
*
*
* .io.NFC nfcEnabled = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.NFC, com.passkit.grpc.Template.NFC.Builder, com.passkit.grpc.Template.NFCOrBuilder>
getNfcEnabledFieldBuilder() {
if (nfcEnabledBuilder_ == null) {
nfcEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.NFC, com.passkit.grpc.Template.NFC.Builder, com.passkit.grpc.Template.NFCOrBuilder>(
getNfcEnabled(),
getParentForChildren(),
isClean());
nfcEnabled_ = null;
}
return nfcEnabledBuilder_;
}
private com.passkit.grpc.Template.Sharing sharing_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Sharing, com.passkit.grpc.Template.Sharing.Builder, com.passkit.grpc.Template.SharingOrBuilder> sharingBuilder_;
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
* @return Whether the sharing field is set.
*/
public boolean hasSharing() {
return sharingBuilder_ != null || sharing_ != null;
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
* @return The sharing.
*/
public com.passkit.grpc.Template.Sharing getSharing() {
if (sharingBuilder_ == null) {
return sharing_ == null ? com.passkit.grpc.Template.Sharing.getDefaultInstance() : sharing_;
} else {
return sharingBuilder_.getMessage();
}
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
public Builder setSharing(com.passkit.grpc.Template.Sharing value) {
if (sharingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sharing_ = value;
onChanged();
} else {
sharingBuilder_.setMessage(value);
}
return this;
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
public Builder setSharing(
com.passkit.grpc.Template.Sharing.Builder builderForValue) {
if (sharingBuilder_ == null) {
sharing_ = builderForValue.build();
onChanged();
} else {
sharingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
public Builder mergeSharing(com.passkit.grpc.Template.Sharing value) {
if (sharingBuilder_ == null) {
if (sharing_ != null) {
sharing_ =
com.passkit.grpc.Template.Sharing.newBuilder(sharing_).mergeFrom(value).buildPartial();
} else {
sharing_ = value;
}
onChanged();
} else {
sharingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
public Builder clearSharing() {
if (sharingBuilder_ == null) {
sharing_ = null;
onChanged();
} else {
sharing_ = null;
sharingBuilder_ = null;
}
return this;
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
public com.passkit.grpc.Template.Sharing.Builder getSharingBuilder() {
onChanged();
return getSharingFieldBuilder().getBuilder();
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
public com.passkit.grpc.Template.SharingOrBuilder getSharingOrBuilder() {
if (sharingBuilder_ != null) {
return sharingBuilder_.getMessageOrBuilder();
} else {
return sharing_ == null ?
com.passkit.grpc.Template.Sharing.getDefaultInstance() : sharing_;
}
}
/**
*
* When set controls how this pass is shared. For Apple wallet this uses the built in sharing functionality. For Google Pay, a sharing link will be added to the pass.
*
*
* .io.Sharing sharing = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Sharing, com.passkit.grpc.Template.Sharing.Builder, com.passkit.grpc.Template.SharingOrBuilder>
getSharingFieldBuilder() {
if (sharingBuilder_ == null) {
sharingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.Sharing, com.passkit.grpc.Template.Sharing.Builder, com.passkit.grpc.Template.SharingOrBuilder>(
getSharing(),
getParentForChildren(),
isClean());
sharing_ = null;
}
return sharingBuilder_;
}
private com.passkit.grpc.Template.AppleWalletSettings appleWalletSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AppleWalletSettings, com.passkit.grpc.Template.AppleWalletSettings.Builder, com.passkit.grpc.Template.AppleWalletSettingsOrBuilder> appleWalletSettingsBuilder_;
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
* @return Whether the appleWalletSettings field is set.
*/
public boolean hasAppleWalletSettings() {
return appleWalletSettingsBuilder_ != null || appleWalletSettings_ != null;
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
* @return The appleWalletSettings.
*/
public com.passkit.grpc.Template.AppleWalletSettings getAppleWalletSettings() {
if (appleWalletSettingsBuilder_ == null) {
return appleWalletSettings_ == null ? com.passkit.grpc.Template.AppleWalletSettings.getDefaultInstance() : appleWalletSettings_;
} else {
return appleWalletSettingsBuilder_.getMessage();
}
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
public Builder setAppleWalletSettings(com.passkit.grpc.Template.AppleWalletSettings value) {
if (appleWalletSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
appleWalletSettings_ = value;
onChanged();
} else {
appleWalletSettingsBuilder_.setMessage(value);
}
return this;
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
public Builder setAppleWalletSettings(
com.passkit.grpc.Template.AppleWalletSettings.Builder builderForValue) {
if (appleWalletSettingsBuilder_ == null) {
appleWalletSettings_ = builderForValue.build();
onChanged();
} else {
appleWalletSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
public Builder mergeAppleWalletSettings(com.passkit.grpc.Template.AppleWalletSettings value) {
if (appleWalletSettingsBuilder_ == null) {
if (appleWalletSettings_ != null) {
appleWalletSettings_ =
com.passkit.grpc.Template.AppleWalletSettings.newBuilder(appleWalletSettings_).mergeFrom(value).buildPartial();
} else {
appleWalletSettings_ = value;
}
onChanged();
} else {
appleWalletSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
public Builder clearAppleWalletSettings() {
if (appleWalletSettingsBuilder_ == null) {
appleWalletSettings_ = null;
onChanged();
} else {
appleWalletSettings_ = null;
appleWalletSettingsBuilder_ = null;
}
return this;
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
public com.passkit.grpc.Template.AppleWalletSettings.Builder getAppleWalletSettingsBuilder() {
onChanged();
return getAppleWalletSettingsFieldBuilder().getBuilder();
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
public com.passkit.grpc.Template.AppleWalletSettingsOrBuilder getAppleWalletSettingsOrBuilder() {
if (appleWalletSettingsBuilder_ != null) {
return appleWalletSettingsBuilder_.getMessageOrBuilder();
} else {
return appleWalletSettings_ == null ?
com.passkit.grpc.Template.AppleWalletSettings.getDefaultInstance() : appleWalletSettings_;
}
}
/**
* .io.AppleWalletSettings appleWalletSettings = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AppleWalletSettings, com.passkit.grpc.Template.AppleWalletSettings.Builder, com.passkit.grpc.Template.AppleWalletSettingsOrBuilder>
getAppleWalletSettingsFieldBuilder() {
if (appleWalletSettingsBuilder_ == null) {
appleWalletSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AppleWalletSettings, com.passkit.grpc.Template.AppleWalletSettings.Builder, com.passkit.grpc.Template.AppleWalletSettingsOrBuilder>(
getAppleWalletSettings(),
getParentForChildren(),
isClean());
appleWalletSettings_ = null;
}
return appleWalletSettingsBuilder_;
}
private com.passkit.grpc.Template.GooglePaySettings googlePaySettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePaySettings, com.passkit.grpc.Template.GooglePaySettings.Builder, com.passkit.grpc.Template.GooglePaySettingsOrBuilder> googlePaySettingsBuilder_;
/**
* .io.GooglePaySettings googlePaySettings = 18;
* @return Whether the googlePaySettings field is set.
*/
public boolean hasGooglePaySettings() {
return googlePaySettingsBuilder_ != null || googlePaySettings_ != null;
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
* @return The googlePaySettings.
*/
public com.passkit.grpc.Template.GooglePaySettings getGooglePaySettings() {
if (googlePaySettingsBuilder_ == null) {
return googlePaySettings_ == null ? com.passkit.grpc.Template.GooglePaySettings.getDefaultInstance() : googlePaySettings_;
} else {
return googlePaySettingsBuilder_.getMessage();
}
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
public Builder setGooglePaySettings(com.passkit.grpc.Template.GooglePaySettings value) {
if (googlePaySettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
googlePaySettings_ = value;
onChanged();
} else {
googlePaySettingsBuilder_.setMessage(value);
}
return this;
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
public Builder setGooglePaySettings(
com.passkit.grpc.Template.GooglePaySettings.Builder builderForValue) {
if (googlePaySettingsBuilder_ == null) {
googlePaySettings_ = builderForValue.build();
onChanged();
} else {
googlePaySettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
public Builder mergeGooglePaySettings(com.passkit.grpc.Template.GooglePaySettings value) {
if (googlePaySettingsBuilder_ == null) {
if (googlePaySettings_ != null) {
googlePaySettings_ =
com.passkit.grpc.Template.GooglePaySettings.newBuilder(googlePaySettings_).mergeFrom(value).buildPartial();
} else {
googlePaySettings_ = value;
}
onChanged();
} else {
googlePaySettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
public Builder clearGooglePaySettings() {
if (googlePaySettingsBuilder_ == null) {
googlePaySettings_ = null;
onChanged();
} else {
googlePaySettings_ = null;
googlePaySettingsBuilder_ = null;
}
return this;
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
public com.passkit.grpc.Template.GooglePaySettings.Builder getGooglePaySettingsBuilder() {
onChanged();
return getGooglePaySettingsFieldBuilder().getBuilder();
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
public com.passkit.grpc.Template.GooglePaySettingsOrBuilder getGooglePaySettingsOrBuilder() {
if (googlePaySettingsBuilder_ != null) {
return googlePaySettingsBuilder_.getMessageOrBuilder();
} else {
return googlePaySettings_ == null ?
com.passkit.grpc.Template.GooglePaySettings.getDefaultInstance() : googlePaySettings_;
}
}
/**
* .io.GooglePaySettings googlePaySettings = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePaySettings, com.passkit.grpc.Template.GooglePaySettings.Builder, com.passkit.grpc.Template.GooglePaySettingsOrBuilder>
getGooglePaySettingsFieldBuilder() {
if (googlePaySettingsBuilder_ == null) {
googlePaySettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePaySettings, com.passkit.grpc.Template.GooglePaySettings.Builder, com.passkit.grpc.Template.GooglePaySettingsOrBuilder>(
getGooglePaySettings(),
getParentForChildren(),
isClean());
googlePaySettings_ = null;
}
return googlePaySettingsBuilder_;
}
private java.util.List locations_ =
java.util.Collections.emptyList();
private void ensureLocationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
locations_ = new java.util.ArrayList(locations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder> locationsBuilder_;
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List getLocationsList() {
if (locationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(locations_);
} else {
return locationsBuilder_.getMessageList();
}
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public int getLocationsCount() {
if (locationsBuilder_ == null) {
return locations_.size();
} else {
return locationsBuilder_.getCount();
}
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation getLocations(int index) {
if (locationsBuilder_ == null) {
return locations_.get(index);
} else {
return locationsBuilder_.getMessage(index);
}
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setLocations(
int index, com.passkit.grpc.Proximity.GPSLocation value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.set(index, value);
onChanged();
} else {
locationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setLocations(
int index, com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.set(index, builderForValue.build());
onChanged();
} else {
locationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocations(com.passkit.grpc.Proximity.GPSLocation value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(value);
onChanged();
} else {
locationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocations(
int index, com.passkit.grpc.Proximity.GPSLocation value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(index, value);
onChanged();
} else {
locationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocations(
com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.add(builderForValue.build());
onChanged();
} else {
locationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addLocations(
int index, com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.add(index, builderForValue.build());
onChanged();
} else {
locationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addAllLocations(
java.lang.Iterable extends com.passkit.grpc.Proximity.GPSLocation> values) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, locations_);
onChanged();
} else {
locationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder clearLocations() {
if (locationsBuilder_ == null) {
locations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
locationsBuilder_.clear();
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder removeLocations(int index) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.remove(index);
onChanged();
} else {
locationsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation.Builder getLocationsBuilder(
int index) {
return getLocationsFieldBuilder().getBuilder(index);
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationsOrBuilder(
int index) {
if (locationsBuilder_ == null) {
return locations_.get(index); } else {
return locationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List extends com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationsOrBuilderList() {
if (locationsBuilder_ != null) {
return locationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(locations_);
}
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation.Builder addLocationsBuilder() {
return getLocationsFieldBuilder().addBuilder(
com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance());
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.GPSLocation.Builder addLocationsBuilder(
int index) {
return getLocationsFieldBuilder().addBuilder(
index, com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance());
}
/**
*
* A list of up to 10 GPS locations where this pass should be presented on the lock-screen.
*
*
* repeated .io.GPSLocation locations = 19 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List
getLocationsBuilderList() {
return getLocationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder>
getLocationsFieldBuilder() {
if (locationsBuilder_ == null) {
locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder>(
locations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
locations_ = null;
}
return locationsBuilder_;
}
private java.util.List beacons_ =
java.util.Collections.emptyList();
private void ensureBeaconsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
beacons_ = new java.util.ArrayList(beacons_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.Beacon, com.passkit.grpc.Proximity.Beacon.Builder, com.passkit.grpc.Proximity.BeaconOrBuilder> beaconsBuilder_;
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List getBeaconsList() {
if (beaconsBuilder_ == null) {
return java.util.Collections.unmodifiableList(beacons_);
} else {
return beaconsBuilder_.getMessageList();
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public int getBeaconsCount() {
if (beaconsBuilder_ == null) {
return beacons_.size();
} else {
return beaconsBuilder_.getCount();
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon getBeacons(int index) {
if (beaconsBuilder_ == null) {
return beacons_.get(index);
} else {
return beaconsBuilder_.getMessage(index);
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setBeacons(
int index, com.passkit.grpc.Proximity.Beacon value) {
if (beaconsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeaconsIsMutable();
beacons_.set(index, value);
onChanged();
} else {
beaconsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder setBeacons(
int index, com.passkit.grpc.Proximity.Beacon.Builder builderForValue) {
if (beaconsBuilder_ == null) {
ensureBeaconsIsMutable();
beacons_.set(index, builderForValue.build());
onChanged();
} else {
beaconsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeacons(com.passkit.grpc.Proximity.Beacon value) {
if (beaconsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeaconsIsMutable();
beacons_.add(value);
onChanged();
} else {
beaconsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeacons(
int index, com.passkit.grpc.Proximity.Beacon value) {
if (beaconsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeaconsIsMutable();
beacons_.add(index, value);
onChanged();
} else {
beaconsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeacons(
com.passkit.grpc.Proximity.Beacon.Builder builderForValue) {
if (beaconsBuilder_ == null) {
ensureBeaconsIsMutable();
beacons_.add(builderForValue.build());
onChanged();
} else {
beaconsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addBeacons(
int index, com.passkit.grpc.Proximity.Beacon.Builder builderForValue) {
if (beaconsBuilder_ == null) {
ensureBeaconsIsMutable();
beacons_.add(index, builderForValue.build());
onChanged();
} else {
beaconsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder addAllBeacons(
java.lang.Iterable extends com.passkit.grpc.Proximity.Beacon> values) {
if (beaconsBuilder_ == null) {
ensureBeaconsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, beacons_);
onChanged();
} else {
beaconsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder clearBeacons() {
if (beaconsBuilder_ == null) {
beacons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
beaconsBuilder_.clear();
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public Builder removeBeacons(int index) {
if (beaconsBuilder_ == null) {
ensureBeaconsIsMutable();
beacons_.remove(index);
onChanged();
} else {
beaconsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon.Builder getBeaconsBuilder(
int index) {
return getBeaconsFieldBuilder().getBuilder(index);
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.BeaconOrBuilder getBeaconsOrBuilder(
int index) {
if (beaconsBuilder_ == null) {
return beacons_.get(index); } else {
return beaconsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List extends com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconsOrBuilderList() {
if (beaconsBuilder_ != null) {
return beaconsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(beacons_);
}
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon.Builder addBeaconsBuilder() {
return getBeaconsFieldBuilder().addBuilder(
com.passkit.grpc.Proximity.Beacon.getDefaultInstance());
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public com.passkit.grpc.Proximity.Beacon.Builder addBeaconsBuilder(
int index) {
return getBeaconsFieldBuilder().addBuilder(
index, com.passkit.grpc.Proximity.Beacon.getDefaultInstance());
}
/**
*
* A list of up to 10 Beacon UUIDs that should trigger the pass to be presented on the lock-screen.
*
*
* repeated .io.Beacon beacons = 20 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
*/
public java.util.List
getBeaconsBuilderList() {
return getBeaconsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.Beacon, com.passkit.grpc.Proximity.Beacon.Builder, com.passkit.grpc.Proximity.BeaconOrBuilder>
getBeaconsFieldBuilder() {
if (beaconsBuilder_ == null) {
beaconsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Proximity.Beacon, com.passkit.grpc.Proximity.Beacon.Builder, com.passkit.grpc.Proximity.BeaconOrBuilder>(
beacons_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
beacons_ = null;
}
return beaconsBuilder_;
}
private java.util.List links_ =
java.util.Collections.emptyList();
private void ensureLinksIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
links_ = new java.util.ArrayList(links_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder> linksBuilder_;
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public java.util.List getLinksList() {
if (linksBuilder_ == null) {
return java.util.Collections.unmodifiableList(links_);
} else {
return linksBuilder_.getMessageList();
}
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public int getLinksCount() {
if (linksBuilder_ == null) {
return links_.size();
} else {
return linksBuilder_.getCount();
}
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public com.passkit.grpc.Links.Link getLinks(int index) {
if (linksBuilder_ == null) {
return links_.get(index);
} else {
return linksBuilder_.getMessage(index);
}
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder setLinks(
int index, com.passkit.grpc.Links.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.set(index, value);
onChanged();
} else {
linksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder setLinks(
int index, com.passkit.grpc.Links.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.set(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder addLinks(com.passkit.grpc.Links.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(value);
onChanged();
} else {
linksBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder addLinks(
int index, com.passkit.grpc.Links.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(index, value);
onChanged();
} else {
linksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder addLinks(
com.passkit.grpc.Links.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder addLinks(
int index, com.passkit.grpc.Links.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder addAllLinks(
java.lang.Iterable extends com.passkit.grpc.Links.Link> values) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, links_);
onChanged();
} else {
linksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder clearLinks() {
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
linksBuilder_.clear();
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public Builder removeLinks(int index) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.remove(index);
onChanged();
} else {
linksBuilder_.remove(index);
}
return this;
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public com.passkit.grpc.Links.Link.Builder getLinksBuilder(
int index) {
return getLinksFieldBuilder().getBuilder(index);
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public com.passkit.grpc.Links.LinkOrBuilder getLinksOrBuilder(
int index) {
if (linksBuilder_ == null) {
return links_.get(index); } else {
return linksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public java.util.List extends com.passkit.grpc.Links.LinkOrBuilder>
getLinksOrBuilderList() {
if (linksBuilder_ != null) {
return linksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(links_);
}
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public com.passkit.grpc.Links.Link.Builder addLinksBuilder() {
return getLinksFieldBuilder().addBuilder(
com.passkit.grpc.Links.Link.getDefaultInstance());
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public com.passkit.grpc.Links.Link.Builder addLinksBuilder(
int index) {
return getLinksFieldBuilder().addBuilder(
index, com.passkit.grpc.Links.Link.getDefaultInstance());
}
/**
*
* A list of links to be shown on each pass.
*
*
* repeated .io.Link links = 21;
*/
public java.util.List
getLinksBuilderList() {
return getLinksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder>
getLinksFieldBuilder() {
if (linksBuilder_ == null) {
linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Links.Link, com.passkit.grpc.Links.Link.Builder, com.passkit.grpc.Links.LinkOrBuilder>(
links_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
links_ = null;
}
return linksBuilder_;
}
private java.lang.Object timezone_ = "";
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @return The timezone.
*/
public java.lang.String getTimezone() {
java.lang.Object ref = timezone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timezone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @return The bytes for timezone.
*/
public com.google.protobuf.ByteString
getTimezoneBytes() {
java.lang.Object ref = timezone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timezone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @param value The timezone to set.
* @return This builder for chaining.
*/
public Builder setTimezone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
timezone_ = value;
onChanged();
return this;
}
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @return This builder for chaining.
*/
public Builder clearTimezone() {
timezone_ = getDefaultInstance().getTimezone();
onChanged();
return this;
}
/**
*
* Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
*
*
* string timezone = 22;
* @param value The bytes for timezone to set.
* @return This builder for chaining.
*/
public Builder setTimezoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timezone_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Expiry.ExpirySettings expirySettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Expiry.ExpirySettings, com.passkit.grpc.Expiry.ExpirySettings.Builder, com.passkit.grpc.Expiry.ExpirySettingsOrBuilder> expirySettingsBuilder_;
/**
* .io.ExpirySettings expirySettings = 23;
* @return Whether the expirySettings field is set.
*/
public boolean hasExpirySettings() {
return expirySettingsBuilder_ != null || expirySettings_ != null;
}
/**
* .io.ExpirySettings expirySettings = 23;
* @return The expirySettings.
*/
public com.passkit.grpc.Expiry.ExpirySettings getExpirySettings() {
if (expirySettingsBuilder_ == null) {
return expirySettings_ == null ? com.passkit.grpc.Expiry.ExpirySettings.getDefaultInstance() : expirySettings_;
} else {
return expirySettingsBuilder_.getMessage();
}
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
public Builder setExpirySettings(com.passkit.grpc.Expiry.ExpirySettings value) {
if (expirySettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirySettings_ = value;
onChanged();
} else {
expirySettingsBuilder_.setMessage(value);
}
return this;
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
public Builder setExpirySettings(
com.passkit.grpc.Expiry.ExpirySettings.Builder builderForValue) {
if (expirySettingsBuilder_ == null) {
expirySettings_ = builderForValue.build();
onChanged();
} else {
expirySettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
public Builder mergeExpirySettings(com.passkit.grpc.Expiry.ExpirySettings value) {
if (expirySettingsBuilder_ == null) {
if (expirySettings_ != null) {
expirySettings_ =
com.passkit.grpc.Expiry.ExpirySettings.newBuilder(expirySettings_).mergeFrom(value).buildPartial();
} else {
expirySettings_ = value;
}
onChanged();
} else {
expirySettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
public Builder clearExpirySettings() {
if (expirySettingsBuilder_ == null) {
expirySettings_ = null;
onChanged();
} else {
expirySettings_ = null;
expirySettingsBuilder_ = null;
}
return this;
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
public com.passkit.grpc.Expiry.ExpirySettings.Builder getExpirySettingsBuilder() {
onChanged();
return getExpirySettingsFieldBuilder().getBuilder();
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
public com.passkit.grpc.Expiry.ExpirySettingsOrBuilder getExpirySettingsOrBuilder() {
if (expirySettingsBuilder_ != null) {
return expirySettingsBuilder_.getMessageOrBuilder();
} else {
return expirySettings_ == null ?
com.passkit.grpc.Expiry.ExpirySettings.getDefaultInstance() : expirySettings_;
}
}
/**
* .io.ExpirySettings expirySettings = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Expiry.ExpirySettings, com.passkit.grpc.Expiry.ExpirySettings.Builder, com.passkit.grpc.Expiry.ExpirySettingsOrBuilder>
getExpirySettingsFieldBuilder() {
if (expirySettingsBuilder_ == null) {
expirySettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Expiry.ExpirySettings, com.passkit.grpc.Expiry.ExpirySettings.Builder, com.passkit.grpc.Expiry.ExpirySettingsOrBuilder>(
getExpirySettings(),
getParentForChildren(),
isClean());
expirySettings_ = null;
}
return expirySettingsBuilder_;
}
private com.passkit.grpc.Template.LandingPageSettings landingPageSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.LandingPageSettings, com.passkit.grpc.Template.LandingPageSettings.Builder, com.passkit.grpc.Template.LandingPageSettingsOrBuilder> landingPageSettingsBuilder_;
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
* @return Whether the landingPageSettings field is set.
*/
public boolean hasLandingPageSettings() {
return landingPageSettingsBuilder_ != null || landingPageSettings_ != null;
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
* @return The landingPageSettings.
*/
public com.passkit.grpc.Template.LandingPageSettings getLandingPageSettings() {
if (landingPageSettingsBuilder_ == null) {
return landingPageSettings_ == null ? com.passkit.grpc.Template.LandingPageSettings.getDefaultInstance() : landingPageSettings_;
} else {
return landingPageSettingsBuilder_.getMessage();
}
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
public Builder setLandingPageSettings(com.passkit.grpc.Template.LandingPageSettings value) {
if (landingPageSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
landingPageSettings_ = value;
onChanged();
} else {
landingPageSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
public Builder setLandingPageSettings(
com.passkit.grpc.Template.LandingPageSettings.Builder builderForValue) {
if (landingPageSettingsBuilder_ == null) {
landingPageSettings_ = builderForValue.build();
onChanged();
} else {
landingPageSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
public Builder mergeLandingPageSettings(com.passkit.grpc.Template.LandingPageSettings value) {
if (landingPageSettingsBuilder_ == null) {
if (landingPageSettings_ != null) {
landingPageSettings_ =
com.passkit.grpc.Template.LandingPageSettings.newBuilder(landingPageSettings_).mergeFrom(value).buildPartial();
} else {
landingPageSettings_ = value;
}
onChanged();
} else {
landingPageSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
public Builder clearLandingPageSettings() {
if (landingPageSettingsBuilder_ == null) {
landingPageSettings_ = null;
onChanged();
} else {
landingPageSettings_ = null;
landingPageSettingsBuilder_ = null;
}
return this;
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
public com.passkit.grpc.Template.LandingPageSettings.Builder getLandingPageSettingsBuilder() {
onChanged();
return getLandingPageSettingsFieldBuilder().getBuilder();
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
public com.passkit.grpc.Template.LandingPageSettingsOrBuilder getLandingPageSettingsOrBuilder() {
if (landingPageSettingsBuilder_ != null) {
return landingPageSettingsBuilder_.getMessageOrBuilder();
} else {
return landingPageSettings_ == null ?
com.passkit.grpc.Template.LandingPageSettings.getDefaultInstance() : landingPageSettings_;
}
}
/**
*
* Optional settings that override default localizations and Android experience.
*
*
* .io.LandingPageSettings landingPageSettings = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.LandingPageSettings, com.passkit.grpc.Template.LandingPageSettings.Builder, com.passkit.grpc.Template.LandingPageSettingsOrBuilder>
getLandingPageSettingsFieldBuilder() {
if (landingPageSettingsBuilder_ == null) {
landingPageSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.LandingPageSettings, com.passkit.grpc.Template.LandingPageSettings.Builder, com.passkit.grpc.Template.LandingPageSettingsOrBuilder>(
getLandingPageSettings(),
getParentForChildren(),
isClean());
landingPageSettings_ = null;
}
return landingPageSettingsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.PassTemplate)
}
// @@protoc_insertion_point(class_scope:io.PassTemplate)
private static final com.passkit.grpc.Template.PassTemplate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.PassTemplate();
}
public static com.passkit.grpc.Template.PassTemplate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PassTemplate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PassTemplate(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.Template.PassTemplate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AppleWalletSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.AppleWalletSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @return The enum numeric value on the wire for passType.
*/
int getPassTypeValue();
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @return The passType.
*/
com.passkit.grpc.Template.ApplePassType getPassType();
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @return The userInfo.
*/
java.lang.String getUserInfo();
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @return The bytes for userInfo.
*/
com.google.protobuf.ByteString
getUserInfoBytes();
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @return The appLaunchUrl.
*/
java.lang.String getAppLaunchUrl();
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @return The bytes for appLaunchUrl.
*/
com.google.protobuf.ByteString
getAppLaunchUrlBytes();
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @return A list containing the associatedStoreIdentifiers.
*/
java.util.List getAssociatedStoreIdentifiersList();
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @return The count of associatedStoreIdentifiers.
*/
int getAssociatedStoreIdentifiersCount();
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @param index The index of the element to return.
* @return The associatedStoreIdentifiers at the given index.
*/
int getAssociatedStoreIdentifiers(int index);
/**
*
* GPS lock screen messages will show at the lower of max distance and the pass default(unpublished) value.
*
*
* uint32 maxDistance = 5;
* @return The maxDistance.
*/
int getMaxDistance();
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @return A list containing the appStoreCountries.
*/
java.util.List
getAppStoreCountriesList();
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @return The count of appStoreCountries.
*/
int getAppStoreCountriesCount();
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param index The index of the element to return.
* @return The appStoreCountries at the given index.
*/
java.lang.String getAppStoreCountries(int index);
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param index The index of the value to return.
* @return The bytes of the appStoreCountries at the given index.
*/
com.google.protobuf.ByteString
getAppStoreCountriesBytes(int index);
/**
* .io.TransitType transitType = 7;
* @return The enum numeric value on the wire for transitType.
*/
int getTransitTypeValue();
/**
* .io.TransitType transitType = 7;
* @return The transitType.
*/
com.passkit.grpc.Template.TransitType getTransitType();
/**
* string groupingIdentifier = 8;
* @return The groupingIdentifier.
*/
java.lang.String getGroupingIdentifier();
/**
* string groupingIdentifier = 8;
* @return The bytes for groupingIdentifier.
*/
com.google.protobuf.ByteString
getGroupingIdentifierBytes();
}
/**
*
* Pass settings only for Apple Wallet.
*
*
* Protobuf type {@code io.AppleWalletSettings}
*/
public static final class AppleWalletSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.AppleWalletSettings)
AppleWalletSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AppleWalletSettings.newBuilder() to construct.
private AppleWalletSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AppleWalletSettings() {
passType_ = 0;
userInfo_ = "";
appLaunchUrl_ = "";
associatedStoreIdentifiers_ = emptyIntList();
appStoreCountries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
transitType_ = 0;
groupingIdentifier_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AppleWalletSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AppleWalletSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
passType_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
userInfo_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
appLaunchUrl_ = s;
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
associatedStoreIdentifiers_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
associatedStoreIdentifiers_.addInt(input.readUInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
associatedStoreIdentifiers_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
associatedStoreIdentifiers_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 40: {
maxDistance_ = input.readUInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
appStoreCountries_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
appStoreCountries_.add(s);
break;
}
case 56: {
int rawValue = input.readEnum();
transitType_ = rawValue;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
groupingIdentifier_ = 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)) {
associatedStoreIdentifiers_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
appStoreCountries_ = appStoreCountries_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.AppleWalletSettings.class, com.passkit.grpc.Template.AppleWalletSettings.Builder.class);
}
public static final int PASSTYPE_FIELD_NUMBER = 1;
private int passType_;
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @return The enum numeric value on the wire for passType.
*/
@java.lang.Override public int getPassTypeValue() {
return passType_;
}
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @return The passType.
*/
@java.lang.Override public com.passkit.grpc.Template.ApplePassType getPassType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.ApplePassType result = com.passkit.grpc.Template.ApplePassType.valueOf(passType_);
return result == null ? com.passkit.grpc.Template.ApplePassType.UNRECOGNIZED : result;
}
public static final int USERINFO_FIELD_NUMBER = 2;
private volatile java.lang.Object userInfo_;
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @return The userInfo.
*/
@java.lang.Override
public java.lang.String getUserInfo() {
java.lang.Object ref = userInfo_;
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();
userInfo_ = s;
return s;
}
}
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @return The bytes for userInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserInfoBytes() {
java.lang.Object ref = userInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APPLAUNCHURL_FIELD_NUMBER = 3;
private volatile java.lang.Object appLaunchUrl_;
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @return The appLaunchUrl.
*/
@java.lang.Override
public java.lang.String getAppLaunchUrl() {
java.lang.Object ref = appLaunchUrl_;
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();
appLaunchUrl_ = s;
return s;
}
}
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @return The bytes for appLaunchUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppLaunchUrlBytes() {
java.lang.Object ref = appLaunchUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appLaunchUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSOCIATEDSTOREIDENTIFIERS_FIELD_NUMBER = 4;
private com.google.protobuf.Internal.IntList associatedStoreIdentifiers_;
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @return A list containing the associatedStoreIdentifiers.
*/
@java.lang.Override
public java.util.List
getAssociatedStoreIdentifiersList() {
return associatedStoreIdentifiers_;
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @return The count of associatedStoreIdentifiers.
*/
public int getAssociatedStoreIdentifiersCount() {
return associatedStoreIdentifiers_.size();
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @param index The index of the element to return.
* @return The associatedStoreIdentifiers at the given index.
*/
public int getAssociatedStoreIdentifiers(int index) {
return associatedStoreIdentifiers_.getInt(index);
}
private int associatedStoreIdentifiersMemoizedSerializedSize = -1;
public static final int MAXDISTANCE_FIELD_NUMBER = 5;
private int maxDistance_;
/**
*
* GPS lock screen messages will show at the lower of max distance and the pass default(unpublished) value.
*
*
* uint32 maxDistance = 5;
* @return The maxDistance.
*/
@java.lang.Override
public int getMaxDistance() {
return maxDistance_;
}
public static final int APPSTORECOUNTRIES_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList appStoreCountries_;
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @return A list containing the appStoreCountries.
*/
public com.google.protobuf.ProtocolStringList
getAppStoreCountriesList() {
return appStoreCountries_;
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @return The count of appStoreCountries.
*/
public int getAppStoreCountriesCount() {
return appStoreCountries_.size();
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param index The index of the element to return.
* @return The appStoreCountries at the given index.
*/
public java.lang.String getAppStoreCountries(int index) {
return appStoreCountries_.get(index);
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param index The index of the value to return.
* @return The bytes of the appStoreCountries at the given index.
*/
public com.google.protobuf.ByteString
getAppStoreCountriesBytes(int index) {
return appStoreCountries_.getByteString(index);
}
public static final int TRANSITTYPE_FIELD_NUMBER = 7;
private int transitType_;
/**
* .io.TransitType transitType = 7;
* @return The enum numeric value on the wire for transitType.
*/
@java.lang.Override public int getTransitTypeValue() {
return transitType_;
}
/**
* .io.TransitType transitType = 7;
* @return The transitType.
*/
@java.lang.Override public com.passkit.grpc.Template.TransitType getTransitType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.TransitType result = com.passkit.grpc.Template.TransitType.valueOf(transitType_);
return result == null ? com.passkit.grpc.Template.TransitType.UNRECOGNIZED : result;
}
public static final int GROUPINGIDENTIFIER_FIELD_NUMBER = 8;
private volatile java.lang.Object groupingIdentifier_;
/**
* string groupingIdentifier = 8;
* @return The groupingIdentifier.
*/
@java.lang.Override
public java.lang.String getGroupingIdentifier() {
java.lang.Object ref = groupingIdentifier_;
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();
groupingIdentifier_ = s;
return s;
}
}
/**
* string groupingIdentifier = 8;
* @return The bytes for groupingIdentifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGroupingIdentifierBytes() {
java.lang.Object ref = groupingIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupingIdentifier_ = 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 (passType_ != com.passkit.grpc.Template.ApplePassType.APPLE_NOT_SUPPORTED.getNumber()) {
output.writeEnum(1, passType_);
}
if (!getUserInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userInfo_);
}
if (!getAppLaunchUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appLaunchUrl_);
}
if (getAssociatedStoreIdentifiersList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(associatedStoreIdentifiersMemoizedSerializedSize);
}
for (int i = 0; i < associatedStoreIdentifiers_.size(); i++) {
output.writeUInt32NoTag(associatedStoreIdentifiers_.getInt(i));
}
if (maxDistance_ != 0) {
output.writeUInt32(5, maxDistance_);
}
for (int i = 0; i < appStoreCountries_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, appStoreCountries_.getRaw(i));
}
if (transitType_ != com.passkit.grpc.Template.TransitType.TRANSIT_TYPE_DO_NOT_USE.getNumber()) {
output.writeEnum(7, transitType_);
}
if (!getGroupingIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, groupingIdentifier_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (passType_ != com.passkit.grpc.Template.ApplePassType.APPLE_NOT_SUPPORTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, passType_);
}
if (!getUserInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userInfo_);
}
if (!getAppLaunchUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appLaunchUrl_);
}
{
int dataSize = 0;
for (int i = 0; i < associatedStoreIdentifiers_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(associatedStoreIdentifiers_.getInt(i));
}
size += dataSize;
if (!getAssociatedStoreIdentifiersList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
associatedStoreIdentifiersMemoizedSerializedSize = dataSize;
}
if (maxDistance_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, maxDistance_);
}
{
int dataSize = 0;
for (int i = 0; i < appStoreCountries_.size(); i++) {
dataSize += computeStringSizeNoTag(appStoreCountries_.getRaw(i));
}
size += dataSize;
size += 1 * getAppStoreCountriesList().size();
}
if (transitType_ != com.passkit.grpc.Template.TransitType.TRANSIT_TYPE_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, transitType_);
}
if (!getGroupingIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, groupingIdentifier_);
}
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.Template.AppleWalletSettings)) {
return super.equals(obj);
}
com.passkit.grpc.Template.AppleWalletSettings other = (com.passkit.grpc.Template.AppleWalletSettings) obj;
if (passType_ != other.passType_) return false;
if (!getUserInfo()
.equals(other.getUserInfo())) return false;
if (!getAppLaunchUrl()
.equals(other.getAppLaunchUrl())) return false;
if (!getAssociatedStoreIdentifiersList()
.equals(other.getAssociatedStoreIdentifiersList())) return false;
if (getMaxDistance()
!= other.getMaxDistance()) return false;
if (!getAppStoreCountriesList()
.equals(other.getAppStoreCountriesList())) return false;
if (transitType_ != other.transitType_) return false;
if (!getGroupingIdentifier()
.equals(other.getGroupingIdentifier())) 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) + PASSTYPE_FIELD_NUMBER;
hash = (53 * hash) + passType_;
hash = (37 * hash) + USERINFO_FIELD_NUMBER;
hash = (53 * hash) + getUserInfo().hashCode();
hash = (37 * hash) + APPLAUNCHURL_FIELD_NUMBER;
hash = (53 * hash) + getAppLaunchUrl().hashCode();
if (getAssociatedStoreIdentifiersCount() > 0) {
hash = (37 * hash) + ASSOCIATEDSTOREIDENTIFIERS_FIELD_NUMBER;
hash = (53 * hash) + getAssociatedStoreIdentifiersList().hashCode();
}
hash = (37 * hash) + MAXDISTANCE_FIELD_NUMBER;
hash = (53 * hash) + getMaxDistance();
if (getAppStoreCountriesCount() > 0) {
hash = (37 * hash) + APPSTORECOUNTRIES_FIELD_NUMBER;
hash = (53 * hash) + getAppStoreCountriesList().hashCode();
}
hash = (37 * hash) + TRANSITTYPE_FIELD_NUMBER;
hash = (53 * hash) + transitType_;
hash = (37 * hash) + GROUPINGIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getGroupingIdentifier().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.AppleWalletSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AppleWalletSettings 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.Template.AppleWalletSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AppleWalletSettings 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.Template.AppleWalletSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AppleWalletSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.AppleWalletSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AppleWalletSettings 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.Template.AppleWalletSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AppleWalletSettings 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.Template.AppleWalletSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AppleWalletSettings 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.Template.AppleWalletSettings 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;
}
/**
*
* Pass settings only for Apple Wallet.
*
*
* Protobuf type {@code io.AppleWalletSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.AppleWalletSettings)
com.passkit.grpc.Template.AppleWalletSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.AppleWalletSettings.class, com.passkit.grpc.Template.AppleWalletSettings.Builder.class);
}
// Construct using com.passkit.grpc.Template.AppleWalletSettings.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();
passType_ = 0;
userInfo_ = "";
appLaunchUrl_ = "";
associatedStoreIdentifiers_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
maxDistance_ = 0;
appStoreCountries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
transitType_ = 0;
groupingIdentifier_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletSettings getDefaultInstanceForType() {
return com.passkit.grpc.Template.AppleWalletSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletSettings build() {
com.passkit.grpc.Template.AppleWalletSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletSettings buildPartial() {
com.passkit.grpc.Template.AppleWalletSettings result = new com.passkit.grpc.Template.AppleWalletSettings(this);
int from_bitField0_ = bitField0_;
result.passType_ = passType_;
result.userInfo_ = userInfo_;
result.appLaunchUrl_ = appLaunchUrl_;
if (((bitField0_ & 0x00000001) != 0)) {
associatedStoreIdentifiers_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.associatedStoreIdentifiers_ = associatedStoreIdentifiers_;
result.maxDistance_ = maxDistance_;
if (((bitField0_ & 0x00000002) != 0)) {
appStoreCountries_ = appStoreCountries_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.appStoreCountries_ = appStoreCountries_;
result.transitType_ = transitType_;
result.groupingIdentifier_ = groupingIdentifier_;
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.Template.AppleWalletSettings) {
return mergeFrom((com.passkit.grpc.Template.AppleWalletSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.AppleWalletSettings other) {
if (other == com.passkit.grpc.Template.AppleWalletSettings.getDefaultInstance()) return this;
if (other.passType_ != 0) {
setPassTypeValue(other.getPassTypeValue());
}
if (!other.getUserInfo().isEmpty()) {
userInfo_ = other.userInfo_;
onChanged();
}
if (!other.getAppLaunchUrl().isEmpty()) {
appLaunchUrl_ = other.appLaunchUrl_;
onChanged();
}
if (!other.associatedStoreIdentifiers_.isEmpty()) {
if (associatedStoreIdentifiers_.isEmpty()) {
associatedStoreIdentifiers_ = other.associatedStoreIdentifiers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAssociatedStoreIdentifiersIsMutable();
associatedStoreIdentifiers_.addAll(other.associatedStoreIdentifiers_);
}
onChanged();
}
if (other.getMaxDistance() != 0) {
setMaxDistance(other.getMaxDistance());
}
if (!other.appStoreCountries_.isEmpty()) {
if (appStoreCountries_.isEmpty()) {
appStoreCountries_ = other.appStoreCountries_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAppStoreCountriesIsMutable();
appStoreCountries_.addAll(other.appStoreCountries_);
}
onChanged();
}
if (other.transitType_ != 0) {
setTransitTypeValue(other.getTransitTypeValue());
}
if (!other.getGroupingIdentifier().isEmpty()) {
groupingIdentifier_ = other.groupingIdentifier_;
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.Template.AppleWalletSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.AppleWalletSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int passType_ = 0;
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @return The enum numeric value on the wire for passType.
*/
@java.lang.Override public int getPassTypeValue() {
return passType_;
}
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @param value The enum numeric value on the wire for passType to set.
* @return This builder for chaining.
*/
public Builder setPassTypeValue(int value) {
passType_ = value;
onChanged();
return this;
}
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @return The passType.
*/
@java.lang.Override
public com.passkit.grpc.Template.ApplePassType getPassType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.ApplePassType result = com.passkit.grpc.Template.ApplePassType.valueOf(passType_);
return result == null ? com.passkit.grpc.Template.ApplePassType.UNRECOGNIZED : result;
}
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @param value The passType to set.
* @return This builder for chaining.
*/
public Builder setPassType(com.passkit.grpc.Template.ApplePassType value) {
if (value == null) {
throw new NullPointerException();
}
passType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Pass type
*
*
* .io.ApplePassType passType = 1;
* @return This builder for chaining.
*/
public Builder clearPassType() {
passType_ = 0;
onChanged();
return this;
}
private java.lang.Object userInfo_ = "";
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @return The userInfo.
*/
public java.lang.String getUserInfo() {
java.lang.Object ref = userInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @return The bytes for userInfo.
*/
public com.google.protobuf.ByteString
getUserInfoBytes() {
java.lang.Object ref = userInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @param value The userInfo to set.
* @return This builder for chaining.
*/
public Builder setUserInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userInfo_ = value;
onChanged();
return this;
}
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @return This builder for chaining.
*/
public Builder clearUserInfo() {
userInfo_ = getDefaultInstance().getUserInfo();
onChanged();
return this;
}
/**
*
* Information that will not appear on the pass.
*
*
* string userInfo = 2;
* @param value The bytes for userInfo to set.
* @return This builder for chaining.
*/
public Builder setUserInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userInfo_ = value;
onChanged();
return this;
}
private java.lang.Object appLaunchUrl_ = "";
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @return The appLaunchUrl.
*/
public java.lang.String getAppLaunchUrl() {
java.lang.Object ref = appLaunchUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appLaunchUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @return The bytes for appLaunchUrl.
*/
public com.google.protobuf.ByteString
getAppLaunchUrlBytes() {
java.lang.Object ref = appLaunchUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appLaunchUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @param value The appLaunchUrl to set.
* @return This builder for chaining.
*/
public Builder setAppLaunchUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appLaunchUrl_ = value;
onChanged();
return this;
}
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @return This builder for chaining.
*/
public Builder clearAppLaunchUrl() {
appLaunchUrl_ = getDefaultInstance().getAppLaunchUrl();
onChanged();
return this;
}
/**
*
* This is used to specify a deep link into the app displayed on the back of the Apple Wallet pass (the app is chosen from the assoStoreId). If the app supports deep linking, you can use this url to go to a specific point within the app when the link is clicked.
*
*
* string appLaunchUrl = 3;
* @param value The bytes for appLaunchUrl to set.
* @return This builder for chaining.
*/
public Builder setAppLaunchUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appLaunchUrl_ = value;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList associatedStoreIdentifiers_ = emptyIntList();
private void ensureAssociatedStoreIdentifiersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
associatedStoreIdentifiers_ = mutableCopy(associatedStoreIdentifiers_);
bitField0_ |= 0x00000001;
}
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @return A list containing the associatedStoreIdentifiers.
*/
public java.util.List
getAssociatedStoreIdentifiersList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(associatedStoreIdentifiers_) : associatedStoreIdentifiers_;
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @return The count of associatedStoreIdentifiers.
*/
public int getAssociatedStoreIdentifiersCount() {
return associatedStoreIdentifiers_.size();
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @param index The index of the element to return.
* @return The associatedStoreIdentifiers at the given index.
*/
public int getAssociatedStoreIdentifiers(int index) {
return associatedStoreIdentifiers_.getInt(index);
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @param index The index to set the value at.
* @param value The associatedStoreIdentifiers to set.
* @return This builder for chaining.
*/
public Builder setAssociatedStoreIdentifiers(
int index, int value) {
ensureAssociatedStoreIdentifiersIsMutable();
associatedStoreIdentifiers_.setInt(index, value);
onChanged();
return this;
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @param value The associatedStoreIdentifiers to add.
* @return This builder for chaining.
*/
public Builder addAssociatedStoreIdentifiers(int value) {
ensureAssociatedStoreIdentifiersIsMutable();
associatedStoreIdentifiers_.addInt(value);
onChanged();
return this;
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @param values The associatedStoreIdentifiers to add.
* @return This builder for chaining.
*/
public Builder addAllAssociatedStoreIdentifiers(
java.lang.Iterable extends java.lang.Integer> values) {
ensureAssociatedStoreIdentifiersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, associatedStoreIdentifiers_);
onChanged();
return this;
}
/**
*
* A list of iTunes Store item identifiers which is used to generate a app install page.
*
*
* repeated uint32 associatedStoreIdentifiers = 4;
* @return This builder for chaining.
*/
public Builder clearAssociatedStoreIdentifiers() {
associatedStoreIdentifiers_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private int maxDistance_ ;
/**
*
* GPS lock screen messages will show at the lower of max distance and the pass default(unpublished) value.
*
*
* uint32 maxDistance = 5;
* @return The maxDistance.
*/
@java.lang.Override
public int getMaxDistance() {
return maxDistance_;
}
/**
*
* GPS lock screen messages will show at the lower of max distance and the pass default(unpublished) value.
*
*
* uint32 maxDistance = 5;
* @param value The maxDistance to set.
* @return This builder for chaining.
*/
public Builder setMaxDistance(int value) {
maxDistance_ = value;
onChanged();
return this;
}
/**
*
* GPS lock screen messages will show at the lower of max distance and the pass default(unpublished) value.
*
*
* uint32 maxDistance = 5;
* @return This builder for chaining.
*/
public Builder clearMaxDistance() {
maxDistance_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList appStoreCountries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAppStoreCountriesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
appStoreCountries_ = new com.google.protobuf.LazyStringArrayList(appStoreCountries_);
bitField0_ |= 0x00000002;
}
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @return A list containing the appStoreCountries.
*/
public com.google.protobuf.ProtocolStringList
getAppStoreCountriesList() {
return appStoreCountries_.getUnmodifiableView();
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @return The count of appStoreCountries.
*/
public int getAppStoreCountriesCount() {
return appStoreCountries_.size();
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param index The index of the element to return.
* @return The appStoreCountries at the given index.
*/
public java.lang.String getAppStoreCountries(int index) {
return appStoreCountries_.get(index);
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param index The index of the value to return.
* @return The bytes of the appStoreCountries at the given index.
*/
public com.google.protobuf.ByteString
getAppStoreCountriesBytes(int index) {
return appStoreCountries_.getByteString(index);
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param index The index to set the value at.
* @param value The appStoreCountries to set.
* @return This builder for chaining.
*/
public Builder setAppStoreCountries(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAppStoreCountriesIsMutable();
appStoreCountries_.set(index, value);
onChanged();
return this;
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param value The appStoreCountries to add.
* @return This builder for chaining.
*/
public Builder addAppStoreCountries(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAppStoreCountriesIsMutable();
appStoreCountries_.add(value);
onChanged();
return this;
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param values The appStoreCountries to add.
* @return This builder for chaining.
*/
public Builder addAllAppStoreCountries(
java.lang.Iterable values) {
ensureAppStoreCountriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, appStoreCountries_);
onChanged();
return this;
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @return This builder for chaining.
*/
public Builder clearAppStoreCountries() {
appStoreCountries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* List of country codes for the stores of the associated apps. This is required to render the pass correctly in the designer.
*
*
* repeated string appStoreCountries = 6;
* @param value The bytes of the appStoreCountries to add.
* @return This builder for chaining.
*/
public Builder addAppStoreCountriesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAppStoreCountriesIsMutable();
appStoreCountries_.add(value);
onChanged();
return this;
}
private int transitType_ = 0;
/**
* .io.TransitType transitType = 7;
* @return The enum numeric value on the wire for transitType.
*/
@java.lang.Override public int getTransitTypeValue() {
return transitType_;
}
/**
* .io.TransitType transitType = 7;
* @param value The enum numeric value on the wire for transitType to set.
* @return This builder for chaining.
*/
public Builder setTransitTypeValue(int value) {
transitType_ = value;
onChanged();
return this;
}
/**
* .io.TransitType transitType = 7;
* @return The transitType.
*/
@java.lang.Override
public com.passkit.grpc.Template.TransitType getTransitType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.TransitType result = com.passkit.grpc.Template.TransitType.valueOf(transitType_);
return result == null ? com.passkit.grpc.Template.TransitType.UNRECOGNIZED : result;
}
/**
* .io.TransitType transitType = 7;
* @param value The transitType to set.
* @return This builder for chaining.
*/
public Builder setTransitType(com.passkit.grpc.Template.TransitType value) {
if (value == null) {
throw new NullPointerException();
}
transitType_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.TransitType transitType = 7;
* @return This builder for chaining.
*/
public Builder clearTransitType() {
transitType_ = 0;
onChanged();
return this;
}
private java.lang.Object groupingIdentifier_ = "";
/**
* string groupingIdentifier = 8;
* @return The groupingIdentifier.
*/
public java.lang.String getGroupingIdentifier() {
java.lang.Object ref = groupingIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
groupingIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string groupingIdentifier = 8;
* @return The bytes for groupingIdentifier.
*/
public com.google.protobuf.ByteString
getGroupingIdentifierBytes() {
java.lang.Object ref = groupingIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupingIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string groupingIdentifier = 8;
* @param value The groupingIdentifier to set.
* @return This builder for chaining.
*/
public Builder setGroupingIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
groupingIdentifier_ = value;
onChanged();
return this;
}
/**
* string groupingIdentifier = 8;
* @return This builder for chaining.
*/
public Builder clearGroupingIdentifier() {
groupingIdentifier_ = getDefaultInstance().getGroupingIdentifier();
onChanged();
return this;
}
/**
* string groupingIdentifier = 8;
* @param value The bytes for groupingIdentifier to set.
* @return This builder for chaining.
*/
public Builder setGroupingIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
groupingIdentifier_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.AppleWalletSettings)
}
// @@protoc_insertion_point(class_scope:io.AppleWalletSettings)
private static final com.passkit.grpc.Template.AppleWalletSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.AppleWalletSettings();
}
public static com.passkit.grpc.Template.AppleWalletSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AppleWalletSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AppleWalletSettings(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.Template.AppleWalletSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GooglePaySettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.GooglePaySettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @return The enum numeric value on the wire for passType.
*/
int getPassTypeValue();
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @return The passType.
*/
com.passkit.grpc.Template.GooglePayPassType getPassType();
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
* @return Whether the androidApp field is set.
*/
boolean hasAndroidApp();
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
* @return The androidApp.
*/
com.passkit.grpc.Template.GooglePayApp getAndroidApp();
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
com.passkit.grpc.Template.GooglePayAppOrBuilder getAndroidAppOrBuilder();
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
* @return Whether the iosApp field is set.
*/
boolean hasIosApp();
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
* @return The iosApp.
*/
com.passkit.grpc.Template.GooglePayApp getIosApp();
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
com.passkit.grpc.Template.GooglePayAppOrBuilder getIosAppOrBuilder();
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
* @return Whether the webApp field is set.
*/
boolean hasWebApp();
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
* @return The webApp.
*/
com.passkit.grpc.Template.GooglePayApp getWebApp();
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
com.passkit.grpc.Template.GooglePayAppOrBuilder getWebAppOrBuilder();
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @return The classTemplateInfo.
*/
java.lang.String getClassTemplateInfo();
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @return The bytes for classTemplateInfo.
*/
com.google.protobuf.ByteString
getClassTemplateInfoBytes();
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @return The backgroundColor.
*/
java.lang.String getBackgroundColor();
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @return The bytes for backgroundColor.
*/
com.google.protobuf.ByteString
getBackgroundColorBytes();
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return A list containing the languageOverrides.
*/
java.util.List getLanguageOverridesList();
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return The count of languageOverrides.
*/
int getLanguageOverridesCount();
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index of the element to return.
* @return The languageOverrides at the given index.
*/
com.passkit.grpc.Localization.LanguageCode getLanguageOverrides(int index);
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return A list containing the enum numeric values on the wire for languageOverrides.
*/
java.util.List
getLanguageOverridesValueList();
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of languageOverrides at the given index.
*/
int getLanguageOverridesValue(int index);
}
/**
*
* Pass settings only for Google Pay.
*
*
* Protobuf type {@code io.GooglePaySettings}
*/
public static final class GooglePaySettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.GooglePaySettings)
GooglePaySettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use GooglePaySettings.newBuilder() to construct.
private GooglePaySettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GooglePaySettings() {
passType_ = 0;
classTemplateInfo_ = "";
backgroundColor_ = "";
languageOverrides_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GooglePaySettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GooglePaySettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
passType_ = rawValue;
break;
}
case 18: {
com.passkit.grpc.Template.GooglePayApp.Builder subBuilder = null;
if (androidApp_ != null) {
subBuilder = androidApp_.toBuilder();
}
androidApp_ = input.readMessage(com.passkit.grpc.Template.GooglePayApp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(androidApp_);
androidApp_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.passkit.grpc.Template.GooglePayApp.Builder subBuilder = null;
if (iosApp_ != null) {
subBuilder = iosApp_.toBuilder();
}
iosApp_ = input.readMessage(com.passkit.grpc.Template.GooglePayApp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(iosApp_);
iosApp_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.passkit.grpc.Template.GooglePayApp.Builder subBuilder = null;
if (webApp_ != null) {
subBuilder = webApp_.toBuilder();
}
webApp_ = input.readMessage(com.passkit.grpc.Template.GooglePayApp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(webApp_);
webApp_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
classTemplateInfo_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
backgroundColor_ = s;
break;
}
case 56: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
languageOverrides_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
languageOverrides_.add(rawValue);
break;
}
case 58: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
languageOverrides_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
languageOverrides_.add(rawValue);
}
input.popLimit(oldLimit);
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)) {
languageOverrides_ = java.util.Collections.unmodifiableList(languageOverrides_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_GooglePaySettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_GooglePaySettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.GooglePaySettings.class, com.passkit.grpc.Template.GooglePaySettings.Builder.class);
}
public static final int PASSTYPE_FIELD_NUMBER = 1;
private int passType_;
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @return The enum numeric value on the wire for passType.
*/
@java.lang.Override public int getPassTypeValue() {
return passType_;
}
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @return The passType.
*/
@java.lang.Override public com.passkit.grpc.Template.GooglePayPassType getPassType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.GooglePayPassType result = com.passkit.grpc.Template.GooglePayPassType.valueOf(passType_);
return result == null ? com.passkit.grpc.Template.GooglePayPassType.UNRECOGNIZED : result;
}
public static final int ANDROIDAPP_FIELD_NUMBER = 2;
private com.passkit.grpc.Template.GooglePayApp androidApp_;
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
* @return Whether the androidApp field is set.
*/
@java.lang.Override
public boolean hasAndroidApp() {
return androidApp_ != null;
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
* @return The androidApp.
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayApp getAndroidApp() {
return androidApp_ == null ? com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : androidApp_;
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayAppOrBuilder getAndroidAppOrBuilder() {
return getAndroidApp();
}
public static final int IOSAPP_FIELD_NUMBER = 3;
private com.passkit.grpc.Template.GooglePayApp iosApp_;
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
* @return Whether the iosApp field is set.
*/
@java.lang.Override
public boolean hasIosApp() {
return iosApp_ != null;
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
* @return The iosApp.
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayApp getIosApp() {
return iosApp_ == null ? com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : iosApp_;
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayAppOrBuilder getIosAppOrBuilder() {
return getIosApp();
}
public static final int WEBAPP_FIELD_NUMBER = 4;
private com.passkit.grpc.Template.GooglePayApp webApp_;
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
* @return Whether the webApp field is set.
*/
@java.lang.Override
public boolean hasWebApp() {
return webApp_ != null;
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
* @return The webApp.
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayApp getWebApp() {
return webApp_ == null ? com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : webApp_;
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayAppOrBuilder getWebAppOrBuilder() {
return getWebApp();
}
public static final int CLASSTEMPLATEINFO_FIELD_NUMBER = 5;
private volatile java.lang.Object classTemplateInfo_;
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @return The classTemplateInfo.
*/
@java.lang.Override
public java.lang.String getClassTemplateInfo() {
java.lang.Object ref = classTemplateInfo_;
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();
classTemplateInfo_ = s;
return s;
}
}
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @return The bytes for classTemplateInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassTemplateInfoBytes() {
java.lang.Object ref = classTemplateInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classTemplateInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKGROUNDCOLOR_FIELD_NUMBER = 6;
private volatile java.lang.Object backgroundColor_;
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @return The backgroundColor.
*/
@java.lang.Override
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
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();
backgroundColor_ = s;
return s;
}
}
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @return The bytes for backgroundColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LANGUAGEOVERRIDES_FIELD_NUMBER = 7;
private java.util.List languageOverrides_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode> languageOverrides_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode>() {
public com.passkit.grpc.Localization.LanguageCode convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.Localization.LanguageCode result = com.passkit.grpc.Localization.LanguageCode.valueOf(from);
return result == null ? com.passkit.grpc.Localization.LanguageCode.UNRECOGNIZED : result;
}
};
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return A list containing the languageOverrides.
*/
@java.lang.Override
public java.util.List getLanguageOverridesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode>(languageOverrides_, languageOverrides_converter_);
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return The count of languageOverrides.
*/
@java.lang.Override
public int getLanguageOverridesCount() {
return languageOverrides_.size();
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index of the element to return.
* @return The languageOverrides at the given index.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LanguageCode getLanguageOverrides(int index) {
return languageOverrides_converter_.convert(languageOverrides_.get(index));
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return A list containing the enum numeric values on the wire for languageOverrides.
*/
@java.lang.Override
public java.util.List
getLanguageOverridesValueList() {
return languageOverrides_;
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of languageOverrides at the given index.
*/
@java.lang.Override
public int getLanguageOverridesValue(int index) {
return languageOverrides_.get(index);
}
private int languageOverridesMemoizedSerializedSize;
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 (passType_ != com.passkit.grpc.Template.GooglePayPassType.GOOGLE_PAY_NOT_SUPPORTED.getNumber()) {
output.writeEnum(1, passType_);
}
if (androidApp_ != null) {
output.writeMessage(2, getAndroidApp());
}
if (iosApp_ != null) {
output.writeMessage(3, getIosApp());
}
if (webApp_ != null) {
output.writeMessage(4, getWebApp());
}
if (!getClassTemplateInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, classTemplateInfo_);
}
if (!getBackgroundColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, backgroundColor_);
}
if (getLanguageOverridesList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(languageOverridesMemoizedSerializedSize);
}
for (int i = 0; i < languageOverrides_.size(); i++) {
output.writeEnumNoTag(languageOverrides_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (passType_ != com.passkit.grpc.Template.GooglePayPassType.GOOGLE_PAY_NOT_SUPPORTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, passType_);
}
if (androidApp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAndroidApp());
}
if (iosApp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getIosApp());
}
if (webApp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWebApp());
}
if (!getClassTemplateInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, classTemplateInfo_);
}
if (!getBackgroundColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, backgroundColor_);
}
{
int dataSize = 0;
for (int i = 0; i < languageOverrides_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(languageOverrides_.get(i));
}
size += dataSize;
if (!getLanguageOverridesList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}languageOverridesMemoizedSerializedSize = dataSize;
}
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.Template.GooglePaySettings)) {
return super.equals(obj);
}
com.passkit.grpc.Template.GooglePaySettings other = (com.passkit.grpc.Template.GooglePaySettings) obj;
if (passType_ != other.passType_) return false;
if (hasAndroidApp() != other.hasAndroidApp()) return false;
if (hasAndroidApp()) {
if (!getAndroidApp()
.equals(other.getAndroidApp())) return false;
}
if (hasIosApp() != other.hasIosApp()) return false;
if (hasIosApp()) {
if (!getIosApp()
.equals(other.getIosApp())) return false;
}
if (hasWebApp() != other.hasWebApp()) return false;
if (hasWebApp()) {
if (!getWebApp()
.equals(other.getWebApp())) return false;
}
if (!getClassTemplateInfo()
.equals(other.getClassTemplateInfo())) return false;
if (!getBackgroundColor()
.equals(other.getBackgroundColor())) return false;
if (!languageOverrides_.equals(other.languageOverrides_)) 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) + PASSTYPE_FIELD_NUMBER;
hash = (53 * hash) + passType_;
if (hasAndroidApp()) {
hash = (37 * hash) + ANDROIDAPP_FIELD_NUMBER;
hash = (53 * hash) + getAndroidApp().hashCode();
}
if (hasIosApp()) {
hash = (37 * hash) + IOSAPP_FIELD_NUMBER;
hash = (53 * hash) + getIosApp().hashCode();
}
if (hasWebApp()) {
hash = (37 * hash) + WEBAPP_FIELD_NUMBER;
hash = (53 * hash) + getWebApp().hashCode();
}
hash = (37 * hash) + CLASSTEMPLATEINFO_FIELD_NUMBER;
hash = (53 * hash) + getClassTemplateInfo().hashCode();
hash = (37 * hash) + BACKGROUNDCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getBackgroundColor().hashCode();
if (getLanguageOverridesCount() > 0) {
hash = (37 * hash) + LANGUAGEOVERRIDES_FIELD_NUMBER;
hash = (53 * hash) + languageOverrides_.hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.GooglePaySettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePaySettings 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.Template.GooglePaySettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePaySettings 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.Template.GooglePaySettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePaySettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.GooglePaySettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePaySettings 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.Template.GooglePaySettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePaySettings 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.Template.GooglePaySettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePaySettings 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.Template.GooglePaySettings 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;
}
/**
*
* Pass settings only for Google Pay.
*
*
* Protobuf type {@code io.GooglePaySettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.GooglePaySettings)
com.passkit.grpc.Template.GooglePaySettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_GooglePaySettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_GooglePaySettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.GooglePaySettings.class, com.passkit.grpc.Template.GooglePaySettings.Builder.class);
}
// Construct using com.passkit.grpc.Template.GooglePaySettings.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();
passType_ = 0;
if (androidAppBuilder_ == null) {
androidApp_ = null;
} else {
androidApp_ = null;
androidAppBuilder_ = null;
}
if (iosAppBuilder_ == null) {
iosApp_ = null;
} else {
iosApp_ = null;
iosAppBuilder_ = null;
}
if (webAppBuilder_ == null) {
webApp_ = null;
} else {
webApp_ = null;
webAppBuilder_ = null;
}
classTemplateInfo_ = "";
backgroundColor_ = "";
languageOverrides_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_GooglePaySettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePaySettings getDefaultInstanceForType() {
return com.passkit.grpc.Template.GooglePaySettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePaySettings build() {
com.passkit.grpc.Template.GooglePaySettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePaySettings buildPartial() {
com.passkit.grpc.Template.GooglePaySettings result = new com.passkit.grpc.Template.GooglePaySettings(this);
int from_bitField0_ = bitField0_;
result.passType_ = passType_;
if (androidAppBuilder_ == null) {
result.androidApp_ = androidApp_;
} else {
result.androidApp_ = androidAppBuilder_.build();
}
if (iosAppBuilder_ == null) {
result.iosApp_ = iosApp_;
} else {
result.iosApp_ = iosAppBuilder_.build();
}
if (webAppBuilder_ == null) {
result.webApp_ = webApp_;
} else {
result.webApp_ = webAppBuilder_.build();
}
result.classTemplateInfo_ = classTemplateInfo_;
result.backgroundColor_ = backgroundColor_;
if (((bitField0_ & 0x00000001) != 0)) {
languageOverrides_ = java.util.Collections.unmodifiableList(languageOverrides_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.languageOverrides_ = languageOverrides_;
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.Template.GooglePaySettings) {
return mergeFrom((com.passkit.grpc.Template.GooglePaySettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.GooglePaySettings other) {
if (other == com.passkit.grpc.Template.GooglePaySettings.getDefaultInstance()) return this;
if (other.passType_ != 0) {
setPassTypeValue(other.getPassTypeValue());
}
if (other.hasAndroidApp()) {
mergeAndroidApp(other.getAndroidApp());
}
if (other.hasIosApp()) {
mergeIosApp(other.getIosApp());
}
if (other.hasWebApp()) {
mergeWebApp(other.getWebApp());
}
if (!other.getClassTemplateInfo().isEmpty()) {
classTemplateInfo_ = other.classTemplateInfo_;
onChanged();
}
if (!other.getBackgroundColor().isEmpty()) {
backgroundColor_ = other.backgroundColor_;
onChanged();
}
if (!other.languageOverrides_.isEmpty()) {
if (languageOverrides_.isEmpty()) {
languageOverrides_ = other.languageOverrides_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLanguageOverridesIsMutable();
languageOverrides_.addAll(other.languageOverrides_);
}
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.Template.GooglePaySettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.GooglePaySettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int passType_ = 0;
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @return The enum numeric value on the wire for passType.
*/
@java.lang.Override public int getPassTypeValue() {
return passType_;
}
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @param value The enum numeric value on the wire for passType to set.
* @return This builder for chaining.
*/
public Builder setPassTypeValue(int value) {
passType_ = value;
onChanged();
return this;
}
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @return The passType.
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayPassType getPassType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.GooglePayPassType result = com.passkit.grpc.Template.GooglePayPassType.valueOf(passType_);
return result == null ? com.passkit.grpc.Template.GooglePayPassType.UNRECOGNIZED : result;
}
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @param value The passType to set.
* @return This builder for chaining.
*/
public Builder setPassType(com.passkit.grpc.Template.GooglePayPassType value) {
if (value == null) {
throw new NullPointerException();
}
passType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Pass type
*
*
* .io.GooglePayPassType passType = 1;
* @return This builder for chaining.
*/
public Builder clearPassType() {
passType_ = 0;
onChanged();
return this;
}
private com.passkit.grpc.Template.GooglePayApp androidApp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder> androidAppBuilder_;
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
* @return Whether the androidApp field is set.
*/
public boolean hasAndroidApp() {
return androidAppBuilder_ != null || androidApp_ != null;
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
* @return The androidApp.
*/
public com.passkit.grpc.Template.GooglePayApp getAndroidApp() {
if (androidAppBuilder_ == null) {
return androidApp_ == null ? com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : androidApp_;
} else {
return androidAppBuilder_.getMessage();
}
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
public Builder setAndroidApp(com.passkit.grpc.Template.GooglePayApp value) {
if (androidAppBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
androidApp_ = value;
onChanged();
} else {
androidAppBuilder_.setMessage(value);
}
return this;
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
public Builder setAndroidApp(
com.passkit.grpc.Template.GooglePayApp.Builder builderForValue) {
if (androidAppBuilder_ == null) {
androidApp_ = builderForValue.build();
onChanged();
} else {
androidAppBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
public Builder mergeAndroidApp(com.passkit.grpc.Template.GooglePayApp value) {
if (androidAppBuilder_ == null) {
if (androidApp_ != null) {
androidApp_ =
com.passkit.grpc.Template.GooglePayApp.newBuilder(androidApp_).mergeFrom(value).buildPartial();
} else {
androidApp_ = value;
}
onChanged();
} else {
androidAppBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
public Builder clearAndroidApp() {
if (androidAppBuilder_ == null) {
androidApp_ = null;
onChanged();
} else {
androidApp_ = null;
androidAppBuilder_ = null;
}
return this;
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
public com.passkit.grpc.Template.GooglePayApp.Builder getAndroidAppBuilder() {
onChanged();
return getAndroidAppFieldBuilder().getBuilder();
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
public com.passkit.grpc.Template.GooglePayAppOrBuilder getAndroidAppOrBuilder() {
if (androidAppBuilder_ != null) {
return androidAppBuilder_.getMessageOrBuilder();
} else {
return androidApp_ == null ?
com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : androidApp_;
}
}
/**
*
* Android App details
*
*
* .io.GooglePayApp androidApp = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder>
getAndroidAppFieldBuilder() {
if (androidAppBuilder_ == null) {
androidAppBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder>(
getAndroidApp(),
getParentForChildren(),
isClean());
androidApp_ = null;
}
return androidAppBuilder_;
}
private com.passkit.grpc.Template.GooglePayApp iosApp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder> iosAppBuilder_;
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
* @return Whether the iosApp field is set.
*/
public boolean hasIosApp() {
return iosAppBuilder_ != null || iosApp_ != null;
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
* @return The iosApp.
*/
public com.passkit.grpc.Template.GooglePayApp getIosApp() {
if (iosAppBuilder_ == null) {
return iosApp_ == null ? com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : iosApp_;
} else {
return iosAppBuilder_.getMessage();
}
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
public Builder setIosApp(com.passkit.grpc.Template.GooglePayApp value) {
if (iosAppBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
iosApp_ = value;
onChanged();
} else {
iosAppBuilder_.setMessage(value);
}
return this;
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
public Builder setIosApp(
com.passkit.grpc.Template.GooglePayApp.Builder builderForValue) {
if (iosAppBuilder_ == null) {
iosApp_ = builderForValue.build();
onChanged();
} else {
iosAppBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
public Builder mergeIosApp(com.passkit.grpc.Template.GooglePayApp value) {
if (iosAppBuilder_ == null) {
if (iosApp_ != null) {
iosApp_ =
com.passkit.grpc.Template.GooglePayApp.newBuilder(iosApp_).mergeFrom(value).buildPartial();
} else {
iosApp_ = value;
}
onChanged();
} else {
iosAppBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
public Builder clearIosApp() {
if (iosAppBuilder_ == null) {
iosApp_ = null;
onChanged();
} else {
iosApp_ = null;
iosAppBuilder_ = null;
}
return this;
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
public com.passkit.grpc.Template.GooglePayApp.Builder getIosAppBuilder() {
onChanged();
return getIosAppFieldBuilder().getBuilder();
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
public com.passkit.grpc.Template.GooglePayAppOrBuilder getIosAppOrBuilder() {
if (iosAppBuilder_ != null) {
return iosAppBuilder_.getMessageOrBuilder();
} else {
return iosApp_ == null ?
com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : iosApp_;
}
}
/**
*
* IOS app details
*
*
* .io.GooglePayApp iosApp = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder>
getIosAppFieldBuilder() {
if (iosAppBuilder_ == null) {
iosAppBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder>(
getIosApp(),
getParentForChildren(),
isClean());
iosApp_ = null;
}
return iosAppBuilder_;
}
private com.passkit.grpc.Template.GooglePayApp webApp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder> webAppBuilder_;
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
* @return Whether the webApp field is set.
*/
public boolean hasWebApp() {
return webAppBuilder_ != null || webApp_ != null;
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
* @return The webApp.
*/
public com.passkit.grpc.Template.GooglePayApp getWebApp() {
if (webAppBuilder_ == null) {
return webApp_ == null ? com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : webApp_;
} else {
return webAppBuilder_.getMessage();
}
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
public Builder setWebApp(com.passkit.grpc.Template.GooglePayApp value) {
if (webAppBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
webApp_ = value;
onChanged();
} else {
webAppBuilder_.setMessage(value);
}
return this;
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
public Builder setWebApp(
com.passkit.grpc.Template.GooglePayApp.Builder builderForValue) {
if (webAppBuilder_ == null) {
webApp_ = builderForValue.build();
onChanged();
} else {
webAppBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
public Builder mergeWebApp(com.passkit.grpc.Template.GooglePayApp value) {
if (webAppBuilder_ == null) {
if (webApp_ != null) {
webApp_ =
com.passkit.grpc.Template.GooglePayApp.newBuilder(webApp_).mergeFrom(value).buildPartial();
} else {
webApp_ = value;
}
onChanged();
} else {
webAppBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
public Builder clearWebApp() {
if (webAppBuilder_ == null) {
webApp_ = null;
onChanged();
} else {
webApp_ = null;
webAppBuilder_ = null;
}
return this;
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
public com.passkit.grpc.Template.GooglePayApp.Builder getWebAppBuilder() {
onChanged();
return getWebAppFieldBuilder().getBuilder();
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
public com.passkit.grpc.Template.GooglePayAppOrBuilder getWebAppOrBuilder() {
if (webAppBuilder_ != null) {
return webAppBuilder_.getMessageOrBuilder();
} else {
return webApp_ == null ?
com.passkit.grpc.Template.GooglePayApp.getDefaultInstance() : webApp_;
}
}
/**
*
* Web app details
*
*
* .io.GooglePayApp webApp = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder>
getWebAppFieldBuilder() {
if (webAppBuilder_ == null) {
webAppBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayApp, com.passkit.grpc.Template.GooglePayApp.Builder, com.passkit.grpc.Template.GooglePayAppOrBuilder>(
getWebApp(),
getParentForChildren(),
isClean());
webApp_ = null;
}
return webAppBuilder_;
}
private java.lang.Object classTemplateInfo_ = "";
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @return The classTemplateInfo.
*/
public java.lang.String getClassTemplateInfo() {
java.lang.Object ref = classTemplateInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classTemplateInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @return The bytes for classTemplateInfo.
*/
public com.google.protobuf.ByteString
getClassTemplateInfoBytes() {
java.lang.Object ref = classTemplateInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classTemplateInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @param value The classTemplateInfo to set.
* @return This builder for chaining.
*/
public Builder setClassTemplateInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
classTemplateInfo_ = value;
onChanged();
return this;
}
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @return This builder for chaining.
*/
public Builder clearClassTemplateInfo() {
classTemplateInfo_ = getDefaultInstance().getClassTemplateInfo();
onChanged();
return this;
}
/**
*
* Custom template (takes a JSON ClassTemplateInfo object https://developers.google.com/pay/passes/rest/v1/ClassTemplateInfo)
*
*
* string classTemplateInfo = 5;
* @param value The bytes for classTemplateInfo to set.
* @return This builder for chaining.
*/
public Builder setClassTemplateInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
classTemplateInfo_ = value;
onChanged();
return this;
}
private java.lang.Object backgroundColor_ = "";
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @return The backgroundColor.
*/
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
backgroundColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @return The bytes for backgroundColor.
*/
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @param value The backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
backgroundColor_ = value;
onChanged();
return this;
}
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @return This builder for chaining.
*/
public Builder clearBackgroundColor() {
backgroundColor_ = getDefaultInstance().getBackgroundColor();
onChanged();
return this;
}
/**
*
* Override template background color
*
*
* string backgroundColor = 6;
* @param value The bytes for backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
backgroundColor_ = value;
onChanged();
return this;
}
private java.util.List languageOverrides_ =
java.util.Collections.emptyList();
private void ensureLanguageOverridesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
languageOverrides_ = new java.util.ArrayList(languageOverrides_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return A list containing the languageOverrides.
*/
public java.util.List getLanguageOverridesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode>(languageOverrides_, languageOverrides_converter_);
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return The count of languageOverrides.
*/
public int getLanguageOverridesCount() {
return languageOverrides_.size();
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index of the element to return.
* @return The languageOverrides at the given index.
*/
public com.passkit.grpc.Localization.LanguageCode getLanguageOverrides(int index) {
return languageOverrides_converter_.convert(languageOverrides_.get(index));
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index to set the value at.
* @param value The languageOverrides to set.
* @return This builder for chaining.
*/
public Builder setLanguageOverrides(
int index, com.passkit.grpc.Localization.LanguageCode value) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguageOverridesIsMutable();
languageOverrides_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param value The languageOverrides to add.
* @return This builder for chaining.
*/
public Builder addLanguageOverrides(com.passkit.grpc.Localization.LanguageCode value) {
if (value == null) {
throw new NullPointerException();
}
ensureLanguageOverridesIsMutable();
languageOverrides_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param values The languageOverrides to add.
* @return This builder for chaining.
*/
public Builder addAllLanguageOverrides(
java.lang.Iterable extends com.passkit.grpc.Localization.LanguageCode> values) {
ensureLanguageOverridesIsMutable();
for (com.passkit.grpc.Localization.LanguageCode value : values) {
languageOverrides_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return This builder for chaining.
*/
public Builder clearLanguageOverrides() {
languageOverrides_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @return A list containing the enum numeric values on the wire for languageOverrides.
*/
public java.util.List
getLanguageOverridesValueList() {
return java.util.Collections.unmodifiableList(languageOverrides_);
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of languageOverrides at the given index.
*/
public int getLanguageOverridesValue(int index) {
return languageOverrides_.get(index);
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of languageOverrides at the given index.
* @return This builder for chaining.
*/
public Builder setLanguageOverridesValue(
int index, int value) {
ensureLanguageOverridesIsMutable();
languageOverrides_.set(index, value);
onChanged();
return this;
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param value The enum numeric value on the wire for languageOverrides to add.
* @return This builder for chaining.
*/
public Builder addLanguageOverridesValue(int value) {
ensureLanguageOverridesIsMutable();
languageOverrides_.add(value);
onChanged();
return this;
}
/**
*
* The pass localisation will be restricted to languages in this list. Currently only available to Boarding Passes and restricted to a single language. Google are working on supporting multiple overrides and we will update this documentation once multiple languages are available.
*
*
* repeated .io.LanguageCode languageOverrides = 7;
* @param values The enum numeric values on the wire for languageOverrides to add.
* @return This builder for chaining.
*/
public Builder addAllLanguageOverridesValue(
java.lang.Iterable values) {
ensureLanguageOverridesIsMutable();
for (int value : values) {
languageOverrides_.add(value);
}
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.GooglePaySettings)
}
// @@protoc_insertion_point(class_scope:io.GooglePaySettings)
private static final com.passkit.grpc.Template.GooglePaySettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.GooglePaySettings();
}
public static com.passkit.grpc.Template.GooglePaySettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GooglePaySettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GooglePaySettings(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.Template.GooglePaySettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GooglePayAppOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.GooglePayApp)
com.google.protobuf.MessageOrBuilder {
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
* @return Whether the url field is set.
*/
boolean hasUrl();
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
* @return The url.
*/
com.passkit.grpc.CommonObjects.Url getUrl();
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
com.passkit.grpc.CommonObjects.UrlOrBuilder getUrlOrBuilder();
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @return The title.
*/
java.lang.String getTitle();
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
* @return Whether the localizedTitle field is set.
*/
boolean hasLocalizedTitle();
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
* @return The localizedTitle.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedTitle();
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder();
/**
*
* Description of the Android App
*
*
* string description = 4;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the Android App
*
*
* string description = 4;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
* @return Whether the localizedDescription field is set.
*/
boolean hasLocalizedDescription();
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
* @return The localizedDescription.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedDescription();
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder();
}
/**
*
* Settings to render an app on the head of a pass. Apps can be Android, iOS or Web.
*
*
* Protobuf type {@code io.GooglePayApp}
*/
public static final class GooglePayApp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.GooglePayApp)
GooglePayAppOrBuilder {
private static final long serialVersionUID = 0L;
// Use GooglePayApp.newBuilder() to construct.
private GooglePayApp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GooglePayApp() {
title_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GooglePayApp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GooglePayApp(
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: {
com.passkit.grpc.CommonObjects.Url.Builder subBuilder = null;
if (url_ != null) {
subBuilder = url_.toBuilder();
}
url_ = input.readMessage(com.passkit.grpc.CommonObjects.Url.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(url_);
url_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 26: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedTitle_ != null) {
subBuilder = localizedTitle_.toBuilder();
}
localizedTitle_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedTitle_);
localizedTitle_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedDescription_ != null) {
subBuilder = localizedDescription_.toBuilder();
}
localizedDescription_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedDescription_);
localizedDescription_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_GooglePayApp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_GooglePayApp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.GooglePayApp.class, com.passkit.grpc.Template.GooglePayApp.Builder.class);
}
public static final int URL_FIELD_NUMBER = 1;
private com.passkit.grpc.CommonObjects.Url url_;
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
* @return Whether the url field is set.
*/
@java.lang.Override
public boolean hasUrl() {
return url_ != null;
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
* @return The url.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Url getUrl() {
return url_ == null ? com.passkit.grpc.CommonObjects.Url.getDefaultInstance() : url_;
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.UrlOrBuilder getUrlOrBuilder() {
return getUrl();
}
public static final int TITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object title_;
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDTITLE_FIELD_NUMBER = 3;
private com.passkit.grpc.Localization.LocalizedString localizedTitle_;
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
* @return Whether the localizedTitle field is set.
*/
@java.lang.Override
public boolean hasLocalizedTitle() {
return localizedTitle_ != null;
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
* @return The localizedTitle.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedTitle() {
return localizedTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder() {
return getLocalizedTitle();
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* Description of the Android App
*
*
* string description = 4;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the Android App
*
*
* string description = 4;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDDESCRIPTION_FIELD_NUMBER = 5;
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
* @return Whether the localizedDescription field is set.
*/
@java.lang.Override
public boolean hasLocalizedDescription() {
return localizedDescription_ != null;
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
* @return The localizedDescription.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
return getLocalizedDescription();
}
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 (url_ != null) {
output.writeMessage(1, getUrl());
}
if (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
if (localizedTitle_ != null) {
output.writeMessage(3, getLocalizedTitle());
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
if (localizedDescription_ != null) {
output.writeMessage(5, getLocalizedDescription());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (url_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUrl());
}
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
if (localizedTitle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocalizedTitle());
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
if (localizedDescription_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLocalizedDescription());
}
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.Template.GooglePayApp)) {
return super.equals(obj);
}
com.passkit.grpc.Template.GooglePayApp other = (com.passkit.grpc.Template.GooglePayApp) obj;
if (hasUrl() != other.hasUrl()) return false;
if (hasUrl()) {
if (!getUrl()
.equals(other.getUrl())) return false;
}
if (!getTitle()
.equals(other.getTitle())) return false;
if (hasLocalizedTitle() != other.hasLocalizedTitle()) return false;
if (hasLocalizedTitle()) {
if (!getLocalizedTitle()
.equals(other.getLocalizedTitle())) return false;
}
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasLocalizedDescription() != other.hasLocalizedDescription()) return false;
if (hasLocalizedDescription()) {
if (!getLocalizedDescription()
.equals(other.getLocalizedDescription())) 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 (hasUrl()) {
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
}
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
if (hasLocalizedTitle()) {
hash = (37 * hash) + LOCALIZEDTITLE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedTitle().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasLocalizedDescription()) {
hash = (37 * hash) + LOCALIZEDDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedDescription().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.GooglePayApp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePayApp 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.Template.GooglePayApp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePayApp 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.Template.GooglePayApp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePayApp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.GooglePayApp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePayApp 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.Template.GooglePayApp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePayApp 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.Template.GooglePayApp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePayApp 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.Template.GooglePayApp 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;
}
/**
*
* Settings to render an app on the head of a pass. Apps can be Android, iOS or Web.
*
*
* Protobuf type {@code io.GooglePayApp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.GooglePayApp)
com.passkit.grpc.Template.GooglePayAppOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_GooglePayApp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_GooglePayApp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.GooglePayApp.class, com.passkit.grpc.Template.GooglePayApp.Builder.class);
}
// Construct using com.passkit.grpc.Template.GooglePayApp.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();
if (urlBuilder_ == null) {
url_ = null;
} else {
url_ = null;
urlBuilder_ = null;
}
title_ = "";
if (localizedTitleBuilder_ == null) {
localizedTitle_ = null;
} else {
localizedTitle_ = null;
localizedTitleBuilder_ = null;
}
description_ = "";
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_GooglePayApp_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePayApp getDefaultInstanceForType() {
return com.passkit.grpc.Template.GooglePayApp.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePayApp build() {
com.passkit.grpc.Template.GooglePayApp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePayApp buildPartial() {
com.passkit.grpc.Template.GooglePayApp result = new com.passkit.grpc.Template.GooglePayApp(this);
if (urlBuilder_ == null) {
result.url_ = url_;
} else {
result.url_ = urlBuilder_.build();
}
result.title_ = title_;
if (localizedTitleBuilder_ == null) {
result.localizedTitle_ = localizedTitle_;
} else {
result.localizedTitle_ = localizedTitleBuilder_.build();
}
result.description_ = description_;
if (localizedDescriptionBuilder_ == null) {
result.localizedDescription_ = localizedDescription_;
} else {
result.localizedDescription_ = localizedDescriptionBuilder_.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.Template.GooglePayApp) {
return mergeFrom((com.passkit.grpc.Template.GooglePayApp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.GooglePayApp other) {
if (other == com.passkit.grpc.Template.GooglePayApp.getDefaultInstance()) return this;
if (other.hasUrl()) {
mergeUrl(other.getUrl());
}
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (other.hasLocalizedTitle()) {
mergeLocalizedTitle(other.getLocalizedTitle());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasLocalizedDescription()) {
mergeLocalizedDescription(other.getLocalizedDescription());
}
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.Template.GooglePayApp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.GooglePayApp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.passkit.grpc.CommonObjects.Url url_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Url, com.passkit.grpc.CommonObjects.Url.Builder, com.passkit.grpc.CommonObjects.UrlOrBuilder> urlBuilder_;
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
* @return Whether the url field is set.
*/
public boolean hasUrl() {
return urlBuilder_ != null || url_ != null;
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
* @return The url.
*/
public com.passkit.grpc.CommonObjects.Url getUrl() {
if (urlBuilder_ == null) {
return url_ == null ? com.passkit.grpc.CommonObjects.Url.getDefaultInstance() : url_;
} else {
return urlBuilder_.getMessage();
}
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
public Builder setUrl(com.passkit.grpc.CommonObjects.Url value) {
if (urlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
} else {
urlBuilder_.setMessage(value);
}
return this;
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
public Builder setUrl(
com.passkit.grpc.CommonObjects.Url.Builder builderForValue) {
if (urlBuilder_ == null) {
url_ = builderForValue.build();
onChanged();
} else {
urlBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
public Builder mergeUrl(com.passkit.grpc.CommonObjects.Url value) {
if (urlBuilder_ == null) {
if (url_ != null) {
url_ =
com.passkit.grpc.CommonObjects.Url.newBuilder(url_).mergeFrom(value).buildPartial();
} else {
url_ = value;
}
onChanged();
} else {
urlBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
public Builder clearUrl() {
if (urlBuilder_ == null) {
url_ = null;
onChanged();
} else {
url_ = null;
urlBuilder_ = null;
}
return this;
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
public com.passkit.grpc.CommonObjects.Url.Builder getUrlBuilder() {
onChanged();
return getUrlFieldBuilder().getBuilder();
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
public com.passkit.grpc.CommonObjects.UrlOrBuilder getUrlOrBuilder() {
if (urlBuilder_ != null) {
return urlBuilder_.getMessageOrBuilder();
} else {
return url_ == null ?
com.passkit.grpc.CommonObjects.Url.getDefaultInstance() : url_;
}
}
/**
*
* Link to an associated app on the Google Play Store
*
*
* .io.Url url = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Url, com.passkit.grpc.CommonObjects.Url.Builder, com.passkit.grpc.CommonObjects.UrlOrBuilder>
getUrlFieldBuilder() {
if (urlBuilder_ == null) {
urlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.CommonObjects.Url, com.passkit.grpc.CommonObjects.Url.Builder, com.passkit.grpc.CommonObjects.UrlOrBuilder>(
getUrl(),
getParentForChildren(),
isClean());
url_ = null;
}
return urlBuilder_;
}
private java.lang.Object title_ = "";
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* Localized title of the Android App
*
*
* string title = 2;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedTitle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedTitleBuilder_;
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
* @return Whether the localizedTitle field is set.
*/
public boolean hasLocalizedTitle() {
return localizedTitleBuilder_ != null || localizedTitle_ != null;
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
* @return The localizedTitle.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedTitle() {
if (localizedTitleBuilder_ == null) {
return localizedTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
} else {
return localizedTitleBuilder_.getMessage();
}
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
public Builder setLocalizedTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTitleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedTitle_ = value;
onChanged();
} else {
localizedTitleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
public Builder setLocalizedTitle(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedTitleBuilder_ == null) {
localizedTitle_ = builderForValue.build();
onChanged();
} else {
localizedTitleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
public Builder mergeLocalizedTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTitleBuilder_ == null) {
if (localizedTitle_ != null) {
localizedTitle_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedTitle_).mergeFrom(value).buildPartial();
} else {
localizedTitle_ = value;
}
onChanged();
} else {
localizedTitleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
public Builder clearLocalizedTitle() {
if (localizedTitleBuilder_ == null) {
localizedTitle_ = null;
onChanged();
} else {
localizedTitle_ = null;
localizedTitleBuilder_ = null;
}
return this;
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedTitleBuilder() {
onChanged();
return getLocalizedTitleFieldBuilder().getBuilder();
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder() {
if (localizedTitleBuilder_ != null) {
return localizedTitleBuilder_.getMessageOrBuilder();
} else {
return localizedTitle_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
}
}
/**
*
* Title of the Android App
*
*
* .io.LocalizedString localizedTitle = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedTitleFieldBuilder() {
if (localizedTitleBuilder_ == null) {
localizedTitleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedTitle(),
getParentForChildren(),
isClean());
localizedTitle_ = null;
}
return localizedTitleBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* Description of the Android App
*
*
* string description = 4;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the Android App
*
*
* string description = 4;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the Android App
*
*
* string description = 4;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the Android App
*
*
* string description = 4;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the Android App
*
*
* string description = 4;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedDescriptionBuilder_;
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
* @return Whether the localizedDescription field is set.
*/
public boolean hasLocalizedDescription() {
return localizedDescriptionBuilder_ != null || localizedDescription_ != null;
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
* @return The localizedDescription.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
} else {
return localizedDescriptionBuilder_.getMessage();
}
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
public Builder setLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedDescription_ = value;
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
public Builder setLocalizedDescription(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = builderForValue.build();
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
public Builder mergeLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (localizedDescription_ != null) {
localizedDescription_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedDescription_).mergeFrom(value).buildPartial();
} else {
localizedDescription_ = value;
}
onChanged();
} else {
localizedDescriptionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
public Builder clearLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
onChanged();
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
return this;
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedDescriptionBuilder() {
onChanged();
return getLocalizedDescriptionFieldBuilder().getBuilder();
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
if (localizedDescriptionBuilder_ != null) {
return localizedDescriptionBuilder_.getMessageOrBuilder();
} else {
return localizedDescription_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
}
/**
*
* Localized description of the Android App
*
*
* .io.LocalizedString localizedDescription = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedDescriptionFieldBuilder() {
if (localizedDescriptionBuilder_ == null) {
localizedDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedDescription(),
getParentForChildren(),
isClean());
localizedDescription_ = null;
}
return localizedDescriptionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.GooglePayApp)
}
// @@protoc_insertion_point(class_scope:io.GooglePayApp)
private static final com.passkit.grpc.Template.GooglePayApp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.GooglePayApp();
}
public static com.passkit.grpc.Template.GooglePayApp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GooglePayApp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GooglePayApp(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.Template.GooglePayApp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Data)
com.google.protobuf.MessageOrBuilder {
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
java.util.List
getDataFieldsList();
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
com.passkit.grpc.Template.DataField getDataFields(int index);
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
int getDataFieldsCount();
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
java.util.List extends com.passkit.grpc.Template.DataFieldOrBuilder>
getDataFieldsOrBuilderList();
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
com.passkit.grpc.Template.DataFieldOrBuilder getDataFieldsOrBuilder(
int index);
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
* @return Whether the dataCollectionPageSettings field is set.
*/
boolean hasDataCollectionPageSettings();
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
* @return The dataCollectionPageSettings.
*/
com.passkit.grpc.Template.DataCollectionPageSettings getDataCollectionPageSettings();
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
com.passkit.grpc.Template.DataCollectionPageSettingsOrBuilder getDataCollectionPageSettingsOrBuilder();
}
/**
*
* This allows you to configure data so that you can save it against each customer record or render it on the pass.
*
*
* Protobuf type {@code io.Data}
*/
public static final class Data extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Data)
DataOrBuilder {
private static final long serialVersionUID = 0L;
// Use Data.newBuilder() to construct.
private Data(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Data() {
dataFields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Data();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Data(
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)) {
dataFields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
dataFields_.add(
input.readMessage(com.passkit.grpc.Template.DataField.parser(), extensionRegistry));
break;
}
case 18: {
com.passkit.grpc.Template.DataCollectionPageSettings.Builder subBuilder = null;
if (dataCollectionPageSettings_ != null) {
subBuilder = dataCollectionPageSettings_.toBuilder();
}
dataCollectionPageSettings_ = input.readMessage(com.passkit.grpc.Template.DataCollectionPageSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataCollectionPageSettings_);
dataCollectionPageSettings_ = 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)) {
dataFields_ = java.util.Collections.unmodifiableList(dataFields_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_Data_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Data_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Data.class, com.passkit.grpc.Template.Data.Builder.class);
}
public static final int DATAFIELDS_FIELD_NUMBER = 1;
private java.util.List dataFields_;
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
@java.lang.Override
public java.util.List getDataFieldsList() {
return dataFields_;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Template.DataFieldOrBuilder>
getDataFieldsOrBuilderList() {
return dataFields_;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
@java.lang.Override
public int getDataFieldsCount() {
return dataFields_.size();
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
@java.lang.Override
public com.passkit.grpc.Template.DataField getDataFields(int index) {
return dataFields_.get(index);
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
@java.lang.Override
public com.passkit.grpc.Template.DataFieldOrBuilder getDataFieldsOrBuilder(
int index) {
return dataFields_.get(index);
}
public static final int DATACOLLECTIONPAGESETTINGS_FIELD_NUMBER = 2;
private com.passkit.grpc.Template.DataCollectionPageSettings dataCollectionPageSettings_;
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
* @return Whether the dataCollectionPageSettings field is set.
*/
@java.lang.Override
public boolean hasDataCollectionPageSettings() {
return dataCollectionPageSettings_ != null;
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
* @return The dataCollectionPageSettings.
*/
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionPageSettings getDataCollectionPageSettings() {
return dataCollectionPageSettings_ == null ? com.passkit.grpc.Template.DataCollectionPageSettings.getDefaultInstance() : dataCollectionPageSettings_;
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionPageSettingsOrBuilder getDataCollectionPageSettingsOrBuilder() {
return getDataCollectionPageSettings();
}
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 < dataFields_.size(); i++) {
output.writeMessage(1, dataFields_.get(i));
}
if (dataCollectionPageSettings_ != null) {
output.writeMessage(2, getDataCollectionPageSettings());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < dataFields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, dataFields_.get(i));
}
if (dataCollectionPageSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDataCollectionPageSettings());
}
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.Template.Data)) {
return super.equals(obj);
}
com.passkit.grpc.Template.Data other = (com.passkit.grpc.Template.Data) obj;
if (!getDataFieldsList()
.equals(other.getDataFieldsList())) return false;
if (hasDataCollectionPageSettings() != other.hasDataCollectionPageSettings()) return false;
if (hasDataCollectionPageSettings()) {
if (!getDataCollectionPageSettings()
.equals(other.getDataCollectionPageSettings())) 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 (getDataFieldsCount() > 0) {
hash = (37 * hash) + DATAFIELDS_FIELD_NUMBER;
hash = (53 * hash) + getDataFieldsList().hashCode();
}
if (hasDataCollectionPageSettings()) {
hash = (37 * hash) + DATACOLLECTIONPAGESETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getDataCollectionPageSettings().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.Data parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Data 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.Template.Data parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Data 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.Template.Data parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Data parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.Data parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Data 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.Template.Data parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Data 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.Template.Data parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Data 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.Template.Data 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;
}
/**
*
* This allows you to configure data so that you can save it against each customer record or render it on the pass.
*
*
* Protobuf type {@code io.Data}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Data)
com.passkit.grpc.Template.DataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_Data_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Data_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Data.class, com.passkit.grpc.Template.Data.Builder.class);
}
// Construct using com.passkit.grpc.Template.Data.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (dataFieldsBuilder_ == null) {
dataFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
dataFieldsBuilder_.clear();
}
if (dataCollectionPageSettingsBuilder_ == null) {
dataCollectionPageSettings_ = null;
} else {
dataCollectionPageSettings_ = null;
dataCollectionPageSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_Data_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.Data getDefaultInstanceForType() {
return com.passkit.grpc.Template.Data.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.Data build() {
com.passkit.grpc.Template.Data result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.Data buildPartial() {
com.passkit.grpc.Template.Data result = new com.passkit.grpc.Template.Data(this);
int from_bitField0_ = bitField0_;
if (dataFieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
dataFields_ = java.util.Collections.unmodifiableList(dataFields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dataFields_ = dataFields_;
} else {
result.dataFields_ = dataFieldsBuilder_.build();
}
if (dataCollectionPageSettingsBuilder_ == null) {
result.dataCollectionPageSettings_ = dataCollectionPageSettings_;
} else {
result.dataCollectionPageSettings_ = dataCollectionPageSettingsBuilder_.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.Template.Data) {
return mergeFrom((com.passkit.grpc.Template.Data)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.Data other) {
if (other == com.passkit.grpc.Template.Data.getDefaultInstance()) return this;
if (dataFieldsBuilder_ == null) {
if (!other.dataFields_.isEmpty()) {
if (dataFields_.isEmpty()) {
dataFields_ = other.dataFields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDataFieldsIsMutable();
dataFields_.addAll(other.dataFields_);
}
onChanged();
}
} else {
if (!other.dataFields_.isEmpty()) {
if (dataFieldsBuilder_.isEmpty()) {
dataFieldsBuilder_.dispose();
dataFieldsBuilder_ = null;
dataFields_ = other.dataFields_;
bitField0_ = (bitField0_ & ~0x00000001);
dataFieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDataFieldsFieldBuilder() : null;
} else {
dataFieldsBuilder_.addAllMessages(other.dataFields_);
}
}
}
if (other.hasDataCollectionPageSettings()) {
mergeDataCollectionPageSettings(other.getDataCollectionPageSettings());
}
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.Template.Data parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.Data) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List dataFields_ =
java.util.Collections.emptyList();
private void ensureDataFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
dataFields_ = new java.util.ArrayList(dataFields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Template.DataField, com.passkit.grpc.Template.DataField.Builder, com.passkit.grpc.Template.DataFieldOrBuilder> dataFieldsBuilder_;
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public java.util.List getDataFieldsList() {
if (dataFieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dataFields_);
} else {
return dataFieldsBuilder_.getMessageList();
}
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public int getDataFieldsCount() {
if (dataFieldsBuilder_ == null) {
return dataFields_.size();
} else {
return dataFieldsBuilder_.getCount();
}
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public com.passkit.grpc.Template.DataField getDataFields(int index) {
if (dataFieldsBuilder_ == null) {
return dataFields_.get(index);
} else {
return dataFieldsBuilder_.getMessage(index);
}
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder setDataFields(
int index, com.passkit.grpc.Template.DataField value) {
if (dataFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataFieldsIsMutable();
dataFields_.set(index, value);
onChanged();
} else {
dataFieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder setDataFields(
int index, com.passkit.grpc.Template.DataField.Builder builderForValue) {
if (dataFieldsBuilder_ == null) {
ensureDataFieldsIsMutable();
dataFields_.set(index, builderForValue.build());
onChanged();
} else {
dataFieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder addDataFields(com.passkit.grpc.Template.DataField value) {
if (dataFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataFieldsIsMutable();
dataFields_.add(value);
onChanged();
} else {
dataFieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder addDataFields(
int index, com.passkit.grpc.Template.DataField value) {
if (dataFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataFieldsIsMutable();
dataFields_.add(index, value);
onChanged();
} else {
dataFieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder addDataFields(
com.passkit.grpc.Template.DataField.Builder builderForValue) {
if (dataFieldsBuilder_ == null) {
ensureDataFieldsIsMutable();
dataFields_.add(builderForValue.build());
onChanged();
} else {
dataFieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder addDataFields(
int index, com.passkit.grpc.Template.DataField.Builder builderForValue) {
if (dataFieldsBuilder_ == null) {
ensureDataFieldsIsMutable();
dataFields_.add(index, builderForValue.build());
onChanged();
} else {
dataFieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder addAllDataFields(
java.lang.Iterable extends com.passkit.grpc.Template.DataField> values) {
if (dataFieldsBuilder_ == null) {
ensureDataFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dataFields_);
onChanged();
} else {
dataFieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder clearDataFields() {
if (dataFieldsBuilder_ == null) {
dataFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
dataFieldsBuilder_.clear();
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public Builder removeDataFields(int index) {
if (dataFieldsBuilder_ == null) {
ensureDataFieldsIsMutable();
dataFields_.remove(index);
onChanged();
} else {
dataFieldsBuilder_.remove(index);
}
return this;
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public com.passkit.grpc.Template.DataField.Builder getDataFieldsBuilder(
int index) {
return getDataFieldsFieldBuilder().getBuilder(index);
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public com.passkit.grpc.Template.DataFieldOrBuilder getDataFieldsOrBuilder(
int index) {
if (dataFieldsBuilder_ == null) {
return dataFields_.get(index); } else {
return dataFieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public java.util.List extends com.passkit.grpc.Template.DataFieldOrBuilder>
getDataFieldsOrBuilderList() {
if (dataFieldsBuilder_ != null) {
return dataFieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dataFields_);
}
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public com.passkit.grpc.Template.DataField.Builder addDataFieldsBuilder() {
return getDataFieldsFieldBuilder().addBuilder(
com.passkit.grpc.Template.DataField.getDefaultInstance());
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public com.passkit.grpc.Template.DataField.Builder addDataFieldsBuilder(
int index) {
return getDataFieldsFieldBuilder().addBuilder(
index, com.passkit.grpc.Template.DataField.getDefaultInstance());
}
/**
*
* This allows you to configure individual data field that is rendered on the customer UI (data collection page and the pass).
* You can set data field purely for CRM analytics purpose and not show it on the customer UI.
*
*
* repeated .io.DataField dataFields = 1;
*/
public java.util.List
getDataFieldsBuilderList() {
return getDataFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Template.DataField, com.passkit.grpc.Template.DataField.Builder, com.passkit.grpc.Template.DataFieldOrBuilder>
getDataFieldsFieldBuilder() {
if (dataFieldsBuilder_ == null) {
dataFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Template.DataField, com.passkit.grpc.Template.DataField.Builder, com.passkit.grpc.Template.DataFieldOrBuilder>(
dataFields_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
dataFields_ = null;
}
return dataFieldsBuilder_;
}
private com.passkit.grpc.Template.DataCollectionPageSettings dataCollectionPageSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.DataCollectionPageSettings, com.passkit.grpc.Template.DataCollectionPageSettings.Builder, com.passkit.grpc.Template.DataCollectionPageSettingsOrBuilder> dataCollectionPageSettingsBuilder_;
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
* @return Whether the dataCollectionPageSettings field is set.
*/
public boolean hasDataCollectionPageSettings() {
return dataCollectionPageSettingsBuilder_ != null || dataCollectionPageSettings_ != null;
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
* @return The dataCollectionPageSettings.
*/
public com.passkit.grpc.Template.DataCollectionPageSettings getDataCollectionPageSettings() {
if (dataCollectionPageSettingsBuilder_ == null) {
return dataCollectionPageSettings_ == null ? com.passkit.grpc.Template.DataCollectionPageSettings.getDefaultInstance() : dataCollectionPageSettings_;
} else {
return dataCollectionPageSettingsBuilder_.getMessage();
}
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
public Builder setDataCollectionPageSettings(com.passkit.grpc.Template.DataCollectionPageSettings value) {
if (dataCollectionPageSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataCollectionPageSettings_ = value;
onChanged();
} else {
dataCollectionPageSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
public Builder setDataCollectionPageSettings(
com.passkit.grpc.Template.DataCollectionPageSettings.Builder builderForValue) {
if (dataCollectionPageSettingsBuilder_ == null) {
dataCollectionPageSettings_ = builderForValue.build();
onChanged();
} else {
dataCollectionPageSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
public Builder mergeDataCollectionPageSettings(com.passkit.grpc.Template.DataCollectionPageSettings value) {
if (dataCollectionPageSettingsBuilder_ == null) {
if (dataCollectionPageSettings_ != null) {
dataCollectionPageSettings_ =
com.passkit.grpc.Template.DataCollectionPageSettings.newBuilder(dataCollectionPageSettings_).mergeFrom(value).buildPartial();
} else {
dataCollectionPageSettings_ = value;
}
onChanged();
} else {
dataCollectionPageSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
public Builder clearDataCollectionPageSettings() {
if (dataCollectionPageSettingsBuilder_ == null) {
dataCollectionPageSettings_ = null;
onChanged();
} else {
dataCollectionPageSettings_ = null;
dataCollectionPageSettingsBuilder_ = null;
}
return this;
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
public com.passkit.grpc.Template.DataCollectionPageSettings.Builder getDataCollectionPageSettingsBuilder() {
onChanged();
return getDataCollectionPageSettingsFieldBuilder().getBuilder();
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
public com.passkit.grpc.Template.DataCollectionPageSettingsOrBuilder getDataCollectionPageSettingsOrBuilder() {
if (dataCollectionPageSettingsBuilder_ != null) {
return dataCollectionPageSettingsBuilder_.getMessageOrBuilder();
} else {
return dataCollectionPageSettings_ == null ?
com.passkit.grpc.Template.DataCollectionPageSettings.getDefaultInstance() : dataCollectionPageSettings_;
}
}
/**
*
* Settings for data collection elements other than form fields. Form fields can be configured in dataFields object.
*
*
* .io.DataCollectionPageSettings dataCollectionPageSettings = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.DataCollectionPageSettings, com.passkit.grpc.Template.DataCollectionPageSettings.Builder, com.passkit.grpc.Template.DataCollectionPageSettingsOrBuilder>
getDataCollectionPageSettingsFieldBuilder() {
if (dataCollectionPageSettingsBuilder_ == null) {
dataCollectionPageSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.DataCollectionPageSettings, com.passkit.grpc.Template.DataCollectionPageSettings.Builder, com.passkit.grpc.Template.DataCollectionPageSettingsOrBuilder>(
getDataCollectionPageSettings(),
getParentForChildren(),
isClean());
dataCollectionPageSettings_ = null;
}
return dataCollectionPageSettingsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.Data)
}
// @@protoc_insertion_point(class_scope:io.Data)
private static final com.passkit.grpc.Template.Data DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.Data();
}
public static com.passkit.grpc.Template.Data getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Data parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Data(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.Template.Data getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LandingPageSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.LandingPageSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return A list containing the landingLocalizationOverride.
*/
java.util.List getLandingLocalizationOverrideList();
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return The count of landingLocalizationOverride.
*/
int getLandingLocalizationOverrideCount();
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index of the element to return.
* @return The landingLocalizationOverride at the given index.
*/
com.passkit.grpc.Localization.LanguageCode getLandingLocalizationOverride(int index);
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return A list containing the enum numeric values on the wire for landingLocalizationOverride.
*/
java.util.List
getLandingLocalizationOverrideValueList();
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of landingLocalizationOverride at the given index.
*/
int getLandingLocalizationOverrideValue(int index);
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @return The enum numeric value on the wire for preferWalletPasses.
*/
int getPreferWalletPassesValue();
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @return The preferWalletPasses.
*/
com.passkit.grpc.CommonObjects.Toggle getPreferWalletPasses();
}
/**
* Protobuf type {@code io.LandingPageSettings}
*/
public static final class LandingPageSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.LandingPageSettings)
LandingPageSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LandingPageSettings.newBuilder() to construct.
private LandingPageSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LandingPageSettings() {
landingLocalizationOverride_ = java.util.Collections.emptyList();
preferWalletPasses_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LandingPageSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LandingPageSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
landingLocalizationOverride_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
landingLocalizationOverride_.add(rawValue);
break;
}
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
landingLocalizationOverride_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
landingLocalizationOverride_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 16: {
int rawValue = input.readEnum();
preferWalletPasses_ = rawValue;
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)) {
landingLocalizationOverride_ = java.util.Collections.unmodifiableList(landingLocalizationOverride_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_LandingPageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_LandingPageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.LandingPageSettings.class, com.passkit.grpc.Template.LandingPageSettings.Builder.class);
}
public static final int LANDINGLOCALIZATIONOVERRIDE_FIELD_NUMBER = 1;
private java.util.List landingLocalizationOverride_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode> landingLocalizationOverride_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode>() {
public com.passkit.grpc.Localization.LanguageCode convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.Localization.LanguageCode result = com.passkit.grpc.Localization.LanguageCode.valueOf(from);
return result == null ? com.passkit.grpc.Localization.LanguageCode.UNRECOGNIZED : result;
}
};
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return A list containing the landingLocalizationOverride.
*/
@java.lang.Override
public java.util.List getLandingLocalizationOverrideList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode>(landingLocalizationOverride_, landingLocalizationOverride_converter_);
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return The count of landingLocalizationOverride.
*/
@java.lang.Override
public int getLandingLocalizationOverrideCount() {
return landingLocalizationOverride_.size();
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index of the element to return.
* @return The landingLocalizationOverride at the given index.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LanguageCode getLandingLocalizationOverride(int index) {
return landingLocalizationOverride_converter_.convert(landingLocalizationOverride_.get(index));
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return A list containing the enum numeric values on the wire for landingLocalizationOverride.
*/
@java.lang.Override
public java.util.List
getLandingLocalizationOverrideValueList() {
return landingLocalizationOverride_;
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of landingLocalizationOverride at the given index.
*/
@java.lang.Override
public int getLandingLocalizationOverrideValue(int index) {
return landingLocalizationOverride_.get(index);
}
private int landingLocalizationOverrideMemoizedSerializedSize;
public static final int PREFERWALLETPASSES_FIELD_NUMBER = 2;
private int preferWalletPasses_;
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @return The enum numeric value on the wire for preferWalletPasses.
*/
@java.lang.Override public int getPreferWalletPassesValue() {
return preferWalletPasses_;
}
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @return The preferWalletPasses.
*/
@java.lang.Override public com.passkit.grpc.CommonObjects.Toggle getPreferWalletPasses() {
@SuppressWarnings("deprecation")
com.passkit.grpc.CommonObjects.Toggle result = com.passkit.grpc.CommonObjects.Toggle.valueOf(preferWalletPasses_);
return result == null ? com.passkit.grpc.CommonObjects.Toggle.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getLandingLocalizationOverrideList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(landingLocalizationOverrideMemoizedSerializedSize);
}
for (int i = 0; i < landingLocalizationOverride_.size(); i++) {
output.writeEnumNoTag(landingLocalizationOverride_.get(i));
}
if (preferWalletPasses_ != com.passkit.grpc.CommonObjects.Toggle.DO_NOT_USE.getNumber()) {
output.writeEnum(2, preferWalletPasses_);
}
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 < landingLocalizationOverride_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(landingLocalizationOverride_.get(i));
}
size += dataSize;
if (!getLandingLocalizationOverrideList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}landingLocalizationOverrideMemoizedSerializedSize = dataSize;
}
if (preferWalletPasses_ != com.passkit.grpc.CommonObjects.Toggle.DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, preferWalletPasses_);
}
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.Template.LandingPageSettings)) {
return super.equals(obj);
}
com.passkit.grpc.Template.LandingPageSettings other = (com.passkit.grpc.Template.LandingPageSettings) obj;
if (!landingLocalizationOverride_.equals(other.landingLocalizationOverride_)) return false;
if (preferWalletPasses_ != other.preferWalletPasses_) 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 (getLandingLocalizationOverrideCount() > 0) {
hash = (37 * hash) + LANDINGLOCALIZATIONOVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + landingLocalizationOverride_.hashCode();
}
hash = (37 * hash) + PREFERWALLETPASSES_FIELD_NUMBER;
hash = (53 * hash) + preferWalletPasses_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.LandingPageSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.LandingPageSettings 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.Template.LandingPageSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.LandingPageSettings 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.Template.LandingPageSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.LandingPageSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.LandingPageSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.LandingPageSettings 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.Template.LandingPageSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.LandingPageSettings 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.Template.LandingPageSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.LandingPageSettings 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.Template.LandingPageSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.LandingPageSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.LandingPageSettings)
com.passkit.grpc.Template.LandingPageSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_LandingPageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_LandingPageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.LandingPageSettings.class, com.passkit.grpc.Template.LandingPageSettings.Builder.class);
}
// Construct using com.passkit.grpc.Template.LandingPageSettings.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();
landingLocalizationOverride_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
preferWalletPasses_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_LandingPageSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.LandingPageSettings getDefaultInstanceForType() {
return com.passkit.grpc.Template.LandingPageSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.LandingPageSettings build() {
com.passkit.grpc.Template.LandingPageSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.LandingPageSettings buildPartial() {
com.passkit.grpc.Template.LandingPageSettings result = new com.passkit.grpc.Template.LandingPageSettings(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
landingLocalizationOverride_ = java.util.Collections.unmodifiableList(landingLocalizationOverride_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.landingLocalizationOverride_ = landingLocalizationOverride_;
result.preferWalletPasses_ = preferWalletPasses_;
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.Template.LandingPageSettings) {
return mergeFrom((com.passkit.grpc.Template.LandingPageSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.LandingPageSettings other) {
if (other == com.passkit.grpc.Template.LandingPageSettings.getDefaultInstance()) return this;
if (!other.landingLocalizationOverride_.isEmpty()) {
if (landingLocalizationOverride_.isEmpty()) {
landingLocalizationOverride_ = other.landingLocalizationOverride_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLandingLocalizationOverrideIsMutable();
landingLocalizationOverride_.addAll(other.landingLocalizationOverride_);
}
onChanged();
}
if (other.preferWalletPasses_ != 0) {
setPreferWalletPassesValue(other.getPreferWalletPassesValue());
}
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.Template.LandingPageSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.LandingPageSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List landingLocalizationOverride_ =
java.util.Collections.emptyList();
private void ensureLandingLocalizationOverrideIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
landingLocalizationOverride_ = new java.util.ArrayList(landingLocalizationOverride_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return A list containing the landingLocalizationOverride.
*/
public java.util.List getLandingLocalizationOverrideList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Localization.LanguageCode>(landingLocalizationOverride_, landingLocalizationOverride_converter_);
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return The count of landingLocalizationOverride.
*/
public int getLandingLocalizationOverrideCount() {
return landingLocalizationOverride_.size();
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index of the element to return.
* @return The landingLocalizationOverride at the given index.
*/
public com.passkit.grpc.Localization.LanguageCode getLandingLocalizationOverride(int index) {
return landingLocalizationOverride_converter_.convert(landingLocalizationOverride_.get(index));
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index to set the value at.
* @param value The landingLocalizationOverride to set.
* @return This builder for chaining.
*/
public Builder setLandingLocalizationOverride(
int index, com.passkit.grpc.Localization.LanguageCode value) {
if (value == null) {
throw new NullPointerException();
}
ensureLandingLocalizationOverrideIsMutable();
landingLocalizationOverride_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param value The landingLocalizationOverride to add.
* @return This builder for chaining.
*/
public Builder addLandingLocalizationOverride(com.passkit.grpc.Localization.LanguageCode value) {
if (value == null) {
throw new NullPointerException();
}
ensureLandingLocalizationOverrideIsMutable();
landingLocalizationOverride_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param values The landingLocalizationOverride to add.
* @return This builder for chaining.
*/
public Builder addAllLandingLocalizationOverride(
java.lang.Iterable extends com.passkit.grpc.Localization.LanguageCode> values) {
ensureLandingLocalizationOverrideIsMutable();
for (com.passkit.grpc.Localization.LanguageCode value : values) {
landingLocalizationOverride_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return This builder for chaining.
*/
public Builder clearLandingLocalizationOverride() {
landingLocalizationOverride_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @return A list containing the enum numeric values on the wire for landingLocalizationOverride.
*/
public java.util.List
getLandingLocalizationOverrideValueList() {
return java.util.Collections.unmodifiableList(landingLocalizationOverride_);
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of landingLocalizationOverride at the given index.
*/
public int getLandingLocalizationOverrideValue(int index) {
return landingLocalizationOverride_.get(index);
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of landingLocalizationOverride at the given index.
* @return This builder for chaining.
*/
public Builder setLandingLocalizationOverrideValue(
int index, int value) {
ensureLandingLocalizationOverrideIsMutable();
landingLocalizationOverride_.set(index, value);
onChanged();
return this;
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param value The enum numeric value on the wire for landingLocalizationOverride to add.
* @return This builder for chaining.
*/
public Builder addLandingLocalizationOverrideValue(int value) {
ensureLandingLocalizationOverrideIsMutable();
landingLocalizationOverride_.add(value);
onChanged();
return this;
}
/**
*
* Array of languages to display on the landing page, if you would like your language to be supported, please contact support.
*
*
* repeated .io.LanguageCode landingLocalizationOverride = 1;
* @param values The enum numeric values on the wire for landingLocalizationOverride to add.
* @return This builder for chaining.
*/
public Builder addAllLandingLocalizationOverrideValue(
java.lang.Iterable values) {
ensureLandingLocalizationOverrideIsMutable();
for (int value : values) {
landingLocalizationOverride_.add(value);
}
onChanged();
return this;
}
private int preferWalletPasses_ = 0;
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @return The enum numeric value on the wire for preferWalletPasses.
*/
@java.lang.Override public int getPreferWalletPassesValue() {
return preferWalletPasses_;
}
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @param value The enum numeric value on the wire for preferWalletPasses to set.
* @return This builder for chaining.
*/
public Builder setPreferWalletPassesValue(int value) {
preferWalletPasses_ = value;
onChanged();
return this;
}
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @return The preferWalletPasses.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.Toggle getPreferWalletPasses() {
@SuppressWarnings("deprecation")
com.passkit.grpc.CommonObjects.Toggle result = com.passkit.grpc.CommonObjects.Toggle.valueOf(preferWalletPasses_);
return result == null ? com.passkit.grpc.CommonObjects.Toggle.UNRECOGNIZED : result;
}
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @param value The preferWalletPasses to set.
* @return This builder for chaining.
*/
public Builder setPreferWalletPasses(com.passkit.grpc.CommonObjects.Toggle value) {
if (value == null) {
throw new NullPointerException();
}
preferWalletPasses_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Set to on to present WalletPasses as the default option to Android Users
*
*
* .io.Toggle preferWalletPasses = 2;
* @return This builder for chaining.
*/
public Builder clearPreferWalletPasses() {
preferWalletPasses_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.LandingPageSettings)
}
// @@protoc_insertion_point(class_scope:io.LandingPageSettings)
private static final com.passkit.grpc.Template.LandingPageSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.LandingPageSettings();
}
public static com.passkit.grpc.Template.LandingPageSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LandingPageSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LandingPageSettings(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.Template.LandingPageSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataCollectionPageSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.DataCollectionPageSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Used as title.
*
*
* string title = 1;
* @return The title.
*/
java.lang.String getTitle();
/**
*
* Used as title.
*
*
* string title = 1;
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return Whether the localizedTitle field is set.
*/
boolean hasLocalizedTitle();
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return The localizedTitle.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedTitle();
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder();
/**
*
* Description of the page.
*
*
* string description = 3;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the page.
*
*
* string description = 3;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return Whether the localizedDescription field is set.
*/
boolean hasLocalizedDescription();
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return The localizedDescription.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedDescription();
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder();
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @return The submitButtonText.
*/
java.lang.String getSubmitButtonText();
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @return The bytes for submitButtonText.
*/
com.google.protobuf.ByteString
getSubmitButtonTextBytes();
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
* @return Whether the localizedSubmitButtonText field is set.
*/
boolean hasLocalizedSubmitButtonText();
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
* @return The localizedSubmitButtonText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedSubmitButtonText();
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubmitButtonTextOrBuilder();
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @return The loadingText.
*/
java.lang.String getLoadingText();
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @return The bytes for loadingText.
*/
com.google.protobuf.ByteString
getLoadingTextBytes();
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
* @return Whether the localizedLoadingText field is set.
*/
boolean hasLocalizedLoadingText();
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
* @return The localizedLoadingText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedLoadingText();
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLoadingTextOrBuilder();
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @return The thankYouText.
*/
java.lang.String getThankYouText();
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @return The bytes for thankYouText.
*/
com.google.protobuf.ByteString
getThankYouTextBytes();
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
* @return Whether the localizedThankYouText field is set.
*/
boolean hasLocalizedThankYouText();
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
* @return The localizedThankYouText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedThankYouText();
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedThankYouTextOrBuilder();
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @return The pageBackgroundColor.
*/
java.lang.String getPageBackgroundColor();
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @return The bytes for pageBackgroundColor.
*/
com.google.protobuf.ByteString
getPageBackgroundColorBytes();
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
* @return Whether the localizedPageBackgroundColor field is set.
*/
boolean hasLocalizedPageBackgroundColor();
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
* @return The localizedPageBackgroundColor.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedPageBackgroundColor();
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPageBackgroundColorOrBuilder();
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
* @return Whether the trackingSettings field is set.
*/
boolean hasTrackingSettings();
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
* @return The trackingSettings.
*/
com.passkit.grpc.Tracking.TrackingSettings getTrackingSettings();
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
com.passkit.grpc.Tracking.TrackingSettingsOrBuilder getTrackingSettingsOrBuilder();
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @return The submitButtonTextColor.
*/
java.lang.String getSubmitButtonTextColor();
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @return The bytes for submitButtonTextColor.
*/
com.google.protobuf.ByteString
getSubmitButtonTextColorBytes();
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @return The submitButtonBackgroundColor.
*/
java.lang.String getSubmitButtonBackgroundColor();
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @return The bytes for submitButtonBackgroundColor.
*/
com.google.protobuf.ByteString
getSubmitButtonBackgroundColorBytes();
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @return The footerText.
*/
java.lang.String getFooterText();
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @return The bytes for footerText.
*/
com.google.protobuf.ByteString
getFooterTextBytes();
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
* @return Whether the localizedFooterText field is set.
*/
boolean hasLocalizedFooterText();
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
* @return The localizedFooterText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedFooterText();
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextOrBuilder();
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @return The cssOverrides.
*/
java.lang.String getCssOverrides();
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @return The bytes for cssOverrides.
*/
com.google.protobuf.ByteString
getCssOverridesBytes();
}
/**
*
* This allows you to customize the contents rendered on data collection landing page.
*
*
* Protobuf type {@code io.DataCollectionPageSettings}
*/
public static final class DataCollectionPageSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.DataCollectionPageSettings)
DataCollectionPageSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataCollectionPageSettings.newBuilder() to construct.
private DataCollectionPageSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataCollectionPageSettings() {
title_ = "";
description_ = "";
submitButtonText_ = "";
loadingText_ = "";
thankYouText_ = "";
pageBackgroundColor_ = "";
submitButtonTextColor_ = "";
submitButtonBackgroundColor_ = "";
footerText_ = "";
cssOverrides_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataCollectionPageSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataCollectionPageSettings(
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();
title_ = s;
break;
}
case 18: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedTitle_ != null) {
subBuilder = localizedTitle_.toBuilder();
}
localizedTitle_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedTitle_);
localizedTitle_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedDescription_ != null) {
subBuilder = localizedDescription_.toBuilder();
}
localizedDescription_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedDescription_);
localizedDescription_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
submitButtonText_ = s;
break;
}
case 50: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedSubmitButtonText_ != null) {
subBuilder = localizedSubmitButtonText_.toBuilder();
}
localizedSubmitButtonText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedSubmitButtonText_);
localizedSubmitButtonText_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
loadingText_ = s;
break;
}
case 66: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedLoadingText_ != null) {
subBuilder = localizedLoadingText_.toBuilder();
}
localizedLoadingText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedLoadingText_);
localizedLoadingText_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
thankYouText_ = s;
break;
}
case 82: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedThankYouText_ != null) {
subBuilder = localizedThankYouText_.toBuilder();
}
localizedThankYouText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedThankYouText_);
localizedThankYouText_ = subBuilder.buildPartial();
}
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
pageBackgroundColor_ = s;
break;
}
case 98: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedPageBackgroundColor_ != null) {
subBuilder = localizedPageBackgroundColor_.toBuilder();
}
localizedPageBackgroundColor_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedPageBackgroundColor_);
localizedPageBackgroundColor_ = subBuilder.buildPartial();
}
break;
}
case 106: {
com.passkit.grpc.Tracking.TrackingSettings.Builder subBuilder = null;
if (trackingSettings_ != null) {
subBuilder = trackingSettings_.toBuilder();
}
trackingSettings_ = input.readMessage(com.passkit.grpc.Tracking.TrackingSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(trackingSettings_);
trackingSettings_ = subBuilder.buildPartial();
}
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
submitButtonTextColor_ = s;
break;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
submitButtonBackgroundColor_ = s;
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
footerText_ = s;
break;
}
case 138: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedFooterText_ != null) {
subBuilder = localizedFooterText_.toBuilder();
}
localizedFooterText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedFooterText_);
localizedFooterText_ = subBuilder.buildPartial();
}
break;
}
case 146: {
java.lang.String s = input.readStringRequireUtf8();
cssOverrides_ = 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.Template.internal_static_io_DataCollectionPageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionPageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DataCollectionPageSettings.class, com.passkit.grpc.Template.DataCollectionPageSettings.Builder.class);
}
public static final int TITLE_FIELD_NUMBER = 1;
private volatile java.lang.Object title_;
/**
*
* Used as title.
*
*
* string title = 1;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
*
* Used as title.
*
*
* string title = 1;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDTITLE_FIELD_NUMBER = 2;
private com.passkit.grpc.Localization.LocalizedString localizedTitle_;
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return Whether the localizedTitle field is set.
*/
@java.lang.Override
public boolean hasLocalizedTitle() {
return localizedTitle_ != null;
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return The localizedTitle.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedTitle() {
return localizedTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder() {
return getLocalizedTitle();
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the page.
*
*
* string description = 3;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the page.
*
*
* string description = 3;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDDESCRIPTION_FIELD_NUMBER = 4;
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return Whether the localizedDescription field is set.
*/
@java.lang.Override
public boolean hasLocalizedDescription() {
return localizedDescription_ != null;
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return The localizedDescription.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
return getLocalizedDescription();
}
public static final int SUBMITBUTTONTEXT_FIELD_NUMBER = 5;
private volatile java.lang.Object submitButtonText_;
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @return The submitButtonText.
*/
@java.lang.Override
public java.lang.String getSubmitButtonText() {
java.lang.Object ref = submitButtonText_;
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();
submitButtonText_ = s;
return s;
}
}
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @return The bytes for submitButtonText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmitButtonTextBytes() {
java.lang.Object ref = submitButtonText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDSUBMITBUTTONTEXT_FIELD_NUMBER = 6;
private com.passkit.grpc.Localization.LocalizedString localizedSubmitButtonText_;
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
* @return Whether the localizedSubmitButtonText field is set.
*/
@java.lang.Override
public boolean hasLocalizedSubmitButtonText() {
return localizedSubmitButtonText_ != null;
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
* @return The localizedSubmitButtonText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedSubmitButtonText() {
return localizedSubmitButtonText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubmitButtonText_;
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubmitButtonTextOrBuilder() {
return getLocalizedSubmitButtonText();
}
public static final int LOADINGTEXT_FIELD_NUMBER = 7;
private volatile java.lang.Object loadingText_;
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @return The loadingText.
*/
@java.lang.Override
public java.lang.String getLoadingText() {
java.lang.Object ref = loadingText_;
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();
loadingText_ = s;
return s;
}
}
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @return The bytes for loadingText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLoadingTextBytes() {
java.lang.Object ref = loadingText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadingText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDLOADINGTEXT_FIELD_NUMBER = 8;
private com.passkit.grpc.Localization.LocalizedString localizedLoadingText_;
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
* @return Whether the localizedLoadingText field is set.
*/
@java.lang.Override
public boolean hasLocalizedLoadingText() {
return localizedLoadingText_ != null;
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
* @return The localizedLoadingText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedLoadingText() {
return localizedLoadingText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLoadingText_;
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLoadingTextOrBuilder() {
return getLocalizedLoadingText();
}
public static final int THANKYOUTEXT_FIELD_NUMBER = 9;
private volatile java.lang.Object thankYouText_;
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @return The thankYouText.
*/
@java.lang.Override
public java.lang.String getThankYouText() {
java.lang.Object ref = thankYouText_;
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();
thankYouText_ = s;
return s;
}
}
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @return The bytes for thankYouText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getThankYouTextBytes() {
java.lang.Object ref = thankYouText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
thankYouText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDTHANKYOUTEXT_FIELD_NUMBER = 10;
private com.passkit.grpc.Localization.LocalizedString localizedThankYouText_;
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
* @return Whether the localizedThankYouText field is set.
*/
@java.lang.Override
public boolean hasLocalizedThankYouText() {
return localizedThankYouText_ != null;
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
* @return The localizedThankYouText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedThankYouText() {
return localizedThankYouText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedThankYouText_;
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedThankYouTextOrBuilder() {
return getLocalizedThankYouText();
}
public static final int PAGEBACKGROUNDCOLOR_FIELD_NUMBER = 11;
private volatile java.lang.Object pageBackgroundColor_;
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @return The pageBackgroundColor.
*/
@java.lang.Override
public java.lang.String getPageBackgroundColor() {
java.lang.Object ref = pageBackgroundColor_;
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();
pageBackgroundColor_ = s;
return s;
}
}
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @return The bytes for pageBackgroundColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageBackgroundColorBytes() {
java.lang.Object ref = pageBackgroundColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageBackgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDPAGEBACKGROUNDCOLOR_FIELD_NUMBER = 12;
private com.passkit.grpc.Localization.LocalizedString localizedPageBackgroundColor_;
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
* @return Whether the localizedPageBackgroundColor field is set.
*/
@java.lang.Override
public boolean hasLocalizedPageBackgroundColor() {
return localizedPageBackgroundColor_ != null;
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
* @return The localizedPageBackgroundColor.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedPageBackgroundColor() {
return localizedPageBackgroundColor_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPageBackgroundColor_;
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPageBackgroundColorOrBuilder() {
return getLocalizedPageBackgroundColor();
}
public static final int TRACKINGSETTINGS_FIELD_NUMBER = 13;
private com.passkit.grpc.Tracking.TrackingSettings trackingSettings_;
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
* @return Whether the trackingSettings field is set.
*/
@java.lang.Override
public boolean hasTrackingSettings() {
return trackingSettings_ != null;
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
* @return The trackingSettings.
*/
@java.lang.Override
public com.passkit.grpc.Tracking.TrackingSettings getTrackingSettings() {
return trackingSettings_ == null ? com.passkit.grpc.Tracking.TrackingSettings.getDefaultInstance() : trackingSettings_;
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
@java.lang.Override
public com.passkit.grpc.Tracking.TrackingSettingsOrBuilder getTrackingSettingsOrBuilder() {
return getTrackingSettings();
}
public static final int SUBMITBUTTONTEXTCOLOR_FIELD_NUMBER = 14;
private volatile java.lang.Object submitButtonTextColor_;
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @return The submitButtonTextColor.
*/
@java.lang.Override
public java.lang.String getSubmitButtonTextColor() {
java.lang.Object ref = submitButtonTextColor_;
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();
submitButtonTextColor_ = s;
return s;
}
}
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @return The bytes for submitButtonTextColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmitButtonTextColorBytes() {
java.lang.Object ref = submitButtonTextColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonTextColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBMITBUTTONBACKGROUNDCOLOR_FIELD_NUMBER = 15;
private volatile java.lang.Object submitButtonBackgroundColor_;
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @return The submitButtonBackgroundColor.
*/
@java.lang.Override
public java.lang.String getSubmitButtonBackgroundColor() {
java.lang.Object ref = submitButtonBackgroundColor_;
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();
submitButtonBackgroundColor_ = s;
return s;
}
}
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @return The bytes for submitButtonBackgroundColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmitButtonBackgroundColorBytes() {
java.lang.Object ref = submitButtonBackgroundColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonBackgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOOTERTEXT_FIELD_NUMBER = 16;
private volatile java.lang.Object footerText_;
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @return The footerText.
*/
@java.lang.Override
public java.lang.String getFooterText() {
java.lang.Object ref = footerText_;
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();
footerText_ = s;
return s;
}
}
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @return The bytes for footerText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFooterTextBytes() {
java.lang.Object ref = footerText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
footerText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDFOOTERTEXT_FIELD_NUMBER = 17;
private com.passkit.grpc.Localization.LocalizedString localizedFooterText_;
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
* @return Whether the localizedFooterText field is set.
*/
@java.lang.Override
public boolean hasLocalizedFooterText() {
return localizedFooterText_ != null;
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
* @return The localizedFooterText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterText() {
return localizedFooterText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterText_;
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextOrBuilder() {
return getLocalizedFooterText();
}
public static final int CSSOVERRIDES_FIELD_NUMBER = 18;
private volatile java.lang.Object cssOverrides_;
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @return The cssOverrides.
*/
@java.lang.Override
public java.lang.String getCssOverrides() {
java.lang.Object ref = cssOverrides_;
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();
cssOverrides_ = s;
return s;
}
}
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @return The bytes for cssOverrides.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCssOverridesBytes() {
java.lang.Object ref = cssOverrides_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cssOverrides_ = 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 (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (localizedTitle_ != null) {
output.writeMessage(2, getLocalizedTitle());
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (localizedDescription_ != null) {
output.writeMessage(4, getLocalizedDescription());
}
if (!getSubmitButtonTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, submitButtonText_);
}
if (localizedSubmitButtonText_ != null) {
output.writeMessage(6, getLocalizedSubmitButtonText());
}
if (!getLoadingTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, loadingText_);
}
if (localizedLoadingText_ != null) {
output.writeMessage(8, getLocalizedLoadingText());
}
if (!getThankYouTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, thankYouText_);
}
if (localizedThankYouText_ != null) {
output.writeMessage(10, getLocalizedThankYouText());
}
if (!getPageBackgroundColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pageBackgroundColor_);
}
if (localizedPageBackgroundColor_ != null) {
output.writeMessage(12, getLocalizedPageBackgroundColor());
}
if (trackingSettings_ != null) {
output.writeMessage(13, getTrackingSettings());
}
if (!getSubmitButtonTextColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, submitButtonTextColor_);
}
if (!getSubmitButtonBackgroundColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, submitButtonBackgroundColor_);
}
if (!getFooterTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, footerText_);
}
if (localizedFooterText_ != null) {
output.writeMessage(17, getLocalizedFooterText());
}
if (!getCssOverridesBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, cssOverrides_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (localizedTitle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocalizedTitle());
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (localizedDescription_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocalizedDescription());
}
if (!getSubmitButtonTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, submitButtonText_);
}
if (localizedSubmitButtonText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getLocalizedSubmitButtonText());
}
if (!getLoadingTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, loadingText_);
}
if (localizedLoadingText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLocalizedLoadingText());
}
if (!getThankYouTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, thankYouText_);
}
if (localizedThankYouText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getLocalizedThankYouText());
}
if (!getPageBackgroundColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, pageBackgroundColor_);
}
if (localizedPageBackgroundColor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getLocalizedPageBackgroundColor());
}
if (trackingSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getTrackingSettings());
}
if (!getSubmitButtonTextColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, submitButtonTextColor_);
}
if (!getSubmitButtonBackgroundColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, submitButtonBackgroundColor_);
}
if (!getFooterTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, footerText_);
}
if (localizedFooterText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getLocalizedFooterText());
}
if (!getCssOverridesBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, cssOverrides_);
}
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.Template.DataCollectionPageSettings)) {
return super.equals(obj);
}
com.passkit.grpc.Template.DataCollectionPageSettings other = (com.passkit.grpc.Template.DataCollectionPageSettings) obj;
if (!getTitle()
.equals(other.getTitle())) return false;
if (hasLocalizedTitle() != other.hasLocalizedTitle()) return false;
if (hasLocalizedTitle()) {
if (!getLocalizedTitle()
.equals(other.getLocalizedTitle())) return false;
}
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasLocalizedDescription() != other.hasLocalizedDescription()) return false;
if (hasLocalizedDescription()) {
if (!getLocalizedDescription()
.equals(other.getLocalizedDescription())) return false;
}
if (!getSubmitButtonText()
.equals(other.getSubmitButtonText())) return false;
if (hasLocalizedSubmitButtonText() != other.hasLocalizedSubmitButtonText()) return false;
if (hasLocalizedSubmitButtonText()) {
if (!getLocalizedSubmitButtonText()
.equals(other.getLocalizedSubmitButtonText())) return false;
}
if (!getLoadingText()
.equals(other.getLoadingText())) return false;
if (hasLocalizedLoadingText() != other.hasLocalizedLoadingText()) return false;
if (hasLocalizedLoadingText()) {
if (!getLocalizedLoadingText()
.equals(other.getLocalizedLoadingText())) return false;
}
if (!getThankYouText()
.equals(other.getThankYouText())) return false;
if (hasLocalizedThankYouText() != other.hasLocalizedThankYouText()) return false;
if (hasLocalizedThankYouText()) {
if (!getLocalizedThankYouText()
.equals(other.getLocalizedThankYouText())) return false;
}
if (!getPageBackgroundColor()
.equals(other.getPageBackgroundColor())) return false;
if (hasLocalizedPageBackgroundColor() != other.hasLocalizedPageBackgroundColor()) return false;
if (hasLocalizedPageBackgroundColor()) {
if (!getLocalizedPageBackgroundColor()
.equals(other.getLocalizedPageBackgroundColor())) return false;
}
if (hasTrackingSettings() != other.hasTrackingSettings()) return false;
if (hasTrackingSettings()) {
if (!getTrackingSettings()
.equals(other.getTrackingSettings())) return false;
}
if (!getSubmitButtonTextColor()
.equals(other.getSubmitButtonTextColor())) return false;
if (!getSubmitButtonBackgroundColor()
.equals(other.getSubmitButtonBackgroundColor())) return false;
if (!getFooterText()
.equals(other.getFooterText())) return false;
if (hasLocalizedFooterText() != other.hasLocalizedFooterText()) return false;
if (hasLocalizedFooterText()) {
if (!getLocalizedFooterText()
.equals(other.getLocalizedFooterText())) return false;
}
if (!getCssOverrides()
.equals(other.getCssOverrides())) 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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
if (hasLocalizedTitle()) {
hash = (37 * hash) + LOCALIZEDTITLE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedTitle().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasLocalizedDescription()) {
hash = (37 * hash) + LOCALIZEDDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedDescription().hashCode();
}
hash = (37 * hash) + SUBMITBUTTONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getSubmitButtonText().hashCode();
if (hasLocalizedSubmitButtonText()) {
hash = (37 * hash) + LOCALIZEDSUBMITBUTTONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedSubmitButtonText().hashCode();
}
hash = (37 * hash) + LOADINGTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLoadingText().hashCode();
if (hasLocalizedLoadingText()) {
hash = (37 * hash) + LOCALIZEDLOADINGTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedLoadingText().hashCode();
}
hash = (37 * hash) + THANKYOUTEXT_FIELD_NUMBER;
hash = (53 * hash) + getThankYouText().hashCode();
if (hasLocalizedThankYouText()) {
hash = (37 * hash) + LOCALIZEDTHANKYOUTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedThankYouText().hashCode();
}
hash = (37 * hash) + PAGEBACKGROUNDCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getPageBackgroundColor().hashCode();
if (hasLocalizedPageBackgroundColor()) {
hash = (37 * hash) + LOCALIZEDPAGEBACKGROUNDCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedPageBackgroundColor().hashCode();
}
if (hasTrackingSettings()) {
hash = (37 * hash) + TRACKINGSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getTrackingSettings().hashCode();
}
hash = (37 * hash) + SUBMITBUTTONTEXTCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getSubmitButtonTextColor().hashCode();
hash = (37 * hash) + SUBMITBUTTONBACKGROUNDCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getSubmitButtonBackgroundColor().hashCode();
hash = (37 * hash) + FOOTERTEXT_FIELD_NUMBER;
hash = (53 * hash) + getFooterText().hashCode();
if (hasLocalizedFooterText()) {
hash = (37 * hash) + LOCALIZEDFOOTERTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedFooterText().hashCode();
}
hash = (37 * hash) + CSSOVERRIDES_FIELD_NUMBER;
hash = (53 * hash) + getCssOverrides().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.DataCollectionPageSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataCollectionPageSettings 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.Template.DataCollectionPageSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataCollectionPageSettings 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.Template.DataCollectionPageSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataCollectionPageSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.DataCollectionPageSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataCollectionPageSettings 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.Template.DataCollectionPageSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataCollectionPageSettings 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.Template.DataCollectionPageSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataCollectionPageSettings 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.Template.DataCollectionPageSettings 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;
}
/**
*
* This allows you to customize the contents rendered on data collection landing page.
*
*
* Protobuf type {@code io.DataCollectionPageSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.DataCollectionPageSettings)
com.passkit.grpc.Template.DataCollectionPageSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionPageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionPageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DataCollectionPageSettings.class, com.passkit.grpc.Template.DataCollectionPageSettings.Builder.class);
}
// Construct using com.passkit.grpc.Template.DataCollectionPageSettings.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();
title_ = "";
if (localizedTitleBuilder_ == null) {
localizedTitle_ = null;
} else {
localizedTitle_ = null;
localizedTitleBuilder_ = null;
}
description_ = "";
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
submitButtonText_ = "";
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonText_ = null;
} else {
localizedSubmitButtonText_ = null;
localizedSubmitButtonTextBuilder_ = null;
}
loadingText_ = "";
if (localizedLoadingTextBuilder_ == null) {
localizedLoadingText_ = null;
} else {
localizedLoadingText_ = null;
localizedLoadingTextBuilder_ = null;
}
thankYouText_ = "";
if (localizedThankYouTextBuilder_ == null) {
localizedThankYouText_ = null;
} else {
localizedThankYouText_ = null;
localizedThankYouTextBuilder_ = null;
}
pageBackgroundColor_ = "";
if (localizedPageBackgroundColorBuilder_ == null) {
localizedPageBackgroundColor_ = null;
} else {
localizedPageBackgroundColor_ = null;
localizedPageBackgroundColorBuilder_ = null;
}
if (trackingSettingsBuilder_ == null) {
trackingSettings_ = null;
} else {
trackingSettings_ = null;
trackingSettingsBuilder_ = null;
}
submitButtonTextColor_ = "";
submitButtonBackgroundColor_ = "";
footerText_ = "";
if (localizedFooterTextBuilder_ == null) {
localizedFooterText_ = null;
} else {
localizedFooterText_ = null;
localizedFooterTextBuilder_ = null;
}
cssOverrides_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionPageSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionPageSettings getDefaultInstanceForType() {
return com.passkit.grpc.Template.DataCollectionPageSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionPageSettings build() {
com.passkit.grpc.Template.DataCollectionPageSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionPageSettings buildPartial() {
com.passkit.grpc.Template.DataCollectionPageSettings result = new com.passkit.grpc.Template.DataCollectionPageSettings(this);
result.title_ = title_;
if (localizedTitleBuilder_ == null) {
result.localizedTitle_ = localizedTitle_;
} else {
result.localizedTitle_ = localizedTitleBuilder_.build();
}
result.description_ = description_;
if (localizedDescriptionBuilder_ == null) {
result.localizedDescription_ = localizedDescription_;
} else {
result.localizedDescription_ = localizedDescriptionBuilder_.build();
}
result.submitButtonText_ = submitButtonText_;
if (localizedSubmitButtonTextBuilder_ == null) {
result.localizedSubmitButtonText_ = localizedSubmitButtonText_;
} else {
result.localizedSubmitButtonText_ = localizedSubmitButtonTextBuilder_.build();
}
result.loadingText_ = loadingText_;
if (localizedLoadingTextBuilder_ == null) {
result.localizedLoadingText_ = localizedLoadingText_;
} else {
result.localizedLoadingText_ = localizedLoadingTextBuilder_.build();
}
result.thankYouText_ = thankYouText_;
if (localizedThankYouTextBuilder_ == null) {
result.localizedThankYouText_ = localizedThankYouText_;
} else {
result.localizedThankYouText_ = localizedThankYouTextBuilder_.build();
}
result.pageBackgroundColor_ = pageBackgroundColor_;
if (localizedPageBackgroundColorBuilder_ == null) {
result.localizedPageBackgroundColor_ = localizedPageBackgroundColor_;
} else {
result.localizedPageBackgroundColor_ = localizedPageBackgroundColorBuilder_.build();
}
if (trackingSettingsBuilder_ == null) {
result.trackingSettings_ = trackingSettings_;
} else {
result.trackingSettings_ = trackingSettingsBuilder_.build();
}
result.submitButtonTextColor_ = submitButtonTextColor_;
result.submitButtonBackgroundColor_ = submitButtonBackgroundColor_;
result.footerText_ = footerText_;
if (localizedFooterTextBuilder_ == null) {
result.localizedFooterText_ = localizedFooterText_;
} else {
result.localizedFooterText_ = localizedFooterTextBuilder_.build();
}
result.cssOverrides_ = cssOverrides_;
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.Template.DataCollectionPageSettings) {
return mergeFrom((com.passkit.grpc.Template.DataCollectionPageSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.DataCollectionPageSettings other) {
if (other == com.passkit.grpc.Template.DataCollectionPageSettings.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (other.hasLocalizedTitle()) {
mergeLocalizedTitle(other.getLocalizedTitle());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasLocalizedDescription()) {
mergeLocalizedDescription(other.getLocalizedDescription());
}
if (!other.getSubmitButtonText().isEmpty()) {
submitButtonText_ = other.submitButtonText_;
onChanged();
}
if (other.hasLocalizedSubmitButtonText()) {
mergeLocalizedSubmitButtonText(other.getLocalizedSubmitButtonText());
}
if (!other.getLoadingText().isEmpty()) {
loadingText_ = other.loadingText_;
onChanged();
}
if (other.hasLocalizedLoadingText()) {
mergeLocalizedLoadingText(other.getLocalizedLoadingText());
}
if (!other.getThankYouText().isEmpty()) {
thankYouText_ = other.thankYouText_;
onChanged();
}
if (other.hasLocalizedThankYouText()) {
mergeLocalizedThankYouText(other.getLocalizedThankYouText());
}
if (!other.getPageBackgroundColor().isEmpty()) {
pageBackgroundColor_ = other.pageBackgroundColor_;
onChanged();
}
if (other.hasLocalizedPageBackgroundColor()) {
mergeLocalizedPageBackgroundColor(other.getLocalizedPageBackgroundColor());
}
if (other.hasTrackingSettings()) {
mergeTrackingSettings(other.getTrackingSettings());
}
if (!other.getSubmitButtonTextColor().isEmpty()) {
submitButtonTextColor_ = other.submitButtonTextColor_;
onChanged();
}
if (!other.getSubmitButtonBackgroundColor().isEmpty()) {
submitButtonBackgroundColor_ = other.submitButtonBackgroundColor_;
onChanged();
}
if (!other.getFooterText().isEmpty()) {
footerText_ = other.footerText_;
onChanged();
}
if (other.hasLocalizedFooterText()) {
mergeLocalizedFooterText(other.getLocalizedFooterText());
}
if (!other.getCssOverrides().isEmpty()) {
cssOverrides_ = other.cssOverrides_;
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.Template.DataCollectionPageSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.DataCollectionPageSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object title_ = "";
/**
*
* Used as title.
*
*
* string title = 1;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Used as title.
*
*
* string title = 1;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Used as title.
*
*
* string title = 1;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
*
* Used as title.
*
*
* string title = 1;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* Used as title.
*
*
* string title = 1;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedTitle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedTitleBuilder_;
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return Whether the localizedTitle field is set.
*/
public boolean hasLocalizedTitle() {
return localizedTitleBuilder_ != null || localizedTitle_ != null;
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return The localizedTitle.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedTitle() {
if (localizedTitleBuilder_ == null) {
return localizedTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
} else {
return localizedTitleBuilder_.getMessage();
}
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder setLocalizedTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTitleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedTitle_ = value;
onChanged();
} else {
localizedTitleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder setLocalizedTitle(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedTitleBuilder_ == null) {
localizedTitle_ = builderForValue.build();
onChanged();
} else {
localizedTitleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder mergeLocalizedTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTitleBuilder_ == null) {
if (localizedTitle_ != null) {
localizedTitle_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedTitle_).mergeFrom(value).buildPartial();
} else {
localizedTitle_ = value;
}
onChanged();
} else {
localizedTitleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder clearLocalizedTitle() {
if (localizedTitleBuilder_ == null) {
localizedTitle_ = null;
onChanged();
} else {
localizedTitle_ = null;
localizedTitleBuilder_ = null;
}
return this;
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedTitleBuilder() {
onChanged();
return getLocalizedTitleFieldBuilder().getBuilder();
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder() {
if (localizedTitleBuilder_ != null) {
return localizedTitleBuilder_.getMessageOrBuilder();
} else {
return localizedTitle_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
}
}
/**
*
* Localized title of the page.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedTitleFieldBuilder() {
if (localizedTitleBuilder_ == null) {
localizedTitleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedTitle(),
getParentForChildren(),
isClean());
localizedTitle_ = null;
}
return localizedTitleBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* Description of the page.
*
*
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the page.
*
*
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the page.
*
*
* string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the page.
*
*
* string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the page.
*
*
* string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedDescriptionBuilder_;
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return Whether the localizedDescription field is set.
*/
public boolean hasLocalizedDescription() {
return localizedDescriptionBuilder_ != null || localizedDescription_ != null;
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return The localizedDescription.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
} else {
return localizedDescriptionBuilder_.getMessage();
}
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder setLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedDescription_ = value;
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder setLocalizedDescription(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = builderForValue.build();
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder mergeLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (localizedDescription_ != null) {
localizedDescription_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedDescription_).mergeFrom(value).buildPartial();
} else {
localizedDescription_ = value;
}
onChanged();
} else {
localizedDescriptionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder clearLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
onChanged();
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
return this;
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedDescriptionBuilder() {
onChanged();
return getLocalizedDescriptionFieldBuilder().getBuilder();
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
if (localizedDescriptionBuilder_ != null) {
return localizedDescriptionBuilder_.getMessageOrBuilder();
} else {
return localizedDescription_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
}
/**
*
* Localized description of the page.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedDescriptionFieldBuilder() {
if (localizedDescriptionBuilder_ == null) {
localizedDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedDescription(),
getParentForChildren(),
isClean());
localizedDescription_ = null;
}
return localizedDescriptionBuilder_;
}
private java.lang.Object submitButtonText_ = "";
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @return The submitButtonText.
*/
public java.lang.String getSubmitButtonText() {
java.lang.Object ref = submitButtonText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submitButtonText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @return The bytes for submitButtonText.
*/
public com.google.protobuf.ByteString
getSubmitButtonTextBytes() {
java.lang.Object ref = submitButtonText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @param value The submitButtonText to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
submitButtonText_ = value;
onChanged();
return this;
}
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @return This builder for chaining.
*/
public Builder clearSubmitButtonText() {
submitButtonText_ = getDefaultInstance().getSubmitButtonText();
onChanged();
return this;
}
/**
*
* This sets text for form submit button on the data collection landing page. Default text is 'Submit'.
*
*
* string submitButtonText = 5;
* @param value The bytes for submitButtonText to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
submitButtonText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedSubmitButtonText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedSubmitButtonTextBuilder_;
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
* @return Whether the localizedSubmitButtonText field is set.
*/
public boolean hasLocalizedSubmitButtonText() {
return localizedSubmitButtonTextBuilder_ != null || localizedSubmitButtonText_ != null;
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
* @return The localizedSubmitButtonText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedSubmitButtonText() {
if (localizedSubmitButtonTextBuilder_ == null) {
return localizedSubmitButtonText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubmitButtonText_;
} else {
return localizedSubmitButtonTextBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
public Builder setLocalizedSubmitButtonText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedSubmitButtonTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedSubmitButtonText_ = value;
onChanged();
} else {
localizedSubmitButtonTextBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
public Builder setLocalizedSubmitButtonText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonText_ = builderForValue.build();
onChanged();
} else {
localizedSubmitButtonTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
public Builder mergeLocalizedSubmitButtonText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedSubmitButtonTextBuilder_ == null) {
if (localizedSubmitButtonText_ != null) {
localizedSubmitButtonText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedSubmitButtonText_).mergeFrom(value).buildPartial();
} else {
localizedSubmitButtonText_ = value;
}
onChanged();
} else {
localizedSubmitButtonTextBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
public Builder clearLocalizedSubmitButtonText() {
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonText_ = null;
onChanged();
} else {
localizedSubmitButtonText_ = null;
localizedSubmitButtonTextBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedSubmitButtonTextBuilder() {
onChanged();
return getLocalizedSubmitButtonTextFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubmitButtonTextOrBuilder() {
if (localizedSubmitButtonTextBuilder_ != null) {
return localizedSubmitButtonTextBuilder_.getMessageOrBuilder();
} else {
return localizedSubmitButtonText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubmitButtonText_;
}
}
/**
* .io.LocalizedString localizedSubmitButtonText = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedSubmitButtonTextFieldBuilder() {
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedSubmitButtonText(),
getParentForChildren(),
isClean());
localizedSubmitButtonText_ = null;
}
return localizedSubmitButtonTextBuilder_;
}
private java.lang.Object loadingText_ = "";
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @return The loadingText.
*/
public java.lang.String getLoadingText() {
java.lang.Object ref = loadingText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
loadingText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @return The bytes for loadingText.
*/
public com.google.protobuf.ByteString
getLoadingTextBytes() {
java.lang.Object ref = loadingText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loadingText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @param value The loadingText to set.
* @return This builder for chaining.
*/
public Builder setLoadingText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loadingText_ = value;
onChanged();
return this;
}
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @return This builder for chaining.
*/
public Builder clearLoadingText() {
loadingText_ = getDefaultInstance().getLoadingText();
onChanged();
return this;
}
/**
*
* The text showed to customers when the page is processing new enrolments.
*
*
* string loadingText = 7;
* @param value The bytes for loadingText to set.
* @return This builder for chaining.
*/
public Builder setLoadingTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loadingText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedLoadingText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedLoadingTextBuilder_;
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
* @return Whether the localizedLoadingText field is set.
*/
public boolean hasLocalizedLoadingText() {
return localizedLoadingTextBuilder_ != null || localizedLoadingText_ != null;
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
* @return The localizedLoadingText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedLoadingText() {
if (localizedLoadingTextBuilder_ == null) {
return localizedLoadingText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLoadingText_;
} else {
return localizedLoadingTextBuilder_.getMessage();
}
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
public Builder setLocalizedLoadingText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLoadingTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedLoadingText_ = value;
onChanged();
} else {
localizedLoadingTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
public Builder setLocalizedLoadingText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedLoadingTextBuilder_ == null) {
localizedLoadingText_ = builderForValue.build();
onChanged();
} else {
localizedLoadingTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
public Builder mergeLocalizedLoadingText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLoadingTextBuilder_ == null) {
if (localizedLoadingText_ != null) {
localizedLoadingText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedLoadingText_).mergeFrom(value).buildPartial();
} else {
localizedLoadingText_ = value;
}
onChanged();
} else {
localizedLoadingTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
public Builder clearLocalizedLoadingText() {
if (localizedLoadingTextBuilder_ == null) {
localizedLoadingText_ = null;
onChanged();
} else {
localizedLoadingText_ = null;
localizedLoadingTextBuilder_ = null;
}
return this;
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedLoadingTextBuilder() {
onChanged();
return getLocalizedLoadingTextFieldBuilder().getBuilder();
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLoadingTextOrBuilder() {
if (localizedLoadingTextBuilder_ != null) {
return localizedLoadingTextBuilder_.getMessageOrBuilder();
} else {
return localizedLoadingText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLoadingText_;
}
}
/**
*
* Localized loading text.
*
*
* .io.LocalizedString localizedLoadingText = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedLoadingTextFieldBuilder() {
if (localizedLoadingTextBuilder_ == null) {
localizedLoadingTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedLoadingText(),
getParentForChildren(),
isClean());
localizedLoadingText_ = null;
}
return localizedLoadingTextBuilder_;
}
private java.lang.Object thankYouText_ = "";
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @return The thankYouText.
*/
public java.lang.String getThankYouText() {
java.lang.Object ref = thankYouText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
thankYouText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @return The bytes for thankYouText.
*/
public com.google.protobuf.ByteString
getThankYouTextBytes() {
java.lang.Object ref = thankYouText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
thankYouText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @param value The thankYouText to set.
* @return This builder for chaining.
*/
public Builder setThankYouText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
thankYouText_ = value;
onChanged();
return this;
}
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @return This builder for chaining.
*/
public Builder clearThankYouText() {
thankYouText_ = getDefaultInstance().getThankYouText();
onChanged();
return this;
}
/**
*
* Thank you text to display on the standard issue page. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* string thankYouText = 9;
* @param value The bytes for thankYouText to set.
* @return This builder for chaining.
*/
public Builder setThankYouTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
thankYouText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedThankYouText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedThankYouTextBuilder_;
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
* @return Whether the localizedThankYouText field is set.
*/
public boolean hasLocalizedThankYouText() {
return localizedThankYouTextBuilder_ != null || localizedThankYouText_ != null;
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
* @return The localizedThankYouText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedThankYouText() {
if (localizedThankYouTextBuilder_ == null) {
return localizedThankYouText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedThankYouText_;
} else {
return localizedThankYouTextBuilder_.getMessage();
}
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
public Builder setLocalizedThankYouText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedThankYouTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedThankYouText_ = value;
onChanged();
} else {
localizedThankYouTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
public Builder setLocalizedThankYouText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedThankYouTextBuilder_ == null) {
localizedThankYouText_ = builderForValue.build();
onChanged();
} else {
localizedThankYouTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
public Builder mergeLocalizedThankYouText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedThankYouTextBuilder_ == null) {
if (localizedThankYouText_ != null) {
localizedThankYouText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedThankYouText_).mergeFrom(value).buildPartial();
} else {
localizedThankYouText_ = value;
}
onChanged();
} else {
localizedThankYouTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
public Builder clearLocalizedThankYouText() {
if (localizedThankYouTextBuilder_ == null) {
localizedThankYouText_ = null;
onChanged();
} else {
localizedThankYouText_ = null;
localizedThankYouTextBuilder_ = null;
}
return this;
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedThankYouTextBuilder() {
onChanged();
return getLocalizedThankYouTextFieldBuilder().getBuilder();
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedThankYouTextOrBuilder() {
if (localizedThankYouTextBuilder_ != null) {
return localizedThankYouTextBuilder_.getMessageOrBuilder();
} else {
return localizedThankYouText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedThankYouText_;
}
}
/**
*
* Localized thank you text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
*
*
* .io.LocalizedString localizedThankYouText = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedThankYouTextFieldBuilder() {
if (localizedThankYouTextBuilder_ == null) {
localizedThankYouTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedThankYouText(),
getParentForChildren(),
isClean());
localizedThankYouText_ = null;
}
return localizedThankYouTextBuilder_;
}
private java.lang.Object pageBackgroundColor_ = "";
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @return The pageBackgroundColor.
*/
public java.lang.String getPageBackgroundColor() {
java.lang.Object ref = pageBackgroundColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageBackgroundColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @return The bytes for pageBackgroundColor.
*/
public com.google.protobuf.ByteString
getPageBackgroundColorBytes() {
java.lang.Object ref = pageBackgroundColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageBackgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @param value The pageBackgroundColor to set.
* @return This builder for chaining.
*/
public Builder setPageBackgroundColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageBackgroundColor_ = value;
onChanged();
return this;
}
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @return This builder for chaining.
*/
public Builder clearPageBackgroundColor() {
pageBackgroundColor_ = getDefaultInstance().getPageBackgroundColor();
onChanged();
return this;
}
/**
*
* For device size greater than the iPad, the form will be rendered with page background color. Form background color is always set as white.
*
*
* string pageBackgroundColor = 11;
* @param value The bytes for pageBackgroundColor to set.
* @return This builder for chaining.
*/
public Builder setPageBackgroundColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageBackgroundColor_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedPageBackgroundColor_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedPageBackgroundColorBuilder_;
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
* @return Whether the localizedPageBackgroundColor field is set.
*/
public boolean hasLocalizedPageBackgroundColor() {
return localizedPageBackgroundColorBuilder_ != null || localizedPageBackgroundColor_ != null;
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
* @return The localizedPageBackgroundColor.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedPageBackgroundColor() {
if (localizedPageBackgroundColorBuilder_ == null) {
return localizedPageBackgroundColor_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPageBackgroundColor_;
} else {
return localizedPageBackgroundColorBuilder_.getMessage();
}
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
public Builder setLocalizedPageBackgroundColor(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedPageBackgroundColorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedPageBackgroundColor_ = value;
onChanged();
} else {
localizedPageBackgroundColorBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
public Builder setLocalizedPageBackgroundColor(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedPageBackgroundColorBuilder_ == null) {
localizedPageBackgroundColor_ = builderForValue.build();
onChanged();
} else {
localizedPageBackgroundColorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
public Builder mergeLocalizedPageBackgroundColor(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedPageBackgroundColorBuilder_ == null) {
if (localizedPageBackgroundColor_ != null) {
localizedPageBackgroundColor_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedPageBackgroundColor_).mergeFrom(value).buildPartial();
} else {
localizedPageBackgroundColor_ = value;
}
onChanged();
} else {
localizedPageBackgroundColorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
public Builder clearLocalizedPageBackgroundColor() {
if (localizedPageBackgroundColorBuilder_ == null) {
localizedPageBackgroundColor_ = null;
onChanged();
} else {
localizedPageBackgroundColor_ = null;
localizedPageBackgroundColorBuilder_ = null;
}
return this;
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedPageBackgroundColorBuilder() {
onChanged();
return getLocalizedPageBackgroundColorFieldBuilder().getBuilder();
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPageBackgroundColorOrBuilder() {
if (localizedPageBackgroundColorBuilder_ != null) {
return localizedPageBackgroundColorBuilder_.getMessageOrBuilder();
} else {
return localizedPageBackgroundColor_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPageBackgroundColor_;
}
}
/**
*
* Localized page background color shown if device is greater than the iPad.
*
*
* .io.LocalizedString localizedPageBackgroundColor = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedPageBackgroundColorFieldBuilder() {
if (localizedPageBackgroundColorBuilder_ == null) {
localizedPageBackgroundColorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedPageBackgroundColor(),
getParentForChildren(),
isClean());
localizedPageBackgroundColor_ = null;
}
return localizedPageBackgroundColorBuilder_;
}
private com.passkit.grpc.Tracking.TrackingSettings trackingSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Tracking.TrackingSettings, com.passkit.grpc.Tracking.TrackingSettings.Builder, com.passkit.grpc.Tracking.TrackingSettingsOrBuilder> trackingSettingsBuilder_;
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
* @return Whether the trackingSettings field is set.
*/
public boolean hasTrackingSettings() {
return trackingSettingsBuilder_ != null || trackingSettings_ != null;
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
* @return The trackingSettings.
*/
public com.passkit.grpc.Tracking.TrackingSettings getTrackingSettings() {
if (trackingSettingsBuilder_ == null) {
return trackingSettings_ == null ? com.passkit.grpc.Tracking.TrackingSettings.getDefaultInstance() : trackingSettings_;
} else {
return trackingSettingsBuilder_.getMessage();
}
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
public Builder setTrackingSettings(com.passkit.grpc.Tracking.TrackingSettings value) {
if (trackingSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trackingSettings_ = value;
onChanged();
} else {
trackingSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
public Builder setTrackingSettings(
com.passkit.grpc.Tracking.TrackingSettings.Builder builderForValue) {
if (trackingSettingsBuilder_ == null) {
trackingSettings_ = builderForValue.build();
onChanged();
} else {
trackingSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
public Builder mergeTrackingSettings(com.passkit.grpc.Tracking.TrackingSettings value) {
if (trackingSettingsBuilder_ == null) {
if (trackingSettings_ != null) {
trackingSettings_ =
com.passkit.grpc.Tracking.TrackingSettings.newBuilder(trackingSettings_).mergeFrom(value).buildPartial();
} else {
trackingSettings_ = value;
}
onChanged();
} else {
trackingSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
public Builder clearTrackingSettings() {
if (trackingSettingsBuilder_ == null) {
trackingSettings_ = null;
onChanged();
} else {
trackingSettings_ = null;
trackingSettingsBuilder_ = null;
}
return this;
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
public com.passkit.grpc.Tracking.TrackingSettings.Builder getTrackingSettingsBuilder() {
onChanged();
return getTrackingSettingsFieldBuilder().getBuilder();
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
public com.passkit.grpc.Tracking.TrackingSettingsOrBuilder getTrackingSettingsOrBuilder() {
if (trackingSettingsBuilder_ != null) {
return trackingSettingsBuilder_.getMessageOrBuilder();
} else {
return trackingSettings_ == null ?
com.passkit.grpc.Tracking.TrackingSettings.getDefaultInstance() : trackingSettings_;
}
}
/**
*
* Tracking settings for Facebook Pixel & Google Analytics
*
*
* .io.TrackingSettings trackingSettings = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Tracking.TrackingSettings, com.passkit.grpc.Tracking.TrackingSettings.Builder, com.passkit.grpc.Tracking.TrackingSettingsOrBuilder>
getTrackingSettingsFieldBuilder() {
if (trackingSettingsBuilder_ == null) {
trackingSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Tracking.TrackingSettings, com.passkit.grpc.Tracking.TrackingSettings.Builder, com.passkit.grpc.Tracking.TrackingSettingsOrBuilder>(
getTrackingSettings(),
getParentForChildren(),
isClean());
trackingSettings_ = null;
}
return trackingSettingsBuilder_;
}
private java.lang.Object submitButtonTextColor_ = "";
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @return The submitButtonTextColor.
*/
public java.lang.String getSubmitButtonTextColor() {
java.lang.Object ref = submitButtonTextColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submitButtonTextColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @return The bytes for submitButtonTextColor.
*/
public com.google.protobuf.ByteString
getSubmitButtonTextColorBytes() {
java.lang.Object ref = submitButtonTextColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonTextColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @param value The submitButtonTextColor to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonTextColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
submitButtonTextColor_ = value;
onChanged();
return this;
}
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @return This builder for chaining.
*/
public Builder clearSubmitButtonTextColor() {
submitButtonTextColor_ = getDefaultInstance().getSubmitButtonTextColor();
onChanged();
return this;
}
/**
*
* The color for submit button text. Default is #ffffff.
*
*
* string submitButtonTextColor = 14;
* @param value The bytes for submitButtonTextColor to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonTextColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
submitButtonTextColor_ = value;
onChanged();
return this;
}
private java.lang.Object submitButtonBackgroundColor_ = "";
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @return The submitButtonBackgroundColor.
*/
public java.lang.String getSubmitButtonBackgroundColor() {
java.lang.Object ref = submitButtonBackgroundColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submitButtonBackgroundColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @return The bytes for submitButtonBackgroundColor.
*/
public com.google.protobuf.ByteString
getSubmitButtonBackgroundColorBytes() {
java.lang.Object ref = submitButtonBackgroundColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonBackgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @param value The submitButtonBackgroundColor to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonBackgroundColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
submitButtonBackgroundColor_ = value;
onChanged();
return this;
}
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @return This builder for chaining.
*/
public Builder clearSubmitButtonBackgroundColor() {
submitButtonBackgroundColor_ = getDefaultInstance().getSubmitButtonBackgroundColor();
onChanged();
return this;
}
/**
*
* The background color of submit button. Default is #4CAF50 (green).
*
*
* string submitButtonBackgroundColor = 15;
* @param value The bytes for submitButtonBackgroundColor to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonBackgroundColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
submitButtonBackgroundColor_ = value;
onChanged();
return this;
}
private java.lang.Object footerText_ = "";
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @return The footerText.
*/
public java.lang.String getFooterText() {
java.lang.Object ref = footerText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
footerText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @return The bytes for footerText.
*/
public com.google.protobuf.ByteString
getFooterTextBytes() {
java.lang.Object ref = footerText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
footerText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @param value The footerText to set.
* @return This builder for chaining.
*/
public Builder setFooterText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
footerText_ = value;
onChanged();
return this;
}
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @return This builder for chaining.
*/
public Builder clearFooterText() {
footerText_ = getDefaultInstance().getFooterText();
onChanged();
return this;
}
/**
*
* Renders above the submit button. Can be used to show T&C link.
*
*
* string footerText = 16;
* @param value The bytes for footerText to set.
* @return This builder for chaining.
*/
public Builder setFooterTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
footerText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedFooterText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedFooterTextBuilder_;
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
* @return Whether the localizedFooterText field is set.
*/
public boolean hasLocalizedFooterText() {
return localizedFooterTextBuilder_ != null || localizedFooterText_ != null;
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
* @return The localizedFooterText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterText() {
if (localizedFooterTextBuilder_ == null) {
return localizedFooterText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterText_;
} else {
return localizedFooterTextBuilder_.getMessage();
}
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
public Builder setLocalizedFooterText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedFooterTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedFooterText_ = value;
onChanged();
} else {
localizedFooterTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
public Builder setLocalizedFooterText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedFooterTextBuilder_ == null) {
localizedFooterText_ = builderForValue.build();
onChanged();
} else {
localizedFooterTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
public Builder mergeLocalizedFooterText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedFooterTextBuilder_ == null) {
if (localizedFooterText_ != null) {
localizedFooterText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedFooterText_).mergeFrom(value).buildPartial();
} else {
localizedFooterText_ = value;
}
onChanged();
} else {
localizedFooterTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
public Builder clearLocalizedFooterText() {
if (localizedFooterTextBuilder_ == null) {
localizedFooterText_ = null;
onChanged();
} else {
localizedFooterText_ = null;
localizedFooterTextBuilder_ = null;
}
return this;
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedFooterTextBuilder() {
onChanged();
return getLocalizedFooterTextFieldBuilder().getBuilder();
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextOrBuilder() {
if (localizedFooterTextBuilder_ != null) {
return localizedFooterTextBuilder_.getMessageOrBuilder();
} else {
return localizedFooterText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterText_;
}
}
/**
*
* Localized footer text.
*
*
* .io.LocalizedString localizedFooterText = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedFooterTextFieldBuilder() {
if (localizedFooterTextBuilder_ == null) {
localizedFooterTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedFooterText(),
getParentForChildren(),
isClean());
localizedFooterText_ = null;
}
return localizedFooterTextBuilder_;
}
private java.lang.Object cssOverrides_ = "";
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @return The cssOverrides.
*/
public java.lang.String getCssOverrides() {
java.lang.Object ref = cssOverrides_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cssOverrides_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @return The bytes for cssOverrides.
*/
public com.google.protobuf.ByteString
getCssOverridesBytes() {
java.lang.Object ref = cssOverrides_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cssOverrides_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @param value The cssOverrides to set.
* @return This builder for chaining.
*/
public Builder setCssOverrides(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cssOverrides_ = value;
onChanged();
return this;
}
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @return This builder for chaining.
*/
public Builder clearCssOverrides() {
cssOverrides_ = getDefaultInstance().getCssOverrides();
onChanged();
return this;
}
/**
*
* Custom css to overwrite on the data collection page.
*
*
* string cssOverrides = 18;
* @param value The bytes for cssOverrides to set.
* @return This builder for chaining.
*/
public Builder setCssOverridesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cssOverrides_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.DataCollectionPageSettings)
}
// @@protoc_insertion_point(class_scope:io.DataCollectionPageSettings)
private static final com.passkit.grpc.Template.DataCollectionPageSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.DataCollectionPageSettings();
}
public static com.passkit.grpc.Template.DataCollectionPageSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataCollectionPageSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataCollectionPageSettings(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.Template.DataCollectionPageSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PassTemplateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.PassTemplateResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .io.PassTemplate template = 1;
* @return Whether the template field is set.
*/
boolean hasTemplate();
/**
* .io.PassTemplate template = 1;
* @return The template.
*/
com.passkit.grpc.Template.PassTemplate getTemplate();
/**
* .io.PassTemplate template = 1;
*/
com.passkit.grpc.Template.PassTemplateOrBuilder getTemplateOrBuilder();
/**
* string Name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string Name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string ownerUsername = 3;
* @return The ownerUsername.
*/
java.lang.String getOwnerUsername();
/**
* string ownerUsername = 3;
* @return The bytes for ownerUsername.
*/
com.google.protobuf.ByteString
getOwnerUsernameBytes();
/**
* .io.PassProtocol protocol = 4;
* @return The enum numeric value on the wire for protocol.
*/
int getProtocolValue();
/**
* .io.PassProtocol protocol = 4;
* @return The protocol.
*/
com.passkit.grpc.Protocols.PassProtocol getProtocol();
/**
* uint32 revision = 5;
* @return The revision.
*/
int getRevision();
/**
* .google.protobuf.Timestamp createdAt = 6;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
* .google.protobuf.Timestamp createdAt = 6;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
* .google.protobuf.Timestamp updatedAt = 7;
* @return Whether the updatedAt field is set.
*/
boolean hasUpdatedAt();
/**
* .google.protobuf.Timestamp updatedAt = 7;
* @return The updatedAt.
*/
com.google.protobuf.Timestamp getUpdatedAt();
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
}
/**
* Protobuf type {@code io.PassTemplateResponse}
*/
public static final class PassTemplateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.PassTemplateResponse)
PassTemplateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PassTemplateResponse.newBuilder() to construct.
private PassTemplateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PassTemplateResponse() {
name_ = "";
ownerUsername_ = "";
protocol_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PassTemplateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PassTemplateResponse(
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: {
com.passkit.grpc.Template.PassTemplate.Builder subBuilder = null;
if (template_ != null) {
subBuilder = template_.toBuilder();
}
template_ = input.readMessage(com.passkit.grpc.Template.PassTemplate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(template_);
template_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ownerUsername_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
protocol_ = rawValue;
break;
}
case 40: {
revision_ = input.readUInt32();
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (updatedAt_ != null) {
subBuilder = updatedAt_.toBuilder();
}
updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updatedAt_);
updatedAt_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_PassTemplateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_PassTemplateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.PassTemplateResponse.class, com.passkit.grpc.Template.PassTemplateResponse.Builder.class);
}
public static final int TEMPLATE_FIELD_NUMBER = 1;
private com.passkit.grpc.Template.PassTemplate template_;
/**
* .io.PassTemplate template = 1;
* @return Whether the template field is set.
*/
@java.lang.Override
public boolean hasTemplate() {
return template_ != null;
}
/**
* .io.PassTemplate template = 1;
* @return The template.
*/
@java.lang.Override
public com.passkit.grpc.Template.PassTemplate getTemplate() {
return template_ == null ? com.passkit.grpc.Template.PassTemplate.getDefaultInstance() : template_;
}
/**
* .io.PassTemplate template = 1;
*/
@java.lang.Override
public com.passkit.grpc.Template.PassTemplateOrBuilder getTemplateOrBuilder() {
return getTemplate();
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object 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;
}
}
/**
* 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 OWNERUSERNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object ownerUsername_;
/**
* string ownerUsername = 3;
* @return The ownerUsername.
*/
@java.lang.Override
public java.lang.String getOwnerUsername() {
java.lang.Object ref = ownerUsername_;
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();
ownerUsername_ = s;
return s;
}
}
/**
* string ownerUsername = 3;
* @return The bytes for ownerUsername.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOwnerUsernameBytes() {
java.lang.Object ref = ownerUsername_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerUsername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROTOCOL_FIELD_NUMBER = 4;
private int protocol_;
/**
* .io.PassProtocol protocol = 4;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
* .io.PassProtocol protocol = 4;
* @return The protocol.
*/
@java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
public static final int REVISION_FIELD_NUMBER = 5;
private int revision_;
/**
* uint32 revision = 5;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
public static final int CREATEDAT_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp createdAt_;
/**
* .google.protobuf.Timestamp createdAt = 6;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
* .google.protobuf.Timestamp createdAt = 6;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int UPDATEDAT_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp updatedAt_;
/**
* .google.protobuf.Timestamp updatedAt = 7;
* @return Whether the updatedAt field is set.
*/
@java.lang.Override
public boolean hasUpdatedAt() {
return updatedAt_ != null;
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
* @return The updatedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdatedAt() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
return getUpdatedAt();
}
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 (template_ != null) {
output.writeMessage(1, getTemplate());
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!getOwnerUsernameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerUsername_);
}
if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
output.writeEnum(4, protocol_);
}
if (revision_ != 0) {
output.writeUInt32(5, revision_);
}
if (createdAt_ != null) {
output.writeMessage(6, getCreatedAt());
}
if (updatedAt_ != null) {
output.writeMessage(7, getUpdatedAt());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (template_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTemplate());
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!getOwnerUsernameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerUsername_);
}
if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, protocol_);
}
if (revision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, revision_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getCreatedAt());
}
if (updatedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getUpdatedAt());
}
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.Template.PassTemplateResponse)) {
return super.equals(obj);
}
com.passkit.grpc.Template.PassTemplateResponse other = (com.passkit.grpc.Template.PassTemplateResponse) obj;
if (hasTemplate() != other.hasTemplate()) return false;
if (hasTemplate()) {
if (!getTemplate()
.equals(other.getTemplate())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getOwnerUsername()
.equals(other.getOwnerUsername())) return false;
if (protocol_ != other.protocol_) return false;
if (getRevision()
!= other.getRevision()) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasUpdatedAt() != other.hasUpdatedAt()) return false;
if (hasUpdatedAt()) {
if (!getUpdatedAt()
.equals(other.getUpdatedAt())) 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 (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + OWNERUSERNAME_FIELD_NUMBER;
hash = (53 * hash) + getOwnerUsername().hashCode();
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + protocol_;
hash = (37 * hash) + REVISION_FIELD_NUMBER;
hash = (53 * hash) + getRevision();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATEDAT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasUpdatedAt()) {
hash = (37 * hash) + UPDATEDAT_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedAt().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.PassTemplateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PassTemplateResponse 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.Template.PassTemplateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PassTemplateResponse 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.Template.PassTemplateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PassTemplateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.PassTemplateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PassTemplateResponse 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.Template.PassTemplateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PassTemplateResponse 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.Template.PassTemplateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PassTemplateResponse 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.Template.PassTemplateResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.PassTemplateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.PassTemplateResponse)
com.passkit.grpc.Template.PassTemplateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_PassTemplateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_PassTemplateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.PassTemplateResponse.class, com.passkit.grpc.Template.PassTemplateResponse.Builder.class);
}
// Construct using com.passkit.grpc.Template.PassTemplateResponse.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();
if (templateBuilder_ == null) {
template_ = null;
} else {
template_ = null;
templateBuilder_ = null;
}
name_ = "";
ownerUsername_ = "";
protocol_ = 0;
revision_ = 0;
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (updatedAtBuilder_ == null) {
updatedAt_ = null;
} else {
updatedAt_ = null;
updatedAtBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_PassTemplateResponse_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.PassTemplateResponse getDefaultInstanceForType() {
return com.passkit.grpc.Template.PassTemplateResponse.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.PassTemplateResponse build() {
com.passkit.grpc.Template.PassTemplateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.PassTemplateResponse buildPartial() {
com.passkit.grpc.Template.PassTemplateResponse result = new com.passkit.grpc.Template.PassTemplateResponse(this);
if (templateBuilder_ == null) {
result.template_ = template_;
} else {
result.template_ = templateBuilder_.build();
}
result.name_ = name_;
result.ownerUsername_ = ownerUsername_;
result.protocol_ = protocol_;
result.revision_ = revision_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (updatedAtBuilder_ == null) {
result.updatedAt_ = updatedAt_;
} else {
result.updatedAt_ = updatedAtBuilder_.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.Template.PassTemplateResponse) {
return mergeFrom((com.passkit.grpc.Template.PassTemplateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.PassTemplateResponse other) {
if (other == com.passkit.grpc.Template.PassTemplateResponse.getDefaultInstance()) return this;
if (other.hasTemplate()) {
mergeTemplate(other.getTemplate());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getOwnerUsername().isEmpty()) {
ownerUsername_ = other.ownerUsername_;
onChanged();
}
if (other.protocol_ != 0) {
setProtocolValue(other.getProtocolValue());
}
if (other.getRevision() != 0) {
setRevision(other.getRevision());
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasUpdatedAt()) {
mergeUpdatedAt(other.getUpdatedAt());
}
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.Template.PassTemplateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.PassTemplateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.passkit.grpc.Template.PassTemplate template_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PassTemplate, com.passkit.grpc.Template.PassTemplate.Builder, com.passkit.grpc.Template.PassTemplateOrBuilder> templateBuilder_;
/**
* .io.PassTemplate template = 1;
* @return Whether the template field is set.
*/
public boolean hasTemplate() {
return templateBuilder_ != null || template_ != null;
}
/**
* .io.PassTemplate template = 1;
* @return The template.
*/
public com.passkit.grpc.Template.PassTemplate getTemplate() {
if (templateBuilder_ == null) {
return template_ == null ? com.passkit.grpc.Template.PassTemplate.getDefaultInstance() : template_;
} else {
return templateBuilder_.getMessage();
}
}
/**
* .io.PassTemplate template = 1;
*/
public Builder setTemplate(com.passkit.grpc.Template.PassTemplate value) {
if (templateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
template_ = value;
onChanged();
} else {
templateBuilder_.setMessage(value);
}
return this;
}
/**
* .io.PassTemplate template = 1;
*/
public Builder setTemplate(
com.passkit.grpc.Template.PassTemplate.Builder builderForValue) {
if (templateBuilder_ == null) {
template_ = builderForValue.build();
onChanged();
} else {
templateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.PassTemplate template = 1;
*/
public Builder mergeTemplate(com.passkit.grpc.Template.PassTemplate value) {
if (templateBuilder_ == null) {
if (template_ != null) {
template_ =
com.passkit.grpc.Template.PassTemplate.newBuilder(template_).mergeFrom(value).buildPartial();
} else {
template_ = value;
}
onChanged();
} else {
templateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.PassTemplate template = 1;
*/
public Builder clearTemplate() {
if (templateBuilder_ == null) {
template_ = null;
onChanged();
} else {
template_ = null;
templateBuilder_ = null;
}
return this;
}
/**
* .io.PassTemplate template = 1;
*/
public com.passkit.grpc.Template.PassTemplate.Builder getTemplateBuilder() {
onChanged();
return getTemplateFieldBuilder().getBuilder();
}
/**
* .io.PassTemplate template = 1;
*/
public com.passkit.grpc.Template.PassTemplateOrBuilder getTemplateOrBuilder() {
if (templateBuilder_ != null) {
return templateBuilder_.getMessageOrBuilder();
} else {
return template_ == null ?
com.passkit.grpc.Template.PassTemplate.getDefaultInstance() : template_;
}
}
/**
* .io.PassTemplate template = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PassTemplate, com.passkit.grpc.Template.PassTemplate.Builder, com.passkit.grpc.Template.PassTemplateOrBuilder>
getTemplateFieldBuilder() {
if (templateBuilder_ == null) {
templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PassTemplate, com.passkit.grpc.Template.PassTemplate.Builder, com.passkit.grpc.Template.PassTemplateOrBuilder>(
getTemplate(),
getParentForChildren(),
isClean());
template_ = null;
}
return templateBuilder_;
}
private java.lang.Object 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string Name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* 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.lang.Object ownerUsername_ = "";
/**
* string ownerUsername = 3;
* @return The ownerUsername.
*/
public java.lang.String getOwnerUsername() {
java.lang.Object ref = ownerUsername_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ownerUsername_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ownerUsername = 3;
* @return The bytes for ownerUsername.
*/
public com.google.protobuf.ByteString
getOwnerUsernameBytes() {
java.lang.Object ref = ownerUsername_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerUsername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ownerUsername = 3;
* @param value The ownerUsername to set.
* @return This builder for chaining.
*/
public Builder setOwnerUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ownerUsername_ = value;
onChanged();
return this;
}
/**
* string ownerUsername = 3;
* @return This builder for chaining.
*/
public Builder clearOwnerUsername() {
ownerUsername_ = getDefaultInstance().getOwnerUsername();
onChanged();
return this;
}
/**
* string ownerUsername = 3;
* @param value The bytes for ownerUsername to set.
* @return This builder for chaining.
*/
public Builder setOwnerUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ownerUsername_ = value;
onChanged();
return this;
}
private int protocol_ = 0;
/**
* .io.PassProtocol protocol = 4;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
* .io.PassProtocol protocol = 4;
* @param value The enum numeric value on the wire for protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocolValue(int value) {
protocol_ = value;
onChanged();
return this;
}
/**
* .io.PassProtocol protocol = 4;
* @return The protocol.
*/
@java.lang.Override
public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
/**
* .io.PassProtocol protocol = 4;
* @param value The protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) {
if (value == null) {
throw new NullPointerException();
}
protocol_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.PassProtocol protocol = 4;
* @return This builder for chaining.
*/
public Builder clearProtocol() {
protocol_ = 0;
onChanged();
return this;
}
private int revision_ ;
/**
* uint32 revision = 5;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
/**
* uint32 revision = 5;
* @param value The revision to set.
* @return This builder for chaining.
*/
public Builder setRevision(int value) {
revision_ = value;
onChanged();
return this;
}
/**
* uint32 revision = 5;
* @return This builder for chaining.
*/
public Builder clearRevision() {
revision_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
* .google.protobuf.Timestamp createdAt = 6;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
* .google.protobuf.Timestamp createdAt = 6;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
* .google.protobuf.Timestamp createdAt = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.Timestamp updatedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_;
/**
* .google.protobuf.Timestamp updatedAt = 7;
* @return Whether the updatedAt field is set.
*/
public boolean hasUpdatedAt() {
return updatedAtBuilder_ != null || updatedAt_ != null;
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
* @return The updatedAt.
*/
public com.google.protobuf.Timestamp getUpdatedAt() {
if (updatedAtBuilder_ == null) {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
} else {
return updatedAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedAt_ = value;
onChanged();
} else {
updatedAtBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
public Builder setUpdatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedAtBuilder_ == null) {
updatedAt_ = builderForValue.build();
onChanged();
} else {
updatedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (updatedAt_ != null) {
updatedAt_ =
com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial();
} else {
updatedAt_ = value;
}
onChanged();
} else {
updatedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
public Builder clearUpdatedAt() {
if (updatedAtBuilder_ == null) {
updatedAt_ = null;
onChanged();
} else {
updatedAt_ = null;
updatedAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
onChanged();
return getUpdatedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
if (updatedAtBuilder_ != null) {
return updatedAtBuilder_.getMessageOrBuilder();
} else {
return updatedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
}
/**
* .google.protobuf.Timestamp updatedAt = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedAtFieldBuilder() {
if (updatedAtBuilder_ == null) {
updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdatedAt(),
getParentForChildren(),
isClean());
updatedAt_ = null;
}
return updatedAtBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.PassTemplateResponse)
}
// @@protoc_insertion_point(class_scope:io.PassTemplateResponse)
private static final com.passkit.grpc.Template.PassTemplateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.PassTemplateResponse();
}
public static com.passkit.grpc.Template.PassTemplateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PassTemplateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PassTemplateResponse(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.Template.PassTemplateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColorsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Colors)
com.google.protobuf.MessageOrBuilder {
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @return The backgroundColor.
*/
java.lang.String getBackgroundColor();
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @return The bytes for backgroundColor.
*/
com.google.protobuf.ByteString
getBackgroundColorBytes();
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @return The labelColor.
*/
java.lang.String getLabelColor();
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @return The bytes for labelColor.
*/
com.google.protobuf.ByteString
getLabelColorBytes();
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @return The textColor.
*/
java.lang.String getTextColor();
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @return The bytes for textColor.
*/
com.google.protobuf.ByteString
getTextColorBytes();
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @return The stripColor.
*/
java.lang.String getStripColor();
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @return The bytes for stripColor.
*/
com.google.protobuf.ByteString
getStripColorBytes();
}
/**
*
* Colours take a hexcode input. A '#' prefix is optional.
*
*
* Protobuf type {@code io.Colors}
*/
public static final class Colors extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Colors)
ColorsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Colors.newBuilder() to construct.
private Colors(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Colors() {
backgroundColor_ = "";
labelColor_ = "";
textColor_ = "";
stripColor_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Colors();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Colors(
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();
backgroundColor_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
labelColor_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
textColor_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
stripColor_ = 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.Template.internal_static_io_Colors_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Colors_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Colors.class, com.passkit.grpc.Template.Colors.Builder.class);
}
public static final int BACKGROUNDCOLOR_FIELD_NUMBER = 1;
private volatile java.lang.Object backgroundColor_;
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @return The backgroundColor.
*/
@java.lang.Override
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
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();
backgroundColor_ = s;
return s;
}
}
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @return The bytes for backgroundColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELCOLOR_FIELD_NUMBER = 2;
private volatile java.lang.Object labelColor_;
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @return The labelColor.
*/
@java.lang.Override
public java.lang.String getLabelColor() {
java.lang.Object ref = labelColor_;
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();
labelColor_ = s;
return s;
}
}
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @return The bytes for labelColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLabelColorBytes() {
java.lang.Object ref = labelColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
labelColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEXTCOLOR_FIELD_NUMBER = 3;
private volatile java.lang.Object textColor_;
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @return The textColor.
*/
@java.lang.Override
public java.lang.String getTextColor() {
java.lang.Object ref = textColor_;
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();
textColor_ = s;
return s;
}
}
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @return The bytes for textColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextColorBytes() {
java.lang.Object ref = textColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STRIPCOLOR_FIELD_NUMBER = 4;
private volatile java.lang.Object stripColor_;
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @return The stripColor.
*/
@java.lang.Override
public java.lang.String getStripColor() {
java.lang.Object ref = stripColor_;
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();
stripColor_ = s;
return s;
}
}
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @return The bytes for stripColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStripColorBytes() {
java.lang.Object ref = stripColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stripColor_ = 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 (!getBackgroundColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backgroundColor_);
}
if (!getLabelColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, labelColor_);
}
if (!getTextColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, textColor_);
}
if (!getStripColorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stripColor_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getBackgroundColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backgroundColor_);
}
if (!getLabelColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, labelColor_);
}
if (!getTextColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, textColor_);
}
if (!getStripColorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, stripColor_);
}
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.Template.Colors)) {
return super.equals(obj);
}
com.passkit.grpc.Template.Colors other = (com.passkit.grpc.Template.Colors) obj;
if (!getBackgroundColor()
.equals(other.getBackgroundColor())) return false;
if (!getLabelColor()
.equals(other.getLabelColor())) return false;
if (!getTextColor()
.equals(other.getTextColor())) return false;
if (!getStripColor()
.equals(other.getStripColor())) 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) + BACKGROUNDCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getBackgroundColor().hashCode();
hash = (37 * hash) + LABELCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getLabelColor().hashCode();
hash = (37 * hash) + TEXTCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getTextColor().hashCode();
hash = (37 * hash) + STRIPCOLOR_FIELD_NUMBER;
hash = (53 * hash) + getStripColor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.Colors parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Colors 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.Template.Colors parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Colors 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.Template.Colors parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Colors parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.Colors parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Colors 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.Template.Colors parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Colors 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.Template.Colors parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Colors 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.Template.Colors 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;
}
/**
*
* Colours take a hexcode input. A '#' prefix is optional.
*
*
* Protobuf type {@code io.Colors}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Colors)
com.passkit.grpc.Template.ColorsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_Colors_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Colors_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Colors.class, com.passkit.grpc.Template.Colors.Builder.class);
}
// Construct using com.passkit.grpc.Template.Colors.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();
backgroundColor_ = "";
labelColor_ = "";
textColor_ = "";
stripColor_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_Colors_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.Colors getDefaultInstanceForType() {
return com.passkit.grpc.Template.Colors.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.Colors build() {
com.passkit.grpc.Template.Colors result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.Colors buildPartial() {
com.passkit.grpc.Template.Colors result = new com.passkit.grpc.Template.Colors(this);
result.backgroundColor_ = backgroundColor_;
result.labelColor_ = labelColor_;
result.textColor_ = textColor_;
result.stripColor_ = stripColor_;
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.Template.Colors) {
return mergeFrom((com.passkit.grpc.Template.Colors)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.Colors other) {
if (other == com.passkit.grpc.Template.Colors.getDefaultInstance()) return this;
if (!other.getBackgroundColor().isEmpty()) {
backgroundColor_ = other.backgroundColor_;
onChanged();
}
if (!other.getLabelColor().isEmpty()) {
labelColor_ = other.labelColor_;
onChanged();
}
if (!other.getTextColor().isEmpty()) {
textColor_ = other.textColor_;
onChanged();
}
if (!other.getStripColor().isEmpty()) {
stripColor_ = other.stripColor_;
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.Template.Colors parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.Colors) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object backgroundColor_ = "";
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @return The backgroundColor.
*/
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
backgroundColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @return The bytes for backgroundColor.
*/
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @param value The backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
backgroundColor_ = value;
onChanged();
return this;
}
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @return This builder for chaining.
*/
public Builder clearBackgroundColor() {
backgroundColor_ = getDefaultInstance().getBackgroundColor();
onChanged();
return this;
}
/**
*
* The background color of the card in hex (e.g. “#ffffff” or "ffffff").
*
*
* string backgroundColor = 1;
* @param value The bytes for backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
backgroundColor_ = value;
onChanged();
return this;
}
private java.lang.Object labelColor_ = "";
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @return The labelColor.
*/
public java.lang.String getLabelColor() {
java.lang.Object ref = labelColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
labelColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @return The bytes for labelColor.
*/
public com.google.protobuf.ByteString
getLabelColorBytes() {
java.lang.Object ref = labelColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
labelColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @param value The labelColor to set.
* @return This builder for chaining.
*/
public Builder setLabelColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
labelColor_ = value;
onChanged();
return this;
}
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @return This builder for chaining.
*/
public Builder clearLabelColor() {
labelColor_ = getDefaultInstance().getLabelColor();
onChanged();
return this;
}
/**
*
* This customises the color of field label of Apple Wallet pass.
*
*
* string labelColor = 2;
* @param value The bytes for labelColor to set.
* @return This builder for chaining.
*/
public Builder setLabelColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
labelColor_ = value;
onChanged();
return this;
}
private java.lang.Object textColor_ = "";
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @return The textColor.
*/
public java.lang.String getTextColor() {
java.lang.Object ref = textColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
textColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @return The bytes for textColor.
*/
public com.google.protobuf.ByteString
getTextColorBytes() {
java.lang.Object ref = textColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @param value The textColor to set.
* @return This builder for chaining.
*/
public Builder setTextColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
textColor_ = value;
onChanged();
return this;
}
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @return This builder for chaining.
*/
public Builder clearTextColor() {
textColor_ = getDefaultInstance().getTextColor();
onChanged();
return this;
}
/**
*
* This customises the color of field text or value of Apple Wallet pass.
*
*
* string textColor = 3;
* @param value The bytes for textColor to set.
* @return This builder for chaining.
*/
public Builder setTextColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
textColor_ = value;
onChanged();
return this;
}
private java.lang.Object stripColor_ = "";
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @return The stripColor.
*/
public java.lang.String getStripColor() {
java.lang.Object ref = stripColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stripColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @return The bytes for stripColor.
*/
public com.google.protobuf.ByteString
getStripColorBytes() {
java.lang.Object ref = stripColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stripColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @param value The stripColor to set.
* @return This builder for chaining.
*/
public Builder setStripColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stripColor_ = value;
onChanged();
return this;
}
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @return This builder for chaining.
*/
public Builder clearStripColor() {
stripColor_ = getDefaultInstance().getStripColor();
onChanged();
return this;
}
/**
*
* Optional undocumented color for text placed over the strip image in Apple Wallet.
*
*
* string stripColor = 4;
* @param value The bytes for stripColor to set.
* @return This builder for chaining.
*/
public Builder setStripColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stripColor_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.Colors)
}
// @@protoc_insertion_point(class_scope:io.Colors)
private static final com.passkit.grpc.Template.Colors DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.Colors();
}
public static com.passkit.grpc.Template.Colors getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Colors parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Colors(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.Template.Colors getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CopyObjectInputOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.CopyObjectInput)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* string newName = 2;
* @return The newName.
*/
java.lang.String getNewName();
/**
* string newName = 2;
* @return The bytes for newName.
*/
com.google.protobuf.ByteString
getNewNameBytes();
}
/**
* Protobuf type {@code io.CopyObjectInput}
*/
public static final class CopyObjectInput extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.CopyObjectInput)
CopyObjectInputOrBuilder {
private static final long serialVersionUID = 0L;
// Use CopyObjectInput.newBuilder() to construct.
private CopyObjectInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CopyObjectInput() {
id_ = "";
newName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CopyObjectInput();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CopyObjectInput(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
newName_ = 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.Template.internal_static_io_CopyObjectInput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_CopyObjectInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.CopyObjectInput.class, com.passkit.grpc.Template.CopyObjectInput.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 NEWNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object newName_;
/**
* string newName = 2;
* @return The newName.
*/
@java.lang.Override
public java.lang.String getNewName() {
java.lang.Object ref = newName_;
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();
newName_ = s;
return s;
}
}
/**
* string newName = 2;
* @return The bytes for newName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNewNameBytes() {
java.lang.Object ref = newName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!getNewNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newName_);
}
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 (!getNewNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newName_);
}
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.Template.CopyObjectInput)) {
return super.equals(obj);
}
com.passkit.grpc.Template.CopyObjectInput other = (com.passkit.grpc.Template.CopyObjectInput) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getNewName()
.equals(other.getNewName())) 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) + NEWNAME_FIELD_NUMBER;
hash = (53 * hash) + getNewName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.CopyObjectInput parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.CopyObjectInput 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.Template.CopyObjectInput parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.CopyObjectInput 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.Template.CopyObjectInput parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.CopyObjectInput parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.CopyObjectInput parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.CopyObjectInput 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.Template.CopyObjectInput parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.CopyObjectInput 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.Template.CopyObjectInput parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.CopyObjectInput 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.Template.CopyObjectInput prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.CopyObjectInput}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.CopyObjectInput)
com.passkit.grpc.Template.CopyObjectInputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_CopyObjectInput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_CopyObjectInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.CopyObjectInput.class, com.passkit.grpc.Template.CopyObjectInput.Builder.class);
}
// Construct using com.passkit.grpc.Template.CopyObjectInput.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_ = "";
newName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_CopyObjectInput_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.CopyObjectInput getDefaultInstanceForType() {
return com.passkit.grpc.Template.CopyObjectInput.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.CopyObjectInput build() {
com.passkit.grpc.Template.CopyObjectInput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.CopyObjectInput buildPartial() {
com.passkit.grpc.Template.CopyObjectInput result = new com.passkit.grpc.Template.CopyObjectInput(this);
result.id_ = id_;
result.newName_ = newName_;
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.Template.CopyObjectInput) {
return mergeFrom((com.passkit.grpc.Template.CopyObjectInput)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.CopyObjectInput other) {
if (other == com.passkit.grpc.Template.CopyObjectInput.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getNewName().isEmpty()) {
newName_ = other.newName_;
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.Template.CopyObjectInput parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.CopyObjectInput) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 newName_ = "";
/**
* string newName = 2;
* @return The newName.
*/
public java.lang.String getNewName() {
java.lang.Object ref = newName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
newName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string newName = 2;
* @return The bytes for newName.
*/
public com.google.protobuf.ByteString
getNewNameBytes() {
java.lang.Object ref = newName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string newName = 2;
* @param value The newName to set.
* @return This builder for chaining.
*/
public Builder setNewName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
newName_ = value;
onChanged();
return this;
}
/**
* string newName = 2;
* @return This builder for chaining.
*/
public Builder clearNewName() {
newName_ = getDefaultInstance().getNewName();
onChanged();
return this;
}
/**
* string newName = 2;
* @param value The bytes for newName to set.
* @return This builder for chaining.
*/
public Builder setNewNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
newName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.CopyObjectInput)
}
// @@protoc_insertion_point(class_scope:io.CopyObjectInput)
private static final com.passkit.grpc.Template.CopyObjectInput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.CopyObjectInput();
}
public static com.passkit.grpc.Template.CopyObjectInput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CopyObjectInput parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CopyObjectInput(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.Template.CopyObjectInput getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NFCOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.NFC)
com.google.protobuf.MessageOrBuilder {
/**
* bool enabled = 1;
* @return The enabled.
*/
boolean getEnabled();
/**
* string certificateId = 2;
* @return The certificateId.
*/
java.lang.String getCertificateId();
/**
* string certificateId = 2;
* @return The bytes for certificateId.
*/
com.google.protobuf.ByteString
getCertificateIdBytes();
/**
* string payload = 3;
* @return The payload.
*/
java.lang.String getPayload();
/**
* string payload = 3;
* @return The bytes for payload.
*/
com.google.protobuf.ByteString
getPayloadBytes();
}
/**
* Protobuf type {@code io.NFC}
*/
public static final class NFC extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.NFC)
NFCOrBuilder {
private static final long serialVersionUID = 0L;
// Use NFC.newBuilder() to construct.
private NFC(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NFC() {
certificateId_ = "";
payload_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NFC();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NFC(
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: {
enabled_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
certificateId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
payload_ = 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.Template.internal_static_io_NFC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_NFC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.NFC.class, com.passkit.grpc.Template.NFC.Builder.class);
}
public static final int ENABLED_FIELD_NUMBER = 1;
private boolean enabled_;
/**
* bool enabled = 1;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int CERTIFICATEID_FIELD_NUMBER = 2;
private volatile java.lang.Object certificateId_;
/**
* string certificateId = 2;
* @return The certificateId.
*/
@java.lang.Override
public java.lang.String getCertificateId() {
java.lang.Object ref = certificateId_;
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();
certificateId_ = s;
return s;
}
}
/**
* string certificateId = 2;
* @return The bytes for certificateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCertificateIdBytes() {
java.lang.Object ref = certificateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYLOAD_FIELD_NUMBER = 3;
private volatile java.lang.Object payload_;
/**
* string payload = 3;
* @return The payload.
*/
@java.lang.Override
public java.lang.String getPayload() {
java.lang.Object ref = payload_;
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();
payload_ = s;
return s;
}
}
/**
* string payload = 3;
* @return The bytes for payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPayloadBytes() {
java.lang.Object ref = payload_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
payload_ = 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 (enabled_ != false) {
output.writeBool(1, enabled_);
}
if (!getCertificateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateId_);
}
if (!getPayloadBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, payload_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, enabled_);
}
if (!getCertificateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateId_);
}
if (!getPayloadBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, payload_);
}
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.Template.NFC)) {
return super.equals(obj);
}
com.passkit.grpc.Template.NFC other = (com.passkit.grpc.Template.NFC) obj;
if (getEnabled()
!= other.getEnabled()) return false;
if (!getCertificateId()
.equals(other.getCertificateId())) return false;
if (!getPayload()
.equals(other.getPayload())) 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) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
hash = (37 * hash) + CERTIFICATEID_FIELD_NUMBER;
hash = (53 * hash) + getCertificateId().hashCode();
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.NFC parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.NFC 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.Template.NFC parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.NFC 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.Template.NFC parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.NFC parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.NFC parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.NFC 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.Template.NFC parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.NFC 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.Template.NFC parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.NFC 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.Template.NFC prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.NFC}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.NFC)
com.passkit.grpc.Template.NFCOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_NFC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_NFC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.NFC.class, com.passkit.grpc.Template.NFC.Builder.class);
}
// Construct using com.passkit.grpc.Template.NFC.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();
enabled_ = false;
certificateId_ = "";
payload_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_NFC_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.NFC getDefaultInstanceForType() {
return com.passkit.grpc.Template.NFC.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.NFC build() {
com.passkit.grpc.Template.NFC result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.NFC buildPartial() {
com.passkit.grpc.Template.NFC result = new com.passkit.grpc.Template.NFC(this);
result.enabled_ = enabled_;
result.certificateId_ = certificateId_;
result.payload_ = payload_;
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.Template.NFC) {
return mergeFrom((com.passkit.grpc.Template.NFC)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.NFC other) {
if (other == com.passkit.grpc.Template.NFC.getDefaultInstance()) return this;
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (!other.getCertificateId().isEmpty()) {
certificateId_ = other.certificateId_;
onChanged();
}
if (!other.getPayload().isEmpty()) {
payload_ = other.payload_;
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.Template.NFC parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.NFC) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 1;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 1;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 1;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private java.lang.Object certificateId_ = "";
/**
* string certificateId = 2;
* @return The certificateId.
*/
public java.lang.String getCertificateId() {
java.lang.Object ref = certificateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
certificateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string certificateId = 2;
* @return The bytes for certificateId.
*/
public com.google.protobuf.ByteString
getCertificateIdBytes() {
java.lang.Object ref = certificateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string certificateId = 2;
* @param value The certificateId to set.
* @return This builder for chaining.
*/
public Builder setCertificateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
certificateId_ = value;
onChanged();
return this;
}
/**
* string certificateId = 2;
* @return This builder for chaining.
*/
public Builder clearCertificateId() {
certificateId_ = getDefaultInstance().getCertificateId();
onChanged();
return this;
}
/**
* string certificateId = 2;
* @param value The bytes for certificateId to set.
* @return This builder for chaining.
*/
public Builder setCertificateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
certificateId_ = value;
onChanged();
return this;
}
private java.lang.Object payload_ = "";
/**
* string payload = 3;
* @return The payload.
*/
public java.lang.String getPayload() {
java.lang.Object ref = payload_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
payload_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string payload = 3;
* @return The bytes for payload.
*/
public com.google.protobuf.ByteString
getPayloadBytes() {
java.lang.Object ref = payload_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
payload_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string payload = 3;
* @param value The payload to set.
* @return This builder for chaining.
*/
public Builder setPayload(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
return this;
}
/**
* string payload = 3;
* @return This builder for chaining.
*/
public Builder clearPayload() {
payload_ = getDefaultInstance().getPayload();
onChanged();
return this;
}
/**
* string payload = 3;
* @param value The bytes for payload to set.
* @return This builder for chaining.
*/
public Builder setPayloadBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
payload_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.NFC)
}
// @@protoc_insertion_point(class_scope:io.NFC)
private static final com.passkit.grpc.Template.NFC DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.NFC();
}
public static com.passkit.grpc.Template.NFC getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NFC parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NFC(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.Template.NFC getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.DataField)
com.google.protobuf.MessageOrBuilder {
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @return The uniqueName.
*/
java.lang.String getUniqueName();
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @return The bytes for uniqueName.
*/
com.google.protobuf.ByteString
getUniqueNameBytes();
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @return The templateId.
*/
java.lang.String getTemplateId();
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @return The bytes for templateId.
*/
com.google.protobuf.ByteString
getTemplateIdBytes();
/**
* .io.FieldType fieldType = 3;
* @return The enum numeric value on the wire for fieldType.
*/
int getFieldTypeValue();
/**
* .io.FieldType fieldType = 3;
* @return The fieldType.
*/
com.passkit.grpc.Template.FieldType getFieldType();
/**
*
* If set true, the field is mandatory. If set false, the field is optional.
*
*
* bool isRequired = 4;
* @return The isRequired.
*/
boolean getIsRequired();
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @return The label.
*/
java.lang.String getLabel();
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @return The bytes for label.
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
* @return Whether the localizedLabel field is set.
*/
boolean hasLocalizedLabel();
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
* @return The localizedLabel.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedLabel();
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLabelOrBuilder();
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @return The enum numeric value on the wire for dataType.
*/
int getDataTypeValue();
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @return The dataType.
*/
com.passkit.grpc.Template.DataType getDataType();
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @return The defaultValue.
*/
java.lang.String getDefaultValue();
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @return The bytes for defaultValue.
*/
com.google.protobuf.ByteString
getDefaultValueBytes();
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
* @return Whether the localizedDefaultValue field is set.
*/
boolean hasLocalizedDefaultValue();
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
* @return The localizedDefaultValue.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedDefaultValue();
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDefaultValueOrBuilder();
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @return The validation.
*/
java.lang.String getValidation();
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @return The bytes for validation.
*/
com.google.protobuf.ByteString
getValidationBytes();
/**
*
* If false, a defaultValue or listOptions[0] will be used.
*
*
* bool userCanSetValue = 11;
* @return The userCanSetValue.
*/
boolean getUserCanSetValue();
/**
*
* The currency code (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @return The currencyCode.
*/
java.lang.String getCurrencyCode();
/**
*
* The currency code (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @return The bytes for currencyCode.
*/
com.google.protobuf.ByteString
getCurrencyCodeBytes();
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
* @return Whether the appleWalletFieldRenderOptions field is set.
*/
boolean hasAppleWalletFieldRenderOptions();
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
* @return The appleWalletFieldRenderOptions.
*/
com.passkit.grpc.Template.AppleWalletFieldRenderOptions getAppleWalletFieldRenderOptions();
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
com.passkit.grpc.Template.AppleWalletFieldRenderOptionsOrBuilder getAppleWalletFieldRenderOptionsOrBuilder();
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
* @return Whether the dataCollectionFieldRenderOptions field is set.
*/
boolean hasDataCollectionFieldRenderOptions();
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
* @return The dataCollectionFieldRenderOptions.
*/
com.passkit.grpc.Template.DataCollectionFieldRenderOptions getDataCollectionFieldRenderOptions();
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
com.passkit.grpc.Template.DataCollectionFieldRenderOptionsOrBuilder getDataCollectionFieldRenderOptionsOrBuilder();
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return A list containing the usage.
*/
java.util.List getUsageList();
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return The count of usage.
*/
int getUsageCount();
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index of the element to return.
* @return The usage at the given index.
*/
com.passkit.grpc.CommonObjects.UsageType getUsage(int index);
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return A list containing the enum numeric values on the wire for usage.
*/
java.util.List
getUsageValueList();
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of usage at the given index.
*/
int getUsageValue(int index);
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
* @return Whether the googlePayFieldRenderOptions field is set.
*/
boolean hasGooglePayFieldRenderOptions();
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
* @return The googlePayFieldRenderOptions.
*/
com.passkit.grpc.Template.GooglePayFieldRenderOptions getGooglePayFieldRenderOptions();
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
com.passkit.grpc.Template.GooglePayFieldRenderOptionsOrBuilder getGooglePayFieldRenderOptionsOrBuilder();
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @return The defaultTelCountryCode.
*/
java.lang.String getDefaultTelCountryCode();
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @return The bytes for defaultTelCountryCode.
*/
com.google.protobuf.ByteString
getDefaultTelCountryCodeBytes();
}
/**
*
* Data Field allows you to define set of data you store against each pass holder.
* When data field is created, DataField for Terms & Conditions and optIn will be autogenerated.
*
*
* Protobuf type {@code io.DataField}
*/
public static final class DataField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.DataField)
DataFieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataField.newBuilder() to construct.
private DataField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataField() {
uniqueName_ = "";
templateId_ = "";
fieldType_ = 0;
label_ = "";
dataType_ = 0;
defaultValue_ = "";
validation_ = "";
currencyCode_ = "";
usage_ = java.util.Collections.emptyList();
defaultTelCountryCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataField();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataField(
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();
uniqueName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
templateId_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
fieldType_ = rawValue;
break;
}
case 32: {
isRequired_ = input.readBool();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
break;
}
case 50: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedLabel_ != null) {
subBuilder = localizedLabel_.toBuilder();
}
localizedLabel_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedLabel_);
localizedLabel_ = subBuilder.buildPartial();
}
break;
}
case 56: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
defaultValue_ = s;
break;
}
case 74: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedDefaultValue_ != null) {
subBuilder = localizedDefaultValue_.toBuilder();
}
localizedDefaultValue_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedDefaultValue_);
localizedDefaultValue_ = subBuilder.buildPartial();
}
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
validation_ = s;
break;
}
case 88: {
userCanSetValue_ = input.readBool();
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
currencyCode_ = s;
break;
}
case 106: {
com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder subBuilder = null;
if (appleWalletFieldRenderOptions_ != null) {
subBuilder = appleWalletFieldRenderOptions_.toBuilder();
}
appleWalletFieldRenderOptions_ = input.readMessage(com.passkit.grpc.Template.AppleWalletFieldRenderOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(appleWalletFieldRenderOptions_);
appleWalletFieldRenderOptions_ = subBuilder.buildPartial();
}
break;
}
case 114: {
com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder subBuilder = null;
if (dataCollectionFieldRenderOptions_ != null) {
subBuilder = dataCollectionFieldRenderOptions_.toBuilder();
}
dataCollectionFieldRenderOptions_ = input.readMessage(com.passkit.grpc.Template.DataCollectionFieldRenderOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataCollectionFieldRenderOptions_);
dataCollectionFieldRenderOptions_ = subBuilder.buildPartial();
}
break;
}
case 120: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
usage_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
usage_.add(rawValue);
break;
}
case 122: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
usage_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
usage_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 130: {
com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder subBuilder = null;
if (googlePayFieldRenderOptions_ != null) {
subBuilder = googlePayFieldRenderOptions_.toBuilder();
}
googlePayFieldRenderOptions_ = input.readMessage(com.passkit.grpc.Template.GooglePayFieldRenderOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(googlePayFieldRenderOptions_);
googlePayFieldRenderOptions_ = subBuilder.buildPartial();
}
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
defaultTelCountryCode_ = 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)) {
usage_ = java.util.Collections.unmodifiableList(usage_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_DataField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DataField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DataField.class, com.passkit.grpc.Template.DataField.Builder.class);
}
public static final int UNIQUENAME_FIELD_NUMBER = 1;
private volatile java.lang.Object uniqueName_;
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @return The uniqueName.
*/
@java.lang.Override
public java.lang.String getUniqueName() {
java.lang.Object ref = uniqueName_;
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();
uniqueName_ = s;
return s;
}
}
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @return The bytes for uniqueName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUniqueNameBytes() {
java.lang.Object ref = uniqueName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uniqueName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEMPLATEID_FIELD_NUMBER = 2;
private volatile java.lang.Object templateId_;
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @return The templateId.
*/
@java.lang.Override
public java.lang.String getTemplateId() {
java.lang.Object ref = templateId_;
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();
templateId_ = s;
return s;
}
}
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @return The bytes for templateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTemplateIdBytes() {
java.lang.Object ref = templateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
templateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELDTYPE_FIELD_NUMBER = 3;
private int fieldType_;
/**
* .io.FieldType fieldType = 3;
* @return The enum numeric value on the wire for fieldType.
*/
@java.lang.Override public int getFieldTypeValue() {
return fieldType_;
}
/**
* .io.FieldType fieldType = 3;
* @return The fieldType.
*/
@java.lang.Override public com.passkit.grpc.Template.FieldType getFieldType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.FieldType result = com.passkit.grpc.Template.FieldType.valueOf(fieldType_);
return result == null ? com.passkit.grpc.Template.FieldType.UNRECOGNIZED : result;
}
public static final int ISREQUIRED_FIELD_NUMBER = 4;
private boolean isRequired_;
/**
*
* If set true, the field is mandatory. If set false, the field is optional.
*
*
* bool isRequired = 4;
* @return The isRequired.
*/
@java.lang.Override
public boolean getIsRequired() {
return isRequired_;
}
public static final int LABEL_FIELD_NUMBER = 5;
private volatile java.lang.Object label_;
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @return The label.
*/
@java.lang.Override
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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();
label_ = s;
return s;
}
}
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @return The bytes for label.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDLABEL_FIELD_NUMBER = 6;
private com.passkit.grpc.Localization.LocalizedString localizedLabel_;
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
* @return Whether the localizedLabel field is set.
*/
@java.lang.Override
public boolean hasLocalizedLabel() {
return localizedLabel_ != null;
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
* @return The localizedLabel.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedLabel() {
return localizedLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLabel_;
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLabelOrBuilder() {
return getLocalizedLabel();
}
public static final int DATATYPE_FIELD_NUMBER = 7;
private int dataType_;
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @return The enum numeric value on the wire for dataType.
*/
@java.lang.Override public int getDataTypeValue() {
return dataType_;
}
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @return The dataType.
*/
@java.lang.Override public com.passkit.grpc.Template.DataType getDataType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.DataType result = com.passkit.grpc.Template.DataType.valueOf(dataType_);
return result == null ? com.passkit.grpc.Template.DataType.UNRECOGNIZED : result;
}
public static final int DEFAULTVALUE_FIELD_NUMBER = 8;
private volatile java.lang.Object defaultValue_;
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @return The defaultValue.
*/
@java.lang.Override
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
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();
defaultValue_ = s;
return s;
}
}
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @return The bytes for defaultValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultValueBytes() {
java.lang.Object ref = defaultValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDDEFAULTVALUE_FIELD_NUMBER = 9;
private com.passkit.grpc.Localization.LocalizedString localizedDefaultValue_;
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
* @return Whether the localizedDefaultValue field is set.
*/
@java.lang.Override
public boolean hasLocalizedDefaultValue() {
return localizedDefaultValue_ != null;
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
* @return The localizedDefaultValue.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedDefaultValue() {
return localizedDefaultValue_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDefaultValue_;
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDefaultValueOrBuilder() {
return getLocalizedDefaultValue();
}
public static final int VALIDATION_FIELD_NUMBER = 10;
private volatile java.lang.Object validation_;
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @return The validation.
*/
@java.lang.Override
public java.lang.String getValidation() {
java.lang.Object ref = validation_;
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();
validation_ = s;
return s;
}
}
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @return The bytes for validation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValidationBytes() {
java.lang.Object ref = validation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USERCANSETVALUE_FIELD_NUMBER = 11;
private boolean userCanSetValue_;
/**
*
* If false, a defaultValue or listOptions[0] will be used.
*
*
* bool userCanSetValue = 11;
* @return The userCanSetValue.
*/
@java.lang.Override
public boolean getUserCanSetValue() {
return userCanSetValue_;
}
public static final int CURRENCYCODE_FIELD_NUMBER = 12;
private volatile java.lang.Object currencyCode_;
/**
*
* The currency code (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @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 (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @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;
}
}
public static final int APPLEWALLETFIELDRENDEROPTIONS_FIELD_NUMBER = 13;
private com.passkit.grpc.Template.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions_;
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
* @return Whether the appleWalletFieldRenderOptions field is set.
*/
@java.lang.Override
public boolean hasAppleWalletFieldRenderOptions() {
return appleWalletFieldRenderOptions_ != null;
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
* @return The appleWalletFieldRenderOptions.
*/
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletFieldRenderOptions getAppleWalletFieldRenderOptions() {
return appleWalletFieldRenderOptions_ == null ? com.passkit.grpc.Template.AppleWalletFieldRenderOptions.getDefaultInstance() : appleWalletFieldRenderOptions_;
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletFieldRenderOptionsOrBuilder getAppleWalletFieldRenderOptionsOrBuilder() {
return getAppleWalletFieldRenderOptions();
}
public static final int DATACOLLECTIONFIELDRENDEROPTIONS_FIELD_NUMBER = 14;
private com.passkit.grpc.Template.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions_;
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
* @return Whether the dataCollectionFieldRenderOptions field is set.
*/
@java.lang.Override
public boolean hasDataCollectionFieldRenderOptions() {
return dataCollectionFieldRenderOptions_ != null;
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
* @return The dataCollectionFieldRenderOptions.
*/
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionFieldRenderOptions getDataCollectionFieldRenderOptions() {
return dataCollectionFieldRenderOptions_ == null ? com.passkit.grpc.Template.DataCollectionFieldRenderOptions.getDefaultInstance() : dataCollectionFieldRenderOptions_;
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionFieldRenderOptionsOrBuilder getDataCollectionFieldRenderOptionsOrBuilder() {
return getDataCollectionFieldRenderOptions();
}
public static final int USAGE_FIELD_NUMBER = 15;
private java.util.List usage_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.CommonObjects.UsageType> usage_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.CommonObjects.UsageType>() {
public com.passkit.grpc.CommonObjects.UsageType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.CommonObjects.UsageType result = com.passkit.grpc.CommonObjects.UsageType.valueOf(from);
return result == null ? com.passkit.grpc.CommonObjects.UsageType.UNRECOGNIZED : result;
}
};
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return A list containing the usage.
*/
@java.lang.Override
public java.util.List getUsageList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.CommonObjects.UsageType>(usage_, usage_converter_);
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return The count of usage.
*/
@java.lang.Override
public int getUsageCount() {
return usage_.size();
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index of the element to return.
* @return The usage at the given index.
*/
@java.lang.Override
public com.passkit.grpc.CommonObjects.UsageType getUsage(int index) {
return usage_converter_.convert(usage_.get(index));
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return A list containing the enum numeric values on the wire for usage.
*/
@java.lang.Override
public java.util.List
getUsageValueList() {
return usage_;
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of usage at the given index.
*/
@java.lang.Override
public int getUsageValue(int index) {
return usage_.get(index);
}
private int usageMemoizedSerializedSize;
public static final int GOOGLEPAYFIELDRENDEROPTIONS_FIELD_NUMBER = 16;
private com.passkit.grpc.Template.GooglePayFieldRenderOptions googlePayFieldRenderOptions_;
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
* @return Whether the googlePayFieldRenderOptions field is set.
*/
@java.lang.Override
public boolean hasGooglePayFieldRenderOptions() {
return googlePayFieldRenderOptions_ != null;
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
* @return The googlePayFieldRenderOptions.
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayFieldRenderOptions getGooglePayFieldRenderOptions() {
return googlePayFieldRenderOptions_ == null ? com.passkit.grpc.Template.GooglePayFieldRenderOptions.getDefaultInstance() : googlePayFieldRenderOptions_;
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayFieldRenderOptionsOrBuilder getGooglePayFieldRenderOptionsOrBuilder() {
return getGooglePayFieldRenderOptions();
}
public static final int DEFAULTTELCOUNTRYCODE_FIELD_NUMBER = 17;
private volatile java.lang.Object defaultTelCountryCode_;
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @return The defaultTelCountryCode.
*/
@java.lang.Override
public java.lang.String getDefaultTelCountryCode() {
java.lang.Object ref = defaultTelCountryCode_;
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();
defaultTelCountryCode_ = s;
return s;
}
}
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @return The bytes for defaultTelCountryCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultTelCountryCodeBytes() {
java.lang.Object ref = defaultTelCountryCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultTelCountryCode_ = 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 (!getUniqueNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uniqueName_);
}
if (!getTemplateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, templateId_);
}
if (fieldType_ != com.passkit.grpc.Template.FieldType.FIELD_TYPE_NONE.getNumber()) {
output.writeEnum(3, fieldType_);
}
if (isRequired_ != false) {
output.writeBool(4, isRequired_);
}
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, label_);
}
if (localizedLabel_ != null) {
output.writeMessage(6, getLocalizedLabel());
}
if (dataType_ != com.passkit.grpc.Template.DataType.DATA_TYPE_NONE.getNumber()) {
output.writeEnum(7, dataType_);
}
if (!getDefaultValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, defaultValue_);
}
if (localizedDefaultValue_ != null) {
output.writeMessage(9, getLocalizedDefaultValue());
}
if (!getValidationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, validation_);
}
if (userCanSetValue_ != false) {
output.writeBool(11, userCanSetValue_);
}
if (!getCurrencyCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, currencyCode_);
}
if (appleWalletFieldRenderOptions_ != null) {
output.writeMessage(13, getAppleWalletFieldRenderOptions());
}
if (dataCollectionFieldRenderOptions_ != null) {
output.writeMessage(14, getDataCollectionFieldRenderOptions());
}
if (getUsageList().size() > 0) {
output.writeUInt32NoTag(122);
output.writeUInt32NoTag(usageMemoizedSerializedSize);
}
for (int i = 0; i < usage_.size(); i++) {
output.writeEnumNoTag(usage_.get(i));
}
if (googlePayFieldRenderOptions_ != null) {
output.writeMessage(16, getGooglePayFieldRenderOptions());
}
if (!getDefaultTelCountryCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, defaultTelCountryCode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUniqueNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uniqueName_);
}
if (!getTemplateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, templateId_);
}
if (fieldType_ != com.passkit.grpc.Template.FieldType.FIELD_TYPE_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, fieldType_);
}
if (isRequired_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isRequired_);
}
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, label_);
}
if (localizedLabel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getLocalizedLabel());
}
if (dataType_ != com.passkit.grpc.Template.DataType.DATA_TYPE_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, dataType_);
}
if (!getDefaultValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, defaultValue_);
}
if (localizedDefaultValue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getLocalizedDefaultValue());
}
if (!getValidationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, validation_);
}
if (userCanSetValue_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, userCanSetValue_);
}
if (!getCurrencyCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currencyCode_);
}
if (appleWalletFieldRenderOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getAppleWalletFieldRenderOptions());
}
if (dataCollectionFieldRenderOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getDataCollectionFieldRenderOptions());
}
{
int dataSize = 0;
for (int i = 0; i < usage_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(usage_.get(i));
}
size += dataSize;
if (!getUsageList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}usageMemoizedSerializedSize = dataSize;
}
if (googlePayFieldRenderOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getGooglePayFieldRenderOptions());
}
if (!getDefaultTelCountryCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, defaultTelCountryCode_);
}
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.Template.DataField)) {
return super.equals(obj);
}
com.passkit.grpc.Template.DataField other = (com.passkit.grpc.Template.DataField) obj;
if (!getUniqueName()
.equals(other.getUniqueName())) return false;
if (!getTemplateId()
.equals(other.getTemplateId())) return false;
if (fieldType_ != other.fieldType_) return false;
if (getIsRequired()
!= other.getIsRequired()) return false;
if (!getLabel()
.equals(other.getLabel())) return false;
if (hasLocalizedLabel() != other.hasLocalizedLabel()) return false;
if (hasLocalizedLabel()) {
if (!getLocalizedLabel()
.equals(other.getLocalizedLabel())) return false;
}
if (dataType_ != other.dataType_) return false;
if (!getDefaultValue()
.equals(other.getDefaultValue())) return false;
if (hasLocalizedDefaultValue() != other.hasLocalizedDefaultValue()) return false;
if (hasLocalizedDefaultValue()) {
if (!getLocalizedDefaultValue()
.equals(other.getLocalizedDefaultValue())) return false;
}
if (!getValidation()
.equals(other.getValidation())) return false;
if (getUserCanSetValue()
!= other.getUserCanSetValue()) return false;
if (!getCurrencyCode()
.equals(other.getCurrencyCode())) return false;
if (hasAppleWalletFieldRenderOptions() != other.hasAppleWalletFieldRenderOptions()) return false;
if (hasAppleWalletFieldRenderOptions()) {
if (!getAppleWalletFieldRenderOptions()
.equals(other.getAppleWalletFieldRenderOptions())) return false;
}
if (hasDataCollectionFieldRenderOptions() != other.hasDataCollectionFieldRenderOptions()) return false;
if (hasDataCollectionFieldRenderOptions()) {
if (!getDataCollectionFieldRenderOptions()
.equals(other.getDataCollectionFieldRenderOptions())) return false;
}
if (!usage_.equals(other.usage_)) return false;
if (hasGooglePayFieldRenderOptions() != other.hasGooglePayFieldRenderOptions()) return false;
if (hasGooglePayFieldRenderOptions()) {
if (!getGooglePayFieldRenderOptions()
.equals(other.getGooglePayFieldRenderOptions())) return false;
}
if (!getDefaultTelCountryCode()
.equals(other.getDefaultTelCountryCode())) 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) + UNIQUENAME_FIELD_NUMBER;
hash = (53 * hash) + getUniqueName().hashCode();
hash = (37 * hash) + TEMPLATEID_FIELD_NUMBER;
hash = (53 * hash) + getTemplateId().hashCode();
hash = (37 * hash) + FIELDTYPE_FIELD_NUMBER;
hash = (53 * hash) + fieldType_;
hash = (37 * hash) + ISREQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsRequired());
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
if (hasLocalizedLabel()) {
hash = (37 * hash) + LOCALIZEDLABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedLabel().hashCode();
}
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + dataType_;
hash = (37 * hash) + DEFAULTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultValue().hashCode();
if (hasLocalizedDefaultValue()) {
hash = (37 * hash) + LOCALIZEDDEFAULTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedDefaultValue().hashCode();
}
hash = (37 * hash) + VALIDATION_FIELD_NUMBER;
hash = (53 * hash) + getValidation().hashCode();
hash = (37 * hash) + USERCANSETVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUserCanSetValue());
hash = (37 * hash) + CURRENCYCODE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyCode().hashCode();
if (hasAppleWalletFieldRenderOptions()) {
hash = (37 * hash) + APPLEWALLETFIELDRENDEROPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getAppleWalletFieldRenderOptions().hashCode();
}
if (hasDataCollectionFieldRenderOptions()) {
hash = (37 * hash) + DATACOLLECTIONFIELDRENDEROPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getDataCollectionFieldRenderOptions().hashCode();
}
if (getUsageCount() > 0) {
hash = (37 * hash) + USAGE_FIELD_NUMBER;
hash = (53 * hash) + usage_.hashCode();
}
if (hasGooglePayFieldRenderOptions()) {
hash = (37 * hash) + GOOGLEPAYFIELDRENDEROPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getGooglePayFieldRenderOptions().hashCode();
}
hash = (37 * hash) + DEFAULTTELCOUNTRYCODE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultTelCountryCode().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.DataField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataField 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.Template.DataField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataField 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.Template.DataField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataField parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.DataField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataField 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.Template.DataField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataField 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.Template.DataField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataField 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.Template.DataField 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;
}
/**
*
* Data Field allows you to define set of data you store against each pass holder.
* When data field is created, DataField for Terms & Conditions and optIn will be autogenerated.
*
*
* Protobuf type {@code io.DataField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.DataField)
com.passkit.grpc.Template.DataFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_DataField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DataField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DataField.class, com.passkit.grpc.Template.DataField.Builder.class);
}
// Construct using com.passkit.grpc.Template.DataField.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();
uniqueName_ = "";
templateId_ = "";
fieldType_ = 0;
isRequired_ = false;
label_ = "";
if (localizedLabelBuilder_ == null) {
localizedLabel_ = null;
} else {
localizedLabel_ = null;
localizedLabelBuilder_ = null;
}
dataType_ = 0;
defaultValue_ = "";
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValue_ = null;
} else {
localizedDefaultValue_ = null;
localizedDefaultValueBuilder_ = null;
}
validation_ = "";
userCanSetValue_ = false;
currencyCode_ = "";
if (appleWalletFieldRenderOptionsBuilder_ == null) {
appleWalletFieldRenderOptions_ = null;
} else {
appleWalletFieldRenderOptions_ = null;
appleWalletFieldRenderOptionsBuilder_ = null;
}
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
dataCollectionFieldRenderOptions_ = null;
} else {
dataCollectionFieldRenderOptions_ = null;
dataCollectionFieldRenderOptionsBuilder_ = null;
}
usage_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (googlePayFieldRenderOptionsBuilder_ == null) {
googlePayFieldRenderOptions_ = null;
} else {
googlePayFieldRenderOptions_ = null;
googlePayFieldRenderOptionsBuilder_ = null;
}
defaultTelCountryCode_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_DataField_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.DataField getDefaultInstanceForType() {
return com.passkit.grpc.Template.DataField.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.DataField build() {
com.passkit.grpc.Template.DataField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.DataField buildPartial() {
com.passkit.grpc.Template.DataField result = new com.passkit.grpc.Template.DataField(this);
int from_bitField0_ = bitField0_;
result.uniqueName_ = uniqueName_;
result.templateId_ = templateId_;
result.fieldType_ = fieldType_;
result.isRequired_ = isRequired_;
result.label_ = label_;
if (localizedLabelBuilder_ == null) {
result.localizedLabel_ = localizedLabel_;
} else {
result.localizedLabel_ = localizedLabelBuilder_.build();
}
result.dataType_ = dataType_;
result.defaultValue_ = defaultValue_;
if (localizedDefaultValueBuilder_ == null) {
result.localizedDefaultValue_ = localizedDefaultValue_;
} else {
result.localizedDefaultValue_ = localizedDefaultValueBuilder_.build();
}
result.validation_ = validation_;
result.userCanSetValue_ = userCanSetValue_;
result.currencyCode_ = currencyCode_;
if (appleWalletFieldRenderOptionsBuilder_ == null) {
result.appleWalletFieldRenderOptions_ = appleWalletFieldRenderOptions_;
} else {
result.appleWalletFieldRenderOptions_ = appleWalletFieldRenderOptionsBuilder_.build();
}
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
result.dataCollectionFieldRenderOptions_ = dataCollectionFieldRenderOptions_;
} else {
result.dataCollectionFieldRenderOptions_ = dataCollectionFieldRenderOptionsBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
usage_ = java.util.Collections.unmodifiableList(usage_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.usage_ = usage_;
if (googlePayFieldRenderOptionsBuilder_ == null) {
result.googlePayFieldRenderOptions_ = googlePayFieldRenderOptions_;
} else {
result.googlePayFieldRenderOptions_ = googlePayFieldRenderOptionsBuilder_.build();
}
result.defaultTelCountryCode_ = defaultTelCountryCode_;
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.Template.DataField) {
return mergeFrom((com.passkit.grpc.Template.DataField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.DataField other) {
if (other == com.passkit.grpc.Template.DataField.getDefaultInstance()) return this;
if (!other.getUniqueName().isEmpty()) {
uniqueName_ = other.uniqueName_;
onChanged();
}
if (!other.getTemplateId().isEmpty()) {
templateId_ = other.templateId_;
onChanged();
}
if (other.fieldType_ != 0) {
setFieldTypeValue(other.getFieldTypeValue());
}
if (other.getIsRequired() != false) {
setIsRequired(other.getIsRequired());
}
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
if (other.hasLocalizedLabel()) {
mergeLocalizedLabel(other.getLocalizedLabel());
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
if (!other.getDefaultValue().isEmpty()) {
defaultValue_ = other.defaultValue_;
onChanged();
}
if (other.hasLocalizedDefaultValue()) {
mergeLocalizedDefaultValue(other.getLocalizedDefaultValue());
}
if (!other.getValidation().isEmpty()) {
validation_ = other.validation_;
onChanged();
}
if (other.getUserCanSetValue() != false) {
setUserCanSetValue(other.getUserCanSetValue());
}
if (!other.getCurrencyCode().isEmpty()) {
currencyCode_ = other.currencyCode_;
onChanged();
}
if (other.hasAppleWalletFieldRenderOptions()) {
mergeAppleWalletFieldRenderOptions(other.getAppleWalletFieldRenderOptions());
}
if (other.hasDataCollectionFieldRenderOptions()) {
mergeDataCollectionFieldRenderOptions(other.getDataCollectionFieldRenderOptions());
}
if (!other.usage_.isEmpty()) {
if (usage_.isEmpty()) {
usage_ = other.usage_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUsageIsMutable();
usage_.addAll(other.usage_);
}
onChanged();
}
if (other.hasGooglePayFieldRenderOptions()) {
mergeGooglePayFieldRenderOptions(other.getGooglePayFieldRenderOptions());
}
if (!other.getDefaultTelCountryCode().isEmpty()) {
defaultTelCountryCode_ = other.defaultTelCountryCode_;
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.Template.DataField parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.DataField) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object uniqueName_ = "";
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @return The uniqueName.
*/
public java.lang.String getUniqueName() {
java.lang.Object ref = uniqueName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uniqueName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @return The bytes for uniqueName.
*/
public com.google.protobuf.ByteString
getUniqueNameBytes() {
java.lang.Object ref = uniqueName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uniqueName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @param value The uniqueName to set.
* @return This builder for chaining.
*/
public Builder setUniqueName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uniqueName_ = value;
onChanged();
return this;
}
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @return This builder for chaining.
*/
public Builder clearUniqueName() {
uniqueName_ = getDefaultInstance().getUniqueName();
onChanged();
return this;
}
/**
*
* If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
* Else, uniqueName (key) and value are stored under meta object.
*
*
* string uniqueName = 1;
* @param value The bytes for uniqueName to set.
* @return This builder for chaining.
*/
public Builder setUniqueNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uniqueName_ = value;
onChanged();
return this;
}
private java.lang.Object templateId_ = "";
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @return The templateId.
*/
public java.lang.String getTemplateId() {
java.lang.Object ref = templateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
templateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @return The bytes for templateId.
*/
public com.google.protobuf.ByteString
getTemplateIdBytes() {
java.lang.Object ref = templateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
templateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @param value The templateId to set.
* @return This builder for chaining.
*/
public Builder setTemplateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
templateId_ = value;
onChanged();
return this;
}
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @return This builder for chaining.
*/
public Builder clearTemplateId() {
templateId_ = getDefaultInstance().getTemplateId();
onChanged();
return this;
}
/**
*
* The template id which this field belongs to.
*
*
* string templateId = 2;
* @param value The bytes for templateId to set.
* @return This builder for chaining.
*/
public Builder setTemplateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
templateId_ = value;
onChanged();
return this;
}
private int fieldType_ = 0;
/**
* .io.FieldType fieldType = 3;
* @return The enum numeric value on the wire for fieldType.
*/
@java.lang.Override public int getFieldTypeValue() {
return fieldType_;
}
/**
* .io.FieldType fieldType = 3;
* @param value The enum numeric value on the wire for fieldType to set.
* @return This builder for chaining.
*/
public Builder setFieldTypeValue(int value) {
fieldType_ = value;
onChanged();
return this;
}
/**
* .io.FieldType fieldType = 3;
* @return The fieldType.
*/
@java.lang.Override
public com.passkit.grpc.Template.FieldType getFieldType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.FieldType result = com.passkit.grpc.Template.FieldType.valueOf(fieldType_);
return result == null ? com.passkit.grpc.Template.FieldType.UNRECOGNIZED : result;
}
/**
* .io.FieldType fieldType = 3;
* @param value The fieldType to set.
* @return This builder for chaining.
*/
public Builder setFieldType(com.passkit.grpc.Template.FieldType value) {
if (value == null) {
throw new NullPointerException();
}
fieldType_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.FieldType fieldType = 3;
* @return This builder for chaining.
*/
public Builder clearFieldType() {
fieldType_ = 0;
onChanged();
return this;
}
private boolean isRequired_ ;
/**
*
* If set true, the field is mandatory. If set false, the field is optional.
*
*
* bool isRequired = 4;
* @return The isRequired.
*/
@java.lang.Override
public boolean getIsRequired() {
return isRequired_;
}
/**
*
* If set true, the field is mandatory. If set false, the field is optional.
*
*
* bool isRequired = 4;
* @param value The isRequired to set.
* @return This builder for chaining.
*/
public Builder setIsRequired(boolean value) {
isRequired_ = value;
onChanged();
return this;
}
/**
*
* If set true, the field is mandatory. If set false, the field is optional.
*
*
* bool isRequired = 4;
* @return This builder for chaining.
*/
public Builder clearIsRequired() {
isRequired_ = false;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @return The label.
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @return The bytes for label.
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @return This builder for chaining.
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
*
* A text used for the data collection field label and pass field title.
*
*
* string label = 5;
* @param value The bytes for label to set.
* @return This builder for chaining.
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedLabel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedLabelBuilder_;
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
* @return Whether the localizedLabel field is set.
*/
public boolean hasLocalizedLabel() {
return localizedLabelBuilder_ != null || localizedLabel_ != null;
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
* @return The localizedLabel.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedLabel() {
if (localizedLabelBuilder_ == null) {
return localizedLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLabel_;
} else {
return localizedLabelBuilder_.getMessage();
}
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
public Builder setLocalizedLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedLabel_ = value;
onChanged();
} else {
localizedLabelBuilder_.setMessage(value);
}
return this;
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
public Builder setLocalizedLabel(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedLabelBuilder_ == null) {
localizedLabel_ = builderForValue.build();
onChanged();
} else {
localizedLabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
public Builder mergeLocalizedLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLabelBuilder_ == null) {
if (localizedLabel_ != null) {
localizedLabel_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedLabel_).mergeFrom(value).buildPartial();
} else {
localizedLabel_ = value;
}
onChanged();
} else {
localizedLabelBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
public Builder clearLocalizedLabel() {
if (localizedLabelBuilder_ == null) {
localizedLabel_ = null;
onChanged();
} else {
localizedLabel_ = null;
localizedLabelBuilder_ = null;
}
return this;
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedLabelBuilder() {
onChanged();
return getLocalizedLabelFieldBuilder().getBuilder();
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLabelOrBuilder() {
if (localizedLabelBuilder_ != null) {
return localizedLabelBuilder_.getMessageOrBuilder();
} else {
return localizedLabel_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLabel_;
}
}
/**
*
* This translates label text into different language.
*
*
* .io.LocalizedString localizedLabel = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedLabelFieldBuilder() {
if (localizedLabelBuilder_ == null) {
localizedLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedLabel(),
getParentForChildren(),
isClean());
localizedLabel_ = null;
}
return localizedLabelBuilder_;
}
private int dataType_ = 0;
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @return The enum numeric value on the wire for dataType.
*/
@java.lang.Override public int getDataTypeValue() {
return dataType_;
}
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @param value The enum numeric value on the wire for dataType to set.
* @return This builder for chaining.
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @return The dataType.
*/
@java.lang.Override
public com.passkit.grpc.Template.DataType getDataType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.DataType result = com.passkit.grpc.Template.DataType.valueOf(dataType_);
return result == null ? com.passkit.grpc.Template.DataType.UNRECOGNIZED : result;
}
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @param value The dataType to set.
* @return This builder for chaining.
*/
public Builder setDataType(com.passkit.grpc.Template.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Data type you want to receive from your users.
*
*
* .io.DataType dataType = 7;
* @return This builder for chaining.
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
private java.lang.Object defaultValue_ = "";
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @return The defaultValue.
*/
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @return The bytes for defaultValue.
*/
public com.google.protobuf.ByteString
getDefaultValueBytes() {
java.lang.Object ref = defaultValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @param value The defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultValue_ = value;
onChanged();
return this;
}
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @return This builder for chaining.
*/
public Builder clearDefaultValue() {
defaultValue_ = getDefaultInstance().getDefaultValue();
onChanged();
return this;
}
/**
*
* An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
*
*
* string defaultValue = 8;
* @param value The bytes for defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultValue_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedDefaultValue_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedDefaultValueBuilder_;
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
* @return Whether the localizedDefaultValue field is set.
*/
public boolean hasLocalizedDefaultValue() {
return localizedDefaultValueBuilder_ != null || localizedDefaultValue_ != null;
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
* @return The localizedDefaultValue.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedDefaultValue() {
if (localizedDefaultValueBuilder_ == null) {
return localizedDefaultValue_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDefaultValue_;
} else {
return localizedDefaultValueBuilder_.getMessage();
}
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
public Builder setLocalizedDefaultValue(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDefaultValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedDefaultValue_ = value;
onChanged();
} else {
localizedDefaultValueBuilder_.setMessage(value);
}
return this;
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
public Builder setLocalizedDefaultValue(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValue_ = builderForValue.build();
onChanged();
} else {
localizedDefaultValueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
public Builder mergeLocalizedDefaultValue(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDefaultValueBuilder_ == null) {
if (localizedDefaultValue_ != null) {
localizedDefaultValue_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedDefaultValue_).mergeFrom(value).buildPartial();
} else {
localizedDefaultValue_ = value;
}
onChanged();
} else {
localizedDefaultValueBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
public Builder clearLocalizedDefaultValue() {
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValue_ = null;
onChanged();
} else {
localizedDefaultValue_ = null;
localizedDefaultValueBuilder_ = null;
}
return this;
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedDefaultValueBuilder() {
onChanged();
return getLocalizedDefaultValueFieldBuilder().getBuilder();
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDefaultValueOrBuilder() {
if (localizedDefaultValueBuilder_ != null) {
return localizedDefaultValueBuilder_.getMessageOrBuilder();
} else {
return localizedDefaultValue_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDefaultValue_;
}
}
/**
*
* This translates default value of the field into different languages.
*
*
* .io.LocalizedString localizedDefaultValue = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedDefaultValueFieldBuilder() {
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedDefaultValue(),
getParentForChildren(),
isClean());
localizedDefaultValue_ = null;
}
return localizedDefaultValueBuilder_;
}
private java.lang.Object validation_ = "";
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @return The validation.
*/
public java.lang.String getValidation() {
java.lang.Object ref = validation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @return The bytes for validation.
*/
public com.google.protobuf.ByteString
getValidationBytes() {
java.lang.Object ref = validation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @param value The validation to set.
* @return This builder for chaining.
*/
public Builder setValidation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validation_ = value;
onChanged();
return this;
}
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @return This builder for chaining.
*/
public Builder clearValidation() {
validation_ = getDefaultInstance().getValidation();
onChanged();
return this;
}
/**
*
* A regex which allows you to set set custom validation rules for the data stored.
*
*
* string validation = 10;
* @param value The bytes for validation to set.
* @return This builder for chaining.
*/
public Builder setValidationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validation_ = value;
onChanged();
return this;
}
private boolean userCanSetValue_ ;
/**
*
* If false, a defaultValue or listOptions[0] will be used.
*
*
* bool userCanSetValue = 11;
* @return The userCanSetValue.
*/
@java.lang.Override
public boolean getUserCanSetValue() {
return userCanSetValue_;
}
/**
*
* If false, a defaultValue or listOptions[0] will be used.
*
*
* bool userCanSetValue = 11;
* @param value The userCanSetValue to set.
* @return This builder for chaining.
*/
public Builder setUserCanSetValue(boolean value) {
userCanSetValue_ = value;
onChanged();
return this;
}
/**
*
* If false, a defaultValue or listOptions[0] will be used.
*
*
* bool userCanSetValue = 11;
* @return This builder for chaining.
*/
public Builder clearUserCanSetValue() {
userCanSetValue_ = false;
onChanged();
return this;
}
private java.lang.Object currencyCode_ = "";
/**
*
* The currency code (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @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 (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @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 (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @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 (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @return This builder for chaining.
*/
public Builder clearCurrencyCode() {
currencyCode_ = getDefaultInstance().getCurrencyCode();
onChanged();
return this;
}
/**
*
* The currency code (e.g. USD, EUR) to display with money value if data type is set as currency.
*
*
* string currencyCode = 12;
* @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;
}
private com.passkit.grpc.Template.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AppleWalletFieldRenderOptions, com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder, com.passkit.grpc.Template.AppleWalletFieldRenderOptionsOrBuilder> appleWalletFieldRenderOptionsBuilder_;
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
* @return Whether the appleWalletFieldRenderOptions field is set.
*/
public boolean hasAppleWalletFieldRenderOptions() {
return appleWalletFieldRenderOptionsBuilder_ != null || appleWalletFieldRenderOptions_ != null;
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
* @return The appleWalletFieldRenderOptions.
*/
public com.passkit.grpc.Template.AppleWalletFieldRenderOptions getAppleWalletFieldRenderOptions() {
if (appleWalletFieldRenderOptionsBuilder_ == null) {
return appleWalletFieldRenderOptions_ == null ? com.passkit.grpc.Template.AppleWalletFieldRenderOptions.getDefaultInstance() : appleWalletFieldRenderOptions_;
} else {
return appleWalletFieldRenderOptionsBuilder_.getMessage();
}
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
public Builder setAppleWalletFieldRenderOptions(com.passkit.grpc.Template.AppleWalletFieldRenderOptions value) {
if (appleWalletFieldRenderOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
appleWalletFieldRenderOptions_ = value;
onChanged();
} else {
appleWalletFieldRenderOptionsBuilder_.setMessage(value);
}
return this;
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
public Builder setAppleWalletFieldRenderOptions(
com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder builderForValue) {
if (appleWalletFieldRenderOptionsBuilder_ == null) {
appleWalletFieldRenderOptions_ = builderForValue.build();
onChanged();
} else {
appleWalletFieldRenderOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
public Builder mergeAppleWalletFieldRenderOptions(com.passkit.grpc.Template.AppleWalletFieldRenderOptions value) {
if (appleWalletFieldRenderOptionsBuilder_ == null) {
if (appleWalletFieldRenderOptions_ != null) {
appleWalletFieldRenderOptions_ =
com.passkit.grpc.Template.AppleWalletFieldRenderOptions.newBuilder(appleWalletFieldRenderOptions_).mergeFrom(value).buildPartial();
} else {
appleWalletFieldRenderOptions_ = value;
}
onChanged();
} else {
appleWalletFieldRenderOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
public Builder clearAppleWalletFieldRenderOptions() {
if (appleWalletFieldRenderOptionsBuilder_ == null) {
appleWalletFieldRenderOptions_ = null;
onChanged();
} else {
appleWalletFieldRenderOptions_ = null;
appleWalletFieldRenderOptionsBuilder_ = null;
}
return this;
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
public com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder getAppleWalletFieldRenderOptionsBuilder() {
onChanged();
return getAppleWalletFieldRenderOptionsFieldBuilder().getBuilder();
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
public com.passkit.grpc.Template.AppleWalletFieldRenderOptionsOrBuilder getAppleWalletFieldRenderOptionsOrBuilder() {
if (appleWalletFieldRenderOptionsBuilder_ != null) {
return appleWalletFieldRenderOptionsBuilder_.getMessageOrBuilder();
} else {
return appleWalletFieldRenderOptions_ == null ?
com.passkit.grpc.Template.AppleWalletFieldRenderOptions.getDefaultInstance() : appleWalletFieldRenderOptions_;
}
}
/**
* .io.AppleWalletFieldRenderOptions appleWalletFieldRenderOptions = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AppleWalletFieldRenderOptions, com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder, com.passkit.grpc.Template.AppleWalletFieldRenderOptionsOrBuilder>
getAppleWalletFieldRenderOptionsFieldBuilder() {
if (appleWalletFieldRenderOptionsBuilder_ == null) {
appleWalletFieldRenderOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AppleWalletFieldRenderOptions, com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder, com.passkit.grpc.Template.AppleWalletFieldRenderOptionsOrBuilder>(
getAppleWalletFieldRenderOptions(),
getParentForChildren(),
isClean());
appleWalletFieldRenderOptions_ = null;
}
return appleWalletFieldRenderOptionsBuilder_;
}
private com.passkit.grpc.Template.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.DataCollectionFieldRenderOptions, com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder, com.passkit.grpc.Template.DataCollectionFieldRenderOptionsOrBuilder> dataCollectionFieldRenderOptionsBuilder_;
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
* @return Whether the dataCollectionFieldRenderOptions field is set.
*/
public boolean hasDataCollectionFieldRenderOptions() {
return dataCollectionFieldRenderOptionsBuilder_ != null || dataCollectionFieldRenderOptions_ != null;
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
* @return The dataCollectionFieldRenderOptions.
*/
public com.passkit.grpc.Template.DataCollectionFieldRenderOptions getDataCollectionFieldRenderOptions() {
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
return dataCollectionFieldRenderOptions_ == null ? com.passkit.grpc.Template.DataCollectionFieldRenderOptions.getDefaultInstance() : dataCollectionFieldRenderOptions_;
} else {
return dataCollectionFieldRenderOptionsBuilder_.getMessage();
}
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
public Builder setDataCollectionFieldRenderOptions(com.passkit.grpc.Template.DataCollectionFieldRenderOptions value) {
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataCollectionFieldRenderOptions_ = value;
onChanged();
} else {
dataCollectionFieldRenderOptionsBuilder_.setMessage(value);
}
return this;
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
public Builder setDataCollectionFieldRenderOptions(
com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder builderForValue) {
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
dataCollectionFieldRenderOptions_ = builderForValue.build();
onChanged();
} else {
dataCollectionFieldRenderOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
public Builder mergeDataCollectionFieldRenderOptions(com.passkit.grpc.Template.DataCollectionFieldRenderOptions value) {
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
if (dataCollectionFieldRenderOptions_ != null) {
dataCollectionFieldRenderOptions_ =
com.passkit.grpc.Template.DataCollectionFieldRenderOptions.newBuilder(dataCollectionFieldRenderOptions_).mergeFrom(value).buildPartial();
} else {
dataCollectionFieldRenderOptions_ = value;
}
onChanged();
} else {
dataCollectionFieldRenderOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
public Builder clearDataCollectionFieldRenderOptions() {
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
dataCollectionFieldRenderOptions_ = null;
onChanged();
} else {
dataCollectionFieldRenderOptions_ = null;
dataCollectionFieldRenderOptionsBuilder_ = null;
}
return this;
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
public com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder getDataCollectionFieldRenderOptionsBuilder() {
onChanged();
return getDataCollectionFieldRenderOptionsFieldBuilder().getBuilder();
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
public com.passkit.grpc.Template.DataCollectionFieldRenderOptionsOrBuilder getDataCollectionFieldRenderOptionsOrBuilder() {
if (dataCollectionFieldRenderOptionsBuilder_ != null) {
return dataCollectionFieldRenderOptionsBuilder_.getMessageOrBuilder();
} else {
return dataCollectionFieldRenderOptions_ == null ?
com.passkit.grpc.Template.DataCollectionFieldRenderOptions.getDefaultInstance() : dataCollectionFieldRenderOptions_;
}
}
/**
* .io.DataCollectionFieldRenderOptions dataCollectionFieldRenderOptions = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.DataCollectionFieldRenderOptions, com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder, com.passkit.grpc.Template.DataCollectionFieldRenderOptionsOrBuilder>
getDataCollectionFieldRenderOptionsFieldBuilder() {
if (dataCollectionFieldRenderOptionsBuilder_ == null) {
dataCollectionFieldRenderOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.DataCollectionFieldRenderOptions, com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder, com.passkit.grpc.Template.DataCollectionFieldRenderOptionsOrBuilder>(
getDataCollectionFieldRenderOptions(),
getParentForChildren(),
isClean());
dataCollectionFieldRenderOptions_ = null;
}
return dataCollectionFieldRenderOptionsBuilder_;
}
private java.util.List usage_ =
java.util.Collections.emptyList();
private void ensureUsageIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
usage_ = new java.util.ArrayList(usage_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return A list containing the usage.
*/
public java.util.List getUsageList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.CommonObjects.UsageType>(usage_, usage_converter_);
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return The count of usage.
*/
public int getUsageCount() {
return usage_.size();
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index of the element to return.
* @return The usage at the given index.
*/
public com.passkit.grpc.CommonObjects.UsageType getUsage(int index) {
return usage_converter_.convert(usage_.get(index));
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index to set the value at.
* @param value The usage to set.
* @return This builder for chaining.
*/
public Builder setUsage(
int index, com.passkit.grpc.CommonObjects.UsageType value) {
if (value == null) {
throw new NullPointerException();
}
ensureUsageIsMutable();
usage_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param value The usage to add.
* @return This builder for chaining.
*/
public Builder addUsage(com.passkit.grpc.CommonObjects.UsageType value) {
if (value == null) {
throw new NullPointerException();
}
ensureUsageIsMutable();
usage_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param values The usage to add.
* @return This builder for chaining.
*/
public Builder addAllUsage(
java.lang.Iterable extends com.passkit.grpc.CommonObjects.UsageType> values) {
ensureUsageIsMutable();
for (com.passkit.grpc.CommonObjects.UsageType value : values) {
usage_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return This builder for chaining.
*/
public Builder clearUsage() {
usage_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @return A list containing the enum numeric values on the wire for usage.
*/
public java.util.List
getUsageValueList() {
return java.util.Collections.unmodifiableList(usage_);
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of usage at the given index.
*/
public int getUsageValue(int index) {
return usage_.get(index);
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of usage at the given index.
* @return This builder for chaining.
*/
public Builder setUsageValue(
int index, int value) {
ensureUsageIsMutable();
usage_.set(index, value);
onChanged();
return this;
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param value The enum numeric value on the wire for usage to add.
* @return This builder for chaining.
*/
public Builder addUsageValue(int value) {
ensureUsageIsMutable();
usage_.add(value);
onChanged();
return this;
}
/**
*
* Usage: indicates where the field is used (apple render, google render, data collection page)
*
*
* repeated .io.UsageType usage = 15;
* @param values The enum numeric values on the wire for usage to add.
* @return This builder for chaining.
*/
public Builder addAllUsageValue(
java.lang.Iterable values) {
ensureUsageIsMutable();
for (int value : values) {
usage_.add(value);
}
onChanged();
return this;
}
private com.passkit.grpc.Template.GooglePayFieldRenderOptions googlePayFieldRenderOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayFieldRenderOptions, com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder, com.passkit.grpc.Template.GooglePayFieldRenderOptionsOrBuilder> googlePayFieldRenderOptionsBuilder_;
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
* @return Whether the googlePayFieldRenderOptions field is set.
*/
public boolean hasGooglePayFieldRenderOptions() {
return googlePayFieldRenderOptionsBuilder_ != null || googlePayFieldRenderOptions_ != null;
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
* @return The googlePayFieldRenderOptions.
*/
public com.passkit.grpc.Template.GooglePayFieldRenderOptions getGooglePayFieldRenderOptions() {
if (googlePayFieldRenderOptionsBuilder_ == null) {
return googlePayFieldRenderOptions_ == null ? com.passkit.grpc.Template.GooglePayFieldRenderOptions.getDefaultInstance() : googlePayFieldRenderOptions_;
} else {
return googlePayFieldRenderOptionsBuilder_.getMessage();
}
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
public Builder setGooglePayFieldRenderOptions(com.passkit.grpc.Template.GooglePayFieldRenderOptions value) {
if (googlePayFieldRenderOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
googlePayFieldRenderOptions_ = value;
onChanged();
} else {
googlePayFieldRenderOptionsBuilder_.setMessage(value);
}
return this;
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
public Builder setGooglePayFieldRenderOptions(
com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder builderForValue) {
if (googlePayFieldRenderOptionsBuilder_ == null) {
googlePayFieldRenderOptions_ = builderForValue.build();
onChanged();
} else {
googlePayFieldRenderOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
public Builder mergeGooglePayFieldRenderOptions(com.passkit.grpc.Template.GooglePayFieldRenderOptions value) {
if (googlePayFieldRenderOptionsBuilder_ == null) {
if (googlePayFieldRenderOptions_ != null) {
googlePayFieldRenderOptions_ =
com.passkit.grpc.Template.GooglePayFieldRenderOptions.newBuilder(googlePayFieldRenderOptions_).mergeFrom(value).buildPartial();
} else {
googlePayFieldRenderOptions_ = value;
}
onChanged();
} else {
googlePayFieldRenderOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
public Builder clearGooglePayFieldRenderOptions() {
if (googlePayFieldRenderOptionsBuilder_ == null) {
googlePayFieldRenderOptions_ = null;
onChanged();
} else {
googlePayFieldRenderOptions_ = null;
googlePayFieldRenderOptionsBuilder_ = null;
}
return this;
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
public com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder getGooglePayFieldRenderOptionsBuilder() {
onChanged();
return getGooglePayFieldRenderOptionsFieldBuilder().getBuilder();
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
public com.passkit.grpc.Template.GooglePayFieldRenderOptionsOrBuilder getGooglePayFieldRenderOptionsOrBuilder() {
if (googlePayFieldRenderOptionsBuilder_ != null) {
return googlePayFieldRenderOptionsBuilder_.getMessageOrBuilder();
} else {
return googlePayFieldRenderOptions_ == null ?
com.passkit.grpc.Template.GooglePayFieldRenderOptions.getDefaultInstance() : googlePayFieldRenderOptions_;
}
}
/**
* .io.GooglePayFieldRenderOptions googlePayFieldRenderOptions = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayFieldRenderOptions, com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder, com.passkit.grpc.Template.GooglePayFieldRenderOptionsOrBuilder>
getGooglePayFieldRenderOptionsFieldBuilder() {
if (googlePayFieldRenderOptionsBuilder_ == null) {
googlePayFieldRenderOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.GooglePayFieldRenderOptions, com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder, com.passkit.grpc.Template.GooglePayFieldRenderOptionsOrBuilder>(
getGooglePayFieldRenderOptions(),
getParentForChildren(),
isClean());
googlePayFieldRenderOptions_ = null;
}
return googlePayFieldRenderOptionsBuilder_;
}
private java.lang.Object defaultTelCountryCode_ = "";
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @return The defaultTelCountryCode.
*/
public java.lang.String getDefaultTelCountryCode() {
java.lang.Object ref = defaultTelCountryCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultTelCountryCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @return The bytes for defaultTelCountryCode.
*/
public com.google.protobuf.ByteString
getDefaultTelCountryCodeBytes() {
java.lang.Object ref = defaultTelCountryCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultTelCountryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @param value The defaultTelCountryCode to set.
* @return This builder for chaining.
*/
public Builder setDefaultTelCountryCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultTelCountryCode_ = value;
onChanged();
return this;
}
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @return This builder for chaining.
*/
public Builder clearDefaultTelCountryCode() {
defaultTelCountryCode_ = getDefaultInstance().getDefaultTelCountryCode();
onChanged();
return this;
}
/**
*
* Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
*
*
* string defaultTelCountryCode = 17;
* @param value The bytes for defaultTelCountryCode to set.
* @return This builder for chaining.
*/
public Builder setDefaultTelCountryCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultTelCountryCode_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.DataField)
}
// @@protoc_insertion_point(class_scope:io.DataField)
private static final com.passkit.grpc.Template.DataField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.DataField();
}
public static com.passkit.grpc.Template.DataField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataField parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataField(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.Template.DataField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AppleWalletFieldRenderOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.AppleWalletFieldRenderOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @return The enum numeric value on the wire for textAlignment.
*/
int getTextAlignmentValue();
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @return The textAlignment.
*/
com.passkit.grpc.Template.TextAlignment getTextAlignment();
/**
* .io.PositionSettings positionSettings = 3;
* @return Whether the positionSettings field is set.
*/
boolean hasPositionSettings();
/**
* .io.PositionSettings positionSettings = 3;
* @return The positionSettings.
*/
com.passkit.grpc.Template.PositionSettings getPositionSettings();
/**
* .io.PositionSettings positionSettings = 3;
*/
com.passkit.grpc.Template.PositionSettingsOrBuilder getPositionSettingsOrBuilder();
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @return The changeMessage.
*/
java.lang.String getChangeMessage();
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @return The bytes for changeMessage.
*/
com.google.protobuf.ByteString
getChangeMessageBytes();
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
* @return Whether the localizedChangeMessage field is set.
*/
boolean hasLocalizedChangeMessage();
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
* @return The localizedChangeMessage.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedChangeMessage();
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedChangeMessageOrBuilder();
/**
* .io.DateTimeStyle dateStyle = 6;
* @return The enum numeric value on the wire for dateStyle.
*/
int getDateStyleValue();
/**
* .io.DateTimeStyle dateStyle = 6;
* @return The dateStyle.
*/
com.passkit.grpc.Template.DateTimeStyle getDateStyle();
/**
* .io.DateTimeStyle timeStyle = 7;
* @return The enum numeric value on the wire for timeStyle.
*/
int getTimeStyleValue();
/**
* .io.DateTimeStyle timeStyle = 7;
* @return The timeStyle.
*/
com.passkit.grpc.Template.DateTimeStyle getTimeStyle();
/**
* .io.NumberStyle numberStyle = 8;
* @return The enum numeric value on the wire for numberStyle.
*/
int getNumberStyleValue();
/**
* .io.NumberStyle numberStyle = 8;
* @return The numberStyle.
*/
com.passkit.grpc.Template.NumberStyle getNumberStyle();
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return A list containing the suppressLinkDetection.
*/
java.util.List getSuppressLinkDetectionList();
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return The count of suppressLinkDetection.
*/
int getSuppressLinkDetectionCount();
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index of the element to return.
* @return The suppressLinkDetection at the given index.
*/
com.passkit.grpc.Template.LinkDetector getSuppressLinkDetection(int index);
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return A list containing the enum numeric values on the wire for suppressLinkDetection.
*/
java.util.List
getSuppressLinkDetectionValueList();
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of suppressLinkDetection at the given index.
*/
int getSuppressLinkDetectionValue(int index);
/**
*
* Render date and time values in the provided time, rather than switching to the local time of the user.
*
*
* bool ignoreTimezone = 10;
* @return The ignoreTimezone.
*/
boolean getIgnoreTimezone();
/**
*
* Render date as a relavent date, rather than an absolute date.
*
*
* bool isRelativeDate = 11;
* @return The isRelativeDate.
*/
boolean getIsRelativeDate();
}
/**
*
* Customise how data field is rendered on the front and back of the pass.
*
*
* Protobuf type {@code io.AppleWalletFieldRenderOptions}
*/
public static final class AppleWalletFieldRenderOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.AppleWalletFieldRenderOptions)
AppleWalletFieldRenderOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AppleWalletFieldRenderOptions.newBuilder() to construct.
private AppleWalletFieldRenderOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AppleWalletFieldRenderOptions() {
textAlignment_ = 0;
changeMessage_ = "";
dateStyle_ = 0;
timeStyle_ = 0;
numberStyle_ = 0;
suppressLinkDetection_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AppleWalletFieldRenderOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AppleWalletFieldRenderOptions(
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 16: {
int rawValue = input.readEnum();
textAlignment_ = rawValue;
break;
}
case 26: {
com.passkit.grpc.Template.PositionSettings.Builder subBuilder = null;
if (positionSettings_ != null) {
subBuilder = positionSettings_.toBuilder();
}
positionSettings_ = input.readMessage(com.passkit.grpc.Template.PositionSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(positionSettings_);
positionSettings_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
changeMessage_ = s;
break;
}
case 42: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedChangeMessage_ != null) {
subBuilder = localizedChangeMessage_.toBuilder();
}
localizedChangeMessage_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedChangeMessage_);
localizedChangeMessage_ = subBuilder.buildPartial();
}
break;
}
case 48: {
int rawValue = input.readEnum();
dateStyle_ = rawValue;
break;
}
case 56: {
int rawValue = input.readEnum();
timeStyle_ = rawValue;
break;
}
case 64: {
int rawValue = input.readEnum();
numberStyle_ = rawValue;
break;
}
case 72: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
suppressLinkDetection_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
suppressLinkDetection_.add(rawValue);
break;
}
case 74: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
suppressLinkDetection_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
suppressLinkDetection_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 80: {
ignoreTimezone_ = input.readBool();
break;
}
case 88: {
isRelativeDate_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
suppressLinkDetection_ = java.util.Collections.unmodifiableList(suppressLinkDetection_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletFieldRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletFieldRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.AppleWalletFieldRenderOptions.class, com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder.class);
}
public static final int TEXTALIGNMENT_FIELD_NUMBER = 2;
private int textAlignment_;
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @return The enum numeric value on the wire for textAlignment.
*/
@java.lang.Override public int getTextAlignmentValue() {
return textAlignment_;
}
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @return The textAlignment.
*/
@java.lang.Override public com.passkit.grpc.Template.TextAlignment getTextAlignment() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.TextAlignment result = com.passkit.grpc.Template.TextAlignment.valueOf(textAlignment_);
return result == null ? com.passkit.grpc.Template.TextAlignment.UNRECOGNIZED : result;
}
public static final int POSITIONSETTINGS_FIELD_NUMBER = 3;
private com.passkit.grpc.Template.PositionSettings positionSettings_;
/**
* .io.PositionSettings positionSettings = 3;
* @return Whether the positionSettings field is set.
*/
@java.lang.Override
public boolean hasPositionSettings() {
return positionSettings_ != null;
}
/**
* .io.PositionSettings positionSettings = 3;
* @return The positionSettings.
*/
@java.lang.Override
public com.passkit.grpc.Template.PositionSettings getPositionSettings() {
return positionSettings_ == null ? com.passkit.grpc.Template.PositionSettings.getDefaultInstance() : positionSettings_;
}
/**
* .io.PositionSettings positionSettings = 3;
*/
@java.lang.Override
public com.passkit.grpc.Template.PositionSettingsOrBuilder getPositionSettingsOrBuilder() {
return getPositionSettings();
}
public static final int CHANGEMESSAGE_FIELD_NUMBER = 4;
private volatile java.lang.Object changeMessage_;
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @return The changeMessage.
*/
@java.lang.Override
public java.lang.String getChangeMessage() {
java.lang.Object ref = changeMessage_;
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();
changeMessage_ = s;
return s;
}
}
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @return The bytes for changeMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChangeMessageBytes() {
java.lang.Object ref = changeMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
changeMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDCHANGEMESSAGE_FIELD_NUMBER = 5;
private com.passkit.grpc.Localization.LocalizedString localizedChangeMessage_;
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
* @return Whether the localizedChangeMessage field is set.
*/
@java.lang.Override
public boolean hasLocalizedChangeMessage() {
return localizedChangeMessage_ != null;
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
* @return The localizedChangeMessage.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedChangeMessage() {
return localizedChangeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedChangeMessage_;
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedChangeMessageOrBuilder() {
return getLocalizedChangeMessage();
}
public static final int DATESTYLE_FIELD_NUMBER = 6;
private int dateStyle_;
/**
* .io.DateTimeStyle dateStyle = 6;
* @return The enum numeric value on the wire for dateStyle.
*/
@java.lang.Override public int getDateStyleValue() {
return dateStyle_;
}
/**
* .io.DateTimeStyle dateStyle = 6;
* @return The dateStyle.
*/
@java.lang.Override public com.passkit.grpc.Template.DateTimeStyle getDateStyle() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.DateTimeStyle result = com.passkit.grpc.Template.DateTimeStyle.valueOf(dateStyle_);
return result == null ? com.passkit.grpc.Template.DateTimeStyle.UNRECOGNIZED : result;
}
public static final int TIMESTYLE_FIELD_NUMBER = 7;
private int timeStyle_;
/**
* .io.DateTimeStyle timeStyle = 7;
* @return The enum numeric value on the wire for timeStyle.
*/
@java.lang.Override public int getTimeStyleValue() {
return timeStyle_;
}
/**
* .io.DateTimeStyle timeStyle = 7;
* @return The timeStyle.
*/
@java.lang.Override public com.passkit.grpc.Template.DateTimeStyle getTimeStyle() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.DateTimeStyle result = com.passkit.grpc.Template.DateTimeStyle.valueOf(timeStyle_);
return result == null ? com.passkit.grpc.Template.DateTimeStyle.UNRECOGNIZED : result;
}
public static final int NUMBERSTYLE_FIELD_NUMBER = 8;
private int numberStyle_;
/**
* .io.NumberStyle numberStyle = 8;
* @return The enum numeric value on the wire for numberStyle.
*/
@java.lang.Override public int getNumberStyleValue() {
return numberStyle_;
}
/**
* .io.NumberStyle numberStyle = 8;
* @return The numberStyle.
*/
@java.lang.Override public com.passkit.grpc.Template.NumberStyle getNumberStyle() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.NumberStyle result = com.passkit.grpc.Template.NumberStyle.valueOf(numberStyle_);
return result == null ? com.passkit.grpc.Template.NumberStyle.UNRECOGNIZED : result;
}
public static final int SUPPRESSLINKDETECTION_FIELD_NUMBER = 9;
private java.util.List suppressLinkDetection_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Template.LinkDetector> suppressLinkDetection_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.Template.LinkDetector>() {
public com.passkit.grpc.Template.LinkDetector convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.LinkDetector result = com.passkit.grpc.Template.LinkDetector.valueOf(from);
return result == null ? com.passkit.grpc.Template.LinkDetector.UNRECOGNIZED : result;
}
};
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return A list containing the suppressLinkDetection.
*/
@java.lang.Override
public java.util.List getSuppressLinkDetectionList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Template.LinkDetector>(suppressLinkDetection_, suppressLinkDetection_converter_);
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return The count of suppressLinkDetection.
*/
@java.lang.Override
public int getSuppressLinkDetectionCount() {
return suppressLinkDetection_.size();
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index of the element to return.
* @return The suppressLinkDetection at the given index.
*/
@java.lang.Override
public com.passkit.grpc.Template.LinkDetector getSuppressLinkDetection(int index) {
return suppressLinkDetection_converter_.convert(suppressLinkDetection_.get(index));
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return A list containing the enum numeric values on the wire for suppressLinkDetection.
*/
@java.lang.Override
public java.util.List
getSuppressLinkDetectionValueList() {
return suppressLinkDetection_;
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of suppressLinkDetection at the given index.
*/
@java.lang.Override
public int getSuppressLinkDetectionValue(int index) {
return suppressLinkDetection_.get(index);
}
private int suppressLinkDetectionMemoizedSerializedSize;
public static final int IGNORETIMEZONE_FIELD_NUMBER = 10;
private boolean ignoreTimezone_;
/**
*
* Render date and time values in the provided time, rather than switching to the local time of the user.
*
*
* bool ignoreTimezone = 10;
* @return The ignoreTimezone.
*/
@java.lang.Override
public boolean getIgnoreTimezone() {
return ignoreTimezone_;
}
public static final int ISRELATIVEDATE_FIELD_NUMBER = 11;
private boolean isRelativeDate_;
/**
*
* Render date as a relavent date, rather than an absolute date.
*
*
* bool isRelativeDate = 11;
* @return The isRelativeDate.
*/
@java.lang.Override
public boolean getIsRelativeDate() {
return isRelativeDate_;
}
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 (textAlignment_ != com.passkit.grpc.Template.TextAlignment.TEXT_ALIGNMENT_DO_NOT_USE.getNumber()) {
output.writeEnum(2, textAlignment_);
}
if (positionSettings_ != null) {
output.writeMessage(3, getPositionSettings());
}
if (!getChangeMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, changeMessage_);
}
if (localizedChangeMessage_ != null) {
output.writeMessage(5, getLocalizedChangeMessage());
}
if (dateStyle_ != com.passkit.grpc.Template.DateTimeStyle.DATE_TIME_STYLE_DO_NOT_USE.getNumber()) {
output.writeEnum(6, dateStyle_);
}
if (timeStyle_ != com.passkit.grpc.Template.DateTimeStyle.DATE_TIME_STYLE_DO_NOT_USE.getNumber()) {
output.writeEnum(7, timeStyle_);
}
if (numberStyle_ != com.passkit.grpc.Template.NumberStyle.NUMBER_STYLE_DO_NOT_USE.getNumber()) {
output.writeEnum(8, numberStyle_);
}
if (getSuppressLinkDetectionList().size() > 0) {
output.writeUInt32NoTag(74);
output.writeUInt32NoTag(suppressLinkDetectionMemoizedSerializedSize);
}
for (int i = 0; i < suppressLinkDetection_.size(); i++) {
output.writeEnumNoTag(suppressLinkDetection_.get(i));
}
if (ignoreTimezone_ != false) {
output.writeBool(10, ignoreTimezone_);
}
if (isRelativeDate_ != false) {
output.writeBool(11, isRelativeDate_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (textAlignment_ != com.passkit.grpc.Template.TextAlignment.TEXT_ALIGNMENT_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, textAlignment_);
}
if (positionSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPositionSettings());
}
if (!getChangeMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, changeMessage_);
}
if (localizedChangeMessage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLocalizedChangeMessage());
}
if (dateStyle_ != com.passkit.grpc.Template.DateTimeStyle.DATE_TIME_STYLE_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, dateStyle_);
}
if (timeStyle_ != com.passkit.grpc.Template.DateTimeStyle.DATE_TIME_STYLE_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, timeStyle_);
}
if (numberStyle_ != com.passkit.grpc.Template.NumberStyle.NUMBER_STYLE_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, numberStyle_);
}
{
int dataSize = 0;
for (int i = 0; i < suppressLinkDetection_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(suppressLinkDetection_.get(i));
}
size += dataSize;
if (!getSuppressLinkDetectionList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}suppressLinkDetectionMemoizedSerializedSize = dataSize;
}
if (ignoreTimezone_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, ignoreTimezone_);
}
if (isRelativeDate_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, isRelativeDate_);
}
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.Template.AppleWalletFieldRenderOptions)) {
return super.equals(obj);
}
com.passkit.grpc.Template.AppleWalletFieldRenderOptions other = (com.passkit.grpc.Template.AppleWalletFieldRenderOptions) obj;
if (textAlignment_ != other.textAlignment_) return false;
if (hasPositionSettings() != other.hasPositionSettings()) return false;
if (hasPositionSettings()) {
if (!getPositionSettings()
.equals(other.getPositionSettings())) return false;
}
if (!getChangeMessage()
.equals(other.getChangeMessage())) return false;
if (hasLocalizedChangeMessage() != other.hasLocalizedChangeMessage()) return false;
if (hasLocalizedChangeMessage()) {
if (!getLocalizedChangeMessage()
.equals(other.getLocalizedChangeMessage())) return false;
}
if (dateStyle_ != other.dateStyle_) return false;
if (timeStyle_ != other.timeStyle_) return false;
if (numberStyle_ != other.numberStyle_) return false;
if (!suppressLinkDetection_.equals(other.suppressLinkDetection_)) return false;
if (getIgnoreTimezone()
!= other.getIgnoreTimezone()) return false;
if (getIsRelativeDate()
!= other.getIsRelativeDate()) 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) + TEXTALIGNMENT_FIELD_NUMBER;
hash = (53 * hash) + textAlignment_;
if (hasPositionSettings()) {
hash = (37 * hash) + POSITIONSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getPositionSettings().hashCode();
}
hash = (37 * hash) + CHANGEMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getChangeMessage().hashCode();
if (hasLocalizedChangeMessage()) {
hash = (37 * hash) + LOCALIZEDCHANGEMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedChangeMessage().hashCode();
}
hash = (37 * hash) + DATESTYLE_FIELD_NUMBER;
hash = (53 * hash) + dateStyle_;
hash = (37 * hash) + TIMESTYLE_FIELD_NUMBER;
hash = (53 * hash) + timeStyle_;
hash = (37 * hash) + NUMBERSTYLE_FIELD_NUMBER;
hash = (53 * hash) + numberStyle_;
if (getSuppressLinkDetectionCount() > 0) {
hash = (37 * hash) + SUPPRESSLINKDETECTION_FIELD_NUMBER;
hash = (53 * hash) + suppressLinkDetection_.hashCode();
}
hash = (37 * hash) + IGNORETIMEZONE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreTimezone());
hash = (37 * hash) + ISRELATIVEDATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsRelativeDate());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions 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.Template.AppleWalletFieldRenderOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions 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.Template.AppleWalletFieldRenderOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions 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.Template.AppleWalletFieldRenderOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions 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.Template.AppleWalletFieldRenderOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions 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.Template.AppleWalletFieldRenderOptions 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;
}
/**
*
* Customise how data field is rendered on the front and back of the pass.
*
*
* Protobuf type {@code io.AppleWalletFieldRenderOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.AppleWalletFieldRenderOptions)
com.passkit.grpc.Template.AppleWalletFieldRenderOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletFieldRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletFieldRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.AppleWalletFieldRenderOptions.class, com.passkit.grpc.Template.AppleWalletFieldRenderOptions.Builder.class);
}
// Construct using com.passkit.grpc.Template.AppleWalletFieldRenderOptions.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();
textAlignment_ = 0;
if (positionSettingsBuilder_ == null) {
positionSettings_ = null;
} else {
positionSettings_ = null;
positionSettingsBuilder_ = null;
}
changeMessage_ = "";
if (localizedChangeMessageBuilder_ == null) {
localizedChangeMessage_ = null;
} else {
localizedChangeMessage_ = null;
localizedChangeMessageBuilder_ = null;
}
dateStyle_ = 0;
timeStyle_ = 0;
numberStyle_ = 0;
suppressLinkDetection_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
ignoreTimezone_ = false;
isRelativeDate_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_AppleWalletFieldRenderOptions_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletFieldRenderOptions getDefaultInstanceForType() {
return com.passkit.grpc.Template.AppleWalletFieldRenderOptions.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletFieldRenderOptions build() {
com.passkit.grpc.Template.AppleWalletFieldRenderOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.AppleWalletFieldRenderOptions buildPartial() {
com.passkit.grpc.Template.AppleWalletFieldRenderOptions result = new com.passkit.grpc.Template.AppleWalletFieldRenderOptions(this);
int from_bitField0_ = bitField0_;
result.textAlignment_ = textAlignment_;
if (positionSettingsBuilder_ == null) {
result.positionSettings_ = positionSettings_;
} else {
result.positionSettings_ = positionSettingsBuilder_.build();
}
result.changeMessage_ = changeMessage_;
if (localizedChangeMessageBuilder_ == null) {
result.localizedChangeMessage_ = localizedChangeMessage_;
} else {
result.localizedChangeMessage_ = localizedChangeMessageBuilder_.build();
}
result.dateStyle_ = dateStyle_;
result.timeStyle_ = timeStyle_;
result.numberStyle_ = numberStyle_;
if (((bitField0_ & 0x00000001) != 0)) {
suppressLinkDetection_ = java.util.Collections.unmodifiableList(suppressLinkDetection_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.suppressLinkDetection_ = suppressLinkDetection_;
result.ignoreTimezone_ = ignoreTimezone_;
result.isRelativeDate_ = isRelativeDate_;
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.Template.AppleWalletFieldRenderOptions) {
return mergeFrom((com.passkit.grpc.Template.AppleWalletFieldRenderOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.AppleWalletFieldRenderOptions other) {
if (other == com.passkit.grpc.Template.AppleWalletFieldRenderOptions.getDefaultInstance()) return this;
if (other.textAlignment_ != 0) {
setTextAlignmentValue(other.getTextAlignmentValue());
}
if (other.hasPositionSettings()) {
mergePositionSettings(other.getPositionSettings());
}
if (!other.getChangeMessage().isEmpty()) {
changeMessage_ = other.changeMessage_;
onChanged();
}
if (other.hasLocalizedChangeMessage()) {
mergeLocalizedChangeMessage(other.getLocalizedChangeMessage());
}
if (other.dateStyle_ != 0) {
setDateStyleValue(other.getDateStyleValue());
}
if (other.timeStyle_ != 0) {
setTimeStyleValue(other.getTimeStyleValue());
}
if (other.numberStyle_ != 0) {
setNumberStyleValue(other.getNumberStyleValue());
}
if (!other.suppressLinkDetection_.isEmpty()) {
if (suppressLinkDetection_.isEmpty()) {
suppressLinkDetection_ = other.suppressLinkDetection_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSuppressLinkDetectionIsMutable();
suppressLinkDetection_.addAll(other.suppressLinkDetection_);
}
onChanged();
}
if (other.getIgnoreTimezone() != false) {
setIgnoreTimezone(other.getIgnoreTimezone());
}
if (other.getIsRelativeDate() != false) {
setIsRelativeDate(other.getIsRelativeDate());
}
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.Template.AppleWalletFieldRenderOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.AppleWalletFieldRenderOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int textAlignment_ = 0;
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @return The enum numeric value on the wire for textAlignment.
*/
@java.lang.Override public int getTextAlignmentValue() {
return textAlignment_;
}
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @param value The enum numeric value on the wire for textAlignment to set.
* @return This builder for chaining.
*/
public Builder setTextAlignmentValue(int value) {
textAlignment_ = value;
onChanged();
return this;
}
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @return The textAlignment.
*/
@java.lang.Override
public com.passkit.grpc.Template.TextAlignment getTextAlignment() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.TextAlignment result = com.passkit.grpc.Template.TextAlignment.valueOf(textAlignment_);
return result == null ? com.passkit.grpc.Template.TextAlignment.UNRECOGNIZED : result;
}
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @param value The textAlignment to set.
* @return This builder for chaining.
*/
public Builder setTextAlignment(com.passkit.grpc.Template.TextAlignment value) {
if (value == null) {
throw new NullPointerException();
}
textAlignment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Alignment for field title and body text for fields which are displayed on the front of Apple Wallet pass.
*
*
* .io.TextAlignment textAlignment = 2;
* @return This builder for chaining.
*/
public Builder clearTextAlignment() {
textAlignment_ = 0;
onChanged();
return this;
}
private com.passkit.grpc.Template.PositionSettings positionSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PositionSettings, com.passkit.grpc.Template.PositionSettings.Builder, com.passkit.grpc.Template.PositionSettingsOrBuilder> positionSettingsBuilder_;
/**
* .io.PositionSettings positionSettings = 3;
* @return Whether the positionSettings field is set.
*/
public boolean hasPositionSettings() {
return positionSettingsBuilder_ != null || positionSettings_ != null;
}
/**
* .io.PositionSettings positionSettings = 3;
* @return The positionSettings.
*/
public com.passkit.grpc.Template.PositionSettings getPositionSettings() {
if (positionSettingsBuilder_ == null) {
return positionSettings_ == null ? com.passkit.grpc.Template.PositionSettings.getDefaultInstance() : positionSettings_;
} else {
return positionSettingsBuilder_.getMessage();
}
}
/**
* .io.PositionSettings positionSettings = 3;
*/
public Builder setPositionSettings(com.passkit.grpc.Template.PositionSettings value) {
if (positionSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
positionSettings_ = value;
onChanged();
} else {
positionSettingsBuilder_.setMessage(value);
}
return this;
}
/**
* .io.PositionSettings positionSettings = 3;
*/
public Builder setPositionSettings(
com.passkit.grpc.Template.PositionSettings.Builder builderForValue) {
if (positionSettingsBuilder_ == null) {
positionSettings_ = builderForValue.build();
onChanged();
} else {
positionSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.PositionSettings positionSettings = 3;
*/
public Builder mergePositionSettings(com.passkit.grpc.Template.PositionSettings value) {
if (positionSettingsBuilder_ == null) {
if (positionSettings_ != null) {
positionSettings_ =
com.passkit.grpc.Template.PositionSettings.newBuilder(positionSettings_).mergeFrom(value).buildPartial();
} else {
positionSettings_ = value;
}
onChanged();
} else {
positionSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.PositionSettings positionSettings = 3;
*/
public Builder clearPositionSettings() {
if (positionSettingsBuilder_ == null) {
positionSettings_ = null;
onChanged();
} else {
positionSettings_ = null;
positionSettingsBuilder_ = null;
}
return this;
}
/**
* .io.PositionSettings positionSettings = 3;
*/
public com.passkit.grpc.Template.PositionSettings.Builder getPositionSettingsBuilder() {
onChanged();
return getPositionSettingsFieldBuilder().getBuilder();
}
/**
* .io.PositionSettings positionSettings = 3;
*/
public com.passkit.grpc.Template.PositionSettingsOrBuilder getPositionSettingsOrBuilder() {
if (positionSettingsBuilder_ != null) {
return positionSettingsBuilder_.getMessageOrBuilder();
} else {
return positionSettings_ == null ?
com.passkit.grpc.Template.PositionSettings.getDefaultInstance() : positionSettings_;
}
}
/**
* .io.PositionSettings positionSettings = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PositionSettings, com.passkit.grpc.Template.PositionSettings.Builder, com.passkit.grpc.Template.PositionSettingsOrBuilder>
getPositionSettingsFieldBuilder() {
if (positionSettingsBuilder_ == null) {
positionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PositionSettings, com.passkit.grpc.Template.PositionSettings.Builder, com.passkit.grpc.Template.PositionSettingsOrBuilder>(
getPositionSettings(),
getParentForChildren(),
isClean());
positionSettings_ = null;
}
return positionSettingsBuilder_;
}
private java.lang.Object changeMessage_ = "";
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @return The changeMessage.
*/
public java.lang.String getChangeMessage() {
java.lang.Object ref = changeMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
changeMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @return The bytes for changeMessage.
*/
public com.google.protobuf.ByteString
getChangeMessageBytes() {
java.lang.Object ref = changeMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
changeMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @param value The changeMessage to set.
* @return This builder for chaining.
*/
public Builder setChangeMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
changeMessage_ = value;
onChanged();
return this;
}
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @return This builder for chaining.
*/
public Builder clearChangeMessage() {
changeMessage_ = getDefaultInstance().getChangeMessage();
onChanged();
return this;
}
/**
*
* This message will be displayed as a notification when this field is updated. If %@ is used in the change message it will be replaced with the new field value when the message is displayed. E.g. Your registered name has been changed to %@.
*
*
* string changeMessage = 4;
* @param value The bytes for changeMessage to set.
* @return This builder for chaining.
*/
public Builder setChangeMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
changeMessage_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedChangeMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedChangeMessageBuilder_;
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
* @return Whether the localizedChangeMessage field is set.
*/
public boolean hasLocalizedChangeMessage() {
return localizedChangeMessageBuilder_ != null || localizedChangeMessage_ != null;
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
* @return The localizedChangeMessage.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedChangeMessage() {
if (localizedChangeMessageBuilder_ == null) {
return localizedChangeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedChangeMessage_;
} else {
return localizedChangeMessageBuilder_.getMessage();
}
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
public Builder setLocalizedChangeMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedChangeMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedChangeMessage_ = value;
onChanged();
} else {
localizedChangeMessageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
public Builder setLocalizedChangeMessage(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedChangeMessageBuilder_ == null) {
localizedChangeMessage_ = builderForValue.build();
onChanged();
} else {
localizedChangeMessageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
public Builder mergeLocalizedChangeMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedChangeMessageBuilder_ == null) {
if (localizedChangeMessage_ != null) {
localizedChangeMessage_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedChangeMessage_).mergeFrom(value).buildPartial();
} else {
localizedChangeMessage_ = value;
}
onChanged();
} else {
localizedChangeMessageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
public Builder clearLocalizedChangeMessage() {
if (localizedChangeMessageBuilder_ == null) {
localizedChangeMessage_ = null;
onChanged();
} else {
localizedChangeMessage_ = null;
localizedChangeMessageBuilder_ = null;
}
return this;
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedChangeMessageBuilder() {
onChanged();
return getLocalizedChangeMessageFieldBuilder().getBuilder();
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedChangeMessageOrBuilder() {
if (localizedChangeMessageBuilder_ != null) {
return localizedChangeMessageBuilder_.getMessageOrBuilder();
} else {
return localizedChangeMessage_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedChangeMessage_;
}
}
/**
*
* Localize push notification message for different languages.
*
*
* .io.LocalizedString localizedChangeMessage = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedChangeMessageFieldBuilder() {
if (localizedChangeMessageBuilder_ == null) {
localizedChangeMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedChangeMessage(),
getParentForChildren(),
isClean());
localizedChangeMessage_ = null;
}
return localizedChangeMessageBuilder_;
}
private int dateStyle_ = 0;
/**
* .io.DateTimeStyle dateStyle = 6;
* @return The enum numeric value on the wire for dateStyle.
*/
@java.lang.Override public int getDateStyleValue() {
return dateStyle_;
}
/**
* .io.DateTimeStyle dateStyle = 6;
* @param value The enum numeric value on the wire for dateStyle to set.
* @return This builder for chaining.
*/
public Builder setDateStyleValue(int value) {
dateStyle_ = value;
onChanged();
return this;
}
/**
* .io.DateTimeStyle dateStyle = 6;
* @return The dateStyle.
*/
@java.lang.Override
public com.passkit.grpc.Template.DateTimeStyle getDateStyle() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.DateTimeStyle result = com.passkit.grpc.Template.DateTimeStyle.valueOf(dateStyle_);
return result == null ? com.passkit.grpc.Template.DateTimeStyle.UNRECOGNIZED : result;
}
/**
* .io.DateTimeStyle dateStyle = 6;
* @param value The dateStyle to set.
* @return This builder for chaining.
*/
public Builder setDateStyle(com.passkit.grpc.Template.DateTimeStyle value) {
if (value == null) {
throw new NullPointerException();
}
dateStyle_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.DateTimeStyle dateStyle = 6;
* @return This builder for chaining.
*/
public Builder clearDateStyle() {
dateStyle_ = 0;
onChanged();
return this;
}
private int timeStyle_ = 0;
/**
* .io.DateTimeStyle timeStyle = 7;
* @return The enum numeric value on the wire for timeStyle.
*/
@java.lang.Override public int getTimeStyleValue() {
return timeStyle_;
}
/**
* .io.DateTimeStyle timeStyle = 7;
* @param value The enum numeric value on the wire for timeStyle to set.
* @return This builder for chaining.
*/
public Builder setTimeStyleValue(int value) {
timeStyle_ = value;
onChanged();
return this;
}
/**
* .io.DateTimeStyle timeStyle = 7;
* @return The timeStyle.
*/
@java.lang.Override
public com.passkit.grpc.Template.DateTimeStyle getTimeStyle() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.DateTimeStyle result = com.passkit.grpc.Template.DateTimeStyle.valueOf(timeStyle_);
return result == null ? com.passkit.grpc.Template.DateTimeStyle.UNRECOGNIZED : result;
}
/**
* .io.DateTimeStyle timeStyle = 7;
* @param value The timeStyle to set.
* @return This builder for chaining.
*/
public Builder setTimeStyle(com.passkit.grpc.Template.DateTimeStyle value) {
if (value == null) {
throw new NullPointerException();
}
timeStyle_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.DateTimeStyle timeStyle = 7;
* @return This builder for chaining.
*/
public Builder clearTimeStyle() {
timeStyle_ = 0;
onChanged();
return this;
}
private int numberStyle_ = 0;
/**
* .io.NumberStyle numberStyle = 8;
* @return The enum numeric value on the wire for numberStyle.
*/
@java.lang.Override public int getNumberStyleValue() {
return numberStyle_;
}
/**
* .io.NumberStyle numberStyle = 8;
* @param value The enum numeric value on the wire for numberStyle to set.
* @return This builder for chaining.
*/
public Builder setNumberStyleValue(int value) {
numberStyle_ = value;
onChanged();
return this;
}
/**
* .io.NumberStyle numberStyle = 8;
* @return The numberStyle.
*/
@java.lang.Override
public com.passkit.grpc.Template.NumberStyle getNumberStyle() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.NumberStyle result = com.passkit.grpc.Template.NumberStyle.valueOf(numberStyle_);
return result == null ? com.passkit.grpc.Template.NumberStyle.UNRECOGNIZED : result;
}
/**
* .io.NumberStyle numberStyle = 8;
* @param value The numberStyle to set.
* @return This builder for chaining.
*/
public Builder setNumberStyle(com.passkit.grpc.Template.NumberStyle value) {
if (value == null) {
throw new NullPointerException();
}
numberStyle_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.NumberStyle numberStyle = 8;
* @return This builder for chaining.
*/
public Builder clearNumberStyle() {
numberStyle_ = 0;
onChanged();
return this;
}
private java.util.List suppressLinkDetection_ =
java.util.Collections.emptyList();
private void ensureSuppressLinkDetectionIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
suppressLinkDetection_ = new java.util.ArrayList(suppressLinkDetection_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return A list containing the suppressLinkDetection.
*/
public java.util.List getSuppressLinkDetectionList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.Template.LinkDetector>(suppressLinkDetection_, suppressLinkDetection_converter_);
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return The count of suppressLinkDetection.
*/
public int getSuppressLinkDetectionCount() {
return suppressLinkDetection_.size();
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index of the element to return.
* @return The suppressLinkDetection at the given index.
*/
public com.passkit.grpc.Template.LinkDetector getSuppressLinkDetection(int index) {
return suppressLinkDetection_converter_.convert(suppressLinkDetection_.get(index));
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index to set the value at.
* @param value The suppressLinkDetection to set.
* @return This builder for chaining.
*/
public Builder setSuppressLinkDetection(
int index, com.passkit.grpc.Template.LinkDetector value) {
if (value == null) {
throw new NullPointerException();
}
ensureSuppressLinkDetectionIsMutable();
suppressLinkDetection_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param value The suppressLinkDetection to add.
* @return This builder for chaining.
*/
public Builder addSuppressLinkDetection(com.passkit.grpc.Template.LinkDetector value) {
if (value == null) {
throw new NullPointerException();
}
ensureSuppressLinkDetectionIsMutable();
suppressLinkDetection_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param values The suppressLinkDetection to add.
* @return This builder for chaining.
*/
public Builder addAllSuppressLinkDetection(
java.lang.Iterable extends com.passkit.grpc.Template.LinkDetector> values) {
ensureSuppressLinkDetectionIsMutable();
for (com.passkit.grpc.Template.LinkDetector value : values) {
suppressLinkDetection_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return This builder for chaining.
*/
public Builder clearSuppressLinkDetection() {
suppressLinkDetection_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @return A list containing the enum numeric values on the wire for suppressLinkDetection.
*/
public java.util.List
getSuppressLinkDetectionValueList() {
return java.util.Collections.unmodifiableList(suppressLinkDetection_);
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of suppressLinkDetection at the given index.
*/
public int getSuppressLinkDetectionValue(int index) {
return suppressLinkDetection_.get(index);
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of suppressLinkDetection at the given index.
* @return This builder for chaining.
*/
public Builder setSuppressLinkDetectionValue(
int index, int value) {
ensureSuppressLinkDetectionIsMutable();
suppressLinkDetection_.set(index, value);
onChanged();
return this;
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param value The enum numeric value on the wire for suppressLinkDetection to add.
* @return This builder for chaining.
*/
public Builder addSuppressLinkDetectionValue(int value) {
ensureSuppressLinkDetectionIsMutable();
suppressLinkDetection_.add(value);
onChanged();
return this;
}
/**
* repeated .io.LinkDetector suppressLinkDetection = 9;
* @param values The enum numeric values on the wire for suppressLinkDetection to add.
* @return This builder for chaining.
*/
public Builder addAllSuppressLinkDetectionValue(
java.lang.Iterable values) {
ensureSuppressLinkDetectionIsMutable();
for (int value : values) {
suppressLinkDetection_.add(value);
}
onChanged();
return this;
}
private boolean ignoreTimezone_ ;
/**
*
* Render date and time values in the provided time, rather than switching to the local time of the user.
*
*
* bool ignoreTimezone = 10;
* @return The ignoreTimezone.
*/
@java.lang.Override
public boolean getIgnoreTimezone() {
return ignoreTimezone_;
}
/**
*
* Render date and time values in the provided time, rather than switching to the local time of the user.
*
*
* bool ignoreTimezone = 10;
* @param value The ignoreTimezone to set.
* @return This builder for chaining.
*/
public Builder setIgnoreTimezone(boolean value) {
ignoreTimezone_ = value;
onChanged();
return this;
}
/**
*
* Render date and time values in the provided time, rather than switching to the local time of the user.
*
*
* bool ignoreTimezone = 10;
* @return This builder for chaining.
*/
public Builder clearIgnoreTimezone() {
ignoreTimezone_ = false;
onChanged();
return this;
}
private boolean isRelativeDate_ ;
/**
*
* Render date as a relavent date, rather than an absolute date.
*
*
* bool isRelativeDate = 11;
* @return The isRelativeDate.
*/
@java.lang.Override
public boolean getIsRelativeDate() {
return isRelativeDate_;
}
/**
*
* Render date as a relavent date, rather than an absolute date.
*
*
* bool isRelativeDate = 11;
* @param value The isRelativeDate to set.
* @return This builder for chaining.
*/
public Builder setIsRelativeDate(boolean value) {
isRelativeDate_ = value;
onChanged();
return this;
}
/**
*
* Render date as a relavent date, rather than an absolute date.
*
*
* bool isRelativeDate = 11;
* @return This builder for chaining.
*/
public Builder clearIsRelativeDate() {
isRelativeDate_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.AppleWalletFieldRenderOptions)
}
// @@protoc_insertion_point(class_scope:io.AppleWalletFieldRenderOptions)
private static final com.passkit.grpc.Template.AppleWalletFieldRenderOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.AppleWalletFieldRenderOptions();
}
public static com.passkit.grpc.Template.AppleWalletFieldRenderOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AppleWalletFieldRenderOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AppleWalletFieldRenderOptions(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.Template.AppleWalletFieldRenderOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GooglePayFieldRenderOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.GooglePayFieldRenderOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @return The enum numeric value on the wire for googlePayPosition.
*/
int getGooglePayPositionValue();
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @return The googlePayPosition.
*/
com.passkit.grpc.Template.GooglePayField getGooglePayPosition();
/**
*
* If the field type is a text module, the priority of the text module.
*
*
* uint32 textModulePriority = 2;
* @return The textModulePriority.
*/
int getTextModulePriority();
}
/**
*
* Customise how data field is rendered on the front and back of the pass.
*
*
* Protobuf type {@code io.GooglePayFieldRenderOptions}
*/
public static final class GooglePayFieldRenderOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.GooglePayFieldRenderOptions)
GooglePayFieldRenderOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use GooglePayFieldRenderOptions.newBuilder() to construct.
private GooglePayFieldRenderOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GooglePayFieldRenderOptions() {
googlePayPosition_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GooglePayFieldRenderOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GooglePayFieldRenderOptions(
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();
googlePayPosition_ = rawValue;
break;
}
case 16: {
textModulePriority_ = input.readUInt32();
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.Template.internal_static_io_GooglePayFieldRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_GooglePayFieldRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.GooglePayFieldRenderOptions.class, com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder.class);
}
public static final int GOOGLEPAYPOSITION_FIELD_NUMBER = 1;
private int googlePayPosition_;
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @return The enum numeric value on the wire for googlePayPosition.
*/
@java.lang.Override public int getGooglePayPositionValue() {
return googlePayPosition_;
}
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @return The googlePayPosition.
*/
@java.lang.Override public com.passkit.grpc.Template.GooglePayField getGooglePayPosition() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.GooglePayField result = com.passkit.grpc.Template.GooglePayField.valueOf(googlePayPosition_);
return result == null ? com.passkit.grpc.Template.GooglePayField.UNRECOGNIZED : result;
}
public static final int TEXTMODULEPRIORITY_FIELD_NUMBER = 2;
private int textModulePriority_;
/**
*
* If the field type is a text module, the priority of the text module.
*
*
* uint32 textModulePriority = 2;
* @return The textModulePriority.
*/
@java.lang.Override
public int getTextModulePriority() {
return textModulePriority_;
}
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 (googlePayPosition_ != com.passkit.grpc.Template.GooglePayField.GOOGLE_PAY_FIELD_DO_NOT_USE.getNumber()) {
output.writeEnum(1, googlePayPosition_);
}
if (textModulePriority_ != 0) {
output.writeUInt32(2, textModulePriority_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (googlePayPosition_ != com.passkit.grpc.Template.GooglePayField.GOOGLE_PAY_FIELD_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, googlePayPosition_);
}
if (textModulePriority_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, textModulePriority_);
}
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.Template.GooglePayFieldRenderOptions)) {
return super.equals(obj);
}
com.passkit.grpc.Template.GooglePayFieldRenderOptions other = (com.passkit.grpc.Template.GooglePayFieldRenderOptions) obj;
if (googlePayPosition_ != other.googlePayPosition_) return false;
if (getTextModulePriority()
!= other.getTextModulePriority()) 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) + GOOGLEPAYPOSITION_FIELD_NUMBER;
hash = (53 * hash) + googlePayPosition_;
hash = (37 * hash) + TEXTMODULEPRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getTextModulePriority();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions 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.Template.GooglePayFieldRenderOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions 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.Template.GooglePayFieldRenderOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions 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.Template.GooglePayFieldRenderOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions 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.Template.GooglePayFieldRenderOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions 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.Template.GooglePayFieldRenderOptions 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;
}
/**
*
* Customise how data field is rendered on the front and back of the pass.
*
*
* Protobuf type {@code io.GooglePayFieldRenderOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.GooglePayFieldRenderOptions)
com.passkit.grpc.Template.GooglePayFieldRenderOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_GooglePayFieldRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_GooglePayFieldRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.GooglePayFieldRenderOptions.class, com.passkit.grpc.Template.GooglePayFieldRenderOptions.Builder.class);
}
// Construct using com.passkit.grpc.Template.GooglePayFieldRenderOptions.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();
googlePayPosition_ = 0;
textModulePriority_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_GooglePayFieldRenderOptions_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePayFieldRenderOptions getDefaultInstanceForType() {
return com.passkit.grpc.Template.GooglePayFieldRenderOptions.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePayFieldRenderOptions build() {
com.passkit.grpc.Template.GooglePayFieldRenderOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.GooglePayFieldRenderOptions buildPartial() {
com.passkit.grpc.Template.GooglePayFieldRenderOptions result = new com.passkit.grpc.Template.GooglePayFieldRenderOptions(this);
result.googlePayPosition_ = googlePayPosition_;
result.textModulePriority_ = textModulePriority_;
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.Template.GooglePayFieldRenderOptions) {
return mergeFrom((com.passkit.grpc.Template.GooglePayFieldRenderOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.GooglePayFieldRenderOptions other) {
if (other == com.passkit.grpc.Template.GooglePayFieldRenderOptions.getDefaultInstance()) return this;
if (other.googlePayPosition_ != 0) {
setGooglePayPositionValue(other.getGooglePayPositionValue());
}
if (other.getTextModulePriority() != 0) {
setTextModulePriority(other.getTextModulePriority());
}
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.Template.GooglePayFieldRenderOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.GooglePayFieldRenderOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int googlePayPosition_ = 0;
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @return The enum numeric value on the wire for googlePayPosition.
*/
@java.lang.Override public int getGooglePayPositionValue() {
return googlePayPosition_;
}
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @param value The enum numeric value on the wire for googlePayPosition to set.
* @return This builder for chaining.
*/
public Builder setGooglePayPositionValue(int value) {
googlePayPosition_ = value;
onChanged();
return this;
}
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @return The googlePayPosition.
*/
@java.lang.Override
public com.passkit.grpc.Template.GooglePayField getGooglePayPosition() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.GooglePayField result = com.passkit.grpc.Template.GooglePayField.valueOf(googlePayPosition_);
return result == null ? com.passkit.grpc.Template.GooglePayField.UNRECOGNIZED : result;
}
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @param value The googlePayPosition to set.
* @return This builder for chaining.
*/
public Builder setGooglePayPosition(com.passkit.grpc.Template.GooglePayField value) {
if (value == null) {
throw new NullPointerException();
}
googlePayPosition_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Determines which field the data will be mapped to on the Google Pay pass. Note, not all Google Pay fields support
* labels or localization. Where not supported, label and localization options will be ignored.
*
*
* .io.GooglePayField googlePayPosition = 1;
* @return This builder for chaining.
*/
public Builder clearGooglePayPosition() {
googlePayPosition_ = 0;
onChanged();
return this;
}
private int textModulePriority_ ;
/**
*
* If the field type is a text module, the priority of the text module.
*
*
* uint32 textModulePriority = 2;
* @return The textModulePriority.
*/
@java.lang.Override
public int getTextModulePriority() {
return textModulePriority_;
}
/**
*
* If the field type is a text module, the priority of the text module.
*
*
* uint32 textModulePriority = 2;
* @param value The textModulePriority to set.
* @return This builder for chaining.
*/
public Builder setTextModulePriority(int value) {
textModulePriority_ = value;
onChanged();
return this;
}
/**
*
* If the field type is a text module, the priority of the text module.
*
*
* uint32 textModulePriority = 2;
* @return This builder for chaining.
*/
public Builder clearTextModulePriority() {
textModulePriority_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.GooglePayFieldRenderOptions)
}
// @@protoc_insertion_point(class_scope:io.GooglePayFieldRenderOptions)
private static final com.passkit.grpc.Template.GooglePayFieldRenderOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.GooglePayFieldRenderOptions();
}
public static com.passkit.grpc.Template.GooglePayFieldRenderOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GooglePayFieldRenderOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GooglePayFieldRenderOptions(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.Template.GooglePayFieldRenderOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PositionSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.PositionSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @return The enum numeric value on the wire for section.
*/
int getSectionValue();
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @return The section.
*/
com.passkit.grpc.Template.FieldSection getSection();
/**
*
* The field section has certain number of fields they can contain. The priority indicates the position of the section.
*
*
* uint32 priority = 2;
* @return The priority.
*/
int getPriority();
}
/**
*
* Sets a position of field on the pass. Priority attribute allows you to change the order of field within the section.
*
*
* Protobuf type {@code io.PositionSettings}
*/
public static final class PositionSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.PositionSettings)
PositionSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PositionSettings.newBuilder() to construct.
private PositionSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PositionSettings() {
section_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PositionSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PositionSettings(
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();
section_ = rawValue;
break;
}
case 16: {
priority_ = input.readUInt32();
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.Template.internal_static_io_PositionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_PositionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.PositionSettings.class, com.passkit.grpc.Template.PositionSettings.Builder.class);
}
public static final int SECTION_FIELD_NUMBER = 1;
private int section_;
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @return The enum numeric value on the wire for section.
*/
@java.lang.Override public int getSectionValue() {
return section_;
}
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @return The section.
*/
@java.lang.Override public com.passkit.grpc.Template.FieldSection getSection() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.FieldSection result = com.passkit.grpc.Template.FieldSection.valueOf(section_);
return result == null ? com.passkit.grpc.Template.FieldSection.UNRECOGNIZED : result;
}
public static final int PRIORITY_FIELD_NUMBER = 2;
private int priority_;
/**
*
* The field section has certain number of fields they can contain. The priority indicates the position of the section.
*
*
* uint32 priority = 2;
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
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 (section_ != com.passkit.grpc.Template.FieldSection.FIELD_SECTION_DO_NOT_USE.getNumber()) {
output.writeEnum(1, section_);
}
if (priority_ != 0) {
output.writeUInt32(2, priority_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (section_ != com.passkit.grpc.Template.FieldSection.FIELD_SECTION_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, section_);
}
if (priority_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, priority_);
}
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.Template.PositionSettings)) {
return super.equals(obj);
}
com.passkit.grpc.Template.PositionSettings other = (com.passkit.grpc.Template.PositionSettings) obj;
if (section_ != other.section_) return false;
if (getPriority()
!= other.getPriority()) 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) + SECTION_FIELD_NUMBER;
hash = (53 * hash) + section_;
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.PositionSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PositionSettings 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.Template.PositionSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PositionSettings 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.Template.PositionSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.PositionSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.PositionSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PositionSettings 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.Template.PositionSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PositionSettings 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.Template.PositionSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.PositionSettings 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.Template.PositionSettings 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;
}
/**
*
* Sets a position of field on the pass. Priority attribute allows you to change the order of field within the section.
*
*
* Protobuf type {@code io.PositionSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.PositionSettings)
com.passkit.grpc.Template.PositionSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_PositionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_PositionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.PositionSettings.class, com.passkit.grpc.Template.PositionSettings.Builder.class);
}
// Construct using com.passkit.grpc.Template.PositionSettings.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();
section_ = 0;
priority_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_PositionSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.PositionSettings getDefaultInstanceForType() {
return com.passkit.grpc.Template.PositionSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.PositionSettings build() {
com.passkit.grpc.Template.PositionSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.PositionSettings buildPartial() {
com.passkit.grpc.Template.PositionSettings result = new com.passkit.grpc.Template.PositionSettings(this);
result.section_ = section_;
result.priority_ = priority_;
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.Template.PositionSettings) {
return mergeFrom((com.passkit.grpc.Template.PositionSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.PositionSettings other) {
if (other == com.passkit.grpc.Template.PositionSettings.getDefaultInstance()) return this;
if (other.section_ != 0) {
setSectionValue(other.getSectionValue());
}
if (other.getPriority() != 0) {
setPriority(other.getPriority());
}
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.Template.PositionSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.PositionSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int section_ = 0;
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @return The enum numeric value on the wire for section.
*/
@java.lang.Override public int getSectionValue() {
return section_;
}
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @param value The enum numeric value on the wire for section to set.
* @return This builder for chaining.
*/
public Builder setSectionValue(int value) {
section_ = value;
onChanged();
return this;
}
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @return The section.
*/
@java.lang.Override
public com.passkit.grpc.Template.FieldSection getSection() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.FieldSection result = com.passkit.grpc.Template.FieldSection.valueOf(section_);
return result == null ? com.passkit.grpc.Template.FieldSection.UNRECOGNIZED : result;
}
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @param value The section to set.
* @return This builder for chaining.
*/
public Builder setSection(com.passkit.grpc.Template.FieldSection value) {
if (value == null) {
throw new NullPointerException();
}
section_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Selects a section to render a field.
*
*
* .io.FieldSection section = 1;
* @return This builder for chaining.
*/
public Builder clearSection() {
section_ = 0;
onChanged();
return this;
}
private int priority_ ;
/**
*
* The field section has certain number of fields they can contain. The priority indicates the position of the section.
*
*
* uint32 priority = 2;
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
/**
*
* The field section has certain number of fields they can contain. The priority indicates the position of the section.
*
*
* uint32 priority = 2;
* @param value The priority to set.
* @return This builder for chaining.
*/
public Builder setPriority(int value) {
priority_ = value;
onChanged();
return this;
}
/**
*
* The field section has certain number of fields they can contain. The priority indicates the position of the section.
*
*
* uint32 priority = 2;
* @return This builder for chaining.
*/
public Builder clearPriority() {
priority_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.PositionSettings)
}
// @@protoc_insertion_point(class_scope:io.PositionSettings)
private static final com.passkit.grpc.Template.PositionSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.PositionSettings();
}
public static com.passkit.grpc.Template.PositionSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PositionSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PositionSettings(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.Template.PositionSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataCollectionFieldRenderOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.DataCollectionFieldRenderOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @return The helpText.
*/
java.lang.String getHelpText();
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @return The bytes for helpText.
*/
com.google.protobuf.ByteString
getHelpTextBytes();
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
* @return Whether the localizedHelpText field is set.
*/
boolean hasLocalizedHelpText();
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
* @return The localizedHelpText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedHelpText();
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedHelpTextOrBuilder();
/**
*
* Used to change the order of fields displayed on the data collection landing page.
*
*
* int32 displayOrder = 3;
* @return The displayOrder.
*/
int getDisplayOrder();
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @return The placeholder.
*/
java.lang.String getPlaceholder();
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @return The bytes for placeholder.
*/
com.google.protobuf.ByteString
getPlaceholderBytes();
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
java.util.List
getSelectOptionsList();
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
com.passkit.grpc.Template.SelectOption getSelectOptions(int index);
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
int getSelectOptionsCount();
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
java.util.List extends com.passkit.grpc.Template.SelectOptionOrBuilder>
getSelectOptionsOrBuilderList();
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
com.passkit.grpc.Template.SelectOptionOrBuilder getSelectOptionsOrBuilder(
int index);
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
* @return Whether the localizedPlaceholder field is set.
*/
boolean hasLocalizedPlaceholder();
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
* @return The localizedPlaceholder.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedPlaceholder();
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPlaceholderOrBuilder();
/**
*
* If set true, input field will have autocomplete enabled. The default is false.
*
*
* bool autocomplete = 8;
* @return The autocomplete.
*/
boolean getAutocomplete();
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
* @return Whether the addressRenderOptions field is set.
*/
boolean hasAddressRenderOptions();
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
* @return The addressRenderOptions.
*/
com.passkit.grpc.Template.AddressRenderOptions getAddressRenderOptions();
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
com.passkit.grpc.Template.AddressRenderOptionsOrBuilder getAddressRenderOptionsOrBuilder();
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @return The localizedYearPlaceholder.
*/
java.lang.String getLocalizedYearPlaceholder();
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @return The bytes for localizedYearPlaceholder.
*/
com.google.protobuf.ByteString
getLocalizedYearPlaceholderBytes();
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @return The localizedMonthPlaceholder.
*/
java.lang.String getLocalizedMonthPlaceholder();
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @return The bytes for localizedMonthPlaceholder.
*/
com.google.protobuf.ByteString
getLocalizedMonthPlaceholderBytes();
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @return The localizedDayPlaceholder.
*/
java.lang.String getLocalizedDayPlaceholder();
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @return The bytes for localizedDayPlaceholder.
*/
com.google.protobuf.ByteString
getLocalizedDayPlaceholderBytes();
}
/**
*
* Customise how data field is rendered on the data collection landing page.
*
*
* Protobuf type {@code io.DataCollectionFieldRenderOptions}
*/
public static final class DataCollectionFieldRenderOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.DataCollectionFieldRenderOptions)
DataCollectionFieldRenderOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataCollectionFieldRenderOptions.newBuilder() to construct.
private DataCollectionFieldRenderOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataCollectionFieldRenderOptions() {
helpText_ = "";
placeholder_ = "";
selectOptions_ = java.util.Collections.emptyList();
localizedYearPlaceholder_ = "";
localizedMonthPlaceholder_ = "";
localizedDayPlaceholder_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataCollectionFieldRenderOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataCollectionFieldRenderOptions(
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();
helpText_ = s;
break;
}
case 18: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedHelpText_ != null) {
subBuilder = localizedHelpText_.toBuilder();
}
localizedHelpText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedHelpText_);
localizedHelpText_ = subBuilder.buildPartial();
}
break;
}
case 24: {
displayOrder_ = input.readInt32();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
placeholder_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
selectOptions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
selectOptions_.add(
input.readMessage(com.passkit.grpc.Template.SelectOption.parser(), extensionRegistry));
break;
}
case 58: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedPlaceholder_ != null) {
subBuilder = localizedPlaceholder_.toBuilder();
}
localizedPlaceholder_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedPlaceholder_);
localizedPlaceholder_ = subBuilder.buildPartial();
}
break;
}
case 64: {
autocomplete_ = input.readBool();
break;
}
case 74: {
com.passkit.grpc.Template.AddressRenderOptions.Builder subBuilder = null;
if (addressRenderOptions_ != null) {
subBuilder = addressRenderOptions_.toBuilder();
}
addressRenderOptions_ = input.readMessage(com.passkit.grpc.Template.AddressRenderOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(addressRenderOptions_);
addressRenderOptions_ = subBuilder.buildPartial();
}
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
localizedYearPlaceholder_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
localizedMonthPlaceholder_ = s;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
localizedDayPlaceholder_ = 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)) {
selectOptions_ = java.util.Collections.unmodifiableList(selectOptions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionFieldRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionFieldRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DataCollectionFieldRenderOptions.class, com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder.class);
}
public static final int HELPTEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object helpText_;
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @return The helpText.
*/
@java.lang.Override
public java.lang.String getHelpText() {
java.lang.Object ref = helpText_;
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();
helpText_ = s;
return s;
}
}
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @return The bytes for helpText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHelpTextBytes() {
java.lang.Object ref = helpText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
helpText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDHELPTEXT_FIELD_NUMBER = 2;
private com.passkit.grpc.Localization.LocalizedString localizedHelpText_;
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
* @return Whether the localizedHelpText field is set.
*/
@java.lang.Override
public boolean hasLocalizedHelpText() {
return localizedHelpText_ != null;
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
* @return The localizedHelpText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedHelpText() {
return localizedHelpText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedHelpText_;
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedHelpTextOrBuilder() {
return getLocalizedHelpText();
}
public static final int DISPLAYORDER_FIELD_NUMBER = 3;
private int displayOrder_;
/**
*
* Used to change the order of fields displayed on the data collection landing page.
*
*
* int32 displayOrder = 3;
* @return The displayOrder.
*/
@java.lang.Override
public int getDisplayOrder() {
return displayOrder_;
}
public static final int PLACEHOLDER_FIELD_NUMBER = 5;
private volatile java.lang.Object placeholder_;
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @return The placeholder.
*/
@java.lang.Override
public java.lang.String getPlaceholder() {
java.lang.Object ref = placeholder_;
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();
placeholder_ = s;
return s;
}
}
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @return The bytes for placeholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlaceholderBytes() {
java.lang.Object ref = placeholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SELECTOPTIONS_FIELD_NUMBER = 6;
private java.util.List selectOptions_;
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
@java.lang.Override
public java.util.List getSelectOptionsList() {
return selectOptions_;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
@java.lang.Override
public java.util.List extends com.passkit.grpc.Template.SelectOptionOrBuilder>
getSelectOptionsOrBuilderList() {
return selectOptions_;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
@java.lang.Override
public int getSelectOptionsCount() {
return selectOptions_.size();
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
@java.lang.Override
public com.passkit.grpc.Template.SelectOption getSelectOptions(int index) {
return selectOptions_.get(index);
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
@java.lang.Override
public com.passkit.grpc.Template.SelectOptionOrBuilder getSelectOptionsOrBuilder(
int index) {
return selectOptions_.get(index);
}
public static final int LOCALIZEDPLACEHOLDER_FIELD_NUMBER = 7;
private com.passkit.grpc.Localization.LocalizedString localizedPlaceholder_;
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
* @return Whether the localizedPlaceholder field is set.
*/
@java.lang.Override
public boolean hasLocalizedPlaceholder() {
return localizedPlaceholder_ != null;
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
* @return The localizedPlaceholder.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedPlaceholder() {
return localizedPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPlaceholder_;
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPlaceholderOrBuilder() {
return getLocalizedPlaceholder();
}
public static final int AUTOCOMPLETE_FIELD_NUMBER = 8;
private boolean autocomplete_;
/**
*
* If set true, input field will have autocomplete enabled. The default is false.
*
*
* bool autocomplete = 8;
* @return The autocomplete.
*/
@java.lang.Override
public boolean getAutocomplete() {
return autocomplete_;
}
public static final int ADDRESSRENDEROPTIONS_FIELD_NUMBER = 9;
private com.passkit.grpc.Template.AddressRenderOptions addressRenderOptions_;
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
* @return Whether the addressRenderOptions field is set.
*/
@java.lang.Override
public boolean hasAddressRenderOptions() {
return addressRenderOptions_ != null;
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
* @return The addressRenderOptions.
*/
@java.lang.Override
public com.passkit.grpc.Template.AddressRenderOptions getAddressRenderOptions() {
return addressRenderOptions_ == null ? com.passkit.grpc.Template.AddressRenderOptions.getDefaultInstance() : addressRenderOptions_;
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
@java.lang.Override
public com.passkit.grpc.Template.AddressRenderOptionsOrBuilder getAddressRenderOptionsOrBuilder() {
return getAddressRenderOptions();
}
public static final int LOCALIZEDYEARPLACEHOLDER_FIELD_NUMBER = 10;
private volatile java.lang.Object localizedYearPlaceholder_;
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @return The localizedYearPlaceholder.
*/
@java.lang.Override
public java.lang.String getLocalizedYearPlaceholder() {
java.lang.Object ref = localizedYearPlaceholder_;
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();
localizedYearPlaceholder_ = s;
return s;
}
}
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @return The bytes for localizedYearPlaceholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocalizedYearPlaceholderBytes() {
java.lang.Object ref = localizedYearPlaceholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localizedYearPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDMONTHPLACEHOLDER_FIELD_NUMBER = 11;
private volatile java.lang.Object localizedMonthPlaceholder_;
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @return The localizedMonthPlaceholder.
*/
@java.lang.Override
public java.lang.String getLocalizedMonthPlaceholder() {
java.lang.Object ref = localizedMonthPlaceholder_;
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();
localizedMonthPlaceholder_ = s;
return s;
}
}
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @return The bytes for localizedMonthPlaceholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocalizedMonthPlaceholderBytes() {
java.lang.Object ref = localizedMonthPlaceholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localizedMonthPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDDAYPLACEHOLDER_FIELD_NUMBER = 12;
private volatile java.lang.Object localizedDayPlaceholder_;
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @return The localizedDayPlaceholder.
*/
@java.lang.Override
public java.lang.String getLocalizedDayPlaceholder() {
java.lang.Object ref = localizedDayPlaceholder_;
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();
localizedDayPlaceholder_ = s;
return s;
}
}
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @return The bytes for localizedDayPlaceholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocalizedDayPlaceholderBytes() {
java.lang.Object ref = localizedDayPlaceholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localizedDayPlaceholder_ = 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 (!getHelpTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, helpText_);
}
if (localizedHelpText_ != null) {
output.writeMessage(2, getLocalizedHelpText());
}
if (displayOrder_ != 0) {
output.writeInt32(3, displayOrder_);
}
if (!getPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, placeholder_);
}
for (int i = 0; i < selectOptions_.size(); i++) {
output.writeMessage(6, selectOptions_.get(i));
}
if (localizedPlaceholder_ != null) {
output.writeMessage(7, getLocalizedPlaceholder());
}
if (autocomplete_ != false) {
output.writeBool(8, autocomplete_);
}
if (addressRenderOptions_ != null) {
output.writeMessage(9, getAddressRenderOptions());
}
if (!getLocalizedYearPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, localizedYearPlaceholder_);
}
if (!getLocalizedMonthPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, localizedMonthPlaceholder_);
}
if (!getLocalizedDayPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, localizedDayPlaceholder_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getHelpTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, helpText_);
}
if (localizedHelpText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocalizedHelpText());
}
if (displayOrder_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, displayOrder_);
}
if (!getPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, placeholder_);
}
for (int i = 0; i < selectOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, selectOptions_.get(i));
}
if (localizedPlaceholder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLocalizedPlaceholder());
}
if (autocomplete_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, autocomplete_);
}
if (addressRenderOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getAddressRenderOptions());
}
if (!getLocalizedYearPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, localizedYearPlaceholder_);
}
if (!getLocalizedMonthPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, localizedMonthPlaceholder_);
}
if (!getLocalizedDayPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, localizedDayPlaceholder_);
}
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.Template.DataCollectionFieldRenderOptions)) {
return super.equals(obj);
}
com.passkit.grpc.Template.DataCollectionFieldRenderOptions other = (com.passkit.grpc.Template.DataCollectionFieldRenderOptions) obj;
if (!getHelpText()
.equals(other.getHelpText())) return false;
if (hasLocalizedHelpText() != other.hasLocalizedHelpText()) return false;
if (hasLocalizedHelpText()) {
if (!getLocalizedHelpText()
.equals(other.getLocalizedHelpText())) return false;
}
if (getDisplayOrder()
!= other.getDisplayOrder()) return false;
if (!getPlaceholder()
.equals(other.getPlaceholder())) return false;
if (!getSelectOptionsList()
.equals(other.getSelectOptionsList())) return false;
if (hasLocalizedPlaceholder() != other.hasLocalizedPlaceholder()) return false;
if (hasLocalizedPlaceholder()) {
if (!getLocalizedPlaceholder()
.equals(other.getLocalizedPlaceholder())) return false;
}
if (getAutocomplete()
!= other.getAutocomplete()) return false;
if (hasAddressRenderOptions() != other.hasAddressRenderOptions()) return false;
if (hasAddressRenderOptions()) {
if (!getAddressRenderOptions()
.equals(other.getAddressRenderOptions())) return false;
}
if (!getLocalizedYearPlaceholder()
.equals(other.getLocalizedYearPlaceholder())) return false;
if (!getLocalizedMonthPlaceholder()
.equals(other.getLocalizedMonthPlaceholder())) return false;
if (!getLocalizedDayPlaceholder()
.equals(other.getLocalizedDayPlaceholder())) 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) + HELPTEXT_FIELD_NUMBER;
hash = (53 * hash) + getHelpText().hashCode();
if (hasLocalizedHelpText()) {
hash = (37 * hash) + LOCALIZEDHELPTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedHelpText().hashCode();
}
hash = (37 * hash) + DISPLAYORDER_FIELD_NUMBER;
hash = (53 * hash) + getDisplayOrder();
hash = (37 * hash) + PLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getPlaceholder().hashCode();
if (getSelectOptionsCount() > 0) {
hash = (37 * hash) + SELECTOPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getSelectOptionsList().hashCode();
}
if (hasLocalizedPlaceholder()) {
hash = (37 * hash) + LOCALIZEDPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedPlaceholder().hashCode();
}
hash = (37 * hash) + AUTOCOMPLETE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutocomplete());
if (hasAddressRenderOptions()) {
hash = (37 * hash) + ADDRESSRENDEROPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getAddressRenderOptions().hashCode();
}
hash = (37 * hash) + LOCALIZEDYEARPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedYearPlaceholder().hashCode();
hash = (37 * hash) + LOCALIZEDMONTHPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedMonthPlaceholder().hashCode();
hash = (37 * hash) + LOCALIZEDDAYPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedDayPlaceholder().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions 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.Template.DataCollectionFieldRenderOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions 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.Template.DataCollectionFieldRenderOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions 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.Template.DataCollectionFieldRenderOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions 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.Template.DataCollectionFieldRenderOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions 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.Template.DataCollectionFieldRenderOptions 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;
}
/**
*
* Customise how data field is rendered on the data collection landing page.
*
*
* Protobuf type {@code io.DataCollectionFieldRenderOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.DataCollectionFieldRenderOptions)
com.passkit.grpc.Template.DataCollectionFieldRenderOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionFieldRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionFieldRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DataCollectionFieldRenderOptions.class, com.passkit.grpc.Template.DataCollectionFieldRenderOptions.Builder.class);
}
// Construct using com.passkit.grpc.Template.DataCollectionFieldRenderOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSelectOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
helpText_ = "";
if (localizedHelpTextBuilder_ == null) {
localizedHelpText_ = null;
} else {
localizedHelpText_ = null;
localizedHelpTextBuilder_ = null;
}
displayOrder_ = 0;
placeholder_ = "";
if (selectOptionsBuilder_ == null) {
selectOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
selectOptionsBuilder_.clear();
}
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholder_ = null;
} else {
localizedPlaceholder_ = null;
localizedPlaceholderBuilder_ = null;
}
autocomplete_ = false;
if (addressRenderOptionsBuilder_ == null) {
addressRenderOptions_ = null;
} else {
addressRenderOptions_ = null;
addressRenderOptionsBuilder_ = null;
}
localizedYearPlaceholder_ = "";
localizedMonthPlaceholder_ = "";
localizedDayPlaceholder_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_DataCollectionFieldRenderOptions_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionFieldRenderOptions getDefaultInstanceForType() {
return com.passkit.grpc.Template.DataCollectionFieldRenderOptions.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionFieldRenderOptions build() {
com.passkit.grpc.Template.DataCollectionFieldRenderOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.DataCollectionFieldRenderOptions buildPartial() {
com.passkit.grpc.Template.DataCollectionFieldRenderOptions result = new com.passkit.grpc.Template.DataCollectionFieldRenderOptions(this);
int from_bitField0_ = bitField0_;
result.helpText_ = helpText_;
if (localizedHelpTextBuilder_ == null) {
result.localizedHelpText_ = localizedHelpText_;
} else {
result.localizedHelpText_ = localizedHelpTextBuilder_.build();
}
result.displayOrder_ = displayOrder_;
result.placeholder_ = placeholder_;
if (selectOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
selectOptions_ = java.util.Collections.unmodifiableList(selectOptions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.selectOptions_ = selectOptions_;
} else {
result.selectOptions_ = selectOptionsBuilder_.build();
}
if (localizedPlaceholderBuilder_ == null) {
result.localizedPlaceholder_ = localizedPlaceholder_;
} else {
result.localizedPlaceholder_ = localizedPlaceholderBuilder_.build();
}
result.autocomplete_ = autocomplete_;
if (addressRenderOptionsBuilder_ == null) {
result.addressRenderOptions_ = addressRenderOptions_;
} else {
result.addressRenderOptions_ = addressRenderOptionsBuilder_.build();
}
result.localizedYearPlaceholder_ = localizedYearPlaceholder_;
result.localizedMonthPlaceholder_ = localizedMonthPlaceholder_;
result.localizedDayPlaceholder_ = localizedDayPlaceholder_;
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.Template.DataCollectionFieldRenderOptions) {
return mergeFrom((com.passkit.grpc.Template.DataCollectionFieldRenderOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.DataCollectionFieldRenderOptions other) {
if (other == com.passkit.grpc.Template.DataCollectionFieldRenderOptions.getDefaultInstance()) return this;
if (!other.getHelpText().isEmpty()) {
helpText_ = other.helpText_;
onChanged();
}
if (other.hasLocalizedHelpText()) {
mergeLocalizedHelpText(other.getLocalizedHelpText());
}
if (other.getDisplayOrder() != 0) {
setDisplayOrder(other.getDisplayOrder());
}
if (!other.getPlaceholder().isEmpty()) {
placeholder_ = other.placeholder_;
onChanged();
}
if (selectOptionsBuilder_ == null) {
if (!other.selectOptions_.isEmpty()) {
if (selectOptions_.isEmpty()) {
selectOptions_ = other.selectOptions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSelectOptionsIsMutable();
selectOptions_.addAll(other.selectOptions_);
}
onChanged();
}
} else {
if (!other.selectOptions_.isEmpty()) {
if (selectOptionsBuilder_.isEmpty()) {
selectOptionsBuilder_.dispose();
selectOptionsBuilder_ = null;
selectOptions_ = other.selectOptions_;
bitField0_ = (bitField0_ & ~0x00000001);
selectOptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSelectOptionsFieldBuilder() : null;
} else {
selectOptionsBuilder_.addAllMessages(other.selectOptions_);
}
}
}
if (other.hasLocalizedPlaceholder()) {
mergeLocalizedPlaceholder(other.getLocalizedPlaceholder());
}
if (other.getAutocomplete() != false) {
setAutocomplete(other.getAutocomplete());
}
if (other.hasAddressRenderOptions()) {
mergeAddressRenderOptions(other.getAddressRenderOptions());
}
if (!other.getLocalizedYearPlaceholder().isEmpty()) {
localizedYearPlaceholder_ = other.localizedYearPlaceholder_;
onChanged();
}
if (!other.getLocalizedMonthPlaceholder().isEmpty()) {
localizedMonthPlaceholder_ = other.localizedMonthPlaceholder_;
onChanged();
}
if (!other.getLocalizedDayPlaceholder().isEmpty()) {
localizedDayPlaceholder_ = other.localizedDayPlaceholder_;
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.Template.DataCollectionFieldRenderOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.DataCollectionFieldRenderOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object helpText_ = "";
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @return The helpText.
*/
public java.lang.String getHelpText() {
java.lang.Object ref = helpText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
helpText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @return The bytes for helpText.
*/
public com.google.protobuf.ByteString
getHelpTextBytes() {
java.lang.Object ref = helpText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
helpText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @param value The helpText to set.
* @return This builder for chaining.
*/
public Builder setHelpText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
helpText_ = value;
onChanged();
return this;
}
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @return This builder for chaining.
*/
public Builder clearHelpText() {
helpText_ = getDefaultInstance().getHelpText();
onChanged();
return this;
}
/**
*
* Tooltip or helper text displayed under the input field which explains the purpose of field's input.
*
*
* string helpText = 1;
* @param value The bytes for helpText to set.
* @return This builder for chaining.
*/
public Builder setHelpTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
helpText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedHelpText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedHelpTextBuilder_;
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
* @return Whether the localizedHelpText field is set.
*/
public boolean hasLocalizedHelpText() {
return localizedHelpTextBuilder_ != null || localizedHelpText_ != null;
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
* @return The localizedHelpText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedHelpText() {
if (localizedHelpTextBuilder_ == null) {
return localizedHelpText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedHelpText_;
} else {
return localizedHelpTextBuilder_.getMessage();
}
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
public Builder setLocalizedHelpText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedHelpTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedHelpText_ = value;
onChanged();
} else {
localizedHelpTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
public Builder setLocalizedHelpText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedHelpTextBuilder_ == null) {
localizedHelpText_ = builderForValue.build();
onChanged();
} else {
localizedHelpTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
public Builder mergeLocalizedHelpText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedHelpTextBuilder_ == null) {
if (localizedHelpText_ != null) {
localizedHelpText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedHelpText_).mergeFrom(value).buildPartial();
} else {
localizedHelpText_ = value;
}
onChanged();
} else {
localizedHelpTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
public Builder clearLocalizedHelpText() {
if (localizedHelpTextBuilder_ == null) {
localizedHelpText_ = null;
onChanged();
} else {
localizedHelpText_ = null;
localizedHelpTextBuilder_ = null;
}
return this;
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedHelpTextBuilder() {
onChanged();
return getLocalizedHelpTextFieldBuilder().getBuilder();
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedHelpTextOrBuilder() {
if (localizedHelpTextBuilder_ != null) {
return localizedHelpTextBuilder_.getMessageOrBuilder();
} else {
return localizedHelpText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedHelpText_;
}
}
/**
*
* Tooltip or helper text in localized language.
*
*
* .io.LocalizedString localizedHelpText = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedHelpTextFieldBuilder() {
if (localizedHelpTextBuilder_ == null) {
localizedHelpTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedHelpText(),
getParentForChildren(),
isClean());
localizedHelpText_ = null;
}
return localizedHelpTextBuilder_;
}
private int displayOrder_ ;
/**
*
* Used to change the order of fields displayed on the data collection landing page.
*
*
* int32 displayOrder = 3;
* @return The displayOrder.
*/
@java.lang.Override
public int getDisplayOrder() {
return displayOrder_;
}
/**
*
* Used to change the order of fields displayed on the data collection landing page.
*
*
* int32 displayOrder = 3;
* @param value The displayOrder to set.
* @return This builder for chaining.
*/
public Builder setDisplayOrder(int value) {
displayOrder_ = value;
onChanged();
return this;
}
/**
*
* Used to change the order of fields displayed on the data collection landing page.
*
*
* int32 displayOrder = 3;
* @return This builder for chaining.
*/
public Builder clearDisplayOrder() {
displayOrder_ = 0;
onChanged();
return this;
}
private java.lang.Object placeholder_ = "";
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @return The placeholder.
*/
public java.lang.String getPlaceholder() {
java.lang.Object ref = placeholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
placeholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @return The bytes for placeholder.
*/
public com.google.protobuf.ByteString
getPlaceholderBytes() {
java.lang.Object ref = placeholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @param value The placeholder to set.
* @return This builder for chaining.
*/
public Builder setPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
placeholder_ = value;
onChanged();
return this;
}
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @return This builder for chaining.
*/
public Builder clearPlaceholder() {
placeholder_ = getDefaultInstance().getPlaceholder();
onChanged();
return this;
}
/**
*
* If placeholder is set or elementText is not set, then an input element will be rendered. The default is placeholder is an empty string.
*
*
* string placeholder = 5;
* @param value The bytes for placeholder to set.
* @return This builder for chaining.
*/
public Builder setPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
placeholder_ = value;
onChanged();
return this;
}
private java.util.List selectOptions_ =
java.util.Collections.emptyList();
private void ensureSelectOptionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
selectOptions_ = new java.util.ArrayList(selectOptions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Template.SelectOption, com.passkit.grpc.Template.SelectOption.Builder, com.passkit.grpc.Template.SelectOptionOrBuilder> selectOptionsBuilder_;
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public java.util.List getSelectOptionsList() {
if (selectOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(selectOptions_);
} else {
return selectOptionsBuilder_.getMessageList();
}
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public int getSelectOptionsCount() {
if (selectOptionsBuilder_ == null) {
return selectOptions_.size();
} else {
return selectOptionsBuilder_.getCount();
}
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public com.passkit.grpc.Template.SelectOption getSelectOptions(int index) {
if (selectOptionsBuilder_ == null) {
return selectOptions_.get(index);
} else {
return selectOptionsBuilder_.getMessage(index);
}
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder setSelectOptions(
int index, com.passkit.grpc.Template.SelectOption value) {
if (selectOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSelectOptionsIsMutable();
selectOptions_.set(index, value);
onChanged();
} else {
selectOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder setSelectOptions(
int index, com.passkit.grpc.Template.SelectOption.Builder builderForValue) {
if (selectOptionsBuilder_ == null) {
ensureSelectOptionsIsMutable();
selectOptions_.set(index, builderForValue.build());
onChanged();
} else {
selectOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder addSelectOptions(com.passkit.grpc.Template.SelectOption value) {
if (selectOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSelectOptionsIsMutable();
selectOptions_.add(value);
onChanged();
} else {
selectOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder addSelectOptions(
int index, com.passkit.grpc.Template.SelectOption value) {
if (selectOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSelectOptionsIsMutable();
selectOptions_.add(index, value);
onChanged();
} else {
selectOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder addSelectOptions(
com.passkit.grpc.Template.SelectOption.Builder builderForValue) {
if (selectOptionsBuilder_ == null) {
ensureSelectOptionsIsMutable();
selectOptions_.add(builderForValue.build());
onChanged();
} else {
selectOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder addSelectOptions(
int index, com.passkit.grpc.Template.SelectOption.Builder builderForValue) {
if (selectOptionsBuilder_ == null) {
ensureSelectOptionsIsMutable();
selectOptions_.add(index, builderForValue.build());
onChanged();
} else {
selectOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder addAllSelectOptions(
java.lang.Iterable extends com.passkit.grpc.Template.SelectOption> values) {
if (selectOptionsBuilder_ == null) {
ensureSelectOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, selectOptions_);
onChanged();
} else {
selectOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder clearSelectOptions() {
if (selectOptionsBuilder_ == null) {
selectOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
selectOptionsBuilder_.clear();
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public Builder removeSelectOptions(int index) {
if (selectOptionsBuilder_ == null) {
ensureSelectOptionsIsMutable();
selectOptions_.remove(index);
onChanged();
} else {
selectOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public com.passkit.grpc.Template.SelectOption.Builder getSelectOptionsBuilder(
int index) {
return getSelectOptionsFieldBuilder().getBuilder(index);
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public com.passkit.grpc.Template.SelectOptionOrBuilder getSelectOptionsOrBuilder(
int index) {
if (selectOptionsBuilder_ == null) {
return selectOptions_.get(index); } else {
return selectOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public java.util.List extends com.passkit.grpc.Template.SelectOptionOrBuilder>
getSelectOptionsOrBuilderList() {
if (selectOptionsBuilder_ != null) {
return selectOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(selectOptions_);
}
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public com.passkit.grpc.Template.SelectOption.Builder addSelectOptionsBuilder() {
return getSelectOptionsFieldBuilder().addBuilder(
com.passkit.grpc.Template.SelectOption.getDefaultInstance());
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public com.passkit.grpc.Template.SelectOption.Builder addSelectOptionsBuilder(
int index) {
return getSelectOptionsFieldBuilder().addBuilder(
index, com.passkit.grpc.Template.SelectOption.getDefaultInstance());
}
/**
*
* If DataType.OPTIONS is set, then drop-down list will be rendered.
*
*
* repeated .io.SelectOption selectOptions = 6;
*/
public java.util.List
getSelectOptionsBuilderList() {
return getSelectOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Template.SelectOption, com.passkit.grpc.Template.SelectOption.Builder, com.passkit.grpc.Template.SelectOptionOrBuilder>
getSelectOptionsFieldBuilder() {
if (selectOptionsBuilder_ == null) {
selectOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.passkit.grpc.Template.SelectOption, com.passkit.grpc.Template.SelectOption.Builder, com.passkit.grpc.Template.SelectOptionOrBuilder>(
selectOptions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
selectOptions_ = null;
}
return selectOptionsBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedPlaceholder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedPlaceholderBuilder_;
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
* @return Whether the localizedPlaceholder field is set.
*/
public boolean hasLocalizedPlaceholder() {
return localizedPlaceholderBuilder_ != null || localizedPlaceholder_ != null;
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
* @return The localizedPlaceholder.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedPlaceholder() {
if (localizedPlaceholderBuilder_ == null) {
return localizedPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPlaceholder_;
} else {
return localizedPlaceholderBuilder_.getMessage();
}
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
public Builder setLocalizedPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedPlaceholderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedPlaceholder_ = value;
onChanged();
} else {
localizedPlaceholderBuilder_.setMessage(value);
}
return this;
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
public Builder setLocalizedPlaceholder(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholder_ = builderForValue.build();
onChanged();
} else {
localizedPlaceholderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
public Builder mergeLocalizedPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedPlaceholderBuilder_ == null) {
if (localizedPlaceholder_ != null) {
localizedPlaceholder_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedPlaceholder_).mergeFrom(value).buildPartial();
} else {
localizedPlaceholder_ = value;
}
onChanged();
} else {
localizedPlaceholderBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
public Builder clearLocalizedPlaceholder() {
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholder_ = null;
onChanged();
} else {
localizedPlaceholder_ = null;
localizedPlaceholderBuilder_ = null;
}
return this;
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedPlaceholderBuilder() {
onChanged();
return getLocalizedPlaceholderFieldBuilder().getBuilder();
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPlaceholderOrBuilder() {
if (localizedPlaceholderBuilder_ != null) {
return localizedPlaceholderBuilder_.getMessageOrBuilder();
} else {
return localizedPlaceholder_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPlaceholder_;
}
}
/**
*
* Placeholder in localized language.
*
*
* .io.LocalizedString localizedPlaceholder = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedPlaceholderFieldBuilder() {
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedPlaceholder(),
getParentForChildren(),
isClean());
localizedPlaceholder_ = null;
}
return localizedPlaceholderBuilder_;
}
private boolean autocomplete_ ;
/**
*
* If set true, input field will have autocomplete enabled. The default is false.
*
*
* bool autocomplete = 8;
* @return The autocomplete.
*/
@java.lang.Override
public boolean getAutocomplete() {
return autocomplete_;
}
/**
*
* If set true, input field will have autocomplete enabled. The default is false.
*
*
* bool autocomplete = 8;
* @param value The autocomplete to set.
* @return This builder for chaining.
*/
public Builder setAutocomplete(boolean value) {
autocomplete_ = value;
onChanged();
return this;
}
/**
*
* If set true, input field will have autocomplete enabled. The default is false.
*
*
* bool autocomplete = 8;
* @return This builder for chaining.
*/
public Builder clearAutocomplete() {
autocomplete_ = false;
onChanged();
return this;
}
private com.passkit.grpc.Template.AddressRenderOptions addressRenderOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AddressRenderOptions, com.passkit.grpc.Template.AddressRenderOptions.Builder, com.passkit.grpc.Template.AddressRenderOptionsOrBuilder> addressRenderOptionsBuilder_;
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
* @return Whether the addressRenderOptions field is set.
*/
public boolean hasAddressRenderOptions() {
return addressRenderOptionsBuilder_ != null || addressRenderOptions_ != null;
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
* @return The addressRenderOptions.
*/
public com.passkit.grpc.Template.AddressRenderOptions getAddressRenderOptions() {
if (addressRenderOptionsBuilder_ == null) {
return addressRenderOptions_ == null ? com.passkit.grpc.Template.AddressRenderOptions.getDefaultInstance() : addressRenderOptions_;
} else {
return addressRenderOptionsBuilder_.getMessage();
}
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
public Builder setAddressRenderOptions(com.passkit.grpc.Template.AddressRenderOptions value) {
if (addressRenderOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
addressRenderOptions_ = value;
onChanged();
} else {
addressRenderOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
public Builder setAddressRenderOptions(
com.passkit.grpc.Template.AddressRenderOptions.Builder builderForValue) {
if (addressRenderOptionsBuilder_ == null) {
addressRenderOptions_ = builderForValue.build();
onChanged();
} else {
addressRenderOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
public Builder mergeAddressRenderOptions(com.passkit.grpc.Template.AddressRenderOptions value) {
if (addressRenderOptionsBuilder_ == null) {
if (addressRenderOptions_ != null) {
addressRenderOptions_ =
com.passkit.grpc.Template.AddressRenderOptions.newBuilder(addressRenderOptions_).mergeFrom(value).buildPartial();
} else {
addressRenderOptions_ = value;
}
onChanged();
} else {
addressRenderOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
public Builder clearAddressRenderOptions() {
if (addressRenderOptionsBuilder_ == null) {
addressRenderOptions_ = null;
onChanged();
} else {
addressRenderOptions_ = null;
addressRenderOptionsBuilder_ = null;
}
return this;
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
public com.passkit.grpc.Template.AddressRenderOptions.Builder getAddressRenderOptionsBuilder() {
onChanged();
return getAddressRenderOptionsFieldBuilder().getBuilder();
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
public com.passkit.grpc.Template.AddressRenderOptionsOrBuilder getAddressRenderOptionsOrBuilder() {
if (addressRenderOptionsBuilder_ != null) {
return addressRenderOptionsBuilder_.getMessageOrBuilder();
} else {
return addressRenderOptions_ == null ?
com.passkit.grpc.Template.AddressRenderOptions.getDefaultInstance() : addressRenderOptions_;
}
}
/**
*
* Customize address input fields.
*
*
* .io.AddressRenderOptions addressRenderOptions = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AddressRenderOptions, com.passkit.grpc.Template.AddressRenderOptions.Builder, com.passkit.grpc.Template.AddressRenderOptionsOrBuilder>
getAddressRenderOptionsFieldBuilder() {
if (addressRenderOptionsBuilder_ == null) {
addressRenderOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.AddressRenderOptions, com.passkit.grpc.Template.AddressRenderOptions.Builder, com.passkit.grpc.Template.AddressRenderOptionsOrBuilder>(
getAddressRenderOptions(),
getParentForChildren(),
isClean());
addressRenderOptions_ = null;
}
return addressRenderOptionsBuilder_;
}
private java.lang.Object localizedYearPlaceholder_ = "";
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @return The localizedYearPlaceholder.
*/
public java.lang.String getLocalizedYearPlaceholder() {
java.lang.Object ref = localizedYearPlaceholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localizedYearPlaceholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @return The bytes for localizedYearPlaceholder.
*/
public com.google.protobuf.ByteString
getLocalizedYearPlaceholderBytes() {
java.lang.Object ref = localizedYearPlaceholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localizedYearPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @param value The localizedYearPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setLocalizedYearPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
localizedYearPlaceholder_ = value;
onChanged();
return this;
}
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @return This builder for chaining.
*/
public Builder clearLocalizedYearPlaceholder() {
localizedYearPlaceholder_ = getDefaultInstance().getLocalizedYearPlaceholder();
onChanged();
return this;
}
/**
*
* Localized text rendered on year select placeholder of DATE_YYYYMM.
*
*
* string localizedYearPlaceholder = 10;
* @param value The bytes for localizedYearPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setLocalizedYearPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
localizedYearPlaceholder_ = value;
onChanged();
return this;
}
private java.lang.Object localizedMonthPlaceholder_ = "";
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @return The localizedMonthPlaceholder.
*/
public java.lang.String getLocalizedMonthPlaceholder() {
java.lang.Object ref = localizedMonthPlaceholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localizedMonthPlaceholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @return The bytes for localizedMonthPlaceholder.
*/
public com.google.protobuf.ByteString
getLocalizedMonthPlaceholderBytes() {
java.lang.Object ref = localizedMonthPlaceholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localizedMonthPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @param value The localizedMonthPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setLocalizedMonthPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
localizedMonthPlaceholder_ = value;
onChanged();
return this;
}
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @return This builder for chaining.
*/
public Builder clearLocalizedMonthPlaceholder() {
localizedMonthPlaceholder_ = getDefaultInstance().getLocalizedMonthPlaceholder();
onChanged();
return this;
}
/**
*
* Localized text rendered on month select placeholder of DATE_YYYYMM and DATE_MMDD.
*
*
* string localizedMonthPlaceholder = 11;
* @param value The bytes for localizedMonthPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setLocalizedMonthPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
localizedMonthPlaceholder_ = value;
onChanged();
return this;
}
private java.lang.Object localizedDayPlaceholder_ = "";
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @return The localizedDayPlaceholder.
*/
public java.lang.String getLocalizedDayPlaceholder() {
java.lang.Object ref = localizedDayPlaceholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localizedDayPlaceholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @return The bytes for localizedDayPlaceholder.
*/
public com.google.protobuf.ByteString
getLocalizedDayPlaceholderBytes() {
java.lang.Object ref = localizedDayPlaceholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localizedDayPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @param value The localizedDayPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setLocalizedDayPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
localizedDayPlaceholder_ = value;
onChanged();
return this;
}
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @return This builder for chaining.
*/
public Builder clearLocalizedDayPlaceholder() {
localizedDayPlaceholder_ = getDefaultInstance().getLocalizedDayPlaceholder();
onChanged();
return this;
}
/**
*
* Localized text rendered on day select placeholder of DATE_MMDD.
*
*
* string localizedDayPlaceholder = 12;
* @param value The bytes for localizedDayPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setLocalizedDayPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
localizedDayPlaceholder_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.DataCollectionFieldRenderOptions)
}
// @@protoc_insertion_point(class_scope:io.DataCollectionFieldRenderOptions)
private static final com.passkit.grpc.Template.DataCollectionFieldRenderOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.DataCollectionFieldRenderOptions();
}
public static com.passkit.grpc.Template.DataCollectionFieldRenderOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataCollectionFieldRenderOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataCollectionFieldRenderOptions(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.Template.DataCollectionFieldRenderOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddressRenderOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.AddressRenderOptions)
com.google.protobuf.MessageOrBuilder {
/**
* string address1Label = 1;
* @return The address1Label.
*/
java.lang.String getAddress1Label();
/**
* string address1Label = 1;
* @return The bytes for address1Label.
*/
com.google.protobuf.ByteString
getAddress1LabelBytes();
/**
* string address2Label = 2;
* @return The address2Label.
*/
java.lang.String getAddress2Label();
/**
* string address2Label = 2;
* @return The bytes for address2Label.
*/
com.google.protobuf.ByteString
getAddress2LabelBytes();
/**
* string cityLabel = 3;
* @return The cityLabel.
*/
java.lang.String getCityLabel();
/**
* string cityLabel = 3;
* @return The bytes for cityLabel.
*/
com.google.protobuf.ByteString
getCityLabelBytes();
/**
* string countryLabel = 4;
* @return The countryLabel.
*/
java.lang.String getCountryLabel();
/**
* string countryLabel = 4;
* @return The bytes for countryLabel.
*/
com.google.protobuf.ByteString
getCountryLabelBytes();
/**
* string zipLabel = 5;
* @return The zipLabel.
*/
java.lang.String getZipLabel();
/**
* string zipLabel = 5;
* @return The bytes for zipLabel.
*/
com.google.protobuf.ByteString
getZipLabelBytes();
/**
* string address1Placeholder = 6;
* @return The address1Placeholder.
*/
java.lang.String getAddress1Placeholder();
/**
* string address1Placeholder = 6;
* @return The bytes for address1Placeholder.
*/
com.google.protobuf.ByteString
getAddress1PlaceholderBytes();
/**
* string address2Placeholder = 7;
* @return The address2Placeholder.
*/
java.lang.String getAddress2Placeholder();
/**
* string address2Placeholder = 7;
* @return The bytes for address2Placeholder.
*/
com.google.protobuf.ByteString
getAddress2PlaceholderBytes();
/**
* string cityPlaceholder = 8;
* @return The cityPlaceholder.
*/
java.lang.String getCityPlaceholder();
/**
* string cityPlaceholder = 8;
* @return The bytes for cityPlaceholder.
*/
com.google.protobuf.ByteString
getCityPlaceholderBytes();
/**
* string countryPlaceholder = 9;
* @return The countryPlaceholder.
*/
java.lang.String getCountryPlaceholder();
/**
* string countryPlaceholder = 9;
* @return The bytes for countryPlaceholder.
*/
com.google.protobuf.ByteString
getCountryPlaceholderBytes();
/**
* string zipPlaceholder = 10;
* @return The zipPlaceholder.
*/
java.lang.String getZipPlaceholder();
/**
* string zipPlaceholder = 10;
* @return The bytes for zipPlaceholder.
*/
com.google.protobuf.ByteString
getZipPlaceholderBytes();
/**
* .io.LocalizedString localizedAddress1Label = 11;
* @return Whether the localizedAddress1Label field is set.
*/
boolean hasLocalizedAddress1Label();
/**
* .io.LocalizedString localizedAddress1Label = 11;
* @return The localizedAddress1Label.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedAddress1Label();
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress1LabelOrBuilder();
/**
* .io.LocalizedString localizedAddress2Label = 12;
* @return Whether the localizedAddress2Label field is set.
*/
boolean hasLocalizedAddress2Label();
/**
* .io.LocalizedString localizedAddress2Label = 12;
* @return The localizedAddress2Label.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedAddress2Label();
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress2LabelOrBuilder();
/**
* .io.LocalizedString localizedCityLabel = 13;
* @return Whether the localizedCityLabel field is set.
*/
boolean hasLocalizedCityLabel();
/**
* .io.LocalizedString localizedCityLabel = 13;
* @return The localizedCityLabel.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedCityLabel();
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCityLabelOrBuilder();
/**
* .io.LocalizedString localizedCountryLabel = 14;
* @return Whether the localizedCountryLabel field is set.
*/
boolean hasLocalizedCountryLabel();
/**
* .io.LocalizedString localizedCountryLabel = 14;
* @return The localizedCountryLabel.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedCountryLabel();
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCountryLabelOrBuilder();
/**
* .io.LocalizedString localizedZipLabel = 15;
* @return Whether the localizedZipLabel field is set.
*/
boolean hasLocalizedZipLabel();
/**
* .io.LocalizedString localizedZipLabel = 15;
* @return The localizedZipLabel.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedZipLabel();
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedZipLabelOrBuilder();
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
* @return Whether the localizedAddress1Placeholder field is set.
*/
boolean hasLocalizedAddress1Placeholder();
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
* @return The localizedAddress1Placeholder.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedAddress1Placeholder();
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress1PlaceholderOrBuilder();
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
* @return Whether the localizedAddress2Placeholder field is set.
*/
boolean hasLocalizedAddress2Placeholder();
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
* @return The localizedAddress2Placeholder.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedAddress2Placeholder();
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress2PlaceholderOrBuilder();
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
* @return Whether the localizedCityPlaceholder field is set.
*/
boolean hasLocalizedCityPlaceholder();
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
* @return The localizedCityPlaceholder.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedCityPlaceholder();
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCityPlaceholderOrBuilder();
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
* @return Whether the localizedCountryPlaceholder field is set.
*/
boolean hasLocalizedCountryPlaceholder();
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
* @return The localizedCountryPlaceholder.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedCountryPlaceholder();
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCountryPlaceholderOrBuilder();
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
* @return Whether the localizedZipPlaceholder field is set.
*/
boolean hasLocalizedZipPlaceholder();
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
* @return The localizedZipPlaceholder.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedZipPlaceholder();
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedZipPlaceholderOrBuilder();
}
/**
* Protobuf type {@code io.AddressRenderOptions}
*/
public static final class AddressRenderOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.AddressRenderOptions)
AddressRenderOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddressRenderOptions.newBuilder() to construct.
private AddressRenderOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddressRenderOptions() {
address1Label_ = "";
address2Label_ = "";
cityLabel_ = "";
countryLabel_ = "";
zipLabel_ = "";
address1Placeholder_ = "";
address2Placeholder_ = "";
cityPlaceholder_ = "";
countryPlaceholder_ = "";
zipPlaceholder_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddressRenderOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddressRenderOptions(
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();
address1Label_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
address2Label_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
cityLabel_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
countryLabel_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
zipLabel_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
address1Placeholder_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
address2Placeholder_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
cityPlaceholder_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
countryPlaceholder_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
zipPlaceholder_ = s;
break;
}
case 90: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedAddress1Label_ != null) {
subBuilder = localizedAddress1Label_.toBuilder();
}
localizedAddress1Label_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedAddress1Label_);
localizedAddress1Label_ = subBuilder.buildPartial();
}
break;
}
case 98: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedAddress2Label_ != null) {
subBuilder = localizedAddress2Label_.toBuilder();
}
localizedAddress2Label_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedAddress2Label_);
localizedAddress2Label_ = subBuilder.buildPartial();
}
break;
}
case 106: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedCityLabel_ != null) {
subBuilder = localizedCityLabel_.toBuilder();
}
localizedCityLabel_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedCityLabel_);
localizedCityLabel_ = subBuilder.buildPartial();
}
break;
}
case 114: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedCountryLabel_ != null) {
subBuilder = localizedCountryLabel_.toBuilder();
}
localizedCountryLabel_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedCountryLabel_);
localizedCountryLabel_ = subBuilder.buildPartial();
}
break;
}
case 122: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedZipLabel_ != null) {
subBuilder = localizedZipLabel_.toBuilder();
}
localizedZipLabel_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedZipLabel_);
localizedZipLabel_ = subBuilder.buildPartial();
}
break;
}
case 130: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedAddress1Placeholder_ != null) {
subBuilder = localizedAddress1Placeholder_.toBuilder();
}
localizedAddress1Placeholder_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedAddress1Placeholder_);
localizedAddress1Placeholder_ = subBuilder.buildPartial();
}
break;
}
case 138: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedAddress2Placeholder_ != null) {
subBuilder = localizedAddress2Placeholder_.toBuilder();
}
localizedAddress2Placeholder_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedAddress2Placeholder_);
localizedAddress2Placeholder_ = subBuilder.buildPartial();
}
break;
}
case 146: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedCityPlaceholder_ != null) {
subBuilder = localizedCityPlaceholder_.toBuilder();
}
localizedCityPlaceholder_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedCityPlaceholder_);
localizedCityPlaceholder_ = subBuilder.buildPartial();
}
break;
}
case 154: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedCountryPlaceholder_ != null) {
subBuilder = localizedCountryPlaceholder_.toBuilder();
}
localizedCountryPlaceholder_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedCountryPlaceholder_);
localizedCountryPlaceholder_ = subBuilder.buildPartial();
}
break;
}
case 162: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedZipPlaceholder_ != null) {
subBuilder = localizedZipPlaceholder_.toBuilder();
}
localizedZipPlaceholder_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedZipPlaceholder_);
localizedZipPlaceholder_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_AddressRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_AddressRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.AddressRenderOptions.class, com.passkit.grpc.Template.AddressRenderOptions.Builder.class);
}
public static final int ADDRESS1LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object address1Label_;
/**
* string address1Label = 1;
* @return The address1Label.
*/
@java.lang.Override
public java.lang.String getAddress1Label() {
java.lang.Object ref = address1Label_;
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();
address1Label_ = s;
return s;
}
}
/**
* string address1Label = 1;
* @return The bytes for address1Label.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddress1LabelBytes() {
java.lang.Object ref = address1Label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address1Label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS2LABEL_FIELD_NUMBER = 2;
private volatile java.lang.Object address2Label_;
/**
* string address2Label = 2;
* @return The address2Label.
*/
@java.lang.Override
public java.lang.String getAddress2Label() {
java.lang.Object ref = address2Label_;
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();
address2Label_ = s;
return s;
}
}
/**
* string address2Label = 2;
* @return The bytes for address2Label.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddress2LabelBytes() {
java.lang.Object ref = address2Label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address2Label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CITYLABEL_FIELD_NUMBER = 3;
private volatile java.lang.Object cityLabel_;
/**
* string cityLabel = 3;
* @return The cityLabel.
*/
@java.lang.Override
public java.lang.String getCityLabel() {
java.lang.Object ref = cityLabel_;
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();
cityLabel_ = s;
return s;
}
}
/**
* string cityLabel = 3;
* @return The bytes for cityLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCityLabelBytes() {
java.lang.Object ref = cityLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cityLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRYLABEL_FIELD_NUMBER = 4;
private volatile java.lang.Object countryLabel_;
/**
* string countryLabel = 4;
* @return The countryLabel.
*/
@java.lang.Override
public java.lang.String getCountryLabel() {
java.lang.Object ref = countryLabel_;
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();
countryLabel_ = s;
return s;
}
}
/**
* string countryLabel = 4;
* @return The bytes for countryLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryLabelBytes() {
java.lang.Object ref = countryLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZIPLABEL_FIELD_NUMBER = 5;
private volatile java.lang.Object zipLabel_;
/**
* string zipLabel = 5;
* @return The zipLabel.
*/
@java.lang.Override
public java.lang.String getZipLabel() {
java.lang.Object ref = zipLabel_;
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();
zipLabel_ = s;
return s;
}
}
/**
* string zipLabel = 5;
* @return The bytes for zipLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZipLabelBytes() {
java.lang.Object ref = zipLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS1PLACEHOLDER_FIELD_NUMBER = 6;
private volatile java.lang.Object address1Placeholder_;
/**
* string address1Placeholder = 6;
* @return The address1Placeholder.
*/
@java.lang.Override
public java.lang.String getAddress1Placeholder() {
java.lang.Object ref = address1Placeholder_;
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();
address1Placeholder_ = s;
return s;
}
}
/**
* string address1Placeholder = 6;
* @return The bytes for address1Placeholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddress1PlaceholderBytes() {
java.lang.Object ref = address1Placeholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address1Placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS2PLACEHOLDER_FIELD_NUMBER = 7;
private volatile java.lang.Object address2Placeholder_;
/**
* string address2Placeholder = 7;
* @return The address2Placeholder.
*/
@java.lang.Override
public java.lang.String getAddress2Placeholder() {
java.lang.Object ref = address2Placeholder_;
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();
address2Placeholder_ = s;
return s;
}
}
/**
* string address2Placeholder = 7;
* @return The bytes for address2Placeholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddress2PlaceholderBytes() {
java.lang.Object ref = address2Placeholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address2Placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CITYPLACEHOLDER_FIELD_NUMBER = 8;
private volatile java.lang.Object cityPlaceholder_;
/**
* string cityPlaceholder = 8;
* @return The cityPlaceholder.
*/
@java.lang.Override
public java.lang.String getCityPlaceholder() {
java.lang.Object ref = cityPlaceholder_;
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();
cityPlaceholder_ = s;
return s;
}
}
/**
* string cityPlaceholder = 8;
* @return The bytes for cityPlaceholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCityPlaceholderBytes() {
java.lang.Object ref = cityPlaceholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cityPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRYPLACEHOLDER_FIELD_NUMBER = 9;
private volatile java.lang.Object countryPlaceholder_;
/**
* string countryPlaceholder = 9;
* @return The countryPlaceholder.
*/
@java.lang.Override
public java.lang.String getCountryPlaceholder() {
java.lang.Object ref = countryPlaceholder_;
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();
countryPlaceholder_ = s;
return s;
}
}
/**
* string countryPlaceholder = 9;
* @return The bytes for countryPlaceholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryPlaceholderBytes() {
java.lang.Object ref = countryPlaceholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZIPPLACEHOLDER_FIELD_NUMBER = 10;
private volatile java.lang.Object zipPlaceholder_;
/**
* string zipPlaceholder = 10;
* @return The zipPlaceholder.
*/
@java.lang.Override
public java.lang.String getZipPlaceholder() {
java.lang.Object ref = zipPlaceholder_;
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();
zipPlaceholder_ = s;
return s;
}
}
/**
* string zipPlaceholder = 10;
* @return The bytes for zipPlaceholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZipPlaceholderBytes() {
java.lang.Object ref = zipPlaceholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDADDRESS1LABEL_FIELD_NUMBER = 11;
private com.passkit.grpc.Localization.LocalizedString localizedAddress1Label_;
/**
* .io.LocalizedString localizedAddress1Label = 11;
* @return Whether the localizedAddress1Label field is set.
*/
@java.lang.Override
public boolean hasLocalizedAddress1Label() {
return localizedAddress1Label_ != null;
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
* @return The localizedAddress1Label.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress1Label() {
return localizedAddress1Label_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress1Label_;
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress1LabelOrBuilder() {
return getLocalizedAddress1Label();
}
public static final int LOCALIZEDADDRESS2LABEL_FIELD_NUMBER = 12;
private com.passkit.grpc.Localization.LocalizedString localizedAddress2Label_;
/**
* .io.LocalizedString localizedAddress2Label = 12;
* @return Whether the localizedAddress2Label field is set.
*/
@java.lang.Override
public boolean hasLocalizedAddress2Label() {
return localizedAddress2Label_ != null;
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
* @return The localizedAddress2Label.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress2Label() {
return localizedAddress2Label_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress2Label_;
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress2LabelOrBuilder() {
return getLocalizedAddress2Label();
}
public static final int LOCALIZEDCITYLABEL_FIELD_NUMBER = 13;
private com.passkit.grpc.Localization.LocalizedString localizedCityLabel_;
/**
* .io.LocalizedString localizedCityLabel = 13;
* @return Whether the localizedCityLabel field is set.
*/
@java.lang.Override
public boolean hasLocalizedCityLabel() {
return localizedCityLabel_ != null;
}
/**
* .io.LocalizedString localizedCityLabel = 13;
* @return The localizedCityLabel.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedCityLabel() {
return localizedCityLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCityLabel_;
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCityLabelOrBuilder() {
return getLocalizedCityLabel();
}
public static final int LOCALIZEDCOUNTRYLABEL_FIELD_NUMBER = 14;
private com.passkit.grpc.Localization.LocalizedString localizedCountryLabel_;
/**
* .io.LocalizedString localizedCountryLabel = 14;
* @return Whether the localizedCountryLabel field is set.
*/
@java.lang.Override
public boolean hasLocalizedCountryLabel() {
return localizedCountryLabel_ != null;
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
* @return The localizedCountryLabel.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedCountryLabel() {
return localizedCountryLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCountryLabel_;
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCountryLabelOrBuilder() {
return getLocalizedCountryLabel();
}
public static final int LOCALIZEDZIPLABEL_FIELD_NUMBER = 15;
private com.passkit.grpc.Localization.LocalizedString localizedZipLabel_;
/**
* .io.LocalizedString localizedZipLabel = 15;
* @return Whether the localizedZipLabel field is set.
*/
@java.lang.Override
public boolean hasLocalizedZipLabel() {
return localizedZipLabel_ != null;
}
/**
* .io.LocalizedString localizedZipLabel = 15;
* @return The localizedZipLabel.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedZipLabel() {
return localizedZipLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedZipLabel_;
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedZipLabelOrBuilder() {
return getLocalizedZipLabel();
}
public static final int LOCALIZEDADDRESS1PLACEHOLDER_FIELD_NUMBER = 16;
private com.passkit.grpc.Localization.LocalizedString localizedAddress1Placeholder_;
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
* @return Whether the localizedAddress1Placeholder field is set.
*/
@java.lang.Override
public boolean hasLocalizedAddress1Placeholder() {
return localizedAddress1Placeholder_ != null;
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
* @return The localizedAddress1Placeholder.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress1Placeholder() {
return localizedAddress1Placeholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress1Placeholder_;
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress1PlaceholderOrBuilder() {
return getLocalizedAddress1Placeholder();
}
public static final int LOCALIZEDADDRESS2PLACEHOLDER_FIELD_NUMBER = 17;
private com.passkit.grpc.Localization.LocalizedString localizedAddress2Placeholder_;
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
* @return Whether the localizedAddress2Placeholder field is set.
*/
@java.lang.Override
public boolean hasLocalizedAddress2Placeholder() {
return localizedAddress2Placeholder_ != null;
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
* @return The localizedAddress2Placeholder.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress2Placeholder() {
return localizedAddress2Placeholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress2Placeholder_;
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress2PlaceholderOrBuilder() {
return getLocalizedAddress2Placeholder();
}
public static final int LOCALIZEDCITYPLACEHOLDER_FIELD_NUMBER = 18;
private com.passkit.grpc.Localization.LocalizedString localizedCityPlaceholder_;
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
* @return Whether the localizedCityPlaceholder field is set.
*/
@java.lang.Override
public boolean hasLocalizedCityPlaceholder() {
return localizedCityPlaceholder_ != null;
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
* @return The localizedCityPlaceholder.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedCityPlaceholder() {
return localizedCityPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCityPlaceholder_;
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCityPlaceholderOrBuilder() {
return getLocalizedCityPlaceholder();
}
public static final int LOCALIZEDCOUNTRYPLACEHOLDER_FIELD_NUMBER = 19;
private com.passkit.grpc.Localization.LocalizedString localizedCountryPlaceholder_;
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
* @return Whether the localizedCountryPlaceholder field is set.
*/
@java.lang.Override
public boolean hasLocalizedCountryPlaceholder() {
return localizedCountryPlaceholder_ != null;
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
* @return The localizedCountryPlaceholder.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedCountryPlaceholder() {
return localizedCountryPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCountryPlaceholder_;
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCountryPlaceholderOrBuilder() {
return getLocalizedCountryPlaceholder();
}
public static final int LOCALIZEDZIPPLACEHOLDER_FIELD_NUMBER = 20;
private com.passkit.grpc.Localization.LocalizedString localizedZipPlaceholder_;
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
* @return Whether the localizedZipPlaceholder field is set.
*/
@java.lang.Override
public boolean hasLocalizedZipPlaceholder() {
return localizedZipPlaceholder_ != null;
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
* @return The localizedZipPlaceholder.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedZipPlaceholder() {
return localizedZipPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedZipPlaceholder_;
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedZipPlaceholderOrBuilder() {
return getLocalizedZipPlaceholder();
}
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 (!getAddress1LabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address1Label_);
}
if (!getAddress2LabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address2Label_);
}
if (!getCityLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cityLabel_);
}
if (!getCountryLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, countryLabel_);
}
if (!getZipLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zipLabel_);
}
if (!getAddress1PlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, address1Placeholder_);
}
if (!getAddress2PlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, address2Placeholder_);
}
if (!getCityPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cityPlaceholder_);
}
if (!getCountryPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, countryPlaceholder_);
}
if (!getZipPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, zipPlaceholder_);
}
if (localizedAddress1Label_ != null) {
output.writeMessage(11, getLocalizedAddress1Label());
}
if (localizedAddress2Label_ != null) {
output.writeMessage(12, getLocalizedAddress2Label());
}
if (localizedCityLabel_ != null) {
output.writeMessage(13, getLocalizedCityLabel());
}
if (localizedCountryLabel_ != null) {
output.writeMessage(14, getLocalizedCountryLabel());
}
if (localizedZipLabel_ != null) {
output.writeMessage(15, getLocalizedZipLabel());
}
if (localizedAddress1Placeholder_ != null) {
output.writeMessage(16, getLocalizedAddress1Placeholder());
}
if (localizedAddress2Placeholder_ != null) {
output.writeMessage(17, getLocalizedAddress2Placeholder());
}
if (localizedCityPlaceholder_ != null) {
output.writeMessage(18, getLocalizedCityPlaceholder());
}
if (localizedCountryPlaceholder_ != null) {
output.writeMessage(19, getLocalizedCountryPlaceholder());
}
if (localizedZipPlaceholder_ != null) {
output.writeMessage(20, getLocalizedZipPlaceholder());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddress1LabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address1Label_);
}
if (!getAddress2LabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address2Label_);
}
if (!getCityLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cityLabel_);
}
if (!getCountryLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, countryLabel_);
}
if (!getZipLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zipLabel_);
}
if (!getAddress1PlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, address1Placeholder_);
}
if (!getAddress2PlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, address2Placeholder_);
}
if (!getCityPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cityPlaceholder_);
}
if (!getCountryPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, countryPlaceholder_);
}
if (!getZipPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, zipPlaceholder_);
}
if (localizedAddress1Label_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getLocalizedAddress1Label());
}
if (localizedAddress2Label_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getLocalizedAddress2Label());
}
if (localizedCityLabel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getLocalizedCityLabel());
}
if (localizedCountryLabel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getLocalizedCountryLabel());
}
if (localizedZipLabel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getLocalizedZipLabel());
}
if (localizedAddress1Placeholder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getLocalizedAddress1Placeholder());
}
if (localizedAddress2Placeholder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getLocalizedAddress2Placeholder());
}
if (localizedCityPlaceholder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getLocalizedCityPlaceholder());
}
if (localizedCountryPlaceholder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getLocalizedCountryPlaceholder());
}
if (localizedZipPlaceholder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getLocalizedZipPlaceholder());
}
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.Template.AddressRenderOptions)) {
return super.equals(obj);
}
com.passkit.grpc.Template.AddressRenderOptions other = (com.passkit.grpc.Template.AddressRenderOptions) obj;
if (!getAddress1Label()
.equals(other.getAddress1Label())) return false;
if (!getAddress2Label()
.equals(other.getAddress2Label())) return false;
if (!getCityLabel()
.equals(other.getCityLabel())) return false;
if (!getCountryLabel()
.equals(other.getCountryLabel())) return false;
if (!getZipLabel()
.equals(other.getZipLabel())) return false;
if (!getAddress1Placeholder()
.equals(other.getAddress1Placeholder())) return false;
if (!getAddress2Placeholder()
.equals(other.getAddress2Placeholder())) return false;
if (!getCityPlaceholder()
.equals(other.getCityPlaceholder())) return false;
if (!getCountryPlaceholder()
.equals(other.getCountryPlaceholder())) return false;
if (!getZipPlaceholder()
.equals(other.getZipPlaceholder())) return false;
if (hasLocalizedAddress1Label() != other.hasLocalizedAddress1Label()) return false;
if (hasLocalizedAddress1Label()) {
if (!getLocalizedAddress1Label()
.equals(other.getLocalizedAddress1Label())) return false;
}
if (hasLocalizedAddress2Label() != other.hasLocalizedAddress2Label()) return false;
if (hasLocalizedAddress2Label()) {
if (!getLocalizedAddress2Label()
.equals(other.getLocalizedAddress2Label())) return false;
}
if (hasLocalizedCityLabel() != other.hasLocalizedCityLabel()) return false;
if (hasLocalizedCityLabel()) {
if (!getLocalizedCityLabel()
.equals(other.getLocalizedCityLabel())) return false;
}
if (hasLocalizedCountryLabel() != other.hasLocalizedCountryLabel()) return false;
if (hasLocalizedCountryLabel()) {
if (!getLocalizedCountryLabel()
.equals(other.getLocalizedCountryLabel())) return false;
}
if (hasLocalizedZipLabel() != other.hasLocalizedZipLabel()) return false;
if (hasLocalizedZipLabel()) {
if (!getLocalizedZipLabel()
.equals(other.getLocalizedZipLabel())) return false;
}
if (hasLocalizedAddress1Placeholder() != other.hasLocalizedAddress1Placeholder()) return false;
if (hasLocalizedAddress1Placeholder()) {
if (!getLocalizedAddress1Placeholder()
.equals(other.getLocalizedAddress1Placeholder())) return false;
}
if (hasLocalizedAddress2Placeholder() != other.hasLocalizedAddress2Placeholder()) return false;
if (hasLocalizedAddress2Placeholder()) {
if (!getLocalizedAddress2Placeholder()
.equals(other.getLocalizedAddress2Placeholder())) return false;
}
if (hasLocalizedCityPlaceholder() != other.hasLocalizedCityPlaceholder()) return false;
if (hasLocalizedCityPlaceholder()) {
if (!getLocalizedCityPlaceholder()
.equals(other.getLocalizedCityPlaceholder())) return false;
}
if (hasLocalizedCountryPlaceholder() != other.hasLocalizedCountryPlaceholder()) return false;
if (hasLocalizedCountryPlaceholder()) {
if (!getLocalizedCountryPlaceholder()
.equals(other.getLocalizedCountryPlaceholder())) return false;
}
if (hasLocalizedZipPlaceholder() != other.hasLocalizedZipPlaceholder()) return false;
if (hasLocalizedZipPlaceholder()) {
if (!getLocalizedZipPlaceholder()
.equals(other.getLocalizedZipPlaceholder())) 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) + ADDRESS1LABEL_FIELD_NUMBER;
hash = (53 * hash) + getAddress1Label().hashCode();
hash = (37 * hash) + ADDRESS2LABEL_FIELD_NUMBER;
hash = (53 * hash) + getAddress2Label().hashCode();
hash = (37 * hash) + CITYLABEL_FIELD_NUMBER;
hash = (53 * hash) + getCityLabel().hashCode();
hash = (37 * hash) + COUNTRYLABEL_FIELD_NUMBER;
hash = (53 * hash) + getCountryLabel().hashCode();
hash = (37 * hash) + ZIPLABEL_FIELD_NUMBER;
hash = (53 * hash) + getZipLabel().hashCode();
hash = (37 * hash) + ADDRESS1PLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getAddress1Placeholder().hashCode();
hash = (37 * hash) + ADDRESS2PLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getAddress2Placeholder().hashCode();
hash = (37 * hash) + CITYPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getCityPlaceholder().hashCode();
hash = (37 * hash) + COUNTRYPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getCountryPlaceholder().hashCode();
hash = (37 * hash) + ZIPPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getZipPlaceholder().hashCode();
if (hasLocalizedAddress1Label()) {
hash = (37 * hash) + LOCALIZEDADDRESS1LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedAddress1Label().hashCode();
}
if (hasLocalizedAddress2Label()) {
hash = (37 * hash) + LOCALIZEDADDRESS2LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedAddress2Label().hashCode();
}
if (hasLocalizedCityLabel()) {
hash = (37 * hash) + LOCALIZEDCITYLABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedCityLabel().hashCode();
}
if (hasLocalizedCountryLabel()) {
hash = (37 * hash) + LOCALIZEDCOUNTRYLABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedCountryLabel().hashCode();
}
if (hasLocalizedZipLabel()) {
hash = (37 * hash) + LOCALIZEDZIPLABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedZipLabel().hashCode();
}
if (hasLocalizedAddress1Placeholder()) {
hash = (37 * hash) + LOCALIZEDADDRESS1PLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedAddress1Placeholder().hashCode();
}
if (hasLocalizedAddress2Placeholder()) {
hash = (37 * hash) + LOCALIZEDADDRESS2PLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedAddress2Placeholder().hashCode();
}
if (hasLocalizedCityPlaceholder()) {
hash = (37 * hash) + LOCALIZEDCITYPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedCityPlaceholder().hashCode();
}
if (hasLocalizedCountryPlaceholder()) {
hash = (37 * hash) + LOCALIZEDCOUNTRYPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedCountryPlaceholder().hashCode();
}
if (hasLocalizedZipPlaceholder()) {
hash = (37 * hash) + LOCALIZEDZIPPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedZipPlaceholder().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.AddressRenderOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AddressRenderOptions 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.Template.AddressRenderOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AddressRenderOptions 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.Template.AddressRenderOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.AddressRenderOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.AddressRenderOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AddressRenderOptions 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.Template.AddressRenderOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AddressRenderOptions 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.Template.AddressRenderOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.AddressRenderOptions 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.Template.AddressRenderOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.AddressRenderOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.AddressRenderOptions)
com.passkit.grpc.Template.AddressRenderOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_AddressRenderOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_AddressRenderOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.AddressRenderOptions.class, com.passkit.grpc.Template.AddressRenderOptions.Builder.class);
}
// Construct using com.passkit.grpc.Template.AddressRenderOptions.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();
address1Label_ = "";
address2Label_ = "";
cityLabel_ = "";
countryLabel_ = "";
zipLabel_ = "";
address1Placeholder_ = "";
address2Placeholder_ = "";
cityPlaceholder_ = "";
countryPlaceholder_ = "";
zipPlaceholder_ = "";
if (localizedAddress1LabelBuilder_ == null) {
localizedAddress1Label_ = null;
} else {
localizedAddress1Label_ = null;
localizedAddress1LabelBuilder_ = null;
}
if (localizedAddress2LabelBuilder_ == null) {
localizedAddress2Label_ = null;
} else {
localizedAddress2Label_ = null;
localizedAddress2LabelBuilder_ = null;
}
if (localizedCityLabelBuilder_ == null) {
localizedCityLabel_ = null;
} else {
localizedCityLabel_ = null;
localizedCityLabelBuilder_ = null;
}
if (localizedCountryLabelBuilder_ == null) {
localizedCountryLabel_ = null;
} else {
localizedCountryLabel_ = null;
localizedCountryLabelBuilder_ = null;
}
if (localizedZipLabelBuilder_ == null) {
localizedZipLabel_ = null;
} else {
localizedZipLabel_ = null;
localizedZipLabelBuilder_ = null;
}
if (localizedAddress1PlaceholderBuilder_ == null) {
localizedAddress1Placeholder_ = null;
} else {
localizedAddress1Placeholder_ = null;
localizedAddress1PlaceholderBuilder_ = null;
}
if (localizedAddress2PlaceholderBuilder_ == null) {
localizedAddress2Placeholder_ = null;
} else {
localizedAddress2Placeholder_ = null;
localizedAddress2PlaceholderBuilder_ = null;
}
if (localizedCityPlaceholderBuilder_ == null) {
localizedCityPlaceholder_ = null;
} else {
localizedCityPlaceholder_ = null;
localizedCityPlaceholderBuilder_ = null;
}
if (localizedCountryPlaceholderBuilder_ == null) {
localizedCountryPlaceholder_ = null;
} else {
localizedCountryPlaceholder_ = null;
localizedCountryPlaceholderBuilder_ = null;
}
if (localizedZipPlaceholderBuilder_ == null) {
localizedZipPlaceholder_ = null;
} else {
localizedZipPlaceholder_ = null;
localizedZipPlaceholderBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_AddressRenderOptions_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.AddressRenderOptions getDefaultInstanceForType() {
return com.passkit.grpc.Template.AddressRenderOptions.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.AddressRenderOptions build() {
com.passkit.grpc.Template.AddressRenderOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.AddressRenderOptions buildPartial() {
com.passkit.grpc.Template.AddressRenderOptions result = new com.passkit.grpc.Template.AddressRenderOptions(this);
result.address1Label_ = address1Label_;
result.address2Label_ = address2Label_;
result.cityLabel_ = cityLabel_;
result.countryLabel_ = countryLabel_;
result.zipLabel_ = zipLabel_;
result.address1Placeholder_ = address1Placeholder_;
result.address2Placeholder_ = address2Placeholder_;
result.cityPlaceholder_ = cityPlaceholder_;
result.countryPlaceholder_ = countryPlaceholder_;
result.zipPlaceholder_ = zipPlaceholder_;
if (localizedAddress1LabelBuilder_ == null) {
result.localizedAddress1Label_ = localizedAddress1Label_;
} else {
result.localizedAddress1Label_ = localizedAddress1LabelBuilder_.build();
}
if (localizedAddress2LabelBuilder_ == null) {
result.localizedAddress2Label_ = localizedAddress2Label_;
} else {
result.localizedAddress2Label_ = localizedAddress2LabelBuilder_.build();
}
if (localizedCityLabelBuilder_ == null) {
result.localizedCityLabel_ = localizedCityLabel_;
} else {
result.localizedCityLabel_ = localizedCityLabelBuilder_.build();
}
if (localizedCountryLabelBuilder_ == null) {
result.localizedCountryLabel_ = localizedCountryLabel_;
} else {
result.localizedCountryLabel_ = localizedCountryLabelBuilder_.build();
}
if (localizedZipLabelBuilder_ == null) {
result.localizedZipLabel_ = localizedZipLabel_;
} else {
result.localizedZipLabel_ = localizedZipLabelBuilder_.build();
}
if (localizedAddress1PlaceholderBuilder_ == null) {
result.localizedAddress1Placeholder_ = localizedAddress1Placeholder_;
} else {
result.localizedAddress1Placeholder_ = localizedAddress1PlaceholderBuilder_.build();
}
if (localizedAddress2PlaceholderBuilder_ == null) {
result.localizedAddress2Placeholder_ = localizedAddress2Placeholder_;
} else {
result.localizedAddress2Placeholder_ = localizedAddress2PlaceholderBuilder_.build();
}
if (localizedCityPlaceholderBuilder_ == null) {
result.localizedCityPlaceholder_ = localizedCityPlaceholder_;
} else {
result.localizedCityPlaceholder_ = localizedCityPlaceholderBuilder_.build();
}
if (localizedCountryPlaceholderBuilder_ == null) {
result.localizedCountryPlaceholder_ = localizedCountryPlaceholder_;
} else {
result.localizedCountryPlaceholder_ = localizedCountryPlaceholderBuilder_.build();
}
if (localizedZipPlaceholderBuilder_ == null) {
result.localizedZipPlaceholder_ = localizedZipPlaceholder_;
} else {
result.localizedZipPlaceholder_ = localizedZipPlaceholderBuilder_.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.Template.AddressRenderOptions) {
return mergeFrom((com.passkit.grpc.Template.AddressRenderOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.AddressRenderOptions other) {
if (other == com.passkit.grpc.Template.AddressRenderOptions.getDefaultInstance()) return this;
if (!other.getAddress1Label().isEmpty()) {
address1Label_ = other.address1Label_;
onChanged();
}
if (!other.getAddress2Label().isEmpty()) {
address2Label_ = other.address2Label_;
onChanged();
}
if (!other.getCityLabel().isEmpty()) {
cityLabel_ = other.cityLabel_;
onChanged();
}
if (!other.getCountryLabel().isEmpty()) {
countryLabel_ = other.countryLabel_;
onChanged();
}
if (!other.getZipLabel().isEmpty()) {
zipLabel_ = other.zipLabel_;
onChanged();
}
if (!other.getAddress1Placeholder().isEmpty()) {
address1Placeholder_ = other.address1Placeholder_;
onChanged();
}
if (!other.getAddress2Placeholder().isEmpty()) {
address2Placeholder_ = other.address2Placeholder_;
onChanged();
}
if (!other.getCityPlaceholder().isEmpty()) {
cityPlaceholder_ = other.cityPlaceholder_;
onChanged();
}
if (!other.getCountryPlaceholder().isEmpty()) {
countryPlaceholder_ = other.countryPlaceholder_;
onChanged();
}
if (!other.getZipPlaceholder().isEmpty()) {
zipPlaceholder_ = other.zipPlaceholder_;
onChanged();
}
if (other.hasLocalizedAddress1Label()) {
mergeLocalizedAddress1Label(other.getLocalizedAddress1Label());
}
if (other.hasLocalizedAddress2Label()) {
mergeLocalizedAddress2Label(other.getLocalizedAddress2Label());
}
if (other.hasLocalizedCityLabel()) {
mergeLocalizedCityLabel(other.getLocalizedCityLabel());
}
if (other.hasLocalizedCountryLabel()) {
mergeLocalizedCountryLabel(other.getLocalizedCountryLabel());
}
if (other.hasLocalizedZipLabel()) {
mergeLocalizedZipLabel(other.getLocalizedZipLabel());
}
if (other.hasLocalizedAddress1Placeholder()) {
mergeLocalizedAddress1Placeholder(other.getLocalizedAddress1Placeholder());
}
if (other.hasLocalizedAddress2Placeholder()) {
mergeLocalizedAddress2Placeholder(other.getLocalizedAddress2Placeholder());
}
if (other.hasLocalizedCityPlaceholder()) {
mergeLocalizedCityPlaceholder(other.getLocalizedCityPlaceholder());
}
if (other.hasLocalizedCountryPlaceholder()) {
mergeLocalizedCountryPlaceholder(other.getLocalizedCountryPlaceholder());
}
if (other.hasLocalizedZipPlaceholder()) {
mergeLocalizedZipPlaceholder(other.getLocalizedZipPlaceholder());
}
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.Template.AddressRenderOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.AddressRenderOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address1Label_ = "";
/**
* string address1Label = 1;
* @return The address1Label.
*/
public java.lang.String getAddress1Label() {
java.lang.Object ref = address1Label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address1Label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address1Label = 1;
* @return The bytes for address1Label.
*/
public com.google.protobuf.ByteString
getAddress1LabelBytes() {
java.lang.Object ref = address1Label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address1Label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address1Label = 1;
* @param value The address1Label to set.
* @return This builder for chaining.
*/
public Builder setAddress1Label(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address1Label_ = value;
onChanged();
return this;
}
/**
* string address1Label = 1;
* @return This builder for chaining.
*/
public Builder clearAddress1Label() {
address1Label_ = getDefaultInstance().getAddress1Label();
onChanged();
return this;
}
/**
* string address1Label = 1;
* @param value The bytes for address1Label to set.
* @return This builder for chaining.
*/
public Builder setAddress1LabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address1Label_ = value;
onChanged();
return this;
}
private java.lang.Object address2Label_ = "";
/**
* string address2Label = 2;
* @return The address2Label.
*/
public java.lang.String getAddress2Label() {
java.lang.Object ref = address2Label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address2Label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address2Label = 2;
* @return The bytes for address2Label.
*/
public com.google.protobuf.ByteString
getAddress2LabelBytes() {
java.lang.Object ref = address2Label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address2Label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address2Label = 2;
* @param value The address2Label to set.
* @return This builder for chaining.
*/
public Builder setAddress2Label(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address2Label_ = value;
onChanged();
return this;
}
/**
* string address2Label = 2;
* @return This builder for chaining.
*/
public Builder clearAddress2Label() {
address2Label_ = getDefaultInstance().getAddress2Label();
onChanged();
return this;
}
/**
* string address2Label = 2;
* @param value The bytes for address2Label to set.
* @return This builder for chaining.
*/
public Builder setAddress2LabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address2Label_ = value;
onChanged();
return this;
}
private java.lang.Object cityLabel_ = "";
/**
* string cityLabel = 3;
* @return The cityLabel.
*/
public java.lang.String getCityLabel() {
java.lang.Object ref = cityLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cityLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cityLabel = 3;
* @return The bytes for cityLabel.
*/
public com.google.protobuf.ByteString
getCityLabelBytes() {
java.lang.Object ref = cityLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cityLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cityLabel = 3;
* @param value The cityLabel to set.
* @return This builder for chaining.
*/
public Builder setCityLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cityLabel_ = value;
onChanged();
return this;
}
/**
* string cityLabel = 3;
* @return This builder for chaining.
*/
public Builder clearCityLabel() {
cityLabel_ = getDefaultInstance().getCityLabel();
onChanged();
return this;
}
/**
* string cityLabel = 3;
* @param value The bytes for cityLabel to set.
* @return This builder for chaining.
*/
public Builder setCityLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cityLabel_ = value;
onChanged();
return this;
}
private java.lang.Object countryLabel_ = "";
/**
* string countryLabel = 4;
* @return The countryLabel.
*/
public java.lang.String getCountryLabel() {
java.lang.Object ref = countryLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string countryLabel = 4;
* @return The bytes for countryLabel.
*/
public com.google.protobuf.ByteString
getCountryLabelBytes() {
java.lang.Object ref = countryLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string countryLabel = 4;
* @param value The countryLabel to set.
* @return This builder for chaining.
*/
public Builder setCountryLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
countryLabel_ = value;
onChanged();
return this;
}
/**
* string countryLabel = 4;
* @return This builder for chaining.
*/
public Builder clearCountryLabel() {
countryLabel_ = getDefaultInstance().getCountryLabel();
onChanged();
return this;
}
/**
* string countryLabel = 4;
* @param value The bytes for countryLabel to set.
* @return This builder for chaining.
*/
public Builder setCountryLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
countryLabel_ = value;
onChanged();
return this;
}
private java.lang.Object zipLabel_ = "";
/**
* string zipLabel = 5;
* @return The zipLabel.
*/
public java.lang.String getZipLabel() {
java.lang.Object ref = zipLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zipLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string zipLabel = 5;
* @return The bytes for zipLabel.
*/
public com.google.protobuf.ByteString
getZipLabelBytes() {
java.lang.Object ref = zipLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string zipLabel = 5;
* @param value The zipLabel to set.
* @return This builder for chaining.
*/
public Builder setZipLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zipLabel_ = value;
onChanged();
return this;
}
/**
* string zipLabel = 5;
* @return This builder for chaining.
*/
public Builder clearZipLabel() {
zipLabel_ = getDefaultInstance().getZipLabel();
onChanged();
return this;
}
/**
* string zipLabel = 5;
* @param value The bytes for zipLabel to set.
* @return This builder for chaining.
*/
public Builder setZipLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zipLabel_ = value;
onChanged();
return this;
}
private java.lang.Object address1Placeholder_ = "";
/**
* string address1Placeholder = 6;
* @return The address1Placeholder.
*/
public java.lang.String getAddress1Placeholder() {
java.lang.Object ref = address1Placeholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address1Placeholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address1Placeholder = 6;
* @return The bytes for address1Placeholder.
*/
public com.google.protobuf.ByteString
getAddress1PlaceholderBytes() {
java.lang.Object ref = address1Placeholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address1Placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address1Placeholder = 6;
* @param value The address1Placeholder to set.
* @return This builder for chaining.
*/
public Builder setAddress1Placeholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address1Placeholder_ = value;
onChanged();
return this;
}
/**
* string address1Placeholder = 6;
* @return This builder for chaining.
*/
public Builder clearAddress1Placeholder() {
address1Placeholder_ = getDefaultInstance().getAddress1Placeholder();
onChanged();
return this;
}
/**
* string address1Placeholder = 6;
* @param value The bytes for address1Placeholder to set.
* @return This builder for chaining.
*/
public Builder setAddress1PlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address1Placeholder_ = value;
onChanged();
return this;
}
private java.lang.Object address2Placeholder_ = "";
/**
* string address2Placeholder = 7;
* @return The address2Placeholder.
*/
public java.lang.String getAddress2Placeholder() {
java.lang.Object ref = address2Placeholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address2Placeholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address2Placeholder = 7;
* @return The bytes for address2Placeholder.
*/
public com.google.protobuf.ByteString
getAddress2PlaceholderBytes() {
java.lang.Object ref = address2Placeholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address2Placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address2Placeholder = 7;
* @param value The address2Placeholder to set.
* @return This builder for chaining.
*/
public Builder setAddress2Placeholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address2Placeholder_ = value;
onChanged();
return this;
}
/**
* string address2Placeholder = 7;
* @return This builder for chaining.
*/
public Builder clearAddress2Placeholder() {
address2Placeholder_ = getDefaultInstance().getAddress2Placeholder();
onChanged();
return this;
}
/**
* string address2Placeholder = 7;
* @param value The bytes for address2Placeholder to set.
* @return This builder for chaining.
*/
public Builder setAddress2PlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address2Placeholder_ = value;
onChanged();
return this;
}
private java.lang.Object cityPlaceholder_ = "";
/**
* string cityPlaceholder = 8;
* @return The cityPlaceholder.
*/
public java.lang.String getCityPlaceholder() {
java.lang.Object ref = cityPlaceholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cityPlaceholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cityPlaceholder = 8;
* @return The bytes for cityPlaceholder.
*/
public com.google.protobuf.ByteString
getCityPlaceholderBytes() {
java.lang.Object ref = cityPlaceholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cityPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cityPlaceholder = 8;
* @param value The cityPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setCityPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cityPlaceholder_ = value;
onChanged();
return this;
}
/**
* string cityPlaceholder = 8;
* @return This builder for chaining.
*/
public Builder clearCityPlaceholder() {
cityPlaceholder_ = getDefaultInstance().getCityPlaceholder();
onChanged();
return this;
}
/**
* string cityPlaceholder = 8;
* @param value The bytes for cityPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setCityPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cityPlaceholder_ = value;
onChanged();
return this;
}
private java.lang.Object countryPlaceholder_ = "";
/**
* string countryPlaceholder = 9;
* @return The countryPlaceholder.
*/
public java.lang.String getCountryPlaceholder() {
java.lang.Object ref = countryPlaceholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryPlaceholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string countryPlaceholder = 9;
* @return The bytes for countryPlaceholder.
*/
public com.google.protobuf.ByteString
getCountryPlaceholderBytes() {
java.lang.Object ref = countryPlaceholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string countryPlaceholder = 9;
* @param value The countryPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setCountryPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
countryPlaceholder_ = value;
onChanged();
return this;
}
/**
* string countryPlaceholder = 9;
* @return This builder for chaining.
*/
public Builder clearCountryPlaceholder() {
countryPlaceholder_ = getDefaultInstance().getCountryPlaceholder();
onChanged();
return this;
}
/**
* string countryPlaceholder = 9;
* @param value The bytes for countryPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setCountryPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
countryPlaceholder_ = value;
onChanged();
return this;
}
private java.lang.Object zipPlaceholder_ = "";
/**
* string zipPlaceholder = 10;
* @return The zipPlaceholder.
*/
public java.lang.String getZipPlaceholder() {
java.lang.Object ref = zipPlaceholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zipPlaceholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string zipPlaceholder = 10;
* @return The bytes for zipPlaceholder.
*/
public com.google.protobuf.ByteString
getZipPlaceholderBytes() {
java.lang.Object ref = zipPlaceholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipPlaceholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string zipPlaceholder = 10;
* @param value The zipPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setZipPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zipPlaceholder_ = value;
onChanged();
return this;
}
/**
* string zipPlaceholder = 10;
* @return This builder for chaining.
*/
public Builder clearZipPlaceholder() {
zipPlaceholder_ = getDefaultInstance().getZipPlaceholder();
onChanged();
return this;
}
/**
* string zipPlaceholder = 10;
* @param value The bytes for zipPlaceholder to set.
* @return This builder for chaining.
*/
public Builder setZipPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zipPlaceholder_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedAddress1Label_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedAddress1LabelBuilder_;
/**
* .io.LocalizedString localizedAddress1Label = 11;
* @return Whether the localizedAddress1Label field is set.
*/
public boolean hasLocalizedAddress1Label() {
return localizedAddress1LabelBuilder_ != null || localizedAddress1Label_ != null;
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
* @return The localizedAddress1Label.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress1Label() {
if (localizedAddress1LabelBuilder_ == null) {
return localizedAddress1Label_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress1Label_;
} else {
return localizedAddress1LabelBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
public Builder setLocalizedAddress1Label(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress1LabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedAddress1Label_ = value;
onChanged();
} else {
localizedAddress1LabelBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
public Builder setLocalizedAddress1Label(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedAddress1LabelBuilder_ == null) {
localizedAddress1Label_ = builderForValue.build();
onChanged();
} else {
localizedAddress1LabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
public Builder mergeLocalizedAddress1Label(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress1LabelBuilder_ == null) {
if (localizedAddress1Label_ != null) {
localizedAddress1Label_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedAddress1Label_).mergeFrom(value).buildPartial();
} else {
localizedAddress1Label_ = value;
}
onChanged();
} else {
localizedAddress1LabelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
public Builder clearLocalizedAddress1Label() {
if (localizedAddress1LabelBuilder_ == null) {
localizedAddress1Label_ = null;
onChanged();
} else {
localizedAddress1Label_ = null;
localizedAddress1LabelBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedAddress1LabelBuilder() {
onChanged();
return getLocalizedAddress1LabelFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress1LabelOrBuilder() {
if (localizedAddress1LabelBuilder_ != null) {
return localizedAddress1LabelBuilder_.getMessageOrBuilder();
} else {
return localizedAddress1Label_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress1Label_;
}
}
/**
* .io.LocalizedString localizedAddress1Label = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedAddress1LabelFieldBuilder() {
if (localizedAddress1LabelBuilder_ == null) {
localizedAddress1LabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedAddress1Label(),
getParentForChildren(),
isClean());
localizedAddress1Label_ = null;
}
return localizedAddress1LabelBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedAddress2Label_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedAddress2LabelBuilder_;
/**
* .io.LocalizedString localizedAddress2Label = 12;
* @return Whether the localizedAddress2Label field is set.
*/
public boolean hasLocalizedAddress2Label() {
return localizedAddress2LabelBuilder_ != null || localizedAddress2Label_ != null;
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
* @return The localizedAddress2Label.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress2Label() {
if (localizedAddress2LabelBuilder_ == null) {
return localizedAddress2Label_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress2Label_;
} else {
return localizedAddress2LabelBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
public Builder setLocalizedAddress2Label(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress2LabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedAddress2Label_ = value;
onChanged();
} else {
localizedAddress2LabelBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
public Builder setLocalizedAddress2Label(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedAddress2LabelBuilder_ == null) {
localizedAddress2Label_ = builderForValue.build();
onChanged();
} else {
localizedAddress2LabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
public Builder mergeLocalizedAddress2Label(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress2LabelBuilder_ == null) {
if (localizedAddress2Label_ != null) {
localizedAddress2Label_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedAddress2Label_).mergeFrom(value).buildPartial();
} else {
localizedAddress2Label_ = value;
}
onChanged();
} else {
localizedAddress2LabelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
public Builder clearLocalizedAddress2Label() {
if (localizedAddress2LabelBuilder_ == null) {
localizedAddress2Label_ = null;
onChanged();
} else {
localizedAddress2Label_ = null;
localizedAddress2LabelBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedAddress2LabelBuilder() {
onChanged();
return getLocalizedAddress2LabelFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress2LabelOrBuilder() {
if (localizedAddress2LabelBuilder_ != null) {
return localizedAddress2LabelBuilder_.getMessageOrBuilder();
} else {
return localizedAddress2Label_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress2Label_;
}
}
/**
* .io.LocalizedString localizedAddress2Label = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedAddress2LabelFieldBuilder() {
if (localizedAddress2LabelBuilder_ == null) {
localizedAddress2LabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedAddress2Label(),
getParentForChildren(),
isClean());
localizedAddress2Label_ = null;
}
return localizedAddress2LabelBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedCityLabel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedCityLabelBuilder_;
/**
* .io.LocalizedString localizedCityLabel = 13;
* @return Whether the localizedCityLabel field is set.
*/
public boolean hasLocalizedCityLabel() {
return localizedCityLabelBuilder_ != null || localizedCityLabel_ != null;
}
/**
* .io.LocalizedString localizedCityLabel = 13;
* @return The localizedCityLabel.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedCityLabel() {
if (localizedCityLabelBuilder_ == null) {
return localizedCityLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCityLabel_;
} else {
return localizedCityLabelBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
public Builder setLocalizedCityLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCityLabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedCityLabel_ = value;
onChanged();
} else {
localizedCityLabelBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
public Builder setLocalizedCityLabel(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedCityLabelBuilder_ == null) {
localizedCityLabel_ = builderForValue.build();
onChanged();
} else {
localizedCityLabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
public Builder mergeLocalizedCityLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCityLabelBuilder_ == null) {
if (localizedCityLabel_ != null) {
localizedCityLabel_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedCityLabel_).mergeFrom(value).buildPartial();
} else {
localizedCityLabel_ = value;
}
onChanged();
} else {
localizedCityLabelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
public Builder clearLocalizedCityLabel() {
if (localizedCityLabelBuilder_ == null) {
localizedCityLabel_ = null;
onChanged();
} else {
localizedCityLabel_ = null;
localizedCityLabelBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedCityLabelBuilder() {
onChanged();
return getLocalizedCityLabelFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCityLabelOrBuilder() {
if (localizedCityLabelBuilder_ != null) {
return localizedCityLabelBuilder_.getMessageOrBuilder();
} else {
return localizedCityLabel_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCityLabel_;
}
}
/**
* .io.LocalizedString localizedCityLabel = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedCityLabelFieldBuilder() {
if (localizedCityLabelBuilder_ == null) {
localizedCityLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedCityLabel(),
getParentForChildren(),
isClean());
localizedCityLabel_ = null;
}
return localizedCityLabelBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedCountryLabel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedCountryLabelBuilder_;
/**
* .io.LocalizedString localizedCountryLabel = 14;
* @return Whether the localizedCountryLabel field is set.
*/
public boolean hasLocalizedCountryLabel() {
return localizedCountryLabelBuilder_ != null || localizedCountryLabel_ != null;
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
* @return The localizedCountryLabel.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedCountryLabel() {
if (localizedCountryLabelBuilder_ == null) {
return localizedCountryLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCountryLabel_;
} else {
return localizedCountryLabelBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
public Builder setLocalizedCountryLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCountryLabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedCountryLabel_ = value;
onChanged();
} else {
localizedCountryLabelBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
public Builder setLocalizedCountryLabel(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedCountryLabelBuilder_ == null) {
localizedCountryLabel_ = builderForValue.build();
onChanged();
} else {
localizedCountryLabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
public Builder mergeLocalizedCountryLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCountryLabelBuilder_ == null) {
if (localizedCountryLabel_ != null) {
localizedCountryLabel_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedCountryLabel_).mergeFrom(value).buildPartial();
} else {
localizedCountryLabel_ = value;
}
onChanged();
} else {
localizedCountryLabelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
public Builder clearLocalizedCountryLabel() {
if (localizedCountryLabelBuilder_ == null) {
localizedCountryLabel_ = null;
onChanged();
} else {
localizedCountryLabel_ = null;
localizedCountryLabelBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedCountryLabelBuilder() {
onChanged();
return getLocalizedCountryLabelFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCountryLabelOrBuilder() {
if (localizedCountryLabelBuilder_ != null) {
return localizedCountryLabelBuilder_.getMessageOrBuilder();
} else {
return localizedCountryLabel_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCountryLabel_;
}
}
/**
* .io.LocalizedString localizedCountryLabel = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedCountryLabelFieldBuilder() {
if (localizedCountryLabelBuilder_ == null) {
localizedCountryLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedCountryLabel(),
getParentForChildren(),
isClean());
localizedCountryLabel_ = null;
}
return localizedCountryLabelBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedZipLabel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedZipLabelBuilder_;
/**
* .io.LocalizedString localizedZipLabel = 15;
* @return Whether the localizedZipLabel field is set.
*/
public boolean hasLocalizedZipLabel() {
return localizedZipLabelBuilder_ != null || localizedZipLabel_ != null;
}
/**
* .io.LocalizedString localizedZipLabel = 15;
* @return The localizedZipLabel.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedZipLabel() {
if (localizedZipLabelBuilder_ == null) {
return localizedZipLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedZipLabel_;
} else {
return localizedZipLabelBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
public Builder setLocalizedZipLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedZipLabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedZipLabel_ = value;
onChanged();
} else {
localizedZipLabelBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
public Builder setLocalizedZipLabel(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedZipLabelBuilder_ == null) {
localizedZipLabel_ = builderForValue.build();
onChanged();
} else {
localizedZipLabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
public Builder mergeLocalizedZipLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedZipLabelBuilder_ == null) {
if (localizedZipLabel_ != null) {
localizedZipLabel_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedZipLabel_).mergeFrom(value).buildPartial();
} else {
localizedZipLabel_ = value;
}
onChanged();
} else {
localizedZipLabelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
public Builder clearLocalizedZipLabel() {
if (localizedZipLabelBuilder_ == null) {
localizedZipLabel_ = null;
onChanged();
} else {
localizedZipLabel_ = null;
localizedZipLabelBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedZipLabelBuilder() {
onChanged();
return getLocalizedZipLabelFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedZipLabelOrBuilder() {
if (localizedZipLabelBuilder_ != null) {
return localizedZipLabelBuilder_.getMessageOrBuilder();
} else {
return localizedZipLabel_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedZipLabel_;
}
}
/**
* .io.LocalizedString localizedZipLabel = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedZipLabelFieldBuilder() {
if (localizedZipLabelBuilder_ == null) {
localizedZipLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedZipLabel(),
getParentForChildren(),
isClean());
localizedZipLabel_ = null;
}
return localizedZipLabelBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedAddress1Placeholder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedAddress1PlaceholderBuilder_;
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
* @return Whether the localizedAddress1Placeholder field is set.
*/
public boolean hasLocalizedAddress1Placeholder() {
return localizedAddress1PlaceholderBuilder_ != null || localizedAddress1Placeholder_ != null;
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
* @return The localizedAddress1Placeholder.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress1Placeholder() {
if (localizedAddress1PlaceholderBuilder_ == null) {
return localizedAddress1Placeholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress1Placeholder_;
} else {
return localizedAddress1PlaceholderBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
public Builder setLocalizedAddress1Placeholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress1PlaceholderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedAddress1Placeholder_ = value;
onChanged();
} else {
localizedAddress1PlaceholderBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
public Builder setLocalizedAddress1Placeholder(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedAddress1PlaceholderBuilder_ == null) {
localizedAddress1Placeholder_ = builderForValue.build();
onChanged();
} else {
localizedAddress1PlaceholderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
public Builder mergeLocalizedAddress1Placeholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress1PlaceholderBuilder_ == null) {
if (localizedAddress1Placeholder_ != null) {
localizedAddress1Placeholder_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedAddress1Placeholder_).mergeFrom(value).buildPartial();
} else {
localizedAddress1Placeholder_ = value;
}
onChanged();
} else {
localizedAddress1PlaceholderBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
public Builder clearLocalizedAddress1Placeholder() {
if (localizedAddress1PlaceholderBuilder_ == null) {
localizedAddress1Placeholder_ = null;
onChanged();
} else {
localizedAddress1Placeholder_ = null;
localizedAddress1PlaceholderBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedAddress1PlaceholderBuilder() {
onChanged();
return getLocalizedAddress1PlaceholderFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress1PlaceholderOrBuilder() {
if (localizedAddress1PlaceholderBuilder_ != null) {
return localizedAddress1PlaceholderBuilder_.getMessageOrBuilder();
} else {
return localizedAddress1Placeholder_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress1Placeholder_;
}
}
/**
* .io.LocalizedString localizedAddress1Placeholder = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedAddress1PlaceholderFieldBuilder() {
if (localizedAddress1PlaceholderBuilder_ == null) {
localizedAddress1PlaceholderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedAddress1Placeholder(),
getParentForChildren(),
isClean());
localizedAddress1Placeholder_ = null;
}
return localizedAddress1PlaceholderBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedAddress2Placeholder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedAddress2PlaceholderBuilder_;
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
* @return Whether the localizedAddress2Placeholder field is set.
*/
public boolean hasLocalizedAddress2Placeholder() {
return localizedAddress2PlaceholderBuilder_ != null || localizedAddress2Placeholder_ != null;
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
* @return The localizedAddress2Placeholder.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedAddress2Placeholder() {
if (localizedAddress2PlaceholderBuilder_ == null) {
return localizedAddress2Placeholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress2Placeholder_;
} else {
return localizedAddress2PlaceholderBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
public Builder setLocalizedAddress2Placeholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress2PlaceholderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedAddress2Placeholder_ = value;
onChanged();
} else {
localizedAddress2PlaceholderBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
public Builder setLocalizedAddress2Placeholder(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedAddress2PlaceholderBuilder_ == null) {
localizedAddress2Placeholder_ = builderForValue.build();
onChanged();
} else {
localizedAddress2PlaceholderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
public Builder mergeLocalizedAddress2Placeholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAddress2PlaceholderBuilder_ == null) {
if (localizedAddress2Placeholder_ != null) {
localizedAddress2Placeholder_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedAddress2Placeholder_).mergeFrom(value).buildPartial();
} else {
localizedAddress2Placeholder_ = value;
}
onChanged();
} else {
localizedAddress2PlaceholderBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
public Builder clearLocalizedAddress2Placeholder() {
if (localizedAddress2PlaceholderBuilder_ == null) {
localizedAddress2Placeholder_ = null;
onChanged();
} else {
localizedAddress2Placeholder_ = null;
localizedAddress2PlaceholderBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedAddress2PlaceholderBuilder() {
onChanged();
return getLocalizedAddress2PlaceholderFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAddress2PlaceholderOrBuilder() {
if (localizedAddress2PlaceholderBuilder_ != null) {
return localizedAddress2PlaceholderBuilder_.getMessageOrBuilder();
} else {
return localizedAddress2Placeholder_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAddress2Placeholder_;
}
}
/**
* .io.LocalizedString localizedAddress2Placeholder = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedAddress2PlaceholderFieldBuilder() {
if (localizedAddress2PlaceholderBuilder_ == null) {
localizedAddress2PlaceholderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedAddress2Placeholder(),
getParentForChildren(),
isClean());
localizedAddress2Placeholder_ = null;
}
return localizedAddress2PlaceholderBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedCityPlaceholder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedCityPlaceholderBuilder_;
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
* @return Whether the localizedCityPlaceholder field is set.
*/
public boolean hasLocalizedCityPlaceholder() {
return localizedCityPlaceholderBuilder_ != null || localizedCityPlaceholder_ != null;
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
* @return The localizedCityPlaceholder.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedCityPlaceholder() {
if (localizedCityPlaceholderBuilder_ == null) {
return localizedCityPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCityPlaceholder_;
} else {
return localizedCityPlaceholderBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
public Builder setLocalizedCityPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCityPlaceholderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedCityPlaceholder_ = value;
onChanged();
} else {
localizedCityPlaceholderBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
public Builder setLocalizedCityPlaceholder(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedCityPlaceholderBuilder_ == null) {
localizedCityPlaceholder_ = builderForValue.build();
onChanged();
} else {
localizedCityPlaceholderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
public Builder mergeLocalizedCityPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCityPlaceholderBuilder_ == null) {
if (localizedCityPlaceholder_ != null) {
localizedCityPlaceholder_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedCityPlaceholder_).mergeFrom(value).buildPartial();
} else {
localizedCityPlaceholder_ = value;
}
onChanged();
} else {
localizedCityPlaceholderBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
public Builder clearLocalizedCityPlaceholder() {
if (localizedCityPlaceholderBuilder_ == null) {
localizedCityPlaceholder_ = null;
onChanged();
} else {
localizedCityPlaceholder_ = null;
localizedCityPlaceholderBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedCityPlaceholderBuilder() {
onChanged();
return getLocalizedCityPlaceholderFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCityPlaceholderOrBuilder() {
if (localizedCityPlaceholderBuilder_ != null) {
return localizedCityPlaceholderBuilder_.getMessageOrBuilder();
} else {
return localizedCityPlaceholder_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCityPlaceholder_;
}
}
/**
* .io.LocalizedString localizedCityPlaceholder = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedCityPlaceholderFieldBuilder() {
if (localizedCityPlaceholderBuilder_ == null) {
localizedCityPlaceholderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedCityPlaceholder(),
getParentForChildren(),
isClean());
localizedCityPlaceholder_ = null;
}
return localizedCityPlaceholderBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedCountryPlaceholder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedCountryPlaceholderBuilder_;
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
* @return Whether the localizedCountryPlaceholder field is set.
*/
public boolean hasLocalizedCountryPlaceholder() {
return localizedCountryPlaceholderBuilder_ != null || localizedCountryPlaceholder_ != null;
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
* @return The localizedCountryPlaceholder.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedCountryPlaceholder() {
if (localizedCountryPlaceholderBuilder_ == null) {
return localizedCountryPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCountryPlaceholder_;
} else {
return localizedCountryPlaceholderBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
public Builder setLocalizedCountryPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCountryPlaceholderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedCountryPlaceholder_ = value;
onChanged();
} else {
localizedCountryPlaceholderBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
public Builder setLocalizedCountryPlaceholder(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedCountryPlaceholderBuilder_ == null) {
localizedCountryPlaceholder_ = builderForValue.build();
onChanged();
} else {
localizedCountryPlaceholderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
public Builder mergeLocalizedCountryPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCountryPlaceholderBuilder_ == null) {
if (localizedCountryPlaceholder_ != null) {
localizedCountryPlaceholder_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedCountryPlaceholder_).mergeFrom(value).buildPartial();
} else {
localizedCountryPlaceholder_ = value;
}
onChanged();
} else {
localizedCountryPlaceholderBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
public Builder clearLocalizedCountryPlaceholder() {
if (localizedCountryPlaceholderBuilder_ == null) {
localizedCountryPlaceholder_ = null;
onChanged();
} else {
localizedCountryPlaceholder_ = null;
localizedCountryPlaceholderBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedCountryPlaceholderBuilder() {
onChanged();
return getLocalizedCountryPlaceholderFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCountryPlaceholderOrBuilder() {
if (localizedCountryPlaceholderBuilder_ != null) {
return localizedCountryPlaceholderBuilder_.getMessageOrBuilder();
} else {
return localizedCountryPlaceholder_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCountryPlaceholder_;
}
}
/**
* .io.LocalizedString localizedCountryPlaceholder = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedCountryPlaceholderFieldBuilder() {
if (localizedCountryPlaceholderBuilder_ == null) {
localizedCountryPlaceholderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedCountryPlaceholder(),
getParentForChildren(),
isClean());
localizedCountryPlaceholder_ = null;
}
return localizedCountryPlaceholderBuilder_;
}
private com.passkit.grpc.Localization.LocalizedString localizedZipPlaceholder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedZipPlaceholderBuilder_;
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
* @return Whether the localizedZipPlaceholder field is set.
*/
public boolean hasLocalizedZipPlaceholder() {
return localizedZipPlaceholderBuilder_ != null || localizedZipPlaceholder_ != null;
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
* @return The localizedZipPlaceholder.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedZipPlaceholder() {
if (localizedZipPlaceholderBuilder_ == null) {
return localizedZipPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedZipPlaceholder_;
} else {
return localizedZipPlaceholderBuilder_.getMessage();
}
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
public Builder setLocalizedZipPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedZipPlaceholderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedZipPlaceholder_ = value;
onChanged();
} else {
localizedZipPlaceholderBuilder_.setMessage(value);
}
return this;
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
public Builder setLocalizedZipPlaceholder(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedZipPlaceholderBuilder_ == null) {
localizedZipPlaceholder_ = builderForValue.build();
onChanged();
} else {
localizedZipPlaceholderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
public Builder mergeLocalizedZipPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedZipPlaceholderBuilder_ == null) {
if (localizedZipPlaceholder_ != null) {
localizedZipPlaceholder_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedZipPlaceholder_).mergeFrom(value).buildPartial();
} else {
localizedZipPlaceholder_ = value;
}
onChanged();
} else {
localizedZipPlaceholderBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
public Builder clearLocalizedZipPlaceholder() {
if (localizedZipPlaceholderBuilder_ == null) {
localizedZipPlaceholder_ = null;
onChanged();
} else {
localizedZipPlaceholder_ = null;
localizedZipPlaceholderBuilder_ = null;
}
return this;
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedZipPlaceholderBuilder() {
onChanged();
return getLocalizedZipPlaceholderFieldBuilder().getBuilder();
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedZipPlaceholderOrBuilder() {
if (localizedZipPlaceholderBuilder_ != null) {
return localizedZipPlaceholderBuilder_.getMessageOrBuilder();
} else {
return localizedZipPlaceholder_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedZipPlaceholder_;
}
}
/**
* .io.LocalizedString localizedZipPlaceholder = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedZipPlaceholderFieldBuilder() {
if (localizedZipPlaceholderBuilder_ == null) {
localizedZipPlaceholderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedZipPlaceholder(),
getParentForChildren(),
isClean());
localizedZipPlaceholder_ = null;
}
return localizedZipPlaceholderBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.AddressRenderOptions)
}
// @@protoc_insertion_point(class_scope:io.AddressRenderOptions)
private static final com.passkit.grpc.Template.AddressRenderOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.AddressRenderOptions();
}
public static com.passkit.grpc.Template.AddressRenderOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddressRenderOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddressRenderOptions(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.Template.AddressRenderOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SharingOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Sharing)
com.google.protobuf.MessageOrBuilder {
/**
*
* If not disabled will show the 'Share Pass' button on the back of an Apple Wallet pass. Setting a url and description will redirect sharing to a URL (such as a sign-up or info url) instead of sharing the pass.
*
*
* bool prohibitSharing = 1;
* @return The prohibitSharing.
*/
boolean getProhibitSharing();
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @return The url.
*/
java.lang.String getUrl();
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return Whether the localizedDescription field is set.
*/
boolean hasLocalizedDescription();
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return The localizedDescription.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedDescription();
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder();
}
/**
*
* Controls the sharing settings for the program. Sharing settings only apply to Apple Wallet.
*
*
* Protobuf type {@code io.Sharing}
*/
public static final class Sharing extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Sharing)
SharingOrBuilder {
private static final long serialVersionUID = 0L;
// Use Sharing.newBuilder() to construct.
private Sharing(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Sharing() {
url_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Sharing();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Sharing(
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: {
prohibitSharing_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
url_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedDescription_ != null) {
subBuilder = localizedDescription_.toBuilder();
}
localizedDescription_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedDescription_);
localizedDescription_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_Sharing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Sharing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Sharing.class, com.passkit.grpc.Template.Sharing.Builder.class);
}
public static final int PROHIBITSHARING_FIELD_NUMBER = 1;
private boolean prohibitSharing_;
/**
*
* If not disabled will show the 'Share Pass' button on the back of an Apple Wallet pass. Setting a url and description will redirect sharing to a URL (such as a sign-up or info url) instead of sharing the pass.
*
*
* bool prohibitSharing = 1;
* @return The prohibitSharing.
*/
@java.lang.Override
public boolean getProhibitSharing() {
return prohibitSharing_;
}
public static final int URL_FIELD_NUMBER = 2;
private volatile java.lang.Object url_;
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
}
}
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDDESCRIPTION_FIELD_NUMBER = 4;
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return Whether the localizedDescription field is set.
*/
@java.lang.Override
public boolean hasLocalizedDescription() {
return localizedDescription_ != null;
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return The localizedDescription.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
return getLocalizedDescription();
}
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 (prohibitSharing_ != false) {
output.writeBool(1, prohibitSharing_);
}
if (!getUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (localizedDescription_ != null) {
output.writeMessage(4, getLocalizedDescription());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (prohibitSharing_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, prohibitSharing_);
}
if (!getUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (localizedDescription_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocalizedDescription());
}
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.Template.Sharing)) {
return super.equals(obj);
}
com.passkit.grpc.Template.Sharing other = (com.passkit.grpc.Template.Sharing) obj;
if (getProhibitSharing()
!= other.getProhibitSharing()) return false;
if (!getUrl()
.equals(other.getUrl())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasLocalizedDescription() != other.hasLocalizedDescription()) return false;
if (hasLocalizedDescription()) {
if (!getLocalizedDescription()
.equals(other.getLocalizedDescription())) 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) + PROHIBITSHARING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getProhibitSharing());
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasLocalizedDescription()) {
hash = (37 * hash) + LOCALIZEDDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedDescription().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.Sharing parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Sharing 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.Template.Sharing parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Sharing 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.Template.Sharing parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.Sharing parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.Sharing parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Sharing 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.Template.Sharing parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Sharing 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.Template.Sharing parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.Sharing 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.Template.Sharing 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;
}
/**
*
* Controls the sharing settings for the program. Sharing settings only apply to Apple Wallet.
*
*
* Protobuf type {@code io.Sharing}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Sharing)
com.passkit.grpc.Template.SharingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_Sharing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_Sharing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.Sharing.class, com.passkit.grpc.Template.Sharing.Builder.class);
}
// Construct using com.passkit.grpc.Template.Sharing.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();
prohibitSharing_ = false;
url_ = "";
description_ = "";
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_Sharing_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.Sharing getDefaultInstanceForType() {
return com.passkit.grpc.Template.Sharing.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.Sharing build() {
com.passkit.grpc.Template.Sharing result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.Sharing buildPartial() {
com.passkit.grpc.Template.Sharing result = new com.passkit.grpc.Template.Sharing(this);
result.prohibitSharing_ = prohibitSharing_;
result.url_ = url_;
result.description_ = description_;
if (localizedDescriptionBuilder_ == null) {
result.localizedDescription_ = localizedDescription_;
} else {
result.localizedDescription_ = localizedDescriptionBuilder_.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.Template.Sharing) {
return mergeFrom((com.passkit.grpc.Template.Sharing)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.Sharing other) {
if (other == com.passkit.grpc.Template.Sharing.getDefaultInstance()) return this;
if (other.getProhibitSharing() != false) {
setProhibitSharing(other.getProhibitSharing());
}
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasLocalizedDescription()) {
mergeLocalizedDescription(other.getLocalizedDescription());
}
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.Template.Sharing parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.Sharing) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean prohibitSharing_ ;
/**
*
* If not disabled will show the 'Share Pass' button on the back of an Apple Wallet pass. Setting a url and description will redirect sharing to a URL (such as a sign-up or info url) instead of sharing the pass.
*
*
* bool prohibitSharing = 1;
* @return The prohibitSharing.
*/
@java.lang.Override
public boolean getProhibitSharing() {
return prohibitSharing_;
}
/**
*
* If not disabled will show the 'Share Pass' button on the back of an Apple Wallet pass. Setting a url and description will redirect sharing to a URL (such as a sign-up or info url) instead of sharing the pass.
*
*
* bool prohibitSharing = 1;
* @param value The prohibitSharing to set.
* @return This builder for chaining.
*/
public Builder setProhibitSharing(boolean value) {
prohibitSharing_ = value;
onChanged();
return this;
}
/**
*
* If not disabled will show the 'Share Pass' button on the back of an Apple Wallet pass. Setting a url and description will redirect sharing to a URL (such as a sign-up or info url) instead of sharing the pass.
*
*
* bool prohibitSharing = 1;
* @return This builder for chaining.
*/
public Builder clearProhibitSharing() {
prohibitSharing_ = false;
onChanged();
return this;
}
private java.lang.Object url_ = "";
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
return this;
}
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
*
* If provided will allow for a custom share URL to be triggered from 'Share Pass' butto.
*
*
* string url = 2;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* If provided will allow for a custom description text to be inserted in the sharing message.
*
*
* string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedDescription_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedDescriptionBuilder_;
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return Whether the localizedDescription field is set.
*/
public boolean hasLocalizedDescription() {
return localizedDescriptionBuilder_ != null || localizedDescription_ != null;
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
* @return The localizedDescription.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
return localizedDescription_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
} else {
return localizedDescriptionBuilder_.getMessage();
}
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder setLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedDescription_ = value;
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder setLocalizedDescription(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = builderForValue.build();
onChanged();
} else {
localizedDescriptionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder mergeLocalizedDescription(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDescriptionBuilder_ == null) {
if (localizedDescription_ != null) {
localizedDescription_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedDescription_).mergeFrom(value).buildPartial();
} else {
localizedDescription_ = value;
}
onChanged();
} else {
localizedDescriptionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public Builder clearLocalizedDescription() {
if (localizedDescriptionBuilder_ == null) {
localizedDescription_ = null;
onChanged();
} else {
localizedDescription_ = null;
localizedDescriptionBuilder_ = null;
}
return this;
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedDescriptionBuilder() {
onChanged();
return getLocalizedDescriptionFieldBuilder().getBuilder();
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDescriptionOrBuilder() {
if (localizedDescriptionBuilder_ != null) {
return localizedDescriptionBuilder_.getMessageOrBuilder();
} else {
return localizedDescription_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDescription_;
}
}
/**
*
* Sharing description in localized language.
*
*
* .io.LocalizedString localizedDescription = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedDescriptionFieldBuilder() {
if (localizedDescriptionBuilder_ == null) {
localizedDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedDescription(),
getParentForChildren(),
isClean());
localizedDescription_ = null;
}
return localizedDescriptionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.Sharing)
}
// @@protoc_insertion_point(class_scope:io.Sharing)
private static final com.passkit.grpc.Template.Sharing DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.Sharing();
}
public static com.passkit.grpc.Template.Sharing getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Sharing parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Sharing(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.Template.Sharing getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DefaultTemplateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.DefaultTemplateRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .io.PassProtocol protocol = 1;
* @return The enum numeric value on the wire for protocol.
*/
int getProtocolValue();
/**
* .io.PassProtocol protocol = 1;
* @return The protocol.
*/
com.passkit.grpc.Protocols.PassProtocol getProtocol();
/**
* uint32 revision = 2;
* @return The revision.
*/
int getRevision();
}
/**
* Protobuf type {@code io.DefaultTemplateRequest}
*/
public static final class DefaultTemplateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.DefaultTemplateRequest)
DefaultTemplateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DefaultTemplateRequest.newBuilder() to construct.
private DefaultTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DefaultTemplateRequest() {
protocol_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DefaultTemplateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DefaultTemplateRequest(
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();
protocol_ = rawValue;
break;
}
case 16: {
revision_ = input.readUInt32();
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.Template.internal_static_io_DefaultTemplateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DefaultTemplateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DefaultTemplateRequest.class, com.passkit.grpc.Template.DefaultTemplateRequest.Builder.class);
}
public static final int PROTOCOL_FIELD_NUMBER = 1;
private int protocol_;
/**
* .io.PassProtocol protocol = 1;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
* .io.PassProtocol protocol = 1;
* @return The protocol.
*/
@java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
public static final int REVISION_FIELD_NUMBER = 2;
private int revision_;
/**
* uint32 revision = 2;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
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 (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
output.writeEnum(1, protocol_);
}
if (revision_ != 0) {
output.writeUInt32(2, revision_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, protocol_);
}
if (revision_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, revision_);
}
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.Template.DefaultTemplateRequest)) {
return super.equals(obj);
}
com.passkit.grpc.Template.DefaultTemplateRequest other = (com.passkit.grpc.Template.DefaultTemplateRequest) obj;
if (protocol_ != other.protocol_) return false;
if (getRevision()
!= other.getRevision()) 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) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + protocol_;
hash = (37 * hash) + REVISION_FIELD_NUMBER;
hash = (53 * hash) + getRevision();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Template.DefaultTemplateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DefaultTemplateRequest 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.Template.DefaultTemplateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DefaultTemplateRequest 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.Template.DefaultTemplateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Template.DefaultTemplateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Template.DefaultTemplateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DefaultTemplateRequest 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.Template.DefaultTemplateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DefaultTemplateRequest 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.Template.DefaultTemplateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Template.DefaultTemplateRequest 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.Template.DefaultTemplateRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.DefaultTemplateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.DefaultTemplateRequest)
com.passkit.grpc.Template.DefaultTemplateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Template.internal_static_io_DefaultTemplateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Template.internal_static_io_DefaultTemplateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Template.DefaultTemplateRequest.class, com.passkit.grpc.Template.DefaultTemplateRequest.Builder.class);
}
// Construct using com.passkit.grpc.Template.DefaultTemplateRequest.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();
protocol_ = 0;
revision_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Template.internal_static_io_DefaultTemplateRequest_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Template.DefaultTemplateRequest getDefaultInstanceForType() {
return com.passkit.grpc.Template.DefaultTemplateRequest.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Template.DefaultTemplateRequest build() {
com.passkit.grpc.Template.DefaultTemplateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Template.DefaultTemplateRequest buildPartial() {
com.passkit.grpc.Template.DefaultTemplateRequest result = new com.passkit.grpc.Template.DefaultTemplateRequest(this);
result.protocol_ = protocol_;
result.revision_ = revision_;
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.Template.DefaultTemplateRequest) {
return mergeFrom((com.passkit.grpc.Template.DefaultTemplateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Template.DefaultTemplateRequest other) {
if (other == com.passkit.grpc.Template.DefaultTemplateRequest.getDefaultInstance()) return this;
if (other.protocol_ != 0) {
setProtocolValue(other.getProtocolValue());
}
if (other.getRevision() != 0) {
setRevision(other.getRevision());
}
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.Template.DefaultTemplateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Template.DefaultTemplateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int protocol_ = 0;
/**
* .io.PassProtocol protocol = 1;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
* .io.PassProtocol protocol = 1;
* @param value The enum numeric value on the wire for protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocolValue(int value) {
protocol_ = value;
onChanged();
return this;
}
/**
* .io.PassProtocol protocol = 1;
* @return The protocol.
*/
@java.lang.Override
public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
/**
* .io.PassProtocol protocol = 1;
* @param value The protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) {
if (value == null) {
throw new NullPointerException();
}
protocol_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.PassProtocol protocol = 1;
* @return This builder for chaining.
*/
public Builder clearProtocol() {
protocol_ = 0;
onChanged();
return this;
}
private int revision_ ;
/**
* uint32 revision = 2;
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
/**
* uint32 revision = 2;
* @param value The revision to set.
* @return This builder for chaining.
*/
public Builder setRevision(int value) {
revision_ = value;
onChanged();
return this;
}
/**
* uint32 revision = 2;
* @return This builder for chaining.
*/
public Builder clearRevision() {
revision_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.DefaultTemplateRequest)
}
// @@protoc_insertion_point(class_scope:io.DefaultTemplateRequest)
private static final com.passkit.grpc.Template.DefaultTemplateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Template.DefaultTemplateRequest();
}
public static com.passkit.grpc.Template.DefaultTemplateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DefaultTemplateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DefaultTemplateRequest(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.Template.DefaultTemplateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_SelectOption_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_SelectOption_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Barcode_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Barcode_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_PassTemplate_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_PassTemplate_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_AppleWalletSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_AppleWalletSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_GooglePaySettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_GooglePaySettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_GooglePayApp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_GooglePayApp_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Data_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Data_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_LandingPageSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_LandingPageSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_DataCollectionPageSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_DataCollectionPageSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_PassTemplateResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_PassTemplateResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Colors_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Colors_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_CopyObjectInput_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_CopyObjectInput_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_NFC_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_NFC_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_DataField_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_DataField_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_AppleWalletFieldRenderOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_AppleWalletFieldRenderOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_GooglePayFieldRenderOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_GooglePayFieldRenderOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_PositionSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_PositionSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_DataCollectionFieldRenderOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_DataCollectionFieldRenderOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_AddressRenderOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_AddressRenderOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Sharing_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Sharing_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_DefaultTemplateRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_DefaultTemplateRequest_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\030io/common/template.proto\022\002io\032\036io/commo" +
"n/common_objects.proto\032\034io/common/locali" +
"zation.proto\032\031io/common/protocols.proto\032" +
"\031io/common/proximity.proto\032\025io/common/li" +
"nks.proto\032\030io/common/tracking.proto\032\024io/" +
"image/image.proto\032.protoc-gen-openapiv2/" +
"options/annotations.proto\032\037google/protob" +
"uf/timestamp.proto\032\026io/common/expiry.pro" +
"to\"w\n\014SelectOption\022\024\n\014listPriority\030\001 \001(\r" +
"\022\021\n\ttextLabel\030\002 \001(\t\022/\n\022localizedTextLabe" +
"l\030\003 \001(\0132\023.io.LocalizedString\022\r\n\005value\030\004 " +
"\001(\t\"\224\001\n\007Barcode\022\017\n\007payload\030\001 \001(\t\022\037\n\006form" +
"at\030\002 \001(\0162\017.io.BarcodeType\022\017\n\007altText\030\003 \001" +
"(\t\022-\n\020localizedAltText\030\004 \001(\0132\023.io.Locali" +
"zedString\022\027\n\017messageEncoding\030\005 \001(\t\"\251\007\n\014P" +
"assTemplate\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\"\n" +
"\010protocol\030\003 \001(\0162\020.io.PassProtocol\022\020\n\010rev" +
"ision\030\004 \001(\r\022)\n\017defaultLanguage\030\005 \001(\0162\020.i" +
"o.LanguageCode\022\030\n\020organizationName\030\006 \001(\t" +
"\0226\n\031localizedOrganizationName\030\007 \001(\0132\023.io" +
".LocalizedString\022\023\n\013description\030\010 \001(\t\0221\n" +
"\024localizedDescription\030\t \001(\0132\023.io.Localiz" +
"edString\022\026\n\004data\030\n \001(\0132\010.io.Data\022 \n\010imag" +
"eIds\030\013 \001(\0132\014.io.ImageIdsH\000\022\037\n\006images\030\014 \001" +
"(\0132\r.io.ImageDataH\000\022\032\n\006colors\030\r \001(\0132\n.io" +
".Colors\022\034\n\007barcode\030\016 \001(\0132\013.io.Barcode\022\033\n" +
"\nnfcEnabled\030\017 \001(\0132\007.io.NFC\022\034\n\007sharing\030\020 " +
"\001(\0132\013.io.Sharing\0224\n\023appleWalletSettings\030" +
"\021 \001(\0132\027.io.AppleWalletSettings\0220\n\021google" +
"PaySettings\030\022 \001(\0132\025.io.GooglePaySettings" +
"\022*\n\tlocations\030\023 \003(\0132\017.io.GPSLocationB\006\222A" +
"\003\240\001\n\022#\n\007beacons\030\024 \003(\0132\n.io.BeaconB\006\222A\003\240\001" +
"\n\022\027\n\005links\030\025 \003(\0132\010.io.Link\022\020\n\010timezone\030\026" +
" \001(\t\022*\n\016expirySettings\030\027 \001(\0132\022.io.Expiry" +
"Settings\0224\n\023landingPageSettings\030\030 \001(\0132\027." +
"io.LandingPageSettings:_\222A\\\nZ*\013Pass Desi" +
"gn29Design record for the Apple Wallet a" +
"nd Google Pay passes.\322\001\017defaultLanguageB" +
"\r\n\013ImageAssets\"\370\001\n\023AppleWalletSettings\022#" +
"\n\010passType\030\001 \001(\0162\021.io.ApplePassType\022\020\n\010u" +
"serInfo\030\002 \001(\t\022\024\n\014appLaunchUrl\030\003 \001(\t\022\"\n\032a" +
"ssociatedStoreIdentifiers\030\004 \003(\r\022\023\n\013maxDi" +
"stance\030\005 \001(\r\022\031\n\021appStoreCountries\030\006 \003(\t\022" +
"$\n\013transitType\030\007 \001(\0162\017.io.TransitType\022\032\n" +
"\022groupingIdentifier\030\010 \001(\t\"\207\002\n\021GooglePayS" +
"ettings\022\'\n\010passType\030\001 \001(\0162\025.io.GooglePay" +
"PassType\022$\n\nandroidApp\030\002 \001(\0132\020.io.Google" +
"PayApp\022 \n\006iosApp\030\003 \001(\0132\020.io.GooglePayApp" +
"\022 \n\006webApp\030\004 \001(\0132\020.io.GooglePayApp\022\031\n\021cl" +
"assTemplateInfo\030\005 \001(\t\022\027\n\017backgroundColor" +
"\030\006 \001(\t\022+\n\021languageOverrides\030\007 \003(\0162\020.io.L" +
"anguageCode\"\250\001\n\014GooglePayApp\022\024\n\003url\030\001 \001(" +
"\0132\007.io.Url\022\r\n\005title\030\002 \001(\t\022+\n\016localizedTi" +
"tle\030\003 \001(\0132\023.io.LocalizedString\022\023\n\013descri" +
"ption\030\004 \001(\t\0221\n\024localizedDescription\030\005 \001(" +
"\0132\023.io.LocalizedString\"m\n\004Data\022!\n\ndataFi" +
"elds\030\001 \003(\0132\r.io.DataField\022B\n\032dataCollect" +
"ionPageSettings\030\002 \001(\0132\036.io.DataCollectio" +
"nPageSettings\"t\n\023LandingPageSettings\0225\n\033" +
"landingLocalizationOverride\030\001 \003(\0162\020.io.L" +
"anguageCode\022&\n\022preferWalletPasses\030\002 \001(\0162" +
"\n.io.Toggle\"\254\005\n\032DataCollectionPageSettin" +
"gs\022\r\n\005title\030\001 \001(\t\022+\n\016localizedTitle\030\002 \001(" +
"\0132\023.io.LocalizedString\022\023\n\013description\030\003 " +
"\001(\t\0221\n\024localizedDescription\030\004 \001(\0132\023.io.L" +
"ocalizedString\022\030\n\020submitButtonText\030\005 \001(\t" +
"\0226\n\031localizedSubmitButtonText\030\006 \001(\0132\023.io" +
".LocalizedString\022\023\n\013loadingText\030\007 \001(\t\0221\n" +
"\024localizedLoadingText\030\010 \001(\0132\023.io.Localiz" +
"edString\022\024\n\014thankYouText\030\t \001(\t\0222\n\025locali" +
"zedThankYouText\030\n \001(\0132\023.io.LocalizedStri" +
"ng\022\033\n\023pageBackgroundColor\030\013 \001(\t\0229\n\034local" +
"izedPageBackgroundColor\030\014 \001(\0132\023.io.Local" +
"izedString\022.\n\020trackingSettings\030\r \001(\0132\024.i" +
"o.TrackingSettings\022\035\n\025submitButtonTextCo" +
"lor\030\016 \001(\t\022#\n\033submitButtonBackgroundColor" +
"\030\017 \001(\t\022\022\n\nfooterText\030\020 \001(\t\0220\n\023localizedF" +
"ooterText\030\021 \001(\0132\023.io.LocalizedString\022\024\n\014" +
"cssOverrides\030\022 \001(\t\"\363\001\n\024PassTemplateRespo" +
"nse\022\"\n\010template\030\001 \001(\0132\020.io.PassTemplate\022" +
"\014\n\004Name\030\002 \001(\t\022\025\n\rownerUsername\030\003 \001(\t\022\"\n\010" +
"protocol\030\004 \001(\0162\020.io.PassProtocol\022\020\n\010revi" +
"sion\030\005 \001(\r\022-\n\tcreatedAt\030\006 \001(\0132\032.google.p" +
"rotobuf.Timestamp\022-\n\tupdatedAt\030\007 \001(\0132\032.g" +
"oogle.protobuf.Timestamp\"\\\n\006Colors\022\027\n\017ba" +
"ckgroundColor\030\001 \001(\t\022\022\n\nlabelColor\030\002 \001(\t\022" +
"\021\n\ttextColor\030\003 \001(\t\022\022\n\nstripColor\030\004 \001(\t\"." +
"\n\017CopyObjectInput\022\n\n\002id\030\001 \001(\t\022\017\n\007newName" +
"\030\002 \001(\t\">\n\003NFC\022\017\n\007enabled\030\001 \001(\010\022\025\n\rcertif" +
"icateId\030\002 \001(\t\022\017\n\007payload\030\003 \001(\t\"\357\004\n\tDataF" +
"ield\022\022\n\nuniqueName\030\001 \001(\t\022\022\n\ntemplateId\030\002" +
" \001(\t\022 \n\tfieldType\030\003 \001(\0162\r.io.FieldType\022\022" +
"\n\nisRequired\030\004 \001(\010\022\r\n\005label\030\005 \001(\t\022+\n\016loc" +
"alizedLabel\030\006 \001(\0132\023.io.LocalizedString\022\036" +
"\n\010dataType\030\007 \001(\0162\014.io.DataType\022\024\n\014defaul" +
"tValue\030\010 \001(\t\0222\n\025localizedDefaultValue\030\t " +
"\001(\0132\023.io.LocalizedString\022\022\n\nvalidation\030\n" +
" \001(\t\022\027\n\017userCanSetValue\030\013 \001(\010\022\024\n\014currenc" +
"yCode\030\014 \001(\t\022H\n\035appleWalletFieldRenderOpt" +
"ions\030\r \001(\0132!.io.AppleWalletFieldRenderOp" +
"tions\022N\n dataCollectionFieldRenderOption" +
"s\030\016 \001(\0132$.io.DataCollectionFieldRenderOp" +
"tions\022\034\n\005usage\030\017 \003(\0162\r.io.UsageType\022D\n\033g" +
"ooglePayFieldRenderOptions\030\020 \001(\0132\037.io.Go" +
"oglePayFieldRenderOptions\022\035\n\025defaultTelC" +
"ountryCode\030\021 \001(\t\"\230\003\n\035AppleWalletFieldRen" +
"derOptions\022(\n\rtextAlignment\030\002 \001(\0162\021.io.T" +
"extAlignment\022.\n\020positionSettings\030\003 \001(\0132\024" +
".io.PositionSettings\022\025\n\rchangeMessage\030\004 " +
"\001(\t\0223\n\026localizedChangeMessage\030\005 \001(\0132\023.io" +
".LocalizedString\022$\n\tdateStyle\030\006 \001(\0162\021.io" +
".DateTimeStyle\022$\n\ttimeStyle\030\007 \001(\0162\021.io.D" +
"ateTimeStyle\022$\n\013numberStyle\030\010 \001(\0162\017.io.N" +
"umberStyle\022/\n\025suppressLinkDetection\030\t \003(" +
"\0162\020.io.LinkDetector\022\026\n\016ignoreTimezone\030\n " +
"\001(\010\022\026\n\016isRelativeDate\030\013 \001(\010\"h\n\033GooglePay" +
"FieldRenderOptions\022-\n\021googlePayPosition\030" +
"\001 \001(\0162\022.io.GooglePayField\022\032\n\022textModuleP" +
"riority\030\002 \001(\r\"G\n\020PositionSettings\022!\n\007sec" +
"tion\030\001 \001(\0162\020.io.FieldSection\022\020\n\010priority" +
"\030\002 \001(\r\"\237\003\n DataCollectionFieldRenderOpti" +
"ons\022\020\n\010helpText\030\001 \001(\t\022.\n\021localizedHelpTe" +
"xt\030\002 \001(\0132\023.io.LocalizedString\022\024\n\014display" +
"Order\030\003 \001(\005\022\023\n\013placeholder\030\005 \001(\t\022\'\n\rsele" +
"ctOptions\030\006 \003(\0132\020.io.SelectOption\0221\n\024loc" +
"alizedPlaceholder\030\007 \001(\0132\023.io.LocalizedSt" +
"ring\022\024\n\014autocomplete\030\010 \001(\010\0226\n\024addressRen" +
"derOptions\030\t \001(\0132\030.io.AddressRenderOptio" +
"ns\022 \n\030localizedYearPlaceholder\030\n \001(\t\022!\n\031" +
"localizedMonthPlaceholder\030\013 \001(\t\022\037\n\027local" +
"izedDayPlaceholder\030\014 \001(\t\"\242\006\n\024AddressRend" +
"erOptions\022\025\n\raddress1Label\030\001 \001(\t\022\025\n\raddr" +
"ess2Label\030\002 \001(\t\022\021\n\tcityLabel\030\003 \001(\t\022\024\n\014co" +
"untryLabel\030\004 \001(\t\022\020\n\010zipLabel\030\005 \001(\t\022\033\n\023ad" +
"dress1Placeholder\030\006 \001(\t\022\033\n\023address2Place" +
"holder\030\007 \001(\t\022\027\n\017cityPlaceholder\030\010 \001(\t\022\032\n" +
"\022countryPlaceholder\030\t \001(\t\022\026\n\016zipPlacehol" +
"der\030\n \001(\t\0223\n\026localizedAddress1Label\030\013 \001(" +
"\0132\023.io.LocalizedString\0223\n\026localizedAddre" +
"ss2Label\030\014 \001(\0132\023.io.LocalizedString\022/\n\022l" +
"ocalizedCityLabel\030\r \001(\0132\023.io.LocalizedSt" +
"ring\0222\n\025localizedCountryLabel\030\016 \001(\0132\023.io" +
".LocalizedString\022.\n\021localizedZipLabel\030\017 " +
"\001(\0132\023.io.LocalizedString\0229\n\034localizedAdd" +
"ress1Placeholder\030\020 \001(\0132\023.io.LocalizedStr" +
"ing\0229\n\034localizedAddress2Placeholder\030\021 \001(" +
"\0132\023.io.LocalizedString\0225\n\030localizedCityP" +
"laceholder\030\022 \001(\0132\023.io.LocalizedString\0228\n" +
"\033localizedCountryPlaceholder\030\023 \001(\0132\023.io." +
"LocalizedString\0224\n\027localizedZipPlacehold" +
"er\030\024 \001(\0132\023.io.LocalizedString\"\267\001\n\007Sharin" +
"g\022\027\n\017prohibitSharing\030\001 \001(\010\022\013\n\003url\030\002 \001(\t\022" +
"\023\n\013description\030\003 \001(\t\0221\n\024localizedDescrip" +
"tion\030\004 \001(\0132\023.io.LocalizedString:>\222A;\n9*\007" +
"Sharing2.Controls the sharing settings f" +
"or the program.\"N\n\026DefaultTemplateReques" +
"t\022\"\n\010protocol\030\001 \001(\0162\020.io.PassProtocol\022\020\n" +
"\010revision\030\002 \001(\r*v\n\rApplePassType\022\027\n\023APPL" +
"E_NOT_SUPPORTED\020\000\022\021\n\rBOARDING_PASS\020\001\022\n\n\006" +
"COUPON\020\002\022\020\n\014EVENT_TICKET\020\003\022\013\n\007GENERIC\020\004\022" +
"\016\n\nSTORE_CARD\020\005*w\n\021GooglePayPassType\022\034\n\030" +
"GOOGLE_PAY_NOT_SUPPORTED\020\000\022\t\n\005EVENT\020\001\022\n\n" +
"\006FLIGHT\020\002\022\010\n\004GIFT\020\003\022\013\n\007LOYALTY\020\004\022\t\n\005OFFE" +
"R\020\005\022\013\n\007TRANSIT\020\006*`\n\013BarcodeType\022\033\n\027BARCO" +
"DE_TYPE_DO_NOT_USE\020\000\022\006\n\002QR\020\001\022\t\n\005AZTEC\020\002\022" +
"\n\n\006PDF417\020\003\022\013\n\007CODE128\020\004\022\010\n\004NONE\020\005*q\n\tFi" +
"eldType\022\023\n\017FIELD_TYPE_NONE\020\000\022\010\n\004META\020\001\022\007" +
"\n\003PII\020\002\022\024\n\020UNIVERSAL_FIELDS\020\003\022\023\n\017PROTOCO" +
"L_FIELDS\020\004\022\021\n\rCUSTOM_FIELDS\020\005*\276\001\n\016Standa" +
"rdFields\022\036\n\032STANDARD_FIELDS_DO_NOT_USE\020\000" +
"\022\025\n\021STANDARD_MESSAGES\020\001\022\022\n\016STANDARD_LEGA" +
"L\020\002\022\030\n\024STANDARD_EXPIRY_DATE\020\003\022\031\n\025STANDAR" +
"D_USEFUL_LINKS\020\004\022\024\n\020STANDARD_OPT_OUT\020\005\022\026" +
"\n\022STANDARD_LOCATIONS\020\006*\\\n\rTextAlignment\022" +
"\035\n\031TEXT_ALIGNMENT_DO_NOT_USE\020\000\022\010\n\004LEFT\020\001" +
"\022\n\n\006CENTER\020\002\022\t\n\005RIGHT\020\003\022\013\n\007NATURAL\020\004*\232\001\n" +
"\rDateTimeStyle\022\036\n\032DATE_TIME_STYLE_DO_NOT" +
"_USE\020\000\022\031\n\025DATE_TIME_STYLE_SHORT\020\001\022\032\n\026DAT" +
"E_TIME_STYLE_MEDIUM\020\002\022\030\n\024DATE_TIME_STYLE" +
"_LONG\020\003\022\030\n\024DATE_TIME_STYLE_FULL\020\004*\217\001\n\014Li" +
"nkDetector\022\034\n\030LINK_DETECTOR_DO_NOT_USE\020\000" +
"\022\031\n\025LINK_DETECTOR_ADDRESS\020\001\022\026\n\022LINK_DETE" +
"CTOR_DATE\020\002\022\025\n\021LINK_DETECTOR_URL\020\003\022\027\n\023LI" +
"NK_DETECTOR_PHONE\020\004*\223\001\n\013NumberStyle\022\033\n\027N" +
"UMBER_STYLE_DO_NOT_USE\020\000\022\030\n\024NUMBER_STYLE" +
"_DECIMAL\020\001\022\030\n\024NUMBER_STYLE_PERCENT\020\002\022\033\n\027" +
"NUMBER_STYLE_SCIENTIFIC\020\003\022\026\n\022NUMBER_STYL" +
"E_SPELL\020\004*\266\001\n\013TransitType\022\033\n\027TRANSIT_TYP" +
"E_DO_NOT_USE\020\000\022\024\n\020TRANSIT_TYPE_AIR\020\001\022\025\n\021" +
"TRANSIT_TYPE_BOAT\020\002\022\024\n\020TRANSIT_TYPE_BUS\020" +
"\003\022\030\n\024TRANSIT_TYPE_GENERIC\020\004\022\026\n\022TRANSIT_T" +
"YPE_TRAIN\020\005\022\025\n\021TRANSIT_TYPE_TRAM\020\006*\210\002\n\010D" +
"ataType\022\022\n\016DATA_TYPE_NONE\020\000\022\010\n\004TEXT\020\001\022\r\n" +
"\tTEXT_LONG\020\002\022\021\n\rDATE_YYYYMMDD\020\003\022\017\n\013DATE_" +
"YYYYMM\020\004\022\r\n\tDATE_MMDD\020\005\022\010\n\004TIME\020\006\022\r\n\tDAT" +
"E_TIME\020\007\022\007\n\003INT\020\010\022\n\n\006NUMBER\020\t\022\t\n\005EMAIL\020\n" +
"\022\007\n\003URL\020\013\022\007\n\003TEL\020\014\022\013\n\007ADDRESS\020\r\022\t\n\005IMAGE" +
"\020\017\022\014\n\010CURRENCY\020\020\022\013\n\007BOOLEAN\020\021\022\013\n\007OPTIONS" +
"\020\022\022\013\n\007DATE_MM\020\023\"\004\010\016\020\016*\376\001\n\tDataStyle\022\014\n\010N" +
"O_STYLE\020\000\022\016\n\nDATE_SHORT\020\001\022\017\n\013DATE_MEDIUM" +
"\020\002\022\r\n\tDATE_LONG\020\003\022\r\n\tDATE_FULL\020\004\022\016\n\nTIME" +
"_SHORT\020\005\022\017\n\013TIME_MEDIUM\020\006\022\r\n\tTIME_LONG\020\007" +
"\022\r\n\tTIME_FULL\020\010\022\023\n\017DATE_TIME_SHORT\020\t\022\024\n\020" +
"DATE_TIME_MEDIUM\020\n\022\022\n\016DATE_TIME_LONG\020\013\022\022" +
"\n\016DATE_TIME_FULL\020\014\022\022\n\016NUMBER_DECIMAL\020\r*\220" +
"\001\n\014FieldSection\022\034\n\030FIELD_SECTION_DO_NOT_" +
"USE\020\000\022\017\n\013BACK_FIELDS\020\001\022\022\n\016PRIMARY_FIELDS" +
"\020\002\022\024\n\020SECONDARY_FIELDS\020\003\022\024\n\020AUXILIARY_FI" +
"ELDS\020\004\022\021\n\rHEADER_FIELDS\020\005*\216\031\n\016GooglePayF" +
"ield\022\037\n\033GOOGLE_PAY_FIELD_DO_NOT_USE\020\000\022$\n" +
" GOOGLE_PAY_BOARDING_AIRLINE_NAME\020\001\022$\n G" +
"OOGLE_PAY_BOARDING_AIRLINE_CODE\020\002\022\036\n\032GOO" +
"GLE_PAY_BOARDING_ORIGIN\020\003\022#\n\037GOOGLE_PAY_" +
"BOARDING_DESTINATION\020\004\022\'\n#GOOGLE_PAY_BOA" +
"RDING_ORIGIN_TERMINAL\020\005\022#\n\037GOOGLE_PAY_BO" +
"ARDING_ORIGIN_GATE\020\006\022%\n!GOOGLE_PAY_BOARD" +
"ING_BOARDING_TIME\020\007\022&\n\"GOOGLE_PAY_BOARDI" +
"NG_PASSENGER_NAME\020\010\022\"\n\036GOOGLE_PAY_BOARDI" +
"NG_ZONE_GROUP\020\t\022\034\n\030GOOGLE_PAY_BOARDING_S" +
"EAT\020\n\022)\n%GOOGLE_PAY_BOARDING_BOARDING_PO" +
"SITION\020\013\022)\n%GOOGLE_PAY_BOARDING_BOARDING" +
"_SEQUENCE\020\014\022%\n!GOOGLE_PAY_BOARDING_BOARD" +
"ING_DOOR\020\r\022%\n!GOOGLE_PAY_BOARDING_FLIGHT" +
"_NUMBER\020\016\022+\n\'GOOGLE_PAY_BOARDING_CONFIRM" +
"ATION_NUMBER\020\017\022%\n!GOOGLE_PAY_BOARDING_TI" +
"CKET_NUMBER\020\020\022-\n)GOOGLE_PAY_BOARDING_FRE" +
"QUENT_FLYER_NUMBER\020\021\022#\n\037GOOGLE_PAY_BOARD" +
"ING_GATE_CLOSES\020\022\022&\n\"GOOGLE_PAY_BOARDING" +
"_DEPARTURE_TIME\020\023\022$\n GOOGLE_PAY_BOARDING" +
"_ARRIVAL_TIME\020\024\022(\n$GOOGLE_PAY_BOARDING_A" +
"RRIVAL_TERMINAL\020\025\022$\n GOOGLE_PAY_BOARDING" +
"_ARRIVAL_GATE\020\026\022\031\n\025GOOGLE_PAY_EVENT_NAME" +
"\020d\022\037\n\033GOOGLE_PAY_EVENT_VENUE_NAME\020e\022\"\n\036G" +
"OOGLE_PAY_EVENT_VENUE_ADDRESS\020f\022\031\n\025GOOGL" +
"E_PAY_EVENT_GATE\020g\022\034\n\030GOOGLE_PAY_EVENT_S" +
"ECTION\020h\022\030\n\024GOOGLE_PAY_EVENT_ROW\020i\022\031\n\025GO" +
"OGLE_PAY_EVENT_SEAT\020j\022\"\n\036GOOGLE_PAY_EVEN" +
"T_TICKET_HOLDER\020k\022\037\n\033GOOGLE_PAY_EVENT_DO" +
"ORS_OPEN\020l\022\032\n\026GOOGLE_PAY_EVENT_START\020m\022\030" +
"\n\024GOOGLE_PAY_EVENT_END\020n\022 \n\034GOOGLE_PAY_E" +
"VENT_TICKET_TYPE\020o\022\"\n\036GOOGLE_PAY_EVENT_T" +
"ICKET_NUMBER\020p\022(\n$GOOGLE_PAY_EVENT_CONFI" +
"RMATION_NUMBER\020q\022\037\n\033GOOGLE_PAY_EVENT_FAC" +
"E_VALUE\020r\022\037\n\033GOOGLE_PAY_EVENT_FINE_PRINT" +
"\020s\022\"\n\035GOOGLE_PAY_GIFT_MERCHANT_NAME\020\310\001\022\034" +
"\n\027GOOGLE_PAY_GIFT_BALANCE\020\311\001\022 \n\033GOOGLE_P" +
"AY_GIFT_CARD_NUMBER\020\312\001\022(\n#GOOGLE_PAY_GIF" +
"T_BALANCE_UPDATE_TIME\020\313\001\022\030\n\023GOOGLE_PAY_G" +
"IFT_PIN\020\314\001\022!\n\034GOOGLE_PAY_GIFT_EVENT_NUMB" +
"ER\020\315\001\022$\n\037GOOGLE_PAY_LOYALTY_PROGRAM_NAME" +
"\020\254\002\022\036\n\031GOOGLE_PAY_LOYALTY_POINTS\020\255\002\022(\n#G" +
"OOGLE_PAY_LOYALTY_SECONDARY_POINTS\020\256\002\022$\n" +
"\037GOOGLE_PAY_LOYALTY_ACCOUNT_NAME\020\257\002\022\"\n\035G" +
"OOGLE_PAY_LOYALTY_ACCOUNT_ID\020\260\002\022$\n\037GOOGL" +
"E_PAY_LOYALTY_REWARDS_TIER\020\261\002\022.\n)GOOGLE_" +
"PAY_LOYALTY_SECONDARY_REWARDS_TIER\020\262\002\022\033\n" +
"\026GOOGLE_PAY_OFFER_TITLE\020\220\003\022\036\n\031GOOGLE_PAY" +
"_OFFER_PROVIDER\020\221\003\022\035\n\030GOOGLE_PAY_OFFER_D" +
"ETAILS\020\222\003\022 \n\033GOOGLE_PAY_OFFER_FINE_PRINT" +
"\020\223\003\022!\n\034GOOGLE_PAY_OFFER_SHORT_TITLE\020\224\003\022#" +
"\n\036GOOGLE_PAY_TRANSIT_ISSUER_NAME\020\364\003\022!\n\034G" +
"OOGLE_PAY_TRANSIT_DEPARTURE\020\365\003\022&\n!GOOGLE" +
"_PAY_TRANSIT_DEPARTURE_TIME\020\366\003\022\"\n\035GOOGLE" +
"_PAY_TRANSIT_VALID_FROM\020\367\003\022#\n\036GOOGLE_PAY" +
"_TRANSIT_VALID_UNTIL\020\370\003\022\037\n\032GOOGLE_PAY_TR" +
"ANSIT_ARRIVAL\020\371\003\022\'\n\"GOOGLE_PAY_TRANSIT_P" +
"ASSENGER_NAMES\020\372\003\022 \n\033GOOGLE_PAY_TRANSIT_" +
"CARRIAGE\020\373\003\022\035\n\030GOOGLE_PAY_TRANSIT_COACH\020" +
"\374\003\022\034\n\027GOOGLE_PAY_TRANSIT_SEAT\020\375\003\022%\n GOOG" +
"LE_PAY_TRANSIT_TICKET_NUMBER\020\376\003\022%\n GOOGL" +
"E_PAY_TRANSIT_TICKET_STATUS\020\377\003\022!\n\034GOOGLE" +
"_PAY_TRANSIT_FARE_NAME\020\200\004\022 \n\033GOOGLE_PAY_" +
"TRANSIT_PLATFORM\020\201\004\022\034\n\027GOOGLE_PAY_TRANSI" +
"T_ZONE\020\202\004\022\"\n\035GOOGLE_PAY_TRANSIT_FARE_CLA" +
"SS\020\203\004\022+\n&GOOGLE_PAY_TRANSIT_CONCESSION_C" +
"ATEGORY\020\204\004\022*\n%GOOGLE_PAY_TRANSIT_ROUTE_R" +
"ESTRICTIONS\020\205\004\0221\n,GOOGLE_PAY_TRANSIT_ROU" +
"TE_RESTRICTION_DETAILS\020\206\004\022)\n$GOOGLE_PAY_" +
"TRANSIT_TIME_RESTRICTIONS\020\207\004\022*\n%GOOGLE_P" +
"AY_TRANSIT_OTHER_RESTRICTIONS\020\210\004\022&\n!GOOG" +
"LE_PAY_TRANSIT_RECEIPT_NUMBER\020\211\004\022%\n GOOG" +
"LE_PAY_TRANSIT_PURCHASE_DATE\020\212\004\022\"\n\035GOOGL" +
"E_PAY_TRANSIT_ACCOUNT_ID\020\213\004\022)\n$GOOGLE_PA" +
"Y_TRANSIT_CONFIRMATION_CODE\020\214\004\022\"\n\035GOOGLE" +
"_PAY_TRANSIT_FACE_VALUE\020\215\004\022&\n!GOOGLE_PAY" +
"_TRANSIT_PURCHASE_PRICE\020\216\004\022(\n#GOOGLE_PAY" +
"_TRANSIT_DISCOUNT_MESSAGE\020\217\004\022\033\n\026GOOGLE_P" +
"AY_TEXT_MODULE\020\350\007\022\033\n\026GOOGLE_PAY_ISSUER_N" +
"AME\020\351\007\022\"\n\035GOOGLE_PAY_STATIC_TEXT_MODULE\020" +
"\352\007BG\n\020com.passkit.grpcZ$stash.passkit.co" +
"m/io/model/sdk/go/io\252\002\014PassKit.Grpcb\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.passkit.grpc.CommonObjects.getDescriptor(),
com.passkit.grpc.Localization.getDescriptor(),
com.passkit.grpc.Protocols.getDescriptor(),
com.passkit.grpc.Proximity.getDescriptor(),
com.passkit.grpc.Links.getDescriptor(),
com.passkit.grpc.Tracking.getDescriptor(),
com.passkit.grpc.Image.getDescriptor(),
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
com.passkit.grpc.Expiry.getDescriptor(),
});
internal_static_io_SelectOption_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_SelectOption_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_SelectOption_descriptor,
new java.lang.String[] { "ListPriority", "TextLabel", "LocalizedTextLabel", "Value", });
internal_static_io_Barcode_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_Barcode_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Barcode_descriptor,
new java.lang.String[] { "Payload", "Format", "AltText", "LocalizedAltText", "MessageEncoding", });
internal_static_io_PassTemplate_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_io_PassTemplate_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_PassTemplate_descriptor,
new java.lang.String[] { "Id", "Name", "Protocol", "Revision", "DefaultLanguage", "OrganizationName", "LocalizedOrganizationName", "Description", "LocalizedDescription", "Data", "ImageIds", "Images", "Colors", "Barcode", "NfcEnabled", "Sharing", "AppleWalletSettings", "GooglePaySettings", "Locations", "Beacons", "Links", "Timezone", "ExpirySettings", "LandingPageSettings", "ImageAssets", });
internal_static_io_AppleWalletSettings_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_io_AppleWalletSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_AppleWalletSettings_descriptor,
new java.lang.String[] { "PassType", "UserInfo", "AppLaunchUrl", "AssociatedStoreIdentifiers", "MaxDistance", "AppStoreCountries", "TransitType", "GroupingIdentifier", });
internal_static_io_GooglePaySettings_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_io_GooglePaySettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_GooglePaySettings_descriptor,
new java.lang.String[] { "PassType", "AndroidApp", "IosApp", "WebApp", "ClassTemplateInfo", "BackgroundColor", "LanguageOverrides", });
internal_static_io_GooglePayApp_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_io_GooglePayApp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_GooglePayApp_descriptor,
new java.lang.String[] { "Url", "Title", "LocalizedTitle", "Description", "LocalizedDescription", });
internal_static_io_Data_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_io_Data_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Data_descriptor,
new java.lang.String[] { "DataFields", "DataCollectionPageSettings", });
internal_static_io_LandingPageSettings_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_io_LandingPageSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_LandingPageSettings_descriptor,
new java.lang.String[] { "LandingLocalizationOverride", "PreferWalletPasses", });
internal_static_io_DataCollectionPageSettings_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_io_DataCollectionPageSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_DataCollectionPageSettings_descriptor,
new java.lang.String[] { "Title", "LocalizedTitle", "Description", "LocalizedDescription", "SubmitButtonText", "LocalizedSubmitButtonText", "LoadingText", "LocalizedLoadingText", "ThankYouText", "LocalizedThankYouText", "PageBackgroundColor", "LocalizedPageBackgroundColor", "TrackingSettings", "SubmitButtonTextColor", "SubmitButtonBackgroundColor", "FooterText", "LocalizedFooterText", "CssOverrides", });
internal_static_io_PassTemplateResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_io_PassTemplateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_PassTemplateResponse_descriptor,
new java.lang.String[] { "Template", "Name", "OwnerUsername", "Protocol", "Revision", "CreatedAt", "UpdatedAt", });
internal_static_io_Colors_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_io_Colors_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Colors_descriptor,
new java.lang.String[] { "BackgroundColor", "LabelColor", "TextColor", "StripColor", });
internal_static_io_CopyObjectInput_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_io_CopyObjectInput_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_CopyObjectInput_descriptor,
new java.lang.String[] { "Id", "NewName", });
internal_static_io_NFC_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_io_NFC_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_NFC_descriptor,
new java.lang.String[] { "Enabled", "CertificateId", "Payload", });
internal_static_io_DataField_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_io_DataField_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_DataField_descriptor,
new java.lang.String[] { "UniqueName", "TemplateId", "FieldType", "IsRequired", "Label", "LocalizedLabel", "DataType", "DefaultValue", "LocalizedDefaultValue", "Validation", "UserCanSetValue", "CurrencyCode", "AppleWalletFieldRenderOptions", "DataCollectionFieldRenderOptions", "Usage", "GooglePayFieldRenderOptions", "DefaultTelCountryCode", });
internal_static_io_AppleWalletFieldRenderOptions_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_io_AppleWalletFieldRenderOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_AppleWalletFieldRenderOptions_descriptor,
new java.lang.String[] { "TextAlignment", "PositionSettings", "ChangeMessage", "LocalizedChangeMessage", "DateStyle", "TimeStyle", "NumberStyle", "SuppressLinkDetection", "IgnoreTimezone", "IsRelativeDate", });
internal_static_io_GooglePayFieldRenderOptions_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_io_GooglePayFieldRenderOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_GooglePayFieldRenderOptions_descriptor,
new java.lang.String[] { "GooglePayPosition", "TextModulePriority", });
internal_static_io_PositionSettings_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_io_PositionSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_PositionSettings_descriptor,
new java.lang.String[] { "Section", "Priority", });
internal_static_io_DataCollectionFieldRenderOptions_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_io_DataCollectionFieldRenderOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_DataCollectionFieldRenderOptions_descriptor,
new java.lang.String[] { "HelpText", "LocalizedHelpText", "DisplayOrder", "Placeholder", "SelectOptions", "LocalizedPlaceholder", "Autocomplete", "AddressRenderOptions", "LocalizedYearPlaceholder", "LocalizedMonthPlaceholder", "LocalizedDayPlaceholder", });
internal_static_io_AddressRenderOptions_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_io_AddressRenderOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_AddressRenderOptions_descriptor,
new java.lang.String[] { "Address1Label", "Address2Label", "CityLabel", "CountryLabel", "ZipLabel", "Address1Placeholder", "Address2Placeholder", "CityPlaceholder", "CountryPlaceholder", "ZipPlaceholder", "LocalizedAddress1Label", "LocalizedAddress2Label", "LocalizedCityLabel", "LocalizedCountryLabel", "LocalizedZipLabel", "LocalizedAddress1Placeholder", "LocalizedAddress2Placeholder", "LocalizedCityPlaceholder", "LocalizedCountryPlaceholder", "LocalizedZipPlaceholder", });
internal_static_io_Sharing_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_io_Sharing_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Sharing_descriptor,
new java.lang.String[] { "ProhibitSharing", "Url", "Description", "LocalizedDescription", });
internal_static_io_DefaultTemplateRequest_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_io_DefaultTemplateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_DefaultTemplateRequest_descriptor,
new java.lang.String[] { "Protocol", "Revision", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Field);
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.passkit.grpc.CommonObjects.getDescriptor();
com.passkit.grpc.Localization.getDescriptor();
com.passkit.grpc.Protocols.getDescriptor();
com.passkit.grpc.Proximity.getDescriptor();
com.passkit.grpc.Links.getDescriptor();
com.passkit.grpc.Tracking.getDescriptor();
com.passkit.grpc.Image.getDescriptor();
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.passkit.grpc.Expiry.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}