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

io.bloombox.schema.services.wallet.v1.CardActivate 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: wallet/v1/WalletService_v1.proto

package io.bloombox.schema.services.wallet.v1;

/**
 * 
 * Specifies an RPC operation to register a digital wallet pass for remote updates.
 * 
* * Protobuf type {@code bloombox.services.wallet.v1.CardActivate} */ public final class CardActivate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardActivate) CardActivateOrBuilder { private static final long serialVersionUID = 0L; // Use CardActivate.newBuilder() to construct. private CardActivate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CardActivate() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CardActivate( 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; 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.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.wallet.v1.CardActivate.class, io.bloombox.schema.services.wallet.v1.CardActivate.Builder.class); } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.wallet.v1.CardActivate.Request) com.google.protobuf.MessageOrBuilder { /** *
     * Device library ID.
     * 
* * string library = 1; */ java.lang.String getLibrary(); /** *
     * Device library ID.
     * 
* * string library = 1; */ com.google.protobuf.ByteString getLibraryBytes(); /** *
     * Pass type ID.
     * 
* * string pass_type = 2; */ java.lang.String getPassType(); /** *
     * Pass type ID.
     * 
* * string pass_type = 2; */ com.google.protobuf.ByteString getPassTypeBytes(); /** *
     * Serial number for the pass in question.
     * 
* * string serial = 3; */ java.lang.String getSerial(); /** *
     * Serial number for the pass in question.
     * 
* * string serial = 3; */ com.google.protobuf.ByteString getSerialBytes(); /** *
     * Push token provided by the pass registration.
     * 
* * string pushToken = 4; */ java.lang.String getPushToken(); /** *
     * Push token provided by the pass registration.
     * 
* * string pushToken = 4; */ com.google.protobuf.ByteString getPushTokenBytes(); } /** *
   * Request for remote updates for a pass.
   * 
* * Protobuf type {@code bloombox.services.wallet.v1.CardActivate.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardActivate.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { library_ = ""; passType_ = ""; serial_ = ""; pushToken_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( 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(); library_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); passType_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); serial_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); pushToken_ = 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.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.wallet.v1.CardActivate.Request.class, io.bloombox.schema.services.wallet.v1.CardActivate.Request.Builder.class); } public static final int LIBRARY_FIELD_NUMBER = 1; private volatile java.lang.Object library_; /** *
     * Device library ID.
     * 
* * string library = 1; */ public java.lang.String getLibrary() { java.lang.Object ref = library_; 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(); library_ = s; return s; } } /** *
     * Device library ID.
     * 
* * string library = 1; */ public com.google.protobuf.ByteString getLibraryBytes() { java.lang.Object ref = library_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); library_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASS_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object passType_; /** *
     * Pass type ID.
     * 
* * string pass_type = 2; */ public java.lang.String getPassType() { java.lang.Object ref = passType_; 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(); passType_ = s; return s; } } /** *
     * Pass type ID.
     * 
* * string pass_type = 2; */ public com.google.protobuf.ByteString getPassTypeBytes() { java.lang.Object ref = passType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERIAL_FIELD_NUMBER = 3; private volatile java.lang.Object serial_; /** *
     * Serial number for the pass in question.
     * 
* * string serial = 3; */ 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; } } /** *
     * Serial number for the pass in question.
     * 
* * string serial = 3; */ 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 PUSHTOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pushToken_; /** *
     * Push token provided by the pass registration.
     * 
* * string pushToken = 4; */ public java.lang.String getPushToken() { java.lang.Object ref = pushToken_; 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(); pushToken_ = s; return s; } } /** *
     * Push token provided by the pass registration.
     * 
* * string pushToken = 4; */ public com.google.protobuf.ByteString getPushTokenBytes() { java.lang.Object ref = pushToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pushToken_ = 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 (!getLibraryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, library_); } if (!getPassTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passType_); } if (!getSerialBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serial_); } if (!getPushTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pushToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getLibraryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, library_); } if (!getPassTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passType_); } if (!getSerialBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serial_); } if (!getPushTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pushToken_); } 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.services.wallet.v1.CardActivate.Request)) { return super.equals(obj); } io.bloombox.schema.services.wallet.v1.CardActivate.Request other = (io.bloombox.schema.services.wallet.v1.CardActivate.Request) obj; if (!getLibrary() .equals(other.getLibrary())) return false; if (!getPassType() .equals(other.getPassType())) return false; if (!getSerial() .equals(other.getSerial())) return false; if (!getPushToken() .equals(other.getPushToken())) 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) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + getLibrary().hashCode(); hash = (37 * hash) + PASS_TYPE_FIELD_NUMBER; hash = (53 * hash) + getPassType().hashCode(); hash = (37 * hash) + SERIAL_FIELD_NUMBER; hash = (53 * hash) + getSerial().hashCode(); hash = (37 * hash) + PUSHTOKEN_FIELD_NUMBER; hash = (53 * hash) + getPushToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request 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.services.wallet.v1.CardActivate.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request 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.services.wallet.v1.CardActivate.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request 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.services.wallet.v1.CardActivate.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request 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.services.wallet.v1.CardActivate.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request 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.services.wallet.v1.CardActivate.Request 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; } /** *
     * Request for remote updates for a pass.
     * 
* * Protobuf type {@code bloombox.services.wallet.v1.CardActivate.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardActivate.Request) io.bloombox.schema.services.wallet.v1.CardActivate.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.wallet.v1.CardActivate.Request.class, io.bloombox.schema.services.wallet.v1.CardActivate.Request.Builder.class); } // Construct using io.bloombox.schema.services.wallet.v1.CardActivate.Request.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(); library_ = ""; passType_ = ""; serial_ = ""; pushToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_Request_descriptor; } @java.lang.Override public io.bloombox.schema.services.wallet.v1.CardActivate.Request getDefaultInstanceForType() { return io.bloombox.schema.services.wallet.v1.CardActivate.Request.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.wallet.v1.CardActivate.Request build() { io.bloombox.schema.services.wallet.v1.CardActivate.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.wallet.v1.CardActivate.Request buildPartial() { io.bloombox.schema.services.wallet.v1.CardActivate.Request result = new io.bloombox.schema.services.wallet.v1.CardActivate.Request(this); result.library_ = library_; result.passType_ = passType_; result.serial_ = serial_; result.pushToken_ = pushToken_; 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.services.wallet.v1.CardActivate.Request) { return mergeFrom((io.bloombox.schema.services.wallet.v1.CardActivate.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardActivate.Request other) { if (other == io.bloombox.schema.services.wallet.v1.CardActivate.Request.getDefaultInstance()) return this; if (!other.getLibrary().isEmpty()) { library_ = other.library_; onChanged(); } if (!other.getPassType().isEmpty()) { passType_ = other.passType_; onChanged(); } if (!other.getSerial().isEmpty()) { serial_ = other.serial_; onChanged(); } if (!other.getPushToken().isEmpty()) { pushToken_ = other.pushToken_; 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.services.wallet.v1.CardActivate.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.wallet.v1.CardActivate.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object library_ = ""; /** *
       * Device library ID.
       * 
* * string library = 1; */ public java.lang.String getLibrary() { java.lang.Object ref = library_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); library_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Device library ID.
       * 
* * string library = 1; */ public com.google.protobuf.ByteString getLibraryBytes() { java.lang.Object ref = library_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); library_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Device library ID.
       * 
* * string library = 1; */ public Builder setLibrary( java.lang.String value) { if (value == null) { throw new NullPointerException(); } library_ = value; onChanged(); return this; } /** *
       * Device library ID.
       * 
* * string library = 1; */ public Builder clearLibrary() { library_ = getDefaultInstance().getLibrary(); onChanged(); return this; } /** *
       * Device library ID.
       * 
* * string library = 1; */ public Builder setLibraryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); library_ = value; onChanged(); return this; } private java.lang.Object passType_ = ""; /** *
       * Pass type ID.
       * 
* * string pass_type = 2; */ public java.lang.String getPassType() { java.lang.Object ref = passType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Pass type ID.
       * 
* * string pass_type = 2; */ public com.google.protobuf.ByteString getPassTypeBytes() { java.lang.Object ref = passType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Pass type ID.
       * 
* * string pass_type = 2; */ public Builder setPassType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passType_ = value; onChanged(); return this; } /** *
       * Pass type ID.
       * 
* * string pass_type = 2; */ public Builder clearPassType() { passType_ = getDefaultInstance().getPassType(); onChanged(); return this; } /** *
       * Pass type ID.
       * 
* * string pass_type = 2; */ public Builder setPassTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passType_ = value; onChanged(); return this; } private java.lang.Object serial_ = ""; /** *
       * Serial number for the pass in question.
       * 
* * string serial = 3; */ 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; } } /** *
       * Serial number for the pass in question.
       * 
* * string serial = 3; */ 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; } } /** *
       * Serial number for the pass in question.
       * 
* * string serial = 3; */ public Builder setSerial( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serial_ = value; onChanged(); return this; } /** *
       * Serial number for the pass in question.
       * 
* * string serial = 3; */ public Builder clearSerial() { serial_ = getDefaultInstance().getSerial(); onChanged(); return this; } /** *
       * Serial number for the pass in question.
       * 
* * string serial = 3; */ 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 pushToken_ = ""; /** *
       * Push token provided by the pass registration.
       * 
* * string pushToken = 4; */ public java.lang.String getPushToken() { java.lang.Object ref = pushToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pushToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Push token provided by the pass registration.
       * 
* * string pushToken = 4; */ public com.google.protobuf.ByteString getPushTokenBytes() { java.lang.Object ref = pushToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pushToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Push token provided by the pass registration.
       * 
* * string pushToken = 4; */ public Builder setPushToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pushToken_ = value; onChanged(); return this; } /** *
       * Push token provided by the pass registration.
       * 
* * string pushToken = 4; */ public Builder clearPushToken() { pushToken_ = getDefaultInstance().getPushToken(); onChanged(); return this; } /** *
       * Push token provided by the pass registration.
       * 
* * string pushToken = 4; */ public Builder setPushTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pushToken_ = 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.services.wallet.v1.CardActivate.Request) } // @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardActivate.Request) private static final io.bloombox.schema.services.wallet.v1.CardActivate.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardActivate.Request(); } public static io.bloombox.schema.services.wallet.v1.CardActivate.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(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.services.wallet.v1.CardActivate.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.services.wallet.v1.CardActivate)) { return super.equals(obj); } io.bloombox.schema.services.wallet.v1.CardActivate other = (io.bloombox.schema.services.wallet.v1.CardActivate) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.wallet.v1.CardActivate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.wallet.v1.CardActivate 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.services.wallet.v1.CardActivate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.wallet.v1.CardActivate 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.services.wallet.v1.CardActivate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.wallet.v1.CardActivate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.services.wallet.v1.CardActivate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.services.wallet.v1.CardActivate 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.services.wallet.v1.CardActivate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.services.wallet.v1.CardActivate 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.services.wallet.v1.CardActivate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.services.wallet.v1.CardActivate 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.services.wallet.v1.CardActivate 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 an RPC operation to register a digital wallet pass for remote updates.
   * 
* * Protobuf type {@code bloombox.services.wallet.v1.CardActivate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardActivate) io.bloombox.schema.services.wallet.v1.CardActivateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.wallet.v1.CardActivate.class, io.bloombox.schema.services.wallet.v1.CardActivate.Builder.class); } // Construct using io.bloombox.schema.services.wallet.v1.CardActivate.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(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardActivate_descriptor; } @java.lang.Override public io.bloombox.schema.services.wallet.v1.CardActivate getDefaultInstanceForType() { return io.bloombox.schema.services.wallet.v1.CardActivate.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.wallet.v1.CardActivate build() { io.bloombox.schema.services.wallet.v1.CardActivate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.wallet.v1.CardActivate buildPartial() { io.bloombox.schema.services.wallet.v1.CardActivate result = new io.bloombox.schema.services.wallet.v1.CardActivate(this); 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.services.wallet.v1.CardActivate) { return mergeFrom((io.bloombox.schema.services.wallet.v1.CardActivate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardActivate other) { if (other == io.bloombox.schema.services.wallet.v1.CardActivate.getDefaultInstance()) return this; 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.services.wallet.v1.CardActivate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.wallet.v1.CardActivate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.services.wallet.v1.CardActivate) } // @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardActivate) private static final io.bloombox.schema.services.wallet.v1.CardActivate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardActivate(); } public static io.bloombox.schema.services.wallet.v1.CardActivate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CardActivate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CardActivate(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.services.wallet.v1.CardActivate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy