All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bloombox.schema.pass.PassIDKey Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: identity/pass/PassKey.proto

package io.bloombox.schema.pass;

public final class PassIDKey {
  private PassIDKey() {}
  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 PassKeyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bloombox.identity.pass.PassKey)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Specifies the entire encoded ID.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ java.lang.String getUuid(); /** *
     * Specifies the entire encoded ID.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ com.google.protobuf.ByteString getUuidBytes(); /** *
     * Specifies the serial number for a pass.
     * 
* * string serial = 2; */ java.lang.String getSerial(); /** *
     * Specifies the serial number for a pass.
     * 
* * string serial = 2; */ com.google.protobuf.ByteString getSerialBytes(); /** *
     * Specifies the user ID that owns the pass.
     * 
* * string uid = 3; */ java.lang.String getUid(); /** *
     * Specifies the user ID that owns the pass.
     * 
* * string uid = 3; */ com.google.protobuf.ByteString getUidBytes(); /** *
     * Partner code that issued this pass/owns this pass.
     * 
* * string partner = 4; */ java.lang.String getPartner(); /** *
     * Partner code that issued this pass/owns this pass.
     * 
* * string partner = 4; */ com.google.protobuf.ByteString getPartnerBytes(); /** *
     * Location code that issued this pass/owns this pass.
     * 
* * string location = 5; */ java.lang.String getLocation(); /** *
     * Location code that issued this pass/owns this pass.
     * 
* * string location = 5; */ com.google.protobuf.ByteString getLocationBytes(); } /** *
   * Specifies the key for a digital pass record.
   * 
* * Protobuf type {@code bloombox.identity.pass.PassKey} */ public static final class PassKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.pass.PassKey) PassKeyOrBuilder { private static final long serialVersionUID = 0L; // Use PassKey.newBuilder() to construct. private PassKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PassKey() { uuid_ = ""; serial_ = ""; uid_ = ""; partner_ = ""; location_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PassKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); uuid_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); serial_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); uid_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); partner_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); location_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_PassKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_PassKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.pass.PassIDKey.PassKey.class, io.bloombox.schema.pass.PassIDKey.PassKey.Builder.class); } public static final int UUID_FIELD_NUMBER = 1; private volatile java.lang.Object uuid_; /** *
     * Specifies the entire encoded ID.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ 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; } } /** *
     * Specifies the entire encoded ID.
     * 
* * string uuid = 1 [(.core.field) = { ... } */ 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 SERIAL_FIELD_NUMBER = 2; private volatile java.lang.Object serial_; /** *
     * Specifies the serial number for a pass.
     * 
* * string serial = 2; */ public java.lang.String getSerial() { java.lang.Object ref = serial_; 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(); serial_ = s; return s; } } /** *
     * Specifies the serial number for a pass.
     * 
* * string serial = 2; */ public com.google.protobuf.ByteString getSerialBytes() { java.lang.Object ref = serial_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serial_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UID_FIELD_NUMBER = 3; private volatile java.lang.Object uid_; /** *
     * Specifies the user ID that owns the pass.
     * 
* * string uid = 3; */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; } } /** *
     * Specifies the user ID that owns the pass.
     * 
* * string uid = 3; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTNER_FIELD_NUMBER = 4; private volatile java.lang.Object partner_; /** *
     * Partner code that issued this pass/owns this pass.
     * 
* * string partner = 4; */ public java.lang.String getPartner() { java.lang.Object ref = partner_; 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(); partner_ = s; return s; } } /** *
     * Partner code that issued this pass/owns this pass.
     * 
* * string partner = 4; */ public com.google.protobuf.ByteString getPartnerBytes() { java.lang.Object ref = partner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); partner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCATION_FIELD_NUMBER = 5; private volatile java.lang.Object location_; /** *
     * Location code that issued this pass/owns this pass.
     * 
* * string location = 5; */ public java.lang.String getLocation() { java.lang.Object ref = location_; 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(); location_ = s; return s; } } /** *
     * Location code that issued this pass/owns this pass.
     * 
* * string location = 5; */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getUuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); } if (!getSerialBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serial_); } if (!getUidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); } if (!getPartnerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, partner_); } if (!getLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, location_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getUuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); } if (!getSerialBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serial_); } if (!getUidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (!getPartnerBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, partner_); } if (!getLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, location_); } 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 io.bloombox.schema.pass.PassIDKey.PassKey)) { return super.equals(obj); } io.bloombox.schema.pass.PassIDKey.PassKey other = (io.bloombox.schema.pass.PassIDKey.PassKey) obj; if (!getUuid() .equals(other.getUuid())) return false; if (!getSerial() .equals(other.getSerial())) return false; if (!getUid() .equals(other.getUid())) return false; if (!getPartner() .equals(other.getPartner())) return false; if (!getLocation() .equals(other.getLocation())) 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) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); hash = (37 * hash) + SERIAL_FIELD_NUMBER; hash = (53 * hash) + getSerial().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + PARTNER_FIELD_NUMBER; hash = (53 * hash) + getPartner().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.pass.PassIDKey.PassKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.pass.PassIDKey.PassKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.pass.PassIDKey.PassKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.pass.PassIDKey.PassKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.pass.PassIDKey.PassKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.pass.PassIDKey.PassKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.pass.PassIDKey.PassKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.pass.PassIDKey.PassKey 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 io.bloombox.schema.pass.PassIDKey.PassKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.pass.PassIDKey.PassKey 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 io.bloombox.schema.pass.PassIDKey.PassKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.pass.PassIDKey.PassKey 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(io.bloombox.schema.pass.PassIDKey.PassKey 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; } /** *
     * Specifies the key for a digital pass record.
     * 
* * Protobuf type {@code bloombox.identity.pass.PassKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.pass.PassKey) io.bloombox.schema.pass.PassIDKey.PassKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_PassKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_PassKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.pass.PassIDKey.PassKey.class, io.bloombox.schema.pass.PassIDKey.PassKey.Builder.class); } // Construct using io.bloombox.schema.pass.PassIDKey.PassKey.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(); uuid_ = ""; serial_ = ""; uid_ = ""; partner_ = ""; location_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_PassKey_descriptor; } @java.lang.Override public io.bloombox.schema.pass.PassIDKey.PassKey getDefaultInstanceForType() { return io.bloombox.schema.pass.PassIDKey.PassKey.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.pass.PassIDKey.PassKey build() { io.bloombox.schema.pass.PassIDKey.PassKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.pass.PassIDKey.PassKey buildPartial() { io.bloombox.schema.pass.PassIDKey.PassKey result = new io.bloombox.schema.pass.PassIDKey.PassKey(this); result.uuid_ = uuid_; result.serial_ = serial_; result.uid_ = uid_; result.partner_ = partner_; result.location_ = location_; 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 io.bloombox.schema.pass.PassIDKey.PassKey) { return mergeFrom((io.bloombox.schema.pass.PassIDKey.PassKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.pass.PassIDKey.PassKey other) { if (other == io.bloombox.schema.pass.PassIDKey.PassKey.getDefaultInstance()) return this; if (!other.getUuid().isEmpty()) { uuid_ = other.uuid_; onChanged(); } if (!other.getSerial().isEmpty()) { serial_ = other.serial_; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; onChanged(); } if (!other.getPartner().isEmpty()) { partner_ = other.partner_; onChanged(); } if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.pass.PassIDKey.PassKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.pass.PassIDKey.PassKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object uuid_ = ""; /** *
       * Specifies the entire encoded ID.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ 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; } } /** *
       * Specifies the entire encoded ID.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ 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; } } /** *
       * Specifies the entire encoded ID.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public Builder setUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); return this; } /** *
       * Specifies the entire encoded ID.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ public Builder clearUuid() { uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** *
       * Specifies the entire encoded ID.
       * 
* * string uuid = 1 [(.core.field) = { ... } */ 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 serial_ = ""; /** *
       * Specifies the serial number for a pass.
       * 
* * string serial = 2; */ public java.lang.String getSerial() { java.lang.Object ref = serial_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serial_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies the serial number for a pass.
       * 
* * string serial = 2; */ public com.google.protobuf.ByteString getSerialBytes() { java.lang.Object ref = serial_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serial_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies the serial number for a pass.
       * 
* * string serial = 2; */ public Builder setSerial( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serial_ = value; onChanged(); return this; } /** *
       * Specifies the serial number for a pass.
       * 
* * string serial = 2; */ public Builder clearSerial() { serial_ = getDefaultInstance().getSerial(); onChanged(); return this; } /** *
       * Specifies the serial number for a pass.
       * 
* * string serial = 2; */ public Builder setSerialBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serial_ = value; onChanged(); return this; } private java.lang.Object uid_ = ""; /** *
       * Specifies the user ID that owns the pass.
       * 
* * string uid = 3; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies the user ID that owns the pass.
       * 
* * string uid = 3; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies the user ID that owns the pass.
       * 
* * string uid = 3; */ public Builder setUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uid_ = value; onChanged(); return this; } /** *
       * Specifies the user ID that owns the pass.
       * 
* * string uid = 3; */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** *
       * Specifies the user ID that owns the pass.
       * 
* * string uid = 3; */ public Builder setUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; onChanged(); return this; } private java.lang.Object partner_ = ""; /** *
       * Partner code that issued this pass/owns this pass.
       * 
* * string partner = 4; */ public java.lang.String getPartner() { java.lang.Object ref = partner_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); partner_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Partner code that issued this pass/owns this pass.
       * 
* * string partner = 4; */ public com.google.protobuf.ByteString getPartnerBytes() { java.lang.Object ref = partner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); partner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Partner code that issued this pass/owns this pass.
       * 
* * string partner = 4; */ public Builder setPartner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } partner_ = value; onChanged(); return this; } /** *
       * Partner code that issued this pass/owns this pass.
       * 
* * string partner = 4; */ public Builder clearPartner() { partner_ = getDefaultInstance().getPartner(); onChanged(); return this; } /** *
       * Partner code that issued this pass/owns this pass.
       * 
* * string partner = 4; */ public Builder setPartnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); partner_ = value; onChanged(); return this; } private java.lang.Object location_ = ""; /** *
       * Location code that issued this pass/owns this pass.
       * 
* * string location = 5; */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Location code that issued this pass/owns this pass.
       * 
* * string location = 5; */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Location code that issued this pass/owns this pass.
       * 
* * string location = 5; */ public Builder setLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); return this; } /** *
       * Location code that issued this pass/owns this pass.
       * 
* * string location = 5; */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** *
       * Location code that issued this pass/owns this pass.
       * 
* * string location = 5; */ public Builder setLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.identity.pass.PassKey) } // @@protoc_insertion_point(class_scope:bloombox.identity.pass.PassKey) private static final io.bloombox.schema.pass.PassIDKey.PassKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.pass.PassIDKey.PassKey(); } public static io.bloombox.schema.pass.PassIDKey.PassKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PassKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PassKey(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 io.bloombox.schema.pass.PassIDKey.PassKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DigitalPassKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.identity.pass.DigitalPassKey) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies a barcode value that was scanned.
     * 
* * string barcode = 1; */ java.lang.String getBarcode(); /** *
     * Specifies a barcode value that was scanned.
     * 
* * string barcode = 1; */ com.google.protobuf.ByteString getBarcodeBytes(); /** *
     * Specifies a BLE signal received referencing a card.
     * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ boolean hasBeacon(); /** *
     * Specifies a BLE signal received referencing a card.
     * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ io.opencannabis.schema.proximity.BluetoothBeacon getBeacon(); /** *
     * Specifies a BLE signal received referencing a card.
     * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ io.opencannabis.schema.proximity.BluetoothBeaconOrBuilder getBeaconOrBuilder(); public io.bloombox.schema.pass.PassIDKey.DigitalPassKey.ReferenceCase getReferenceCase(); } /** *
   * Specifies a reference to a digital pass.
   * 
* * Protobuf type {@code bloombox.identity.pass.DigitalPassKey} */ public static final class DigitalPassKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.pass.DigitalPassKey) DigitalPassKeyOrBuilder { private static final long serialVersionUID = 0L; // Use DigitalPassKey.newBuilder() to construct. private DigitalPassKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DigitalPassKey() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DigitalPassKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); referenceCase_ = 1; reference_ = s; break; } case 18: { io.opencannabis.schema.proximity.BluetoothBeacon.Builder subBuilder = null; if (referenceCase_ == 2) { subBuilder = ((io.opencannabis.schema.proximity.BluetoothBeacon) reference_).toBuilder(); } reference_ = input.readMessage(io.opencannabis.schema.proximity.BluetoothBeacon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.opencannabis.schema.proximity.BluetoothBeacon) reference_); reference_ = subBuilder.buildPartial(); } referenceCase_ = 2; 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 io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_DigitalPassKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_DigitalPassKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.pass.PassIDKey.DigitalPassKey.class, io.bloombox.schema.pass.PassIDKey.DigitalPassKey.Builder.class); } private int referenceCase_ = 0; private java.lang.Object reference_; public enum ReferenceCase implements com.google.protobuf.Internal.EnumLite { BARCODE(1), BEACON(2), REFERENCE_NOT_SET(0); private final int value; private ReferenceCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ReferenceCase valueOf(int value) { return forNumber(value); } public static ReferenceCase forNumber(int value) { switch (value) { case 1: return BARCODE; case 2: return BEACON; case 0: return REFERENCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReferenceCase getReferenceCase() { return ReferenceCase.forNumber( referenceCase_); } public static final int BARCODE_FIELD_NUMBER = 1; /** *
     * Specifies a barcode value that was scanned.
     * 
* * string barcode = 1; */ public java.lang.String getBarcode() { java.lang.Object ref = ""; if (referenceCase_ == 1) { ref = reference_; } 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(); if (referenceCase_ == 1) { reference_ = s; } return s; } } /** *
     * Specifies a barcode value that was scanned.
     * 
* * string barcode = 1; */ public com.google.protobuf.ByteString getBarcodeBytes() { java.lang.Object ref = ""; if (referenceCase_ == 1) { ref = reference_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (referenceCase_ == 1) { reference_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BEACON_FIELD_NUMBER = 2; /** *
     * Specifies a BLE signal received referencing a card.
     * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public boolean hasBeacon() { return referenceCase_ == 2; } /** *
     * Specifies a BLE signal received referencing a card.
     * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public io.opencannabis.schema.proximity.BluetoothBeacon getBeacon() { if (referenceCase_ == 2) { return (io.opencannabis.schema.proximity.BluetoothBeacon) reference_; } return io.opencannabis.schema.proximity.BluetoothBeacon.getDefaultInstance(); } /** *
     * Specifies a BLE signal received referencing a card.
     * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public io.opencannabis.schema.proximity.BluetoothBeaconOrBuilder getBeaconOrBuilder() { if (referenceCase_ == 2) { return (io.opencannabis.schema.proximity.BluetoothBeacon) reference_; } return io.opencannabis.schema.proximity.BluetoothBeacon.getDefaultInstance(); } 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 (referenceCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reference_); } if (referenceCase_ == 2) { output.writeMessage(2, (io.opencannabis.schema.proximity.BluetoothBeacon) reference_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (referenceCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reference_); } if (referenceCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.opencannabis.schema.proximity.BluetoothBeacon) reference_); } 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 io.bloombox.schema.pass.PassIDKey.DigitalPassKey)) { return super.equals(obj); } io.bloombox.schema.pass.PassIDKey.DigitalPassKey other = (io.bloombox.schema.pass.PassIDKey.DigitalPassKey) obj; if (!getReferenceCase().equals(other.getReferenceCase())) return false; switch (referenceCase_) { case 1: if (!getBarcode() .equals(other.getBarcode())) return false; break; case 2: if (!getBeacon() .equals(other.getBeacon())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (referenceCase_) { case 1: hash = (37 * hash) + BARCODE_FIELD_NUMBER; hash = (53 * hash) + getBarcode().hashCode(); break; case 2: hash = (37 * hash) + BEACON_FIELD_NUMBER; hash = (53 * hash) + getBeacon().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey 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 io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey 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 io.bloombox.schema.pass.PassIDKey.DigitalPassKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey 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(io.bloombox.schema.pass.PassIDKey.DigitalPassKey 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; } /** *
     * Specifies a reference to a digital pass.
     * 
* * Protobuf type {@code bloombox.identity.pass.DigitalPassKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.pass.DigitalPassKey) io.bloombox.schema.pass.PassIDKey.DigitalPassKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_DigitalPassKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_DigitalPassKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.pass.PassIDKey.DigitalPassKey.class, io.bloombox.schema.pass.PassIDKey.DigitalPassKey.Builder.class); } // Construct using io.bloombox.schema.pass.PassIDKey.DigitalPassKey.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(); referenceCase_ = 0; reference_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.pass.PassIDKey.internal_static_bloombox_identity_pass_DigitalPassKey_descriptor; } @java.lang.Override public io.bloombox.schema.pass.PassIDKey.DigitalPassKey getDefaultInstanceForType() { return io.bloombox.schema.pass.PassIDKey.DigitalPassKey.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.pass.PassIDKey.DigitalPassKey build() { io.bloombox.schema.pass.PassIDKey.DigitalPassKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.pass.PassIDKey.DigitalPassKey buildPartial() { io.bloombox.schema.pass.PassIDKey.DigitalPassKey result = new io.bloombox.schema.pass.PassIDKey.DigitalPassKey(this); if (referenceCase_ == 1) { result.reference_ = reference_; } if (referenceCase_ == 2) { if (beaconBuilder_ == null) { result.reference_ = reference_; } else { result.reference_ = beaconBuilder_.build(); } } result.referenceCase_ = referenceCase_; 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 io.bloombox.schema.pass.PassIDKey.DigitalPassKey) { return mergeFrom((io.bloombox.schema.pass.PassIDKey.DigitalPassKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.pass.PassIDKey.DigitalPassKey other) { if (other == io.bloombox.schema.pass.PassIDKey.DigitalPassKey.getDefaultInstance()) return this; switch (other.getReferenceCase()) { case BARCODE: { referenceCase_ = 1; reference_ = other.reference_; onChanged(); break; } case BEACON: { mergeBeacon(other.getBeacon()); break; } case REFERENCE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.pass.PassIDKey.DigitalPassKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.pass.PassIDKey.DigitalPassKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int referenceCase_ = 0; private java.lang.Object reference_; public ReferenceCase getReferenceCase() { return ReferenceCase.forNumber( referenceCase_); } public Builder clearReference() { referenceCase_ = 0; reference_ = null; onChanged(); return this; } /** *
       * Specifies a barcode value that was scanned.
       * 
* * string barcode = 1; */ public java.lang.String getBarcode() { java.lang.Object ref = ""; if (referenceCase_ == 1) { ref = reference_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (referenceCase_ == 1) { reference_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies a barcode value that was scanned.
       * 
* * string barcode = 1; */ public com.google.protobuf.ByteString getBarcodeBytes() { java.lang.Object ref = ""; if (referenceCase_ == 1) { ref = reference_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (referenceCase_ == 1) { reference_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies a barcode value that was scanned.
       * 
* * string barcode = 1; */ public Builder setBarcode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } referenceCase_ = 1; reference_ = value; onChanged(); return this; } /** *
       * Specifies a barcode value that was scanned.
       * 
* * string barcode = 1; */ public Builder clearBarcode() { if (referenceCase_ == 1) { referenceCase_ = 0; reference_ = null; onChanged(); } return this; } /** *
       * Specifies a barcode value that was scanned.
       * 
* * string barcode = 1; */ public Builder setBarcodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); referenceCase_ = 1; reference_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.proximity.BluetoothBeacon, io.opencannabis.schema.proximity.BluetoothBeacon.Builder, io.opencannabis.schema.proximity.BluetoothBeaconOrBuilder> beaconBuilder_; /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public boolean hasBeacon() { return referenceCase_ == 2; } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public io.opencannabis.schema.proximity.BluetoothBeacon getBeacon() { if (beaconBuilder_ == null) { if (referenceCase_ == 2) { return (io.opencannabis.schema.proximity.BluetoothBeacon) reference_; } return io.opencannabis.schema.proximity.BluetoothBeacon.getDefaultInstance(); } else { if (referenceCase_ == 2) { return beaconBuilder_.getMessage(); } return io.opencannabis.schema.proximity.BluetoothBeacon.getDefaultInstance(); } } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public Builder setBeacon(io.opencannabis.schema.proximity.BluetoothBeacon value) { if (beaconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reference_ = value; onChanged(); } else { beaconBuilder_.setMessage(value); } referenceCase_ = 2; return this; } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public Builder setBeacon( io.opencannabis.schema.proximity.BluetoothBeacon.Builder builderForValue) { if (beaconBuilder_ == null) { reference_ = builderForValue.build(); onChanged(); } else { beaconBuilder_.setMessage(builderForValue.build()); } referenceCase_ = 2; return this; } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public Builder mergeBeacon(io.opencannabis.schema.proximity.BluetoothBeacon value) { if (beaconBuilder_ == null) { if (referenceCase_ == 2 && reference_ != io.opencannabis.schema.proximity.BluetoothBeacon.getDefaultInstance()) { reference_ = io.opencannabis.schema.proximity.BluetoothBeacon.newBuilder((io.opencannabis.schema.proximity.BluetoothBeacon) reference_) .mergeFrom(value).buildPartial(); } else { reference_ = value; } onChanged(); } else { if (referenceCase_ == 2) { beaconBuilder_.mergeFrom(value); } beaconBuilder_.setMessage(value); } referenceCase_ = 2; return this; } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public Builder clearBeacon() { if (beaconBuilder_ == null) { if (referenceCase_ == 2) { referenceCase_ = 0; reference_ = null; onChanged(); } } else { if (referenceCase_ == 2) { referenceCase_ = 0; reference_ = null; } beaconBuilder_.clear(); } return this; } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public io.opencannabis.schema.proximity.BluetoothBeacon.Builder getBeaconBuilder() { return getBeaconFieldBuilder().getBuilder(); } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ public io.opencannabis.schema.proximity.BluetoothBeaconOrBuilder getBeaconOrBuilder() { if ((referenceCase_ == 2) && (beaconBuilder_ != null)) { return beaconBuilder_.getMessageOrBuilder(); } else { if (referenceCase_ == 2) { return (io.opencannabis.schema.proximity.BluetoothBeacon) reference_; } return io.opencannabis.schema.proximity.BluetoothBeacon.getDefaultInstance(); } } /** *
       * Specifies a BLE signal received referencing a card.
       * 
* * .opencannabis.proximity.BluetoothBeacon beacon = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.proximity.BluetoothBeacon, io.opencannabis.schema.proximity.BluetoothBeacon.Builder, io.opencannabis.schema.proximity.BluetoothBeaconOrBuilder> getBeaconFieldBuilder() { if (beaconBuilder_ == null) { if (!(referenceCase_ == 2)) { reference_ = io.opencannabis.schema.proximity.BluetoothBeacon.getDefaultInstance(); } beaconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.proximity.BluetoothBeacon, io.opencannabis.schema.proximity.BluetoothBeacon.Builder, io.opencannabis.schema.proximity.BluetoothBeaconOrBuilder>( (io.opencannabis.schema.proximity.BluetoothBeacon) reference_, getParentForChildren(), isClean()); reference_ = null; } referenceCase_ = 2; onChanged();; return beaconBuilder_; } @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:bloombox.identity.pass.DigitalPassKey) } // @@protoc_insertion_point(class_scope:bloombox.identity.pass.DigitalPassKey) private static final io.bloombox.schema.pass.PassIDKey.DigitalPassKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.pass.PassIDKey.DigitalPassKey(); } public static io.bloombox.schema.pass.PassIDKey.DigitalPassKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DigitalPassKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DigitalPassKey(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 io.bloombox.schema.pass.PassIDKey.DigitalPassKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_pass_PassKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_pass_PassKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_pass_DigitalPassKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_pass_DigitalPassKey_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\033identity/pass/PassKey.proto\022\026bloombox." + "identity.pass\032\024core/Datamodel.proto\032\037pro" + "ximity/BluetoothBeacon.proto\"_\n\007PassKey\022" + "\024\n\004uuid\030\001 \001(\tB\006\302\265\003\002\010\002\022\016\n\006serial\030\002 \001(\t\022\013\n" + "\003uid\030\003 \001(\t\022\017\n\007partner\030\004 \001(\t\022\020\n\010location\030" + "\005 \001(\t\"k\n\016DigitalPassKey\022\021\n\007barcode\030\001 \001(\t" + "H\000\0229\n\006beacon\030\002 \001(\0132\'.opencannabis.proxim" + "ity.BluetoothBeaconH\000B\013\n\treferenceB.\n\027io" + ".bloombox.schema.passB\tPassIDKeyH\001P\000\242\002\003B" + "BSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { core.Datamodel.getDescriptor(), io.opencannabis.schema.proximity.BluetoothBeaconOuterClass.getDescriptor(), }, assigner); internal_static_bloombox_identity_pass_PassKey_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_identity_pass_PassKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_pass_PassKey_descriptor, new java.lang.String[] { "Uuid", "Serial", "Uid", "Partner", "Location", }); internal_static_bloombox_identity_pass_DigitalPassKey_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_bloombox_identity_pass_DigitalPassKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_pass_DigitalPassKey_descriptor, new java.lang.String[] { "Barcode", "Beacon", "Reference", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(core.Datamodel.field); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); core.Datamodel.getDescriptor(); io.opencannabis.schema.proximity.BluetoothBeaconOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy