com.passkit.grpc.Proximity 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/proximity.proto
package com.passkit.grpc;
public final class Proximity {
private Proximity() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface BeaconOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Beacon)
com.google.protobuf.MessageOrBuilder {
/**
*
* System generated unique identifier for your beacon
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* System generated unique identifier for your beacon
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @return The uuid.
*/
java.lang.String getUuid();
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString
getUuidBytes();
/**
*
* A friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
*
* A friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Major indicator.
*
*
* uint32 major = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The major.
*/
int getMajor();
/**
*
* Minor indicator.
*
*
* uint32 minor = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The minor.
*/
int getMinor();
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The lockScreenMessage.
*/
java.lang.String getLockScreenMessage();
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The bytes for lockScreenMessage.
*/
com.google.protobuf.ByteString
getLockScreenMessageBytes();
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return Whether the localizedLockScreenMessage field is set.
*/
boolean hasLocalizedLockScreenMessage();
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return The localizedLockScreenMessage.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedLockScreenMessage();
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLockScreenMessageOrBuilder();
/**
*
* Beacons will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Beacons with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of beacons exceeds 10, there is no guarantee which beacon(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return The position.
*/
int getPosition();
}
/**
*
* Beacons allow you to display subtle messages to your users when they are in close proximity.
*
*
* Protobuf type {@code io.Beacon}
*/
public static final class Beacon extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Beacon)
BeaconOrBuilder {
private static final long serialVersionUID = 0L;
// Use Beacon.newBuilder() to construct.
private Beacon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Beacon() {
id_ = "";
uuid_ = "";
name_ = "";
lockScreenMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Beacon();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Beacon(
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();
uuid_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 32: {
major_ = input.readUInt32();
break;
}
case 40: {
minor_ = input.readUInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
lockScreenMessage_ = s;
break;
}
case 58: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedLockScreenMessage_ != null) {
subBuilder = localizedLockScreenMessage_.toBuilder();
}
localizedLockScreenMessage_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedLockScreenMessage_);
localizedLockScreenMessage_ = subBuilder.buildPartial();
}
break;
}
case 64: {
position_ = 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.Proximity.internal_static_io_Beacon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Proximity.internal_static_io_Beacon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Proximity.Beacon.class, com.passkit.grpc.Proximity.Beacon.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* System generated unique identifier for your beacon
*
*
* 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;
}
}
/**
*
* System generated unique identifier for your beacon
*
*
* 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 UUID_FIELD_NUMBER = 2;
private volatile java.lang.Object uuid_;
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @return The uuid.
*/
@java.lang.Override
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
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();
uuid_ = s;
return s;
}
}
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @return The bytes for uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* A friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @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 friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @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 MAJOR_FIELD_NUMBER = 4;
private int major_;
/**
*
* Major indicator.
*
*
* uint32 major = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The major.
*/
@java.lang.Override
public int getMajor() {
return major_;
}
public static final int MINOR_FIELD_NUMBER = 5;
private int minor_;
/**
*
* Minor indicator.
*
*
* uint32 minor = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The minor.
*/
@java.lang.Override
public int getMinor() {
return minor_;
}
public static final int LOCKSCREENMESSAGE_FIELD_NUMBER = 6;
private volatile java.lang.Object lockScreenMessage_;
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The lockScreenMessage.
*/
@java.lang.Override
public java.lang.String getLockScreenMessage() {
java.lang.Object ref = lockScreenMessage_;
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();
lockScreenMessage_ = s;
return s;
}
}
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The bytes for lockScreenMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLockScreenMessageBytes() {
java.lang.Object ref = lockScreenMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lockScreenMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDLOCKSCREENMESSAGE_FIELD_NUMBER = 7;
private com.passkit.grpc.Localization.LocalizedString localizedLockScreenMessage_;
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return Whether the localizedLockScreenMessage field is set.
*/
@java.lang.Override
public boolean hasLocalizedLockScreenMessage() {
return localizedLockScreenMessage_ != null;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return The localizedLockScreenMessage.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedLockScreenMessage() {
return localizedLockScreenMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLockScreenMessage_;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLockScreenMessageOrBuilder() {
return getLocalizedLockScreenMessage();
}
public static final int POSITION_FIELD_NUMBER = 8;
private int position_;
/**
*
* Beacons will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Beacons with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of beacons exceeds 10, there is no guarantee which beacon(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return The position.
*/
@java.lang.Override
public int getPosition() {
return position_;
}
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 (!getUuidBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uuid_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (major_ != 0) {
output.writeUInt32(4, major_);
}
if (minor_ != 0) {
output.writeUInt32(5, minor_);
}
if (!getLockScreenMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lockScreenMessage_);
}
if (localizedLockScreenMessage_ != null) {
output.writeMessage(7, getLocalizedLockScreenMessage());
}
if (position_ != 0) {
output.writeUInt32(8, position_);
}
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 (!getUuidBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (major_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, major_);
}
if (minor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, minor_);
}
if (!getLockScreenMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lockScreenMessage_);
}
if (localizedLockScreenMessage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLocalizedLockScreenMessage());
}
if (position_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, position_);
}
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.Proximity.Beacon)) {
return super.equals(obj);
}
com.passkit.grpc.Proximity.Beacon other = (com.passkit.grpc.Proximity.Beacon) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getUuid()
.equals(other.getUuid())) return false;
if (!getName()
.equals(other.getName())) return false;
if (getMajor()
!= other.getMajor()) return false;
if (getMinor()
!= other.getMinor()) return false;
if (!getLockScreenMessage()
.equals(other.getLockScreenMessage())) return false;
if (hasLocalizedLockScreenMessage() != other.hasLocalizedLockScreenMessage()) return false;
if (hasLocalizedLockScreenMessage()) {
if (!getLocalizedLockScreenMessage()
.equals(other.getLocalizedLockScreenMessage())) return false;
}
if (getPosition()
!= other.getPosition()) 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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + MAJOR_FIELD_NUMBER;
hash = (53 * hash) + getMajor();
hash = (37 * hash) + MINOR_FIELD_NUMBER;
hash = (53 * hash) + getMinor();
hash = (37 * hash) + LOCKSCREENMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLockScreenMessage().hashCode();
if (hasLocalizedLockScreenMessage()) {
hash = (37 * hash) + LOCALIZEDLOCKSCREENMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedLockScreenMessage().hashCode();
}
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPosition();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Proximity.Beacon parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.Beacon 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.Proximity.Beacon parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.Beacon 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.Proximity.Beacon parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.Beacon parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Proximity.Beacon parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.Beacon 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.Proximity.Beacon parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.Beacon 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.Proximity.Beacon parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.Beacon 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.Proximity.Beacon 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;
}
/**
*
* Beacons allow you to display subtle messages to your users when they are in close proximity.
*
*
* Protobuf type {@code io.Beacon}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Beacon)
com.passkit.grpc.Proximity.BeaconOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Proximity.internal_static_io_Beacon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Proximity.internal_static_io_Beacon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Proximity.Beacon.class, com.passkit.grpc.Proximity.Beacon.Builder.class);
}
// Construct using com.passkit.grpc.Proximity.Beacon.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_ = "";
uuid_ = "";
name_ = "";
major_ = 0;
minor_ = 0;
lockScreenMessage_ = "";
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessage_ = null;
} else {
localizedLockScreenMessage_ = null;
localizedLockScreenMessageBuilder_ = null;
}
position_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Proximity.internal_static_io_Beacon_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Proximity.Beacon getDefaultInstanceForType() {
return com.passkit.grpc.Proximity.Beacon.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Proximity.Beacon build() {
com.passkit.grpc.Proximity.Beacon result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Proximity.Beacon buildPartial() {
com.passkit.grpc.Proximity.Beacon result = new com.passkit.grpc.Proximity.Beacon(this);
result.id_ = id_;
result.uuid_ = uuid_;
result.name_ = name_;
result.major_ = major_;
result.minor_ = minor_;
result.lockScreenMessage_ = lockScreenMessage_;
if (localizedLockScreenMessageBuilder_ == null) {
result.localizedLockScreenMessage_ = localizedLockScreenMessage_;
} else {
result.localizedLockScreenMessage_ = localizedLockScreenMessageBuilder_.build();
}
result.position_ = position_;
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.Proximity.Beacon) {
return mergeFrom((com.passkit.grpc.Proximity.Beacon)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Proximity.Beacon other) {
if (other == com.passkit.grpc.Proximity.Beacon.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getMajor() != 0) {
setMajor(other.getMajor());
}
if (other.getMinor() != 0) {
setMinor(other.getMinor());
}
if (!other.getLockScreenMessage().isEmpty()) {
lockScreenMessage_ = other.lockScreenMessage_;
onChanged();
}
if (other.hasLocalizedLockScreenMessage()) {
mergeLocalizedLockScreenMessage(other.getLocalizedLockScreenMessage());
}
if (other.getPosition() != 0) {
setPosition(other.getPosition());
}
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.Proximity.Beacon parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Proximity.Beacon) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* System generated unique identifier for your beacon
*
*
* 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;
}
}
/**
*
* System generated unique identifier for your beacon
*
*
* 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;
}
}
/**
*
* System generated unique identifier for your beacon
*
*
* 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;
}
/**
*
* System generated unique identifier for your beacon
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* System generated unique identifier for your beacon
*
*
* 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 uuid_ = "";
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @return The uuid.
*/
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @return The bytes for uuid.
*/
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
/**
*
* A valid UUID that is being broadcast from your beacon.
*
*
* string uuid = 2;
* @param value The bytes for uuid to set.
* @return This builder for chaining.
*/
public Builder setUuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uuid_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* A friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @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 friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @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 friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @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 friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* A friendly name used to display the beacon in the admin portal
*
*
* string name = 3;
* @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 major_ ;
/**
*
* Major indicator.
*
*
* uint32 major = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The major.
*/
@java.lang.Override
public int getMajor() {
return major_;
}
/**
*
* Major indicator.
*
*
* uint32 major = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The major to set.
* @return This builder for chaining.
*/
public Builder setMajor(int value) {
major_ = value;
onChanged();
return this;
}
/**
*
* Major indicator.
*
*
* uint32 major = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearMajor() {
major_ = 0;
onChanged();
return this;
}
private int minor_ ;
/**
*
* Minor indicator.
*
*
* uint32 minor = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return The minor.
*/
@java.lang.Override
public int getMinor() {
return minor_;
}
/**
*
* Minor indicator.
*
*
* uint32 minor = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @param value The minor to set.
* @return This builder for chaining.
*/
public Builder setMinor(int value) {
minor_ = value;
onChanged();
return this;
}
/**
*
* Minor indicator.
*
*
* uint32 minor = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }
* @return This builder for chaining.
*/
public Builder clearMinor() {
minor_ = 0;
onChanged();
return this;
}
private java.lang.Object lockScreenMessage_ = "";
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The lockScreenMessage.
*/
public java.lang.String getLockScreenMessage() {
java.lang.Object ref = lockScreenMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lockScreenMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The bytes for lockScreenMessage.
*/
public com.google.protobuf.ByteString
getLockScreenMessageBytes() {
java.lang.Object ref = lockScreenMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lockScreenMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @param value The lockScreenMessage to set.
* @return This builder for chaining.
*/
public Builder setLockScreenMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
lockScreenMessage_ = value;
onChanged();
return this;
}
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @return This builder for chaining.
*/
public Builder clearLockScreenMessage() {
lockScreenMessage_ = getDefaultInstance().getLockScreenMessage();
onChanged();
return this;
}
/**
*
* Message to be displayed on lock screen when user is in proximity of the beacon (iOS only).
*
*
* string lockScreenMessage = 6;
* @param value The bytes for lockScreenMessage to set.
* @return This builder for chaining.
*/
public Builder setLockScreenMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lockScreenMessage_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedLockScreenMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedLockScreenMessageBuilder_;
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return Whether the localizedLockScreenMessage field is set.
*/
public boolean hasLocalizedLockScreenMessage() {
return localizedLockScreenMessageBuilder_ != null || localizedLockScreenMessage_ != null;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return The localizedLockScreenMessage.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedLockScreenMessage() {
if (localizedLockScreenMessageBuilder_ == null) {
return localizedLockScreenMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLockScreenMessage_;
} else {
return localizedLockScreenMessageBuilder_.getMessage();
}
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder setLocalizedLockScreenMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLockScreenMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedLockScreenMessage_ = value;
onChanged();
} else {
localizedLockScreenMessageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder setLocalizedLockScreenMessage(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessage_ = builderForValue.build();
onChanged();
} else {
localizedLockScreenMessageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder mergeLocalizedLockScreenMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLockScreenMessageBuilder_ == null) {
if (localizedLockScreenMessage_ != null) {
localizedLockScreenMessage_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedLockScreenMessage_).mergeFrom(value).buildPartial();
} else {
localizedLockScreenMessage_ = value;
}
onChanged();
} else {
localizedLockScreenMessageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder clearLocalizedLockScreenMessage() {
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessage_ = null;
onChanged();
} else {
localizedLockScreenMessage_ = null;
localizedLockScreenMessageBuilder_ = null;
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedLockScreenMessageBuilder() {
onChanged();
return getLocalizedLockScreenMessageFieldBuilder().getBuilder();
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLockScreenMessageOrBuilder() {
if (localizedLockScreenMessageBuilder_ != null) {
return localizedLockScreenMessageBuilder_.getMessageOrBuilder();
} else {
return localizedLockScreenMessage_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLockScreenMessage_;
}
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedLockScreenMessageFieldBuilder() {
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedLockScreenMessage(),
getParentForChildren(),
isClean());
localizedLockScreenMessage_ = null;
}
return localizedLockScreenMessageBuilder_;
}
private int position_ ;
/**
*
* Beacons will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Beacons with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of beacons exceeds 10, there is no guarantee which beacon(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return The position.
*/
@java.lang.Override
public int getPosition() {
return position_;
}
/**
*
* Beacons will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Beacons with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of beacons exceeds 10, there is no guarantee which beacon(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @param value The position to set.
* @return This builder for chaining.
*/
public Builder setPosition(int value) {
position_ = value;
onChanged();
return this;
}
/**
*
* Beacons will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Beacons with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of beacons exceeds 10, there is no guarantee which beacon(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return This builder for chaining.
*/
public Builder clearPosition() {
position_ = 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.Beacon)
}
// @@protoc_insertion_point(class_scope:io.Beacon)
private static final com.passkit.grpc.Proximity.Beacon DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Proximity.Beacon();
}
public static com.passkit.grpc.Proximity.Beacon getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Beacon parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Beacon(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.Proximity.Beacon getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GPSLocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.GPSLocation)
com.google.protobuf.MessageOrBuilder {
/**
*
* System generated unique identifier for your GPS Location
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* System generated unique identifier for your GPS Location
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* a friendly name for the location used to display the location in the admin portal
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* a friendly name for the location used to display the location in the admin portal
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Latitude.
*
*
* double lat = 3;
* @return The lat.
*/
double getLat();
/**
*
* Longitude.
*
*
* double lon = 4;
* @return The lon.
*/
double getLon();
/**
*
* Altitude in metres.
*
*
* int32 alt = 5;
* @return The alt.
*/
int getAlt();
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The lockScreenMessage.
*/
java.lang.String getLockScreenMessage();
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The bytes for lockScreenMessage.
*/
com.google.protobuf.ByteString
getLockScreenMessageBytes();
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return Whether the localizedLockScreenMessage field is set.
*/
boolean hasLocalizedLockScreenMessage();
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return The localizedLockScreenMessage.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedLockScreenMessage();
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLockScreenMessageOrBuilder();
/**
*
* Locations will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Locations with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of locations exceeds 10, there is no guarantee which location(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return The position.
*/
int getPosition();
}
/**
*
* Locations provide a broader range using GPS to trigger a lockscreen message.
*
*
* Protobuf type {@code io.GPSLocation}
*/
public static final class GPSLocation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.GPSLocation)
GPSLocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use GPSLocation.newBuilder() to construct.
private GPSLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GPSLocation() {
id_ = "";
name_ = "";
lockScreenMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GPSLocation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GPSLocation(
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();
name_ = s;
break;
}
case 25: {
lat_ = input.readDouble();
break;
}
case 33: {
lon_ = input.readDouble();
break;
}
case 40: {
alt_ = input.readInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
lockScreenMessage_ = s;
break;
}
case 58: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedLockScreenMessage_ != null) {
subBuilder = localizedLockScreenMessage_.toBuilder();
}
localizedLockScreenMessage_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedLockScreenMessage_);
localizedLockScreenMessage_ = subBuilder.buildPartial();
}
break;
}
case 64: {
position_ = 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.Proximity.internal_static_io_GPSLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Proximity.internal_static_io_GPSLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Proximity.GPSLocation.class, com.passkit.grpc.Proximity.GPSLocation.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* System generated unique identifier for your GPS Location
*
*
* 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;
}
}
/**
*
* System generated unique identifier for your GPS Location
*
*
* 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 friendly name for the location used to display the location in the admin portal
*
*
* 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 friendly name for the location used to display the location in the admin portal
*
*
* 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 LAT_FIELD_NUMBER = 3;
private double lat_;
/**
*
* Latitude.
*
*
* double lat = 3;
* @return The lat.
*/
@java.lang.Override
public double getLat() {
return lat_;
}
public static final int LON_FIELD_NUMBER = 4;
private double lon_;
/**
*
* Longitude.
*
*
* double lon = 4;
* @return The lon.
*/
@java.lang.Override
public double getLon() {
return lon_;
}
public static final int ALT_FIELD_NUMBER = 5;
private int alt_;
/**
*
* Altitude in metres.
*
*
* int32 alt = 5;
* @return The alt.
*/
@java.lang.Override
public int getAlt() {
return alt_;
}
public static final int LOCKSCREENMESSAGE_FIELD_NUMBER = 6;
private volatile java.lang.Object lockScreenMessage_;
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The lockScreenMessage.
*/
@java.lang.Override
public java.lang.String getLockScreenMessage() {
java.lang.Object ref = lockScreenMessage_;
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();
lockScreenMessage_ = s;
return s;
}
}
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The bytes for lockScreenMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLockScreenMessageBytes() {
java.lang.Object ref = lockScreenMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lockScreenMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDLOCKSCREENMESSAGE_FIELD_NUMBER = 7;
private com.passkit.grpc.Localization.LocalizedString localizedLockScreenMessage_;
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return Whether the localizedLockScreenMessage field is set.
*/
@java.lang.Override
public boolean hasLocalizedLockScreenMessage() {
return localizedLockScreenMessage_ != null;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return The localizedLockScreenMessage.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedLockScreenMessage() {
return localizedLockScreenMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLockScreenMessage_;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLockScreenMessageOrBuilder() {
return getLocalizedLockScreenMessage();
}
public static final int POSITION_FIELD_NUMBER = 8;
private int position_;
/**
*
* Locations will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Locations with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of locations exceeds 10, there is no guarantee which location(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return The position.
*/
@java.lang.Override
public int getPosition() {
return position_;
}
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 (lat_ != 0D) {
output.writeDouble(3, lat_);
}
if (lon_ != 0D) {
output.writeDouble(4, lon_);
}
if (alt_ != 0) {
output.writeInt32(5, alt_);
}
if (!getLockScreenMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lockScreenMessage_);
}
if (localizedLockScreenMessage_ != null) {
output.writeMessage(7, getLocalizedLockScreenMessage());
}
if (position_ != 0) {
output.writeUInt32(8, position_);
}
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 (lat_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lat_);
}
if (lon_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, lon_);
}
if (alt_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, alt_);
}
if (!getLockScreenMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lockScreenMessage_);
}
if (localizedLockScreenMessage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLocalizedLockScreenMessage());
}
if (position_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, position_);
}
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.Proximity.GPSLocation)) {
return super.equals(obj);
}
com.passkit.grpc.Proximity.GPSLocation other = (com.passkit.grpc.Proximity.GPSLocation) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (java.lang.Double.doubleToLongBits(getLat())
!= java.lang.Double.doubleToLongBits(
other.getLat())) return false;
if (java.lang.Double.doubleToLongBits(getLon())
!= java.lang.Double.doubleToLongBits(
other.getLon())) return false;
if (getAlt()
!= other.getAlt()) return false;
if (!getLockScreenMessage()
.equals(other.getLockScreenMessage())) return false;
if (hasLocalizedLockScreenMessage() != other.hasLocalizedLockScreenMessage()) return false;
if (hasLocalizedLockScreenMessage()) {
if (!getLocalizedLockScreenMessage()
.equals(other.getLocalizedLockScreenMessage())) return false;
}
if (getPosition()
!= other.getPosition()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + LAT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLat()));
hash = (37 * hash) + LON_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLon()));
hash = (37 * hash) + ALT_FIELD_NUMBER;
hash = (53 * hash) + getAlt();
hash = (37 * hash) + LOCKSCREENMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLockScreenMessage().hashCode();
if (hasLocalizedLockScreenMessage()) {
hash = (37 * hash) + LOCALIZEDLOCKSCREENMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedLockScreenMessage().hashCode();
}
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPosition();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Proximity.GPSLocation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.GPSLocation 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.Proximity.GPSLocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.GPSLocation 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.Proximity.GPSLocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.GPSLocation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Proximity.GPSLocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.GPSLocation 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.Proximity.GPSLocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.GPSLocation 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.Proximity.GPSLocation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.GPSLocation 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.Proximity.GPSLocation 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;
}
/**
*
* Locations provide a broader range using GPS to trigger a lockscreen message.
*
*
* Protobuf type {@code io.GPSLocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.GPSLocation)
com.passkit.grpc.Proximity.GPSLocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Proximity.internal_static_io_GPSLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Proximity.internal_static_io_GPSLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Proximity.GPSLocation.class, com.passkit.grpc.Proximity.GPSLocation.Builder.class);
}
// Construct using com.passkit.grpc.Proximity.GPSLocation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
name_ = "";
lat_ = 0D;
lon_ = 0D;
alt_ = 0;
lockScreenMessage_ = "";
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessage_ = null;
} else {
localizedLockScreenMessage_ = null;
localizedLockScreenMessageBuilder_ = null;
}
position_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Proximity.internal_static_io_GPSLocation_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Proximity.GPSLocation getDefaultInstanceForType() {
return com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Proximity.GPSLocation build() {
com.passkit.grpc.Proximity.GPSLocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Proximity.GPSLocation buildPartial() {
com.passkit.grpc.Proximity.GPSLocation result = new com.passkit.grpc.Proximity.GPSLocation(this);
result.id_ = id_;
result.name_ = name_;
result.lat_ = lat_;
result.lon_ = lon_;
result.alt_ = alt_;
result.lockScreenMessage_ = lockScreenMessage_;
if (localizedLockScreenMessageBuilder_ == null) {
result.localizedLockScreenMessage_ = localizedLockScreenMessage_;
} else {
result.localizedLockScreenMessage_ = localizedLockScreenMessageBuilder_.build();
}
result.position_ = position_;
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.Proximity.GPSLocation) {
return mergeFrom((com.passkit.grpc.Proximity.GPSLocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Proximity.GPSLocation other) {
if (other == com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getLat() != 0D) {
setLat(other.getLat());
}
if (other.getLon() != 0D) {
setLon(other.getLon());
}
if (other.getAlt() != 0) {
setAlt(other.getAlt());
}
if (!other.getLockScreenMessage().isEmpty()) {
lockScreenMessage_ = other.lockScreenMessage_;
onChanged();
}
if (other.hasLocalizedLockScreenMessage()) {
mergeLocalizedLockScreenMessage(other.getLocalizedLockScreenMessage());
}
if (other.getPosition() != 0) {
setPosition(other.getPosition());
}
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.Proximity.GPSLocation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Proximity.GPSLocation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* System generated unique identifier for your GPS Location
*
*
* 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;
}
}
/**
*
* System generated unique identifier for your GPS Location
*
*
* 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;
}
}
/**
*
* System generated unique identifier for your GPS Location
*
*
* 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;
}
/**
*
* System generated unique identifier for your GPS Location
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* System generated unique identifier for your GPS Location
*
*
* 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 friendly name for the location used to display the location in the admin portal
*
*
* 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 friendly name for the location used to display the location in the admin portal
*
*
* 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 friendly name for the location used to display the location in the admin portal
*
*
* 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 friendly name for the location used to display the location in the admin portal
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* a friendly name for the location used to display the location in the admin portal
*
*
* 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 double lat_ ;
/**
*
* Latitude.
*
*
* double lat = 3;
* @return The lat.
*/
@java.lang.Override
public double getLat() {
return lat_;
}
/**
*
* Latitude.
*
*
* double lat = 3;
* @param value The lat to set.
* @return This builder for chaining.
*/
public Builder setLat(double value) {
lat_ = value;
onChanged();
return this;
}
/**
*
* Latitude.
*
*
* double lat = 3;
* @return This builder for chaining.
*/
public Builder clearLat() {
lat_ = 0D;
onChanged();
return this;
}
private double lon_ ;
/**
*
* Longitude.
*
*
* double lon = 4;
* @return The lon.
*/
@java.lang.Override
public double getLon() {
return lon_;
}
/**
*
* Longitude.
*
*
* double lon = 4;
* @param value The lon to set.
* @return This builder for chaining.
*/
public Builder setLon(double value) {
lon_ = value;
onChanged();
return this;
}
/**
*
* Longitude.
*
*
* double lon = 4;
* @return This builder for chaining.
*/
public Builder clearLon() {
lon_ = 0D;
onChanged();
return this;
}
private int alt_ ;
/**
*
* Altitude in metres.
*
*
* int32 alt = 5;
* @return The alt.
*/
@java.lang.Override
public int getAlt() {
return alt_;
}
/**
*
* Altitude in metres.
*
*
* int32 alt = 5;
* @param value The alt to set.
* @return This builder for chaining.
*/
public Builder setAlt(int value) {
alt_ = value;
onChanged();
return this;
}
/**
*
* Altitude in metres.
*
*
* int32 alt = 5;
* @return This builder for chaining.
*/
public Builder clearAlt() {
alt_ = 0;
onChanged();
return this;
}
private java.lang.Object lockScreenMessage_ = "";
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The lockScreenMessage.
*/
public java.lang.String getLockScreenMessage() {
java.lang.Object ref = lockScreenMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lockScreenMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @return The bytes for lockScreenMessage.
*/
public com.google.protobuf.ByteString
getLockScreenMessageBytes() {
java.lang.Object ref = lockScreenMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lockScreenMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @param value The lockScreenMessage to set.
* @return This builder for chaining.
*/
public Builder setLockScreenMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
lockScreenMessage_ = value;
onChanged();
return this;
}
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @return This builder for chaining.
*/
public Builder clearLockScreenMessage() {
lockScreenMessage_ = getDefaultInstance().getLockScreenMessage();
onChanged();
return this;
}
/**
*
* Message to be displayed on lock screen when user is in the location (iOS only).
*
*
* string lockScreenMessage = 6;
* @param value The bytes for lockScreenMessage to set.
* @return This builder for chaining.
*/
public Builder setLockScreenMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lockScreenMessage_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedLockScreenMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedLockScreenMessageBuilder_;
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return Whether the localizedLockScreenMessage field is set.
*/
public boolean hasLocalizedLockScreenMessage() {
return localizedLockScreenMessageBuilder_ != null || localizedLockScreenMessage_ != null;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
* @return The localizedLockScreenMessage.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedLockScreenMessage() {
if (localizedLockScreenMessageBuilder_ == null) {
return localizedLockScreenMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLockScreenMessage_;
} else {
return localizedLockScreenMessageBuilder_.getMessage();
}
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder setLocalizedLockScreenMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLockScreenMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedLockScreenMessage_ = value;
onChanged();
} else {
localizedLockScreenMessageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder setLocalizedLockScreenMessage(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessage_ = builderForValue.build();
onChanged();
} else {
localizedLockScreenMessageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder mergeLocalizedLockScreenMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLockScreenMessageBuilder_ == null) {
if (localizedLockScreenMessage_ != null) {
localizedLockScreenMessage_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedLockScreenMessage_).mergeFrom(value).buildPartial();
} else {
localizedLockScreenMessage_ = value;
}
onChanged();
} else {
localizedLockScreenMessageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public Builder clearLocalizedLockScreenMessage() {
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessage_ = null;
onChanged();
} else {
localizedLockScreenMessage_ = null;
localizedLockScreenMessageBuilder_ = null;
}
return this;
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedLockScreenMessageBuilder() {
onChanged();
return getLocalizedLockScreenMessageFieldBuilder().getBuilder();
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLockScreenMessageOrBuilder() {
if (localizedLockScreenMessageBuilder_ != null) {
return localizedLockScreenMessageBuilder_.getMessageOrBuilder();
} else {
return localizedLockScreenMessage_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLockScreenMessage_;
}
}
/**
*
* Localized lock screen message.
*
*
* .io.LocalizedString localizedLockScreenMessage = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedLockScreenMessageFieldBuilder() {
if (localizedLockScreenMessageBuilder_ == null) {
localizedLockScreenMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedLockScreenMessage(),
getParentForChildren(),
isClean());
localizedLockScreenMessage_ = null;
}
return localizedLockScreenMessageBuilder_;
}
private int position_ ;
/**
*
* Locations will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Locations with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of locations exceeds 10, there is no guarantee which location(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return The position.
*/
@java.lang.Override
public int getPosition() {
return position_;
}
/**
*
* Locations will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Locations with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of locations exceeds 10, there is no guarantee which location(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @param value The position to set.
* @return This builder for chaining.
*/
public Builder setPosition(int value) {
position_ = value;
onChanged();
return this;
}
/**
*
* Locations will be added in order of their position, from lowest to highest. Position can be any value, E.g. 3 Locations with positions 30, 10, 20 would be added 10 first, 20 second and 30 third. If no position is provided and the number of locations exceeds 10, there is no guarantee which location(s) would be excluded from the pass.
*
*
* uint32 position = 8;
* @return This builder for chaining.
*/
public Builder clearPosition() {
position_ = 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.GPSLocation)
}
// @@protoc_insertion_point(class_scope:io.GPSLocation)
private static final com.passkit.grpc.Proximity.GPSLocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Proximity.GPSLocation();
}
public static com.passkit.grpc.Proximity.GPSLocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GPSLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GPSLocation(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.Proximity.GPSLocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RelevantDateOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.RelevantDate)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unix timestamp. ISO8601 datetime.
*
*
* uint32 timestamp = 1;
* @return The timestamp.
*/
int getTimestamp();
}
/**
*
* Relevant Date in ISO8601 datetime.
*
*
* Protobuf type {@code io.RelevantDate}
*/
public static final class RelevantDate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.RelevantDate)
RelevantDateOrBuilder {
private static final long serialVersionUID = 0L;
// Use RelevantDate.newBuilder() to construct.
private RelevantDate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RelevantDate() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RelevantDate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RelevantDate(
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: {
timestamp_ = 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.Proximity.internal_static_io_RelevantDate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Proximity.internal_static_io_RelevantDate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Proximity.RelevantDate.class, com.passkit.grpc.Proximity.RelevantDate.Builder.class);
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private int timestamp_;
/**
*
* Unix timestamp. ISO8601 datetime.
*
*
* uint32 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public int getTimestamp() {
return timestamp_;
}
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 (timestamp_ != 0) {
output.writeUInt32(1, timestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timestamp_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, timestamp_);
}
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.Proximity.RelevantDate)) {
return super.equals(obj);
}
com.passkit.grpc.Proximity.RelevantDate other = (com.passkit.grpc.Proximity.RelevantDate) obj;
if (getTimestamp()
!= other.getTimestamp()) 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) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Proximity.RelevantDate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.RelevantDate 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.Proximity.RelevantDate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.RelevantDate 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.Proximity.RelevantDate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Proximity.RelevantDate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Proximity.RelevantDate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.RelevantDate 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.Proximity.RelevantDate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.RelevantDate 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.Proximity.RelevantDate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Proximity.RelevantDate 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.Proximity.RelevantDate 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;
}
/**
*
* Relevant Date in ISO8601 datetime.
*
*
* Protobuf type {@code io.RelevantDate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.RelevantDate)
com.passkit.grpc.Proximity.RelevantDateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Proximity.internal_static_io_RelevantDate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Proximity.internal_static_io_RelevantDate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Proximity.RelevantDate.class, com.passkit.grpc.Proximity.RelevantDate.Builder.class);
}
// Construct using com.passkit.grpc.Proximity.RelevantDate.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();
timestamp_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Proximity.internal_static_io_RelevantDate_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Proximity.RelevantDate getDefaultInstanceForType() {
return com.passkit.grpc.Proximity.RelevantDate.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Proximity.RelevantDate build() {
com.passkit.grpc.Proximity.RelevantDate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Proximity.RelevantDate buildPartial() {
com.passkit.grpc.Proximity.RelevantDate result = new com.passkit.grpc.Proximity.RelevantDate(this);
result.timestamp_ = timestamp_;
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.Proximity.RelevantDate) {
return mergeFrom((com.passkit.grpc.Proximity.RelevantDate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Proximity.RelevantDate other) {
if (other == com.passkit.grpc.Proximity.RelevantDate.getDefaultInstance()) return this;
if (other.getTimestamp() != 0) {
setTimestamp(other.getTimestamp());
}
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.Proximity.RelevantDate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Proximity.RelevantDate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int timestamp_ ;
/**
*
* Unix timestamp. ISO8601 datetime.
*
*
* uint32 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public int getTimestamp() {
return timestamp_;
}
/**
*
* Unix timestamp. ISO8601 datetime.
*
*
* uint32 timestamp = 1;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(int value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* Unix timestamp. ISO8601 datetime.
*
*
* uint32 timestamp = 1;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 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.RelevantDate)
}
// @@protoc_insertion_point(class_scope:io.RelevantDate)
private static final com.passkit.grpc.Proximity.RelevantDate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Proximity.RelevantDate();
}
public static com.passkit.grpc.Proximity.RelevantDate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RelevantDate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RelevantDate(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.Proximity.RelevantDate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Beacon_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Beacon_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_GPSLocation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_GPSLocation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_RelevantDate_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_RelevantDate_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\031io/common/proximity.proto\022\002io\032\034io/comm" +
"on/localization.proto\032.protoc-gen-openap" +
"iv2/options/annotations.proto\"\247\003\n\006Beacon" +
"\022\n\n\002id\030\001 \001(\t\022\014\n\004uuid\030\002 \001(\t\022\014\n\004name\030\003 \001(\t" +
"\022\033\n\005major\030\004 \001(\rB\014\222A\tY\000\000\000\000\340\377\357@\022\033\n\005minor\030\005" +
" \001(\rB\014\222A\tY\000\000\000\000\340\377\357@\022\031\n\021lockScreenMessage\030" +
"\006 \001(\t\0227\n\032localizedLockScreenMessage\030\007 \001(" +
"\0132\023.io.LocalizedString\022\020\n\010position\030\010 \001(\r" +
":\324\001\222A\320\001\n\315\001*\006Beacon2\247\001A beacon record ena" +
"bles the pass to push a message to the l" +
"ock screen when the user is in close pro" +
"ximity with the beacon. Beacons are curr" +
"ently only supported by iOS.\322\001\004uuid\322\001\021lo" +
"ckScreenMessage\"\224\003\n\013GPSLocation\022\n\n\002id\030\001 " +
"\001(\t\022\014\n\004name\030\002 \001(\t\022\013\n\003lat\030\003 \001(\001\022\013\n\003lon\030\004 " +
"\001(\001\022\013\n\003alt\030\005 \001(\005\022\031\n\021lockScreenMessage\030\006 " +
"\001(\t\0227\n\032localizedLockScreenMessage\030\007 \001(\0132" +
"\023.io.LocalizedString\022\020\n\010position\030\010 \001(\r:\335" +
"\001\222A\331\001\n\326\001*\014GPS Location2\244\001A location reco" +
"rd enables the pass to be pushed to the " +
"lock screen when the user is in near the" +
" location. For iOS users, a customized m" +
"essage can also be displayed.\322\001\003lat\322\001\004lo" +
"ng\322\001\021lockScreenMessage\"!\n\014RelevantDate\022\021" +
"\n\ttimestamp\030\001 \001(\rBG\n\020com.passkit.grpcZ$s" +
"tash.passkit.com/io/model/sdk/go/io\252\002\014Pa" +
"ssKit.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.passkit.grpc.Localization.getDescriptor(),
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
});
internal_static_io_Beacon_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_Beacon_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Beacon_descriptor,
new java.lang.String[] { "Id", "Uuid", "Name", "Major", "Minor", "LockScreenMessage", "LocalizedLockScreenMessage", "Position", });
internal_static_io_GPSLocation_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_GPSLocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_GPSLocation_descriptor,
new java.lang.String[] { "Id", "Name", "Lat", "Lon", "Alt", "LockScreenMessage", "LocalizedLockScreenMessage", "Position", });
internal_static_io_RelevantDate_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_io_RelevantDate_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_RelevantDate_descriptor,
new java.lang.String[] { "Timestamp", });
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.Localization.getDescriptor();
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}