io.bloombox.schema.services.pos.v1beta1.FinalizeTicket 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: pos/v1beta1/POSService_Beta1.proto
package io.bloombox.schema.services.pos.v1beta1;
/**
*
* Specifies an RPC operation to finalize an existing, open ticket.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket}
*/
public final class FinalizeTicket extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.FinalizeTicket)
FinalizeTicketOrBuilder {
private static final long serialVersionUID = 0L;
// Use FinalizeTicket.newBuilder() to construct.
private FinalizeTicket(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FinalizeTicket() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FinalizeTicket(
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.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.FinalizeTicket.Request)
com.google.protobuf.MessageOrBuilder {
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
boolean hasRegister();
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getRegister();
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder getRegisterOrBuilder();
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
boolean hasPurchase();
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey getPurchase();
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKeyOrBuilder getPurchaseOrBuilder();
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
java.lang.String getSession();
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
com.google.protobuf.ByteString
getSessionBytes();
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
boolean hasSignature();
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
io.opencannabis.schema.crypto.Signature getSignature();
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
io.opencannabis.schema.crypto.SignatureOrBuilder getSignatureOrBuilder();
}
/**
*
* Specifies a request to finalize a purchase ticket.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.FinalizeTicket.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() {
session_ = "";
}
@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.partner.PartnerDevices.PartnerDeviceKey.Builder subBuilder = null;
if (register_ != null) {
subBuilder = register_.toBuilder();
}
register_ = input.readMessage(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(register_);
register_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.Builder subBuilder = null;
if (purchase_ != null) {
subBuilder = purchase_.toBuilder();
}
purchase_ = input.readMessage(io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(purchase_);
purchase_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
session_ = s;
break;
}
case 34: {
io.opencannabis.schema.crypto.Signature.Builder subBuilder = null;
if (signature_ != null) {
subBuilder = signature_.toBuilder();
}
signature_ = input.readMessage(io.opencannabis.schema.crypto.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signature_);
signature_ = 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.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.Builder.class);
}
public static final int REGISTER_FIELD_NUMBER = 1;
private io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey register_;
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public boolean hasRegister() {
return register_ != null;
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getRegister() {
return register_ == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.getDefaultInstance() : register_;
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder getRegisterOrBuilder() {
return getRegister();
}
public static final int PURCHASE_FIELD_NUMBER = 2;
private io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey purchase_;
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public boolean hasPurchase() {
return purchase_ != null;
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey getPurchase() {
return purchase_ == null ? io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.getDefaultInstance() : purchase_;
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKeyOrBuilder getPurchaseOrBuilder() {
return getPurchase();
}
public static final int SESSION_FIELD_NUMBER = 3;
private volatile java.lang.Object session_;
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
public java.lang.String getSession() {
java.lang.Object ref = session_;
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();
session_ = s;
return s;
}
}
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
public com.google.protobuf.ByteString
getSessionBytes() {
java.lang.Object ref = session_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
session_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SIGNATURE_FIELD_NUMBER = 4;
private io.opencannabis.schema.crypto.Signature signature_;
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public io.opencannabis.schema.crypto.Signature getSignature() {
return signature_ == null ? io.opencannabis.schema.crypto.Signature.getDefaultInstance() : signature_;
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public io.opencannabis.schema.crypto.SignatureOrBuilder getSignatureOrBuilder() {
return getSignature();
}
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 (register_ != null) {
output.writeMessage(1, getRegister());
}
if (purchase_ != null) {
output.writeMessage(2, getPurchase());
}
if (!getSessionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, session_);
}
if (signature_ != null) {
output.writeMessage(4, getSignature());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (register_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRegister());
}
if (purchase_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPurchase());
}
if (!getSessionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, session_);
}
if (signature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSignature());
}
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.pos.v1beta1.FinalizeTicket.Request)) {
return super.equals(obj);
}
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request other = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request) obj;
if (hasRegister() != other.hasRegister()) return false;
if (hasRegister()) {
if (!getRegister()
.equals(other.getRegister())) return false;
}
if (hasPurchase() != other.hasPurchase()) return false;
if (hasPurchase()) {
if (!getPurchase()
.equals(other.getPurchase())) return false;
}
if (!getSession()
.equals(other.getSession())) return false;
if (hasSignature() != other.hasSignature()) return false;
if (hasSignature()) {
if (!getSignature()
.equals(other.getSignature())) 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 (hasRegister()) {
hash = (37 * hash) + REGISTER_FIELD_NUMBER;
hash = (53 * hash) + getRegister().hashCode();
}
if (hasPurchase()) {
hash = (37 * hash) + PURCHASE_FIELD_NUMBER;
hash = (53 * hash) + getPurchase().hashCode();
}
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
if (hasSignature()) {
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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;
}
/**
*
* Specifies a request to finalize a purchase ticket.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.FinalizeTicket.Request)
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.Builder.class);
}
// Construct using io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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 (registerBuilder_ == null) {
register_ = null;
} else {
register_ = null;
registerBuilder_ = null;
}
if (purchaseBuilder_ == null) {
purchase_ = null;
} else {
purchase_ = null;
purchaseBuilder_ = null;
}
session_ = "";
if (signatureBuilder_ == null) {
signature_ = null;
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Request_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request getDefaultInstanceForType() {
return io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request build() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request buildPartial() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request result = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request(this);
if (registerBuilder_ == null) {
result.register_ = register_;
} else {
result.register_ = registerBuilder_.build();
}
if (purchaseBuilder_ == null) {
result.purchase_ = purchase_;
} else {
result.purchase_ = purchaseBuilder_.build();
}
result.session_ = session_;
if (signatureBuilder_ == null) {
result.signature_ = signature_;
} else {
result.signature_ = signatureBuilder_.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.pos.v1beta1.FinalizeTicket.Request) {
return mergeFrom((io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request other) {
if (other == io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.getDefaultInstance()) return this;
if (other.hasRegister()) {
mergeRegister(other.getRegister());
}
if (other.hasPurchase()) {
mergePurchase(other.getPurchase());
}
if (!other.getSession().isEmpty()) {
session_ = other.session_;
onChanged();
}
if (other.hasSignature()) {
mergeSignature(other.getSignature());
}
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.pos.v1beta1.FinalizeTicket.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey register_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder> registerBuilder_;
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public boolean hasRegister() {
return registerBuilder_ != null || register_ != null;
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getRegister() {
if (registerBuilder_ == null) {
return register_ == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.getDefaultInstance() : register_;
} else {
return registerBuilder_.getMessage();
}
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public Builder setRegister(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey value) {
if (registerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
register_ = value;
onChanged();
} else {
registerBuilder_.setMessage(value);
}
return this;
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public Builder setRegister(
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder builderForValue) {
if (registerBuilder_ == null) {
register_ = builderForValue.build();
onChanged();
} else {
registerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public Builder mergeRegister(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey value) {
if (registerBuilder_ == null) {
if (register_ != null) {
register_ =
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.newBuilder(register_).mergeFrom(value).buildPartial();
} else {
register_ = value;
}
onChanged();
} else {
registerBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public Builder clearRegister() {
if (registerBuilder_ == null) {
register_ = null;
onChanged();
} else {
register_ = null;
registerBuilder_ = null;
}
return this;
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder getRegisterBuilder() {
onChanged();
return getRegisterFieldBuilder().getBuilder();
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder getRegisterOrBuilder() {
if (registerBuilder_ != null) {
return registerBuilder_.getMessageOrBuilder();
} else {
return register_ == null ?
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.getDefaultInstance() : register_;
}
}
/**
*
* Device key, including the location and partner.
*
*
* .bloombox.partner.PartnerDeviceKey register = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder>
getRegisterFieldBuilder() {
if (registerBuilder_ == null) {
registerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder>(
getRegister(),
getParentForChildren(),
isClean());
register_ = null;
}
return registerBuilder_;
}
private io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey purchase_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey, io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.Builder, io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKeyOrBuilder> purchaseBuilder_;
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public boolean hasPurchase() {
return purchaseBuilder_ != null || purchase_ != null;
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey getPurchase() {
if (purchaseBuilder_ == null) {
return purchase_ == null ? io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.getDefaultInstance() : purchase_;
} else {
return purchaseBuilder_.getMessage();
}
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public Builder setPurchase(io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey value) {
if (purchaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
purchase_ = value;
onChanged();
} else {
purchaseBuilder_.setMessage(value);
}
return this;
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public Builder setPurchase(
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.Builder builderForValue) {
if (purchaseBuilder_ == null) {
purchase_ = builderForValue.build();
onChanged();
} else {
purchaseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public Builder mergePurchase(io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey value) {
if (purchaseBuilder_ == null) {
if (purchase_ != null) {
purchase_ =
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.newBuilder(purchase_).mergeFrom(value).buildPartial();
} else {
purchase_ = value;
}
onChanged();
} else {
purchaseBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public Builder clearPurchase() {
if (purchaseBuilder_ == null) {
purchase_ = null;
onChanged();
} else {
purchase_ = null;
purchaseBuilder_ = null;
}
return this;
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.Builder getPurchaseBuilder() {
onChanged();
return getPurchaseFieldBuilder().getBuilder();
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
public io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKeyOrBuilder getPurchaseOrBuilder() {
if (purchaseBuilder_ != null) {
return purchaseBuilder_.getMessageOrBuilder();
} else {
return purchase_ == null ?
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.getDefaultInstance() : purchase_;
}
}
/**
*
* Specifies the purchase key to finalize.
*
*
* .opencannabis.commerce.PurchaseKey purchase = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey, io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.Builder, io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKeyOrBuilder>
getPurchaseFieldBuilder() {
if (purchaseBuilder_ == null) {
purchaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey, io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey.Builder, io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKeyOrBuilder>(
getPurchase(),
getParentForChildren(),
isClean());
purchase_ = null;
}
return purchaseBuilder_;
}
private java.lang.Object session_ = "";
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
public java.lang.String getSession() {
java.lang.Object ref = session_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
session_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
public com.google.protobuf.ByteString
getSessionBytes() {
java.lang.Object ref = session_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
session_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
public Builder setSession(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
return this;
}
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
public Builder clearSession() {
session_ = getDefaultInstance().getSession();
onChanged();
return this;
}
/**
*
* Active and valid point-of-sale session.
*
*
* string session = 3;
*/
public Builder setSessionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
session_ = value;
onChanged();
return this;
}
private io.opencannabis.schema.crypto.Signature signature_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.crypto.Signature, io.opencannabis.schema.crypto.Signature.Builder, io.opencannabis.schema.crypto.SignatureOrBuilder> signatureBuilder_;
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public boolean hasSignature() {
return signatureBuilder_ != null || signature_ != null;
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public io.opencannabis.schema.crypto.Signature getSignature() {
if (signatureBuilder_ == null) {
return signature_ == null ? io.opencannabis.schema.crypto.Signature.getDefaultInstance() : signature_;
} else {
return signatureBuilder_.getMessage();
}
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public Builder setSignature(io.opencannabis.schema.crypto.Signature value) {
if (signatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
} else {
signatureBuilder_.setMessage(value);
}
return this;
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public Builder setSignature(
io.opencannabis.schema.crypto.Signature.Builder builderForValue) {
if (signatureBuilder_ == null) {
signature_ = builderForValue.build();
onChanged();
} else {
signatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public Builder mergeSignature(io.opencannabis.schema.crypto.Signature value) {
if (signatureBuilder_ == null) {
if (signature_ != null) {
signature_ =
io.opencannabis.schema.crypto.Signature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
onChanged();
} else {
signatureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public Builder clearSignature() {
if (signatureBuilder_ == null) {
signature_ = null;
onChanged();
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public io.opencannabis.schema.crypto.Signature.Builder getSignatureBuilder() {
onChanged();
return getSignatureFieldBuilder().getBuilder();
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
public io.opencannabis.schema.crypto.SignatureOrBuilder getSignatureOrBuilder() {
if (signatureBuilder_ != null) {
return signatureBuilder_.getMessageOrBuilder();
} else {
return signature_ == null ?
io.opencannabis.schema.crypto.Signature.getDefaultInstance() : signature_;
}
}
/**
*
* Hex-encoded signature of the SHA512-digest of the binary-encoded purchase key.
*
*
* .opencannabis.crypto.Signature signature = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.crypto.Signature, io.opencannabis.schema.crypto.Signature.Builder, io.opencannabis.schema.crypto.SignatureOrBuilder>
getSignatureFieldBuilder() {
if (signatureBuilder_ == null) {
signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.crypto.Signature, io.opencannabis.schema.crypto.Signature.Builder, io.opencannabis.schema.crypto.SignatureOrBuilder>(
getSignature(),
getParentForChildren(),
isClean());
signature_ = null;
}
return signatureBuilder_;
}
@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.pos.v1beta1.FinalizeTicket.Request)
}
// @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.FinalizeTicket.Request)
private static final io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request();
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.FinalizeTicket.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies the version of the ticket that was finalized.
*
*
* uint32 version = 1;
*/
int getVersion();
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
boolean hasTimestamp();
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
io.opencannabis.schema.temporal.TemporalInstant.Instant getTimestamp();
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getTimestampOrBuilder();
}
/**
*
* Response to a request to finalize a purchase ticket.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.FinalizeTicket.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() {
}
@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 8: {
version_ = input.readUInt32();
break;
}
case 18: {
io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null;
if (timestamp_ != null) {
subBuilder = timestamp_.toBuilder();
}
timestamp_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timestamp_);
timestamp_ = 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.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private int version_;
/**
*
* Specifies the version of the ticket that was finalized.
*
*
* uint32 version = 1;
*/
public int getVersion() {
return version_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private io.opencannabis.schema.temporal.TemporalInstant.Instant timestamp_;
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant getTimestamp() {
return timestamp_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : timestamp_;
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
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 (version_ != 0) {
output.writeUInt32(1, version_);
}
if (timestamp_ != null) {
output.writeMessage(2, getTimestamp());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, version_);
}
if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTimestamp());
}
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.pos.v1beta1.FinalizeTicket.Response)) {
return super.equals(obj);
}
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response other = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response) obj;
if (getVersion()
!= other.getVersion()) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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 finalize a purchase ticket.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.FinalizeTicket.Response)
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder.class);
}
// Construct using io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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();
version_ = 0;
if (timestampBuilder_ == null) {
timestamp_ = null;
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Response_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response getDefaultInstanceForType() {
return io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response build() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response buildPartial() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response result = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response(this);
result.version_ = version_;
if (timestampBuilder_ == null) {
result.timestamp_ = timestamp_;
} else {
result.timestamp_ = timestampBuilder_.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.pos.v1beta1.FinalizeTicket.Response) {
return mergeFrom((io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response other) {
if (other == io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.getDefaultInstance()) return this;
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int version_ ;
/**
*
* Specifies the version of the ticket that was finalized.
*
*
* uint32 version = 1;
*/
public int getVersion() {
return version_;
}
/**
*
* Specifies the version of the ticket that was finalized.
*
*
* uint32 version = 1;
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
*
* Specifies the version of the ticket that was finalized.
*
*
* uint32 version = 1;
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private io.opencannabis.schema.temporal.TemporalInstant.Instant timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> timestampBuilder_;
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public Builder setTimestamp(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public Builder setTimestamp(
io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public Builder mergeTimestamp(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {
if (timestampBuilder_ == null) {
if (timestamp_ != null) {
timestamp_ =
io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
timestamp_ = null;
onChanged();
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getTimestampBuilder() {
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : timestamp_;
}
}
/**
*
* Specifies the timestamp at which the ticket was finalized.
*
*
* .opencannabis.temporal.Instant timestamp = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
@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.pos.v1beta1.FinalizeTicket.Response)
}
// @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.FinalizeTicket.Response)
private static final io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response();
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperationOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.FinalizeTicket.Operation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
boolean hasRequest();
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request getRequest();
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.RequestOrBuilder getRequestOrBuilder();
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
boolean hasResponse();
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response getResponse();
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.ResponseOrBuilder getResponseOrBuilder();
}
/**
*
* Specifies an entire ticket-finalize operation.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket.Operation}
*/
public static final class Operation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Request.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder subBuilder = null;
if (response_ != null) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Operation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request request_;
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request getRequest() {
return request_ == null ? io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.getDefaultInstance() : request_;
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.RequestOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int RESPONSE_FIELD_NUMBER = 2;
private io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response response_;
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public boolean hasResponse() {
return response_ != null;
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response getResponse() {
return response_ == null ? io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.getDefaultInstance() : response_;
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation)) {
return super.equals(obj);
}
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation other = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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 entire ticket-finalize operation.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket.Operation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.FinalizeTicket.Operation)
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.OperationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Operation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation.Builder.class);
}
// Construct using io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_Operation_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation getDefaultInstanceForType() {
return io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation build() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation buildPartial() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation result = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation) {
return mergeFrom((io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation other) {
if (other == io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request request_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.Builder, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.RequestOrBuilder> requestBuilder_;
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public Builder setRequest(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public Builder setRequest(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public Builder mergeRequest(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.RequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.getDefaultInstance() : request_;
}
}
/**
*
* Request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Request request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.Builder, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.RequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Request.Builder, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.RequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response response_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.ResponseOrBuilder> responseBuilder_;
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public boolean hasResponse() {
return responseBuilder_ != null || response_ != null;
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response getResponse() {
if (responseBuilder_ == null) {
return response_ == null ? io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.getDefaultInstance() : response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public Builder setResponse(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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 finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public Builder setResponse(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public Builder mergeResponse(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response value) {
if (responseBuilder_ == null) {
if (response_ != null) {
response_ =
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = null;
onChanged();
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder getResponseBuilder() {
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.ResponseOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_ == null ?
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.getDefaultInstance() : response_;
}
}
/**
*
* Response to a request to finalize a ticket.
*
*
* .bloombox.services.pos.v1beta1.FinalizeTicket.Response response = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.ResponseOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Response.Builder, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.Operation)
}
// @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.FinalizeTicket.Operation)
private static final io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Operation();
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket)) {
return super.equals(obj);
}
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket other = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket) 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.pos.v1beta1.FinalizeTicket parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket 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.pos.v1beta1.FinalizeTicket parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket 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.pos.v1beta1.FinalizeTicket parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket 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.pos.v1beta1.FinalizeTicket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket 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.pos.v1beta1.FinalizeTicket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket 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.pos.v1beta1.FinalizeTicket prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Specifies an RPC operation to finalize an existing, open ticket.
*
*
* Protobuf type {@code bloombox.services.pos.v1beta1.FinalizeTicket}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.FinalizeTicket)
io.bloombox.schema.services.pos.v1beta1.FinalizeTicketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.class, io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.Builder.class);
}
// Construct using io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_FinalizeTicket_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket getDefaultInstanceForType() {
return io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket build() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.pos.v1beta1.FinalizeTicket buildPartial() {
io.bloombox.schema.services.pos.v1beta1.FinalizeTicket result = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket(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.pos.v1beta1.FinalizeTicket) {
return mergeFrom((io.bloombox.schema.services.pos.v1beta1.FinalizeTicket)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.FinalizeTicket other) {
if (other == io.bloombox.schema.services.pos.v1beta1.FinalizeTicket.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.pos.v1beta1.FinalizeTicket parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.pos.v1beta1.FinalizeTicket) 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.pos.v1beta1.FinalizeTicket)
}
// @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.FinalizeTicket)
private static final io.bloombox.schema.services.pos.v1beta1.FinalizeTicket DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.FinalizeTicket();
}
public static io.bloombox.schema.services.pos.v1beta1.FinalizeTicket getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FinalizeTicket parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FinalizeTicket(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.pos.v1beta1.FinalizeTicket getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy