io.bloombox.schema.services.wallet.v1.CardVoid 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, on behalf of a user, to decommission a given card they own.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardVoid}
*/
public final class CardVoid extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardVoid)
CardVoidOrBuilder {
private static final long serialVersionUID = 0L;
// Use CardVoid.newBuilder() to construct.
private CardVoid(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CardVoid() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CardVoid(
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_CardVoid_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_CardVoid_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardVoid.class, io.bloombox.schema.services.wallet.v1.CardVoid.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.wallet.v1.CardVoid.Request)
com.google.protobuf.MessageOrBuilder {
/**
*
* Device library ID.
*
*
* string library = 1;
*/
java.lang.String getLibrary();
/**
*
* Device library ID.
*
*
* string library = 1;
*/
com.google.protobuf.ByteString
getLibraryBytes();
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
java.lang.String getPassType();
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
com.google.protobuf.ByteString
getPassTypeBytes();
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
java.lang.String getSerial();
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
com.google.protobuf.ByteString
getSerialBytes();
}
/**
*
* Request to void a digital card, on a user's behalf.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardVoid.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardVoid.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
library_ = "";
passType_ = "";
serial_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Request(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
library_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
passType_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
serial_ = s;
break;
}
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_CardVoid_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_CardVoid_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardVoid.Request.class, io.bloombox.schema.services.wallet.v1.CardVoid.Request.Builder.class);
}
public static final int LIBRARY_FIELD_NUMBER = 1;
private volatile java.lang.Object library_;
/**
*
* Device library ID.
*
*
* string library = 1;
*/
public java.lang.String getLibrary() {
java.lang.Object ref = library_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
library_ = s;
return s;
}
}
/**
*
* Device library ID.
*
*
* string library = 1;
*/
public com.google.protobuf.ByteString
getLibraryBytes() {
java.lang.Object ref = library_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
library_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASS_TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object passType_;
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
public java.lang.String getPassType() {
java.lang.Object ref = passType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passType_ = s;
return s;
}
}
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
public com.google.protobuf.ByteString
getPassTypeBytes() {
java.lang.Object ref = passType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERIAL_FIELD_NUMBER = 3;
private volatile java.lang.Object serial_;
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
public java.lang.String getSerial() {
java.lang.Object ref = serial_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serial_ = s;
return s;
}
}
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
public com.google.protobuf.ByteString
getSerialBytes() {
java.lang.Object ref = serial_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serial_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLibraryBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, library_);
}
if (!getPassTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passType_);
}
if (!getSerialBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serial_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLibraryBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, library_);
}
if (!getPassTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passType_);
}
if (!getSerialBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serial_);
}
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.CardVoid.Request)) {
return super.equals(obj);
}
io.bloombox.schema.services.wallet.v1.CardVoid.Request other = (io.bloombox.schema.services.wallet.v1.CardVoid.Request) obj;
if (!getLibrary()
.equals(other.getLibrary())) return false;
if (!getPassType()
.equals(other.getPassType())) return false;
if (!getSerial()
.equals(other.getSerial())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LIBRARY_FIELD_NUMBER;
hash = (53 * hash) + getLibrary().hashCode();
hash = (37 * hash) + PASS_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getPassType().hashCode();
hash = (37 * hash) + SERIAL_FIELD_NUMBER;
hash = (53 * hash) + getSerial().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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 to void a digital card, on a user's behalf.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardVoid.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardVoid.Request)
io.bloombox.schema.services.wallet.v1.CardVoid.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardVoid_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_CardVoid_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardVoid.Request.class, io.bloombox.schema.services.wallet.v1.CardVoid.Request.Builder.class);
}
// Construct using io.bloombox.schema.services.wallet.v1.CardVoid.Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
library_ = "";
passType_ = "";
serial_ = "";
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_CardVoid_Request_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid.Request getDefaultInstanceForType() {
return io.bloombox.schema.services.wallet.v1.CardVoid.Request.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid.Request build() {
io.bloombox.schema.services.wallet.v1.CardVoid.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid.Request buildPartial() {
io.bloombox.schema.services.wallet.v1.CardVoid.Request result = new io.bloombox.schema.services.wallet.v1.CardVoid.Request(this);
result.library_ = library_;
result.passType_ = passType_;
result.serial_ = serial_;
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.CardVoid.Request) {
return mergeFrom((io.bloombox.schema.services.wallet.v1.CardVoid.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardVoid.Request other) {
if (other == io.bloombox.schema.services.wallet.v1.CardVoid.Request.getDefaultInstance()) return this;
if (!other.getLibrary().isEmpty()) {
library_ = other.library_;
onChanged();
}
if (!other.getPassType().isEmpty()) {
passType_ = other.passType_;
onChanged();
}
if (!other.getSerial().isEmpty()) {
serial_ = other.serial_;
onChanged();
}
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.CardVoid.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.wallet.v1.CardVoid.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object library_ = "";
/**
*
* Device library ID.
*
*
* string library = 1;
*/
public java.lang.String getLibrary() {
java.lang.Object ref = library_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
library_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Device library ID.
*
*
* string library = 1;
*/
public com.google.protobuf.ByteString
getLibraryBytes() {
java.lang.Object ref = library_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
library_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Device library ID.
*
*
* string library = 1;
*/
public Builder setLibrary(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
library_ = value;
onChanged();
return this;
}
/**
*
* Device library ID.
*
*
* string library = 1;
*/
public Builder clearLibrary() {
library_ = getDefaultInstance().getLibrary();
onChanged();
return this;
}
/**
*
* Device library ID.
*
*
* string library = 1;
*/
public Builder setLibraryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
library_ = value;
onChanged();
return this;
}
private java.lang.Object passType_ = "";
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
public java.lang.String getPassType() {
java.lang.Object ref = passType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
public com.google.protobuf.ByteString
getPassTypeBytes() {
java.lang.Object ref = passType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
public Builder setPassType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passType_ = value;
onChanged();
return this;
}
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
public Builder clearPassType() {
passType_ = getDefaultInstance().getPassType();
onChanged();
return this;
}
/**
*
* Pass type ID.
*
*
* string pass_type = 2;
*/
public Builder setPassTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
passType_ = value;
onChanged();
return this;
}
private java.lang.Object serial_ = "";
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
public java.lang.String getSerial() {
java.lang.Object ref = serial_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serial_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
public com.google.protobuf.ByteString
getSerialBytes() {
java.lang.Object ref = serial_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serial_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
public Builder setSerial(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serial_ = value;
onChanged();
return this;
}
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
public Builder clearSerial() {
serial_ = getDefaultInstance().getSerial();
onChanged();
return this;
}
/**
*
* Serial number for the digital pass.
*
*
* string serial = 3;
*/
public Builder setSerialBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serial_ = 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.CardVoid.Request)
}
// @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardVoid.Request)
private static final io.bloombox.schema.services.wallet.v1.CardVoid.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardVoid.Request();
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperationOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.wallet.v1.CardVoid.Operation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
boolean hasRequest();
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
io.bloombox.schema.services.wallet.v1.CardVoid.Request getRequest();
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
io.bloombox.schema.services.wallet.v1.CardVoid.RequestOrBuilder getRequestOrBuilder();
/**
*
* Whether the deletion was successful or not.
*
*
* bool success = 2;
*/
boolean getSuccess();
}
/**
*
* Represents an entire operation to decommission a card on a user's behalf.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardVoid.Operation}
*/
public static final class Operation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.wallet.v1.CardVoid.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.CardVoid.Request.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.bloombox.schema.services.wallet.v1.CardVoid.Request.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 16: {
success_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
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_CardVoid_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_CardVoid_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardVoid.Operation.class, io.bloombox.schema.services.wallet.v1.CardVoid.Operation.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private io.bloombox.schema.services.wallet.v1.CardVoid.Request request_;
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardVoid.Request getRequest() {
return request_ == null ? io.bloombox.schema.services.wallet.v1.CardVoid.Request.getDefaultInstance() : request_;
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardVoid.RequestOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int SUCCESS_FIELD_NUMBER = 2;
private boolean success_;
/**
*
* Whether the deletion was successful or not.
*
*
* bool success = 2;
*/
public boolean getSuccess() {
return success_;
}
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 (success_ != false) {
output.writeBool(2, success_);
}
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 (success_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, success_);
}
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.CardVoid.Operation)) {
return super.equals(obj);
}
io.bloombox.schema.services.wallet.v1.CardVoid.Operation other = (io.bloombox.schema.services.wallet.v1.CardVoid.Operation) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (getSuccess()
!= other.getSuccess()) 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();
}
hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSuccess());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.Operation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.Operation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.Operation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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.CardVoid.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;
}
/**
*
* Represents an entire operation to decommission a card on a user's behalf.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardVoid.Operation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardVoid.Operation)
io.bloombox.schema.services.wallet.v1.CardVoid.OperationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardVoid_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_CardVoid_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardVoid.Operation.class, io.bloombox.schema.services.wallet.v1.CardVoid.Operation.Builder.class);
}
// Construct using io.bloombox.schema.services.wallet.v1.CardVoid.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;
}
success_ = false;
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_CardVoid_Operation_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid.Operation getDefaultInstanceForType() {
return io.bloombox.schema.services.wallet.v1.CardVoid.Operation.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid.Operation build() {
io.bloombox.schema.services.wallet.v1.CardVoid.Operation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid.Operation buildPartial() {
io.bloombox.schema.services.wallet.v1.CardVoid.Operation result = new io.bloombox.schema.services.wallet.v1.CardVoid.Operation(this);
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
result.success_ = success_;
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.CardVoid.Operation) {
return mergeFrom((io.bloombox.schema.services.wallet.v1.CardVoid.Operation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardVoid.Operation other) {
if (other == io.bloombox.schema.services.wallet.v1.CardVoid.Operation.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.getSuccess() != false) {
setSuccess(other.getSuccess());
}
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.CardVoid.Operation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.wallet.v1.CardVoid.Operation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.bloombox.schema.services.wallet.v1.CardVoid.Request request_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardVoid.Request, io.bloombox.schema.services.wallet.v1.CardVoid.Request.Builder, io.bloombox.schema.services.wallet.v1.CardVoid.RequestOrBuilder> requestBuilder_;
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardVoid.Request getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.bloombox.schema.services.wallet.v1.CardVoid.Request.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public Builder setRequest(io.bloombox.schema.services.wallet.v1.CardVoid.Request value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public Builder setRequest(
io.bloombox.schema.services.wallet.v1.CardVoid.Request.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public Builder mergeRequest(io.bloombox.schema.services.wallet.v1.CardVoid.Request value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.bloombox.schema.services.wallet.v1.CardVoid.Request.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardVoid.Request.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
public io.bloombox.schema.services.wallet.v1.CardVoid.RequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.bloombox.schema.services.wallet.v1.CardVoid.Request.getDefaultInstance() : request_;
}
}
/**
*
* Request to void a given digital card.
*
*
* .bloombox.services.wallet.v1.CardVoid.Request request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardVoid.Request, io.bloombox.schema.services.wallet.v1.CardVoid.Request.Builder, io.bloombox.schema.services.wallet.v1.CardVoid.RequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.wallet.v1.CardVoid.Request, io.bloombox.schema.services.wallet.v1.CardVoid.Request.Builder, io.bloombox.schema.services.wallet.v1.CardVoid.RequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private boolean success_ ;
/**
*
* Whether the deletion was successful or not.
*
*
* bool success = 2;
*/
public boolean getSuccess() {
return success_;
}
/**
*
* Whether the deletion was successful or not.
*
*
* bool success = 2;
*/
public Builder setSuccess(boolean value) {
success_ = value;
onChanged();
return this;
}
/**
*
* Whether the deletion was successful or not.
*
*
* bool success = 2;
*/
public Builder clearSuccess() {
success_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bloombox.services.wallet.v1.CardVoid.Operation)
}
// @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardVoid.Operation)
private static final io.bloombox.schema.services.wallet.v1.CardVoid.Operation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardVoid.Operation();
}
public static io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid.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.CardVoid)) {
return super.equals(obj);
}
io.bloombox.schema.services.wallet.v1.CardVoid other = (io.bloombox.schema.services.wallet.v1.CardVoid) 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.CardVoid parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid 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.CardVoid parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid 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.CardVoid parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.wallet.v1.CardVoid 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.CardVoid 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.CardVoid 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.CardVoid 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.CardVoid 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.CardVoid 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.CardVoid 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.CardVoid 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, on behalf of a user, to decommission a given card they own.
*
*
* Protobuf type {@code bloombox.services.wallet.v1.CardVoid}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.wallet.v1.CardVoid)
io.bloombox.schema.services.wallet.v1.CardVoidOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.wallet.v1.WalletServiceV1.internal_static_bloombox_services_wallet_v1_CardVoid_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_CardVoid_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.wallet.v1.CardVoid.class, io.bloombox.schema.services.wallet.v1.CardVoid.Builder.class);
}
// Construct using io.bloombox.schema.services.wallet.v1.CardVoid.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_CardVoid_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid getDefaultInstanceForType() {
return io.bloombox.schema.services.wallet.v1.CardVoid.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid build() {
io.bloombox.schema.services.wallet.v1.CardVoid result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.wallet.v1.CardVoid buildPartial() {
io.bloombox.schema.services.wallet.v1.CardVoid result = new io.bloombox.schema.services.wallet.v1.CardVoid(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.CardVoid) {
return mergeFrom((io.bloombox.schema.services.wallet.v1.CardVoid)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.wallet.v1.CardVoid other) {
if (other == io.bloombox.schema.services.wallet.v1.CardVoid.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.CardVoid parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.wallet.v1.CardVoid) 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.CardVoid)
}
// @@protoc_insertion_point(class_scope:bloombox.services.wallet.v1.CardVoid)
private static final io.bloombox.schema.services.wallet.v1.CardVoid DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.wallet.v1.CardVoid();
}
public static io.bloombox.schema.services.wallet.v1.CardVoid getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CardVoid parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CardVoid(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.CardVoid getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy