io.bloombox.schema.services.wallet.v1.CardProvision Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
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 a request and response flow for an RPC operation to provision a new digital wallet card. Provisioning a
* card occurs first in the card lifecycle, before the card is issued, and after the user has already satisfied any
* constraints or requirements related to the partner or location context for which the card is being issued.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision}
*/
public final class CardProvision extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardProvision)
CardProvisionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CardProvision.newBuilder() to construct.
private CardProvision(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CardProvision() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CardProvision(
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_CardProvision_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_CardProvision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.class, io.bloombox.schema.services.wallet.v1.CardProvision.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.wallet.v1.CardProvision.Request)
com.google.protobuf.MessageOrBuilder {
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
boolean hasUser();
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
io.bloombox.schema.identity.AppUserKey.UserKey getUser();
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder();
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
boolean hasPartner();
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner();
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder();
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
boolean hasLocation();
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation();
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder();
/**
*
* Special flag indicating a globally-usable identity card for the user.
*
*
* bool identity = 4;
*/
boolean getIdentity();
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
boolean hasPublicKey();
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
io.opencannabis.schema.crypto.primitives.KeyMaterial getPublicKey();
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
io.opencannabis.schema.crypto.primitives.KeyMaterialOrBuilder getPublicKeyOrBuilder();
public io.bloombox.schema.services.wallet.v1.CardProvision.Request.ContextCase getContextCase();
}
/**
*
* Request, issued from the user's perspective, to issue a new digital card.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardProvision.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() {
}
@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: {
io.bloombox.schema.identity.AppUserKey.UserKey.Builder subBuilder = null;
if (user_ != null) {
subBuilder = user_.toBuilder();
}
user_ = input.readMessage(io.bloombox.schema.identity.AppUserKey.UserKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(user_);
user_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder subBuilder = null;
if (contextCase_ == 2) {
subBuilder = ((io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_).toBuilder();
}
context_ =
input.readMessage(io.bloombox.schema.partner.PartnerMeta.PartnerKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_);
context_ = subBuilder.buildPartial();
}
contextCase_ = 2;
break;
}
case 26: {
io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder subBuilder = null;
if (contextCase_ == 3) {
subBuilder = ((io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_).toBuilder();
}
context_ =
input.readMessage(io.bloombox.schema.partner.LocationAccountKey.LocationKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_);
context_ = subBuilder.buildPartial();
}
contextCase_ = 3;
break;
}
case 32: {
contextCase_ = 4;
context_ = input.readBool();
break;
}
case 42: {
io.opencannabis.schema.crypto.primitives.KeyMaterial.Builder subBuilder = null;
if (publicKey_ != null) {
subBuilder = publicKey_.toBuilder();
}
publicKey_ = input.readMessage(io.opencannabis.schema.crypto.primitives.KeyMaterial.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(publicKey_);
publicKey_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardProvision_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_CardProvision_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.Request.class, io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder.class);
}
private int contextCase_ = 0;
private java.lang.Object context_;
public enum ContextCase
implements com.google.protobuf.Internal.EnumLite {
PARTNER(2),
LOCATION(3),
IDENTITY(4),
CONTEXT_NOT_SET(0);
private final int value;
private ContextCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContextCase valueOf(int value) {
return forNumber(value);
}
public static ContextCase forNumber(int value) {
switch (value) {
case 2: return PARTNER;
case 3: return LOCATION;
case 4: return IDENTITY;
case 0: return CONTEXT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ContextCase
getContextCase() {
return ContextCase.forNumber(
contextCase_);
}
public static final int USER_FIELD_NUMBER = 1;
private io.bloombox.schema.identity.AppUserKey.UserKey user_;
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public boolean hasUser() {
return user_ != null;
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public io.bloombox.schema.identity.AppUserKey.UserKey getUser() {
return user_ == null ? io.bloombox.schema.identity.AppUserKey.UserKey.getDefaultInstance() : user_;
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder() {
return getUser();
}
public static final int PARTNER_FIELD_NUMBER = 2;
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public boolean hasPartner() {
return contextCase_ == 2;
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner() {
if (contextCase_ == 2) {
return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_;
}
return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance();
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder() {
if (contextCase_ == 2) {
return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_;
}
return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance();
}
public static final int LOCATION_FIELD_NUMBER = 3;
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public boolean hasLocation() {
return contextCase_ == 3;
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() {
if (contextCase_ == 3) {
return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_;
}
return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance();
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() {
if (contextCase_ == 3) {
return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_;
}
return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance();
}
public static final int IDENTITY_FIELD_NUMBER = 4;
/**
*
* Special flag indicating a globally-usable identity card for the user.
*
*
* bool identity = 4;
*/
public boolean getIdentity() {
if (contextCase_ == 4) {
return (java.lang.Boolean) context_;
}
return false;
}
public static final int PUBLIC_KEY_FIELD_NUMBER = 5;
private io.opencannabis.schema.crypto.primitives.KeyMaterial publicKey_;
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public boolean hasPublicKey() {
return publicKey_ != null;
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public io.opencannabis.schema.crypto.primitives.KeyMaterial getPublicKey() {
return publicKey_ == null ? io.opencannabis.schema.crypto.primitives.KeyMaterial.getDefaultInstance() : publicKey_;
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public io.opencannabis.schema.crypto.primitives.KeyMaterialOrBuilder getPublicKeyOrBuilder() {
return getPublicKey();
}
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 (user_ != null) {
output.writeMessage(1, getUser());
}
if (contextCase_ == 2) {
output.writeMessage(2, (io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_);
}
if (contextCase_ == 3) {
output.writeMessage(3, (io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_);
}
if (contextCase_ == 4) {
output.writeBool(
4, (boolean)((java.lang.Boolean) context_));
}
if (publicKey_ != null) {
output.writeMessage(5, getPublicKey());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (user_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUser());
}
if (contextCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_);
}
if (contextCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_);
}
if (contextCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
4, (boolean)((java.lang.Boolean) context_));
}
if (publicKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPublicKey());
}
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.CardProvision.Request)) {
return super.equals(obj);
}
io.bloombox.schema.services.wallet.v1.CardProvision.Request other = (io.bloombox.schema.services.wallet.v1.CardProvision.Request) obj;
if (hasUser() != other.hasUser()) return false;
if (hasUser()) {
if (!getUser()
.equals(other.getUser())) return false;
}
if (hasPublicKey() != other.hasPublicKey()) return false;
if (hasPublicKey()) {
if (!getPublicKey()
.equals(other.getPublicKey())) return false;
}
if (!getContextCase().equals(other.getContextCase())) return false;
switch (contextCase_) {
case 2:
if (!getPartner()
.equals(other.getPartner())) return false;
break;
case 3:
if (!getLocation()
.equals(other.getLocation())) return false;
break;
case 4:
if (getIdentity()
!= other.getIdentity()) 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();
if (hasUser()) {
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
}
if (hasPublicKey()) {
hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getPublicKey().hashCode();
}
switch (contextCase_) {
case 2:
hash = (37 * hash) + PARTNER_FIELD_NUMBER;
hash = (53 * hash) + getPartner().hashCode();
break;
case 3:
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
break;
case 4:
hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIdentity());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.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.CardProvision.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.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.CardProvision.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.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.CardProvision.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.CardProvision.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.CardProvision.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.CardProvision.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.CardProvision.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.CardProvision.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.CardProvision.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, issued from the user's perspective, to issue a new digital card.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardProvision.Request)
io.bloombox.schema.services.wallet.v1.CardProvision.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardProvision_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_CardProvision_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.Request.class, io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder.class);
}
// Construct using io.bloombox.schema.services.wallet.v1.CardProvision.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();
if (userBuilder_ == null) {
user_ = null;
} else {
user_ = null;
userBuilder_ = null;
}
if (publicKeyBuilder_ == null) {
publicKey_ = null;
} else {
publicKey_ = null;
publicKeyBuilder_ = null;
}
contextCase_ = 0;
context_ = null;
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_CardProvision_Request_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Request getDefaultInstanceForType() {
return io.bloombox.schema.services.wallet.v1.CardProvision.Request.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Request build() {
io.bloombox.schema.services.wallet.v1.CardProvision.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Request buildPartial() {
io.bloombox.schema.services.wallet.v1.CardProvision.Request result = new io.bloombox.schema.services.wallet.v1.CardProvision.Request(this);
if (userBuilder_ == null) {
result.user_ = user_;
} else {
result.user_ = userBuilder_.build();
}
if (contextCase_ == 2) {
if (partnerBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = partnerBuilder_.build();
}
}
if (contextCase_ == 3) {
if (locationBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = locationBuilder_.build();
}
}
if (contextCase_ == 4) {
result.context_ = context_;
}
if (publicKeyBuilder_ == null) {
result.publicKey_ = publicKey_;
} else {
result.publicKey_ = publicKeyBuilder_.build();
}
result.contextCase_ = contextCase_;
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.CardProvision.Request) {
return mergeFrom((io.bloombox.schema.services.wallet.v1.CardProvision.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardProvision.Request other) {
if (other == io.bloombox.schema.services.wallet.v1.CardProvision.Request.getDefaultInstance()) return this;
if (other.hasUser()) {
mergeUser(other.getUser());
}
if (other.hasPublicKey()) {
mergePublicKey(other.getPublicKey());
}
switch (other.getContextCase()) {
case PARTNER: {
mergePartner(other.getPartner());
break;
}
case LOCATION: {
mergeLocation(other.getLocation());
break;
}
case IDENTITY: {
setIdentity(other.getIdentity());
break;
}
case CONTEXT_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.services.wallet.v1.CardProvision.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.wallet.v1.CardProvision.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int contextCase_ = 0;
private java.lang.Object context_;
public ContextCase
getContextCase() {
return ContextCase.forNumber(
contextCase_);
}
public Builder clearContext() {
contextCase_ = 0;
context_ = null;
onChanged();
return this;
}
private io.bloombox.schema.identity.AppUserKey.UserKey user_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.identity.AppUserKey.UserKey, io.bloombox.schema.identity.AppUserKey.UserKey.Builder, io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder> userBuilder_;
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public boolean hasUser() {
return userBuilder_ != null || user_ != null;
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public io.bloombox.schema.identity.AppUserKey.UserKey getUser() {
if (userBuilder_ == null) {
return user_ == null ? io.bloombox.schema.identity.AppUserKey.UserKey.getDefaultInstance() : user_;
} else {
return userBuilder_.getMessage();
}
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public Builder setUser(io.bloombox.schema.identity.AppUserKey.UserKey value) {
if (userBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
onChanged();
} else {
userBuilder_.setMessage(value);
}
return this;
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public Builder setUser(
io.bloombox.schema.identity.AppUserKey.UserKey.Builder builderForValue) {
if (userBuilder_ == null) {
user_ = builderForValue.build();
onChanged();
} else {
userBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public Builder mergeUser(io.bloombox.schema.identity.AppUserKey.UserKey value) {
if (userBuilder_ == null) {
if (user_ != null) {
user_ =
io.bloombox.schema.identity.AppUserKey.UserKey.newBuilder(user_).mergeFrom(value).buildPartial();
} else {
user_ = value;
}
onChanged();
} else {
userBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public Builder clearUser() {
if (userBuilder_ == null) {
user_ = null;
onChanged();
} else {
user_ = null;
userBuilder_ = null;
}
return this;
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public io.bloombox.schema.identity.AppUserKey.UserKey.Builder getUserBuilder() {
onChanged();
return getUserFieldBuilder().getBuilder();
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
public io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder getUserOrBuilder() {
if (userBuilder_ != null) {
return userBuilder_.getMessageOrBuilder();
} else {
return user_ == null ?
io.bloombox.schema.identity.AppUserKey.UserKey.getDefaultInstance() : user_;
}
}
/**
*
* User that the card provision request is being issued for.
*
*
* .bloombox.identity.UserKey user = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.identity.AppUserKey.UserKey, io.bloombox.schema.identity.AppUserKey.UserKey.Builder, io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder>
getUserFieldBuilder() {
if (userBuilder_ == null) {
userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.identity.AppUserKey.UserKey, io.bloombox.schema.identity.AppUserKey.UserKey.Builder, io.bloombox.schema.identity.AppUserKey.UserKeyOrBuilder>(
getUser(),
getParentForChildren(),
isClean());
user_ = null;
}
return userBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.PartnerMeta.PartnerKey, io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder, io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder> partnerBuilder_;
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public boolean hasPartner() {
return contextCase_ == 2;
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public io.bloombox.schema.partner.PartnerMeta.PartnerKey getPartner() {
if (partnerBuilder_ == null) {
if (contextCase_ == 2) {
return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_;
}
return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance();
} else {
if (contextCase_ == 2) {
return partnerBuilder_.getMessage();
}
return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance();
}
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public Builder setPartner(io.bloombox.schema.partner.PartnerMeta.PartnerKey value) {
if (partnerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
partnerBuilder_.setMessage(value);
}
contextCase_ = 2;
return this;
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public Builder setPartner(
io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder builderForValue) {
if (partnerBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
partnerBuilder_.setMessage(builderForValue.build());
}
contextCase_ = 2;
return this;
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public Builder mergePartner(io.bloombox.schema.partner.PartnerMeta.PartnerKey value) {
if (partnerBuilder_ == null) {
if (contextCase_ == 2 &&
context_ != io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance()) {
context_ = io.bloombox.schema.partner.PartnerMeta.PartnerKey.newBuilder((io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_)
.mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
if (contextCase_ == 2) {
partnerBuilder_.mergeFrom(value);
}
partnerBuilder_.setMessage(value);
}
contextCase_ = 2;
return this;
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public Builder clearPartner() {
if (partnerBuilder_ == null) {
if (contextCase_ == 2) {
contextCase_ = 0;
context_ = null;
onChanged();
}
} else {
if (contextCase_ == 2) {
contextCase_ = 0;
context_ = null;
}
partnerBuilder_.clear();
}
return this;
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder getPartnerBuilder() {
return getPartnerFieldBuilder().getBuilder();
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
public io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder getPartnerOrBuilder() {
if ((contextCase_ == 2) && (partnerBuilder_ != null)) {
return partnerBuilder_.getMessageOrBuilder();
} else {
if (contextCase_ == 2) {
return (io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_;
}
return io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance();
}
}
/**
*
* Partner record for which this card is being provisioned.
*
*
* .bloombox.partner.PartnerKey partner = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.PartnerMeta.PartnerKey, io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder, io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder>
getPartnerFieldBuilder() {
if (partnerBuilder_ == null) {
if (!(contextCase_ == 2)) {
context_ = io.bloombox.schema.partner.PartnerMeta.PartnerKey.getDefaultInstance();
}
partnerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.PartnerMeta.PartnerKey, io.bloombox.schema.partner.PartnerMeta.PartnerKey.Builder, io.bloombox.schema.partner.PartnerMeta.PartnerKeyOrBuilder>(
(io.bloombox.schema.partner.PartnerMeta.PartnerKey) context_,
getParentForChildren(),
isClean());
context_ = null;
}
contextCase_ = 2;
onChanged();;
return partnerBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder> locationBuilder_;
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public boolean hasLocation() {
return contextCase_ == 3;
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() {
if (locationBuilder_ == null) {
if (contextCase_ == 3) {
return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_;
}
return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance();
} else {
if (contextCase_ == 3) {
return locationBuilder_.getMessage();
}
return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance();
}
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public Builder setLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
locationBuilder_.setMessage(value);
}
contextCase_ = 3;
return this;
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public Builder setLocation(
io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder builderForValue) {
if (locationBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
contextCase_ = 3;
return this;
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public Builder mergeLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) {
if (locationBuilder_ == null) {
if (contextCase_ == 3 &&
context_ != io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance()) {
context_ = io.bloombox.schema.partner.LocationAccountKey.LocationKey.newBuilder((io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_)
.mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
if (contextCase_ == 3) {
locationBuilder_.mergeFrom(value);
}
locationBuilder_.setMessage(value);
}
contextCase_ = 3;
return this;
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
if (contextCase_ == 3) {
contextCase_ = 0;
context_ = null;
onChanged();
}
} else {
if (contextCase_ == 3) {
contextCase_ = 0;
context_ = null;
}
locationBuilder_.clear();
}
return this;
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder getLocationBuilder() {
return getLocationFieldBuilder().getBuilder();
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() {
if ((contextCase_ == 3) && (locationBuilder_ != null)) {
return locationBuilder_.getMessageOrBuilder();
} else {
if (contextCase_ == 3) {
return (io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_;
}
return io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance();
}
}
/**
*
* Location record for which this card is being provisioned.
*
*
* .bloombox.partner.LocationKey location = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
if (!(contextCase_ == 3)) {
context_ = io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance();
}
locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder>(
(io.bloombox.schema.partner.LocationAccountKey.LocationKey) context_,
getParentForChildren(),
isClean());
context_ = null;
}
contextCase_ = 3;
onChanged();;
return locationBuilder_;
}
/**
*
* Special flag indicating a globally-usable identity card for the user.
*
*
* bool identity = 4;
*/
public boolean getIdentity() {
if (contextCase_ == 4) {
return (java.lang.Boolean) context_;
}
return false;
}
/**
*
* Special flag indicating a globally-usable identity card for the user.
*
*
* bool identity = 4;
*/
public Builder setIdentity(boolean value) {
contextCase_ = 4;
context_ = value;
onChanged();
return this;
}
/**
*
* Special flag indicating a globally-usable identity card for the user.
*
*
* bool identity = 4;
*/
public Builder clearIdentity() {
if (contextCase_ == 4) {
contextCase_ = 0;
context_ = null;
onChanged();
}
return this;
}
private io.opencannabis.schema.crypto.primitives.KeyMaterial publicKey_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.crypto.primitives.KeyMaterial, io.opencannabis.schema.crypto.primitives.KeyMaterial.Builder, io.opencannabis.schema.crypto.primitives.KeyMaterialOrBuilder> publicKeyBuilder_;
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public boolean hasPublicKey() {
return publicKeyBuilder_ != null || publicKey_ != null;
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public io.opencannabis.schema.crypto.primitives.KeyMaterial getPublicKey() {
if (publicKeyBuilder_ == null) {
return publicKey_ == null ? io.opencannabis.schema.crypto.primitives.KeyMaterial.getDefaultInstance() : publicKey_;
} else {
return publicKeyBuilder_.getMessage();
}
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public Builder setPublicKey(io.opencannabis.schema.crypto.primitives.KeyMaterial value) {
if (publicKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
publicKey_ = value;
onChanged();
} else {
publicKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public Builder setPublicKey(
io.opencannabis.schema.crypto.primitives.KeyMaterial.Builder builderForValue) {
if (publicKeyBuilder_ == null) {
publicKey_ = builderForValue.build();
onChanged();
} else {
publicKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public Builder mergePublicKey(io.opencannabis.schema.crypto.primitives.KeyMaterial value) {
if (publicKeyBuilder_ == null) {
if (publicKey_ != null) {
publicKey_ =
io.opencannabis.schema.crypto.primitives.KeyMaterial.newBuilder(publicKey_).mergeFrom(value).buildPartial();
} else {
publicKey_ = value;
}
onChanged();
} else {
publicKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public Builder clearPublicKey() {
if (publicKeyBuilder_ == null) {
publicKey_ = null;
onChanged();
} else {
publicKey_ = null;
publicKeyBuilder_ = null;
}
return this;
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public io.opencannabis.schema.crypto.primitives.KeyMaterial.Builder getPublicKeyBuilder() {
onChanged();
return getPublicKeyFieldBuilder().getBuilder();
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
public io.opencannabis.schema.crypto.primitives.KeyMaterialOrBuilder getPublicKeyOrBuilder() {
if (publicKeyBuilder_ != null) {
return publicKeyBuilder_.getMessageOrBuilder();
} else {
return publicKey_ == null ?
io.opencannabis.schema.crypto.primitives.KeyMaterial.getDefaultInstance() : publicKey_;
}
}
/**
*
* Public key for the user, so their signatures later on may be verified.
*
*
* .opencannabis.crypto.KeyMaterial public_key = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.crypto.primitives.KeyMaterial, io.opencannabis.schema.crypto.primitives.KeyMaterial.Builder, io.opencannabis.schema.crypto.primitives.KeyMaterialOrBuilder>
getPublicKeyFieldBuilder() {
if (publicKeyBuilder_ == null) {
publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.crypto.primitives.KeyMaterial, io.opencannabis.schema.crypto.primitives.KeyMaterial.Builder, io.opencannabis.schema.crypto.primitives.KeyMaterialOrBuilder>(
getPublicKey(),
getParentForChildren(),
isClean());
publicKey_ = null;
}
return publicKeyBuilder_;
}
@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.CardProvision.Request)
}
// @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardProvision.Request)
private static final io.bloombox.schema.services.wallet.v1.CardProvision.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardProvision.Request();
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.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.CardProvision.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.wallet.v1.CardProvision.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
boolean hasCard();
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
io.bloombox.schema.pass.PassIDKey.PassKey getCard();
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
io.bloombox.schema.pass.PassIDKey.PassKeyOrBuilder getCardOrBuilder();
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
java.lang.String getNonce();
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
com.google.protobuf.ByteString
getNonceBytes();
}
/**
*
* Response to a request to provision a new digital card.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardProvision.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
nonce_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
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: {
io.bloombox.schema.pass.PassIDKey.PassKey.Builder subBuilder = null;
if (card_ != null) {
subBuilder = card_.toBuilder();
}
card_ = input.readMessage(io.bloombox.schema.pass.PassIDKey.PassKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(card_);
card_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nonce_ = 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_CardProvision_Response_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_CardProvision_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.Response.class, io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder.class);
}
public static final int CARD_FIELD_NUMBER = 1;
private io.bloombox.schema.pass.PassIDKey.PassKey card_;
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public boolean hasCard() {
return card_ != null;
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public io.bloombox.schema.pass.PassIDKey.PassKey getCard() {
return card_ == null ? io.bloombox.schema.pass.PassIDKey.PassKey.getDefaultInstance() : card_;
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public io.bloombox.schema.pass.PassIDKey.PassKeyOrBuilder getCardOrBuilder() {
return getCard();
}
public static final int NONCE_FIELD_NUMBER = 2;
private volatile java.lang.Object nonce_;
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
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();
nonce_ = s;
return s;
}
}
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = 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 (card_ != null) {
output.writeMessage(1, getCard());
}
if (!getNonceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nonce_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (card_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCard());
}
if (!getNonceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nonce_);
}
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.CardProvision.Response)) {
return super.equals(obj);
}
io.bloombox.schema.services.wallet.v1.CardProvision.Response other = (io.bloombox.schema.services.wallet.v1.CardProvision.Response) obj;
if (hasCard() != other.hasCard()) return false;
if (hasCard()) {
if (!getCard()
.equals(other.getCard())) return false;
}
if (!getNonce()
.equals(other.getNonce())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCard()) {
hash = (37 * hash) + CARD_FIELD_NUMBER;
hash = (53 * hash) + getCard().hashCode();
}
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Response 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.CardProvision.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Response 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.CardProvision.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Response 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.CardProvision.Response 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.CardProvision.Response 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.CardProvision.Response 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.CardProvision.Response 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.CardProvision.Response 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.CardProvision.Response 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.CardProvision.Response 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;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardProvision.Response)
io.bloombox.schema.services.wallet.v1.CardProvision.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardProvision_Response_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_CardProvision_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.Response.class, io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder.class);
}
// Construct using io.bloombox.schema.services.wallet.v1.CardProvision.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (cardBuilder_ == null) {
card_ = null;
} else {
card_ = null;
cardBuilder_ = null;
}
nonce_ = "";
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_CardProvision_Response_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Response getDefaultInstanceForType() {
return io.bloombox.schema.services.wallet.v1.CardProvision.Response.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Response build() {
io.bloombox.schema.services.wallet.v1.CardProvision.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Response buildPartial() {
io.bloombox.schema.services.wallet.v1.CardProvision.Response result = new io.bloombox.schema.services.wallet.v1.CardProvision.Response(this);
if (cardBuilder_ == null) {
result.card_ = card_;
} else {
result.card_ = cardBuilder_.build();
}
result.nonce_ = nonce_;
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.CardProvision.Response) {
return mergeFrom((io.bloombox.schema.services.wallet.v1.CardProvision.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardProvision.Response other) {
if (other == io.bloombox.schema.services.wallet.v1.CardProvision.Response.getDefaultInstance()) return this;
if (other.hasCard()) {
mergeCard(other.getCard());
}
if (!other.getNonce().isEmpty()) {
nonce_ = other.nonce_;
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.CardProvision.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.wallet.v1.CardProvision.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.bloombox.schema.pass.PassIDKey.PassKey card_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.pass.PassIDKey.PassKey, io.bloombox.schema.pass.PassIDKey.PassKey.Builder, io.bloombox.schema.pass.PassIDKey.PassKeyOrBuilder> cardBuilder_;
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public boolean hasCard() {
return cardBuilder_ != null || card_ != null;
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public io.bloombox.schema.pass.PassIDKey.PassKey getCard() {
if (cardBuilder_ == null) {
return card_ == null ? io.bloombox.schema.pass.PassIDKey.PassKey.getDefaultInstance() : card_;
} else {
return cardBuilder_.getMessage();
}
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public Builder setCard(io.bloombox.schema.pass.PassIDKey.PassKey value) {
if (cardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
card_ = value;
onChanged();
} else {
cardBuilder_.setMessage(value);
}
return this;
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public Builder setCard(
io.bloombox.schema.pass.PassIDKey.PassKey.Builder builderForValue) {
if (cardBuilder_ == null) {
card_ = builderForValue.build();
onChanged();
} else {
cardBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public Builder mergeCard(io.bloombox.schema.pass.PassIDKey.PassKey value) {
if (cardBuilder_ == null) {
if (card_ != null) {
card_ =
io.bloombox.schema.pass.PassIDKey.PassKey.newBuilder(card_).mergeFrom(value).buildPartial();
} else {
card_ = value;
}
onChanged();
} else {
cardBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public Builder clearCard() {
if (cardBuilder_ == null) {
card_ = null;
onChanged();
} else {
card_ = null;
cardBuilder_ = null;
}
return this;
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public io.bloombox.schema.pass.PassIDKey.PassKey.Builder getCardBuilder() {
onChanged();
return getCardFieldBuilder().getBuilder();
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
public io.bloombox.schema.pass.PassIDKey.PassKeyOrBuilder getCardOrBuilder() {
if (cardBuilder_ != null) {
return cardBuilder_.getMessageOrBuilder();
} else {
return card_ == null ?
io.bloombox.schema.pass.PassIDKey.PassKey.getDefaultInstance() : card_;
}
}
/**
*
* Wallet pass key provisioned for the requested ID card.
*
*
* .bloombox.identity.pass.PassKey card = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.pass.PassIDKey.PassKey, io.bloombox.schema.pass.PassIDKey.PassKey.Builder, io.bloombox.schema.pass.PassIDKey.PassKeyOrBuilder>
getCardFieldBuilder() {
if (cardBuilder_ == null) {
cardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.pass.PassIDKey.PassKey, io.bloombox.schema.pass.PassIDKey.PassKey.Builder, io.bloombox.schema.pass.PassIDKey.PassKeyOrBuilder>(
getCard(),
getParentForChildren(),
isClean());
card_ = null;
}
return cardBuilder_;
}
private java.lang.Object nonce_ = "";
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
public java.lang.String getNonce() {
java.lang.Object ref = nonce_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nonce_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
public Builder setNonce(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nonce_ = value;
onChanged();
return this;
}
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
public Builder clearNonce() {
nonce_ = getDefaultInstance().getNonce();
onChanged();
return this;
}
/**
*
* Issuance nonce, used in the card-issue step to claim this provisioned digital wallet card.
*
*
* string nonce = 2;
*/
public Builder setNonceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nonce_ = 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.CardProvision.Response)
}
// @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardProvision.Response)
private static final io.bloombox.schema.services.wallet.v1.CardProvision.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardProvision.Response();
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(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.CardProvision.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperationOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.wallet.v1.CardProvision.Operation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
boolean hasRequest();
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
io.bloombox.schema.services.wallet.v1.CardProvision.Request getRequest();
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
io.bloombox.schema.services.wallet.v1.CardProvision.RequestOrBuilder getRequestOrBuilder();
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
boolean hasResponse();
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
io.bloombox.schema.services.wallet.v1.CardProvision.Response getResponse();
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
io.bloombox.schema.services.wallet.v1.CardProvision.ResponseOrBuilder getResponseOrBuilder();
}
/**
*
* Specifies an operation to provision a new digital card.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision.Operation}
*/
public static final class Operation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardProvision.Operation)
OperationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Operation.newBuilder() to construct.
private Operation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Operation() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Operation(
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: {
io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.bloombox.schema.services.wallet.v1.CardProvision.Request.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder subBuilder = null;
if (response_ != null) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(io.bloombox.schema.services.wallet.v1.CardProvision.Response.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardProvision_Operation_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_CardProvision_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.Operation.class, io.bloombox.schema.services.wallet.v1.CardProvision.Operation.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private io.bloombox.schema.services.wallet.v1.CardProvision.Request request_;
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.Request getRequest() {
return request_ == null ? io.bloombox.schema.services.wallet.v1.CardProvision.Request.getDefaultInstance() : request_;
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.RequestOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int RESPONSE_FIELD_NUMBER = 2;
private io.bloombox.schema.services.wallet.v1.CardProvision.Response response_;
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public boolean hasResponse() {
return response_ != null;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.Response getResponse() {
return response_ == null ? io.bloombox.schema.services.wallet.v1.CardProvision.Response.getDefaultInstance() : response_;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.ResponseOrBuilder getResponseOrBuilder() {
return getResponse();
}
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 (request_ != null) {
output.writeMessage(1, getRequest());
}
if (response_ != null) {
output.writeMessage(2, getResponse());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
if (response_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResponse());
}
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.CardProvision.Operation)) {
return super.equals(obj);
}
io.bloombox.schema.services.wallet.v1.CardProvision.Operation other = (io.bloombox.schema.services.wallet.v1.CardProvision.Operation) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (hasResponse() != other.hasResponse()) return false;
if (hasResponse()) {
if (!getResponse()
.equals(other.getResponse())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (hasResponse()) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponse().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Operation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Operation 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.CardProvision.Operation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Operation 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.CardProvision.Operation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Operation 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.CardProvision.Operation 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.CardProvision.Operation 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.CardProvision.Operation 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.CardProvision.Operation 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.CardProvision.Operation 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.CardProvision.Operation 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.CardProvision.Operation 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 operation to provision a new digital card.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision.Operation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardProvision.Operation)
io.bloombox.schema.services.wallet.v1.CardProvision.OperationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardProvision_Operation_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_CardProvision_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.Operation.class, io.bloombox.schema.services.wallet.v1.CardProvision.Operation.Builder.class);
}
// Construct using io.bloombox.schema.services.wallet.v1.CardProvision.Operation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
if (responseBuilder_ == null) {
response_ = null;
} else {
response_ = null;
responseBuilder_ = null;
}
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_CardProvision_Operation_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Operation getDefaultInstanceForType() {
return io.bloombox.schema.services.wallet.v1.CardProvision.Operation.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Operation build() {
io.bloombox.schema.services.wallet.v1.CardProvision.Operation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision.Operation buildPartial() {
io.bloombox.schema.services.wallet.v1.CardProvision.Operation result = new io.bloombox.schema.services.wallet.v1.CardProvision.Operation(this);
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
if (responseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.bloombox.schema.services.wallet.v1.CardProvision.Operation) {
return mergeFrom((io.bloombox.schema.services.wallet.v1.CardProvision.Operation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardProvision.Operation other) {
if (other == io.bloombox.schema.services.wallet.v1.CardProvision.Operation.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.hasResponse()) {
mergeResponse(other.getResponse());
}
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.CardProvision.Operation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.wallet.v1.CardProvision.Operation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.bloombox.schema.services.wallet.v1.CardProvision.Request request_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardProvision.Request, io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder, io.bloombox.schema.services.wallet.v1.CardProvision.RequestOrBuilder> requestBuilder_;
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.Request getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.bloombox.schema.services.wallet.v1.CardProvision.Request.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public Builder setRequest(io.bloombox.schema.services.wallet.v1.CardProvision.Request value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public Builder setRequest(
io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public Builder mergeRequest(io.bloombox.schema.services.wallet.v1.CardProvision.Request value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.bloombox.schema.services.wallet.v1.CardProvision.Request.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.RequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.bloombox.schema.services.wallet.v1.CardProvision.Request.getDefaultInstance() : request_;
}
}
/**
*
* Request to provision a new card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Request request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardProvision.Request, io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder, io.bloombox.schema.services.wallet.v1.CardProvision.RequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardProvision.Request, io.bloombox.schema.services.wallet.v1.CardProvision.Request.Builder, io.bloombox.schema.services.wallet.v1.CardProvision.RequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private io.bloombox.schema.services.wallet.v1.CardProvision.Response response_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardProvision.Response, io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder, io.bloombox.schema.services.wallet.v1.CardProvision.ResponseOrBuilder> responseBuilder_;
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public boolean hasResponse() {
return responseBuilder_ != null || response_ != null;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.Response getResponse() {
if (responseBuilder_ == null) {
return response_ == null ? io.bloombox.schema.services.wallet.v1.CardProvision.Response.getDefaultInstance() : response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public Builder setResponse(io.bloombox.schema.services.wallet.v1.CardProvision.Response value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
return this;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public Builder setResponse(
io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public Builder mergeResponse(io.bloombox.schema.services.wallet.v1.CardProvision.Response value) {
if (responseBuilder_ == null) {
if (response_ != null) {
response_ =
io.bloombox.schema.services.wallet.v1.CardProvision.Response.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = null;
onChanged();
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder getResponseBuilder() {
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
public io.bloombox.schema.services.wallet.v1.CardProvision.ResponseOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_ == null ?
io.bloombox.schema.services.wallet.v1.CardProvision.Response.getDefaultInstance() : response_;
}
}
/**
*
* Response to a request to provision a new digital card.
*
*
* .bloombox.services.wallet.v1.CardProvision.Response response = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardProvision.Response, io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder, io.bloombox.schema.services.wallet.v1.CardProvision.ResponseOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardProvision.Response, io.bloombox.schema.services.wallet.v1.CardProvision.Response.Builder, io.bloombox.schema.services.wallet.v1.CardProvision.ResponseOrBuilder>(
getResponse(),
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
@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.CardProvision.Operation)
}
// @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardProvision.Operation)
private static final io.bloombox.schema.services.wallet.v1.CardProvision.Operation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardProvision.Operation();
}
public static io.bloombox.schema.services.wallet.v1.CardProvision.Operation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Operation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Operation(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.CardProvision.Operation 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.CardProvision)) {
return super.equals(obj);
}
io.bloombox.schema.services.wallet.v1.CardProvision other = (io.bloombox.schema.services.wallet.v1.CardProvision) 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.CardProvision parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision 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.CardProvision parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision 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.CardProvision parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardProvision 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.CardProvision 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.CardProvision 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.CardProvision 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.CardProvision 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.CardProvision 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.CardProvision 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.CardProvision 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 request and response flow for an RPC operation to provision a new digital wallet card. Provisioning a
* card occurs first in the card lifecycle, before the card is issued, and after the user has already satisfied any
* constraints or requirements related to the partner or location context for which the card is being issued.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardProvision}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardProvision)
io.bloombox.schema.services.wallet.v1.CardProvisionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardProvision_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_CardProvision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardProvision.class, io.bloombox.schema.services.wallet.v1.CardProvision.Builder.class);
}
// Construct using io.bloombox.schema.services.wallet.v1.CardProvision.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_CardProvision_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision getDefaultInstanceForType() {
return io.bloombox.schema.services.wallet.v1.CardProvision.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision build() {
io.bloombox.schema.services.wallet.v1.CardProvision result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardProvision buildPartial() {
io.bloombox.schema.services.wallet.v1.CardProvision result = new io.bloombox.schema.services.wallet.v1.CardProvision(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.CardProvision) {
return mergeFrom((io.bloombox.schema.services.wallet.v1.CardProvision)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardProvision other) {
if (other == io.bloombox.schema.services.wallet.v1.CardProvision.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.CardProvision parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.wallet.v1.CardProvision) 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.CardProvision)
}
// @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardProvision)
private static final io.bloombox.schema.services.wallet.v1.CardProvision DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardProvision();
}
public static io.bloombox.schema.services.wallet.v1.CardProvision getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CardProvision parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CardProvision(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.CardProvision getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy