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

io.bloombox.schema.services.pos.v1beta1.OpenSession Maven / Gradle / Ivy

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: pos/v1beta1/POSService_Beta1.proto

package io.bloombox.schema.services.pos.v1beta1;

/**
 * 
 * Specifies an RPC operation to open a formal point-of-sale session.
 * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession} */ public final class OpenSession extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.OpenSession) OpenSessionOrBuilder { private static final long serialVersionUID = 0L; // Use OpenSession.newBuilder() to construct. private OpenSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OpenSession() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OpenSession( 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_OpenSession_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_OpenSession_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Builder.class); } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.OpenSession.Request) com.google.protobuf.MessageOrBuilder { /** *
     * Device key, including the location and partner where the device is located.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ boolean hasRegister(); /** *
     * Device key, including the location and partner where the device is located.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getRegister(); /** *
     * Device key, including the location and partner where the device is located.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder getRegisterOrBuilder(); /** *
     * ID of the session that the callee wishes to open.
     * 
* * string session = 2; */ java.lang.String getSession(); /** *
     * ID of the session that the callee wishes to open.
     * 
* * string session = 2; */ com.google.protobuf.ByteString getSessionBytes(); /** *
     * Authorization token corresponding to the user's security/authorization state.
     * 
* * string token = 3; */ java.lang.String getToken(); /** *
     * Authorization token corresponding to the user's security/authorization state.
     * 
* * string token = 3; */ com.google.protobuf.ByteString getTokenBytes(); /** *
     * Specifies the opening state of the cash register, including the beginning float for the session.
     * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ boolean hasOpen(); /** *
     * Specifies the opening state of the cash register, including the beginning float for the session.
     * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen getOpen(); /** *
     * Specifies the opening state of the cash register, including the beginning float for the session.
     * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpenOrBuilder getOpenOrBuilder(); /** *
     * Flag to indicate this session-open call is reclaiming or resuming a previously opened and established session.
     * 
* * bool resume = 5; */ boolean getResume(); /** *
     * Hex-encoded signature of the SHA512-digest of the binary-encoded session claim, if establishing.
     * 
* * .opencannabis.crypto.Signature signature = 6; */ boolean hasSignature(); /** *
     * Hex-encoded signature of the SHA512-digest of the binary-encoded session claim, if establishing.
     * 
* * .opencannabis.crypto.Signature signature = 6; */ io.opencannabis.schema.crypto.Signature getSignature(); /** *
     * Hex-encoded signature of the SHA512-digest of the binary-encoded session claim, if establishing.
     * 
* * .opencannabis.crypto.Signature signature = 6; */ io.opencannabis.schema.crypto.SignatureOrBuilder getSignatureOrBuilder(); public io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.ClaimCase getClaimCase(); } /** *
   * Specifies a request to open an authorized, formal POS session.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.OpenSession.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_ = ""; token_ = ""; } @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: { java.lang.String s = input.readStringRequireUtf8(); session_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); token_ = s; break; } case 34: { io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.Builder subBuilder = null; if (claimCase_ == 4) { subBuilder = ((io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_).toBuilder(); } claim_ = input.readMessage(io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_); claim_ = subBuilder.buildPartial(); } claimCase_ = 4; break; } case 40: { claimCase_ = 5; claim_ = input.readBool(); break; } case 50: { 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_OpenSession_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_OpenSession_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.Builder.class); } private int claimCase_ = 0; private java.lang.Object claim_; public enum ClaimCase implements com.google.protobuf.Internal.EnumLite { OPEN(4), RESUME(5), CLAIM_NOT_SET(0); private final int value; private ClaimCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ClaimCase valueOf(int value) { return forNumber(value); } public static ClaimCase forNumber(int value) { switch (value) { case 4: return OPEN; case 5: return RESUME; case 0: return CLAIM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ClaimCase getClaimCase() { return ClaimCase.forNumber( claimCase_); } public static final int REGISTER_FIELD_NUMBER = 1; private io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey register_; /** *
     * Device key, including the location and partner where the device is located.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public boolean hasRegister() { return register_ != null; } /** *
     * Device key, including the location and partner where the device is located.
     * 
* * .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 where the device is located.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder getRegisterOrBuilder() { return getRegister(); } public static final int SESSION_FIELD_NUMBER = 2; private volatile java.lang.Object session_; /** *
     * ID of the session that the callee wishes to open.
     * 
* * string session = 2; */ 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; } } /** *
     * ID of the session that the callee wishes to open.
     * 
* * string session = 2; */ 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 TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object token_; /** *
     * Authorization token corresponding to the user's security/authorization state.
     * 
* * string token = 3; */ public java.lang.String getToken() { java.lang.Object ref = token_; 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(); token_ = s; return s; } } /** *
     * Authorization token corresponding to the user's security/authorization state.
     * 
* * string token = 3; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPEN_FIELD_NUMBER = 4; /** *
     * Specifies the opening state of the cash register, including the beginning float for the session.
     * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public boolean hasOpen() { return claimCase_ == 4; } /** *
     * Specifies the opening state of the cash register, including the beginning float for the session.
     * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen getOpen() { if (claimCase_ == 4) { return (io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_; } return io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.getDefaultInstance(); } /** *
     * Specifies the opening state of the cash register, including the beginning float for the session.
     * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpenOrBuilder getOpenOrBuilder() { if (claimCase_ == 4) { return (io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_; } return io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.getDefaultInstance(); } public static final int RESUME_FIELD_NUMBER = 5; /** *
     * Flag to indicate this session-open call is reclaiming or resuming a previously opened and established session.
     * 
* * bool resume = 5; */ public boolean getResume() { if (claimCase_ == 5) { return (java.lang.Boolean) claim_; } return false; } public static final int SIGNATURE_FIELD_NUMBER = 6; private io.opencannabis.schema.crypto.Signature signature_; /** *
     * Hex-encoded signature of the SHA512-digest of the binary-encoded session claim, if establishing.
     * 
* * .opencannabis.crypto.Signature signature = 6; */ public boolean hasSignature() { return signature_ != null; } /** *
     * Hex-encoded signature of the SHA512-digest of the binary-encoded session claim, if establishing.
     * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 session claim, if establishing.
     * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 (!getSessionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, session_); } if (!getTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); } if (claimCase_ == 4) { output.writeMessage(4, (io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_); } if (claimCase_ == 5) { output.writeBool( 5, (boolean)((java.lang.Boolean) claim_)); } if (signature_ != null) { output.writeMessage(6, 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 (!getSessionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, session_); } if (!getTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); } if (claimCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_); } if (claimCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 5, (boolean)((java.lang.Boolean) claim_)); } if (signature_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, 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.OpenSession.Request)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.OpenSession.Request other = (io.bloombox.schema.services.pos.v1beta1.OpenSession.Request) obj; if (hasRegister() != other.hasRegister()) return false; if (hasRegister()) { if (!getRegister() .equals(other.getRegister())) return false; } if (!getSession() .equals(other.getSession())) return false; if (!getToken() .equals(other.getToken())) return false; if (hasSignature() != other.hasSignature()) return false; if (hasSignature()) { if (!getSignature() .equals(other.getSignature())) return false; } if (!getClaimCase().equals(other.getClaimCase())) return false; switch (claimCase_) { case 4: if (!getOpen() .equals(other.getOpen())) return false; break; case 5: if (getResume() != other.getResume()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRegister()) { hash = (37 * hash) + REGISTER_FIELD_NUMBER; hash = (53 * hash) + getRegister().hashCode(); } hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); if (hasSignature()) { hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); } switch (claimCase_) { case 4: hash = (37 * hash) + OPEN_FIELD_NUMBER; hash = (53 * hash) + getOpen().hashCode(); break; case 5: hash = (37 * hash) + RESUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getResume()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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 open an authorized, formal POS session.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.OpenSession.Request) io.bloombox.schema.services.pos.v1beta1.OpenSession.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_OpenSession_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_OpenSession_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.OpenSession.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; } session_ = ""; token_ = ""; if (signatureBuilder_ == null) { signature_ = null; } else { signature_ = null; signatureBuilder_ = null; } claimCase_ = 0; claim_ = 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_OpenSession_Request_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Request getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Request build() { io.bloombox.schema.services.pos.v1beta1.OpenSession.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Request buildPartial() { io.bloombox.schema.services.pos.v1beta1.OpenSession.Request result = new io.bloombox.schema.services.pos.v1beta1.OpenSession.Request(this); if (registerBuilder_ == null) { result.register_ = register_; } else { result.register_ = registerBuilder_.build(); } result.session_ = session_; result.token_ = token_; if (claimCase_ == 4) { if (openBuilder_ == null) { result.claim_ = claim_; } else { result.claim_ = openBuilder_.build(); } } if (claimCase_ == 5) { result.claim_ = claim_; } if (signatureBuilder_ == null) { result.signature_ = signature_; } else { result.signature_ = signatureBuilder_.build(); } result.claimCase_ = claimCase_; 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.OpenSession.Request) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.OpenSession.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.OpenSession.Request other) { if (other == io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.getDefaultInstance()) return this; if (other.hasRegister()) { mergeRegister(other.getRegister()); } if (!other.getSession().isEmpty()) { session_ = other.session_; onChanged(); } if (!other.getToken().isEmpty()) { token_ = other.token_; onChanged(); } if (other.hasSignature()) { mergeSignature(other.getSignature()); } switch (other.getClaimCase()) { case OPEN: { mergeOpen(other.getOpen()); break; } case RESUME: { setResume(other.getResume()); break; } case CLAIM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.services.pos.v1beta1.OpenSession.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.OpenSession.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int claimCase_ = 0; private java.lang.Object claim_; public ClaimCase getClaimCase() { return ClaimCase.forNumber( claimCase_); } public Builder clearClaim() { claimCase_ = 0; claim_ = null; onChanged(); 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 where the device is located.
       * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public boolean hasRegister() { return registerBuilder_ != null || register_ != null; } /** *
       * Device key, including the location and partner where the device is located.
       * 
* * .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 where the device is located.
       * 
* * .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 where the device is located.
       * 
* * .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 where the device is located.
       * 
* * .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 where the device is located.
       * 
* * .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 where the device is located.
       * 
* * .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 where the device is located.
       * 
* * .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 where the device is located.
       * 
* * .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 java.lang.Object session_ = ""; /** *
       * ID of the session that the callee wishes to open.
       * 
* * string session = 2; */ 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; } } /** *
       * ID of the session that the callee wishes to open.
       * 
* * string session = 2; */ 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; } } /** *
       * ID of the session that the callee wishes to open.
       * 
* * string session = 2; */ public Builder setSession( java.lang.String value) { if (value == null) { throw new NullPointerException(); } session_ = value; onChanged(); return this; } /** *
       * ID of the session that the callee wishes to open.
       * 
* * string session = 2; */ public Builder clearSession() { session_ = getDefaultInstance().getSession(); onChanged(); return this; } /** *
       * ID of the session that the callee wishes to open.
       * 
* * string session = 2; */ public Builder setSessionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); session_ = value; onChanged(); return this; } private java.lang.Object token_ = ""; /** *
       * Authorization token corresponding to the user's security/authorization state.
       * 
* * string token = 3; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Authorization token corresponding to the user's security/authorization state.
       * 
* * string token = 3; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Authorization token corresponding to the user's security/authorization state.
       * 
* * string token = 3; */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } token_ = value; onChanged(); return this; } /** *
       * Authorization token corresponding to the user's security/authorization state.
       * 
* * string token = 3; */ public Builder clearToken() { token_ = getDefaultInstance().getToken(); onChanged(); return this; } /** *
       * Authorization token corresponding to the user's security/authorization state.
       * 
* * string token = 3; */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen, io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.Builder, io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpenOrBuilder> openBuilder_; /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public boolean hasOpen() { return claimCase_ == 4; } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen getOpen() { if (openBuilder_ == null) { if (claimCase_ == 4) { return (io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_; } return io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.getDefaultInstance(); } else { if (claimCase_ == 4) { return openBuilder_.getMessage(); } return io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.getDefaultInstance(); } } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public Builder setOpen(io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen value) { if (openBuilder_ == null) { if (value == null) { throw new NullPointerException(); } claim_ = value; onChanged(); } else { openBuilder_.setMessage(value); } claimCase_ = 4; return this; } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public Builder setOpen( io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.Builder builderForValue) { if (openBuilder_ == null) { claim_ = builderForValue.build(); onChanged(); } else { openBuilder_.setMessage(builderForValue.build()); } claimCase_ = 4; return this; } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public Builder mergeOpen(io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen value) { if (openBuilder_ == null) { if (claimCase_ == 4 && claim_ != io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.getDefaultInstance()) { claim_ = io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.newBuilder((io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_) .mergeFrom(value).buildPartial(); } else { claim_ = value; } onChanged(); } else { if (claimCase_ == 4) { openBuilder_.mergeFrom(value); } openBuilder_.setMessage(value); } claimCase_ = 4; return this; } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public Builder clearOpen() { if (openBuilder_ == null) { if (claimCase_ == 4) { claimCase_ = 0; claim_ = null; onChanged(); } } else { if (claimCase_ == 4) { claimCase_ = 0; claim_ = null; } openBuilder_.clear(); } return this; } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.Builder getOpenBuilder() { return getOpenFieldBuilder().getBuilder(); } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ public io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpenOrBuilder getOpenOrBuilder() { if ((claimCase_ == 4) && (openBuilder_ != null)) { return openBuilder_.getMessageOrBuilder(); } else { if (claimCase_ == 4) { return (io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_; } return io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.getDefaultInstance(); } } /** *
       * Specifies the opening state of the cash register, including the beginning float for the session.
       * 
* * .bloombox.pos.PointOfSaleState.SessionOpen open = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen, io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.Builder, io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpenOrBuilder> getOpenFieldBuilder() { if (openBuilder_ == null) { if (!(claimCase_ == 4)) { claim_ = io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.getDefaultInstance(); } openBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen, io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen.Builder, io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpenOrBuilder>( (io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen) claim_, getParentForChildren(), isClean()); claim_ = null; } claimCase_ = 4; onChanged();; return openBuilder_; } /** *
       * Flag to indicate this session-open call is reclaiming or resuming a previously opened and established session.
       * 
* * bool resume = 5; */ public boolean getResume() { if (claimCase_ == 5) { return (java.lang.Boolean) claim_; } return false; } /** *
       * Flag to indicate this session-open call is reclaiming or resuming a previously opened and established session.
       * 
* * bool resume = 5; */ public Builder setResume(boolean value) { claimCase_ = 5; claim_ = value; onChanged(); return this; } /** *
       * Flag to indicate this session-open call is reclaiming or resuming a previously opened and established session.
       * 
* * bool resume = 5; */ public Builder clearResume() { if (claimCase_ == 5) { claimCase_ = 0; claim_ = null; 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 session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ public boolean hasSignature() { return signatureBuilder_ != null || signature_ != null; } /** *
       * Hex-encoded signature of the SHA512-digest of the binary-encoded session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ public io.opencannabis.schema.crypto.Signature.Builder getSignatureBuilder() { onChanged(); return getSignatureFieldBuilder().getBuilder(); } /** *
       * Hex-encoded signature of the SHA512-digest of the binary-encoded session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ 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 session claim, if establishing.
       * 
* * .opencannabis.crypto.Signature signature = 6; */ 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.OpenSession.Request) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.OpenSession.Request) private static final io.bloombox.schema.services.pos.v1beta1.OpenSession.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.OpenSession.Request(); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.OpenSession.Response) com.google.protobuf.MessageOrBuilder { /** *
     * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
     * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ boolean hasSession(); /** *
     * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
     * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ io.bloombox.schema.services.pos.v1beta1.CashRegisterSession getSession(); /** *
     * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
     * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ io.bloombox.schema.services.pos.v1beta1.CashRegisterSessionOrBuilder getSessionOrBuilder(); } /** *
   * Specifies a response to a request to open a POS operation.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.OpenSession.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 10: { io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.Builder subBuilder = null; if (session_ != null) { subBuilder = session_.toBuilder(); } session_ = input.readMessage(io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(session_); session_ = 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_OpenSession_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_OpenSession_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder.class); } public static final int SESSION_FIELD_NUMBER = 1; private io.bloombox.schema.services.pos.v1beta1.CashRegisterSession session_; /** *
     * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
     * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public boolean hasSession() { return session_ != null; } /** *
     * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
     * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public io.bloombox.schema.services.pos.v1beta1.CashRegisterSession getSession() { return session_ == null ? io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.getDefaultInstance() : session_; } /** *
     * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
     * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public io.bloombox.schema.services.pos.v1beta1.CashRegisterSessionOrBuilder getSessionOrBuilder() { return getSession(); } 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 (session_ != null) { output.writeMessage(1, getSession()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (session_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSession()); } 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.OpenSession.Response)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.OpenSession.Response other = (io.bloombox.schema.services.pos.v1beta1.OpenSession.Response) obj; if (hasSession() != other.hasSession()) return false; if (hasSession()) { if (!getSession() .equals(other.getSession())) 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 (hasSession()) { hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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; } /** *
     * Specifies a response to a request to open a POS operation.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.OpenSession.Response) io.bloombox.schema.services.pos.v1beta1.OpenSession.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_OpenSession_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_OpenSession_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (sessionBuilder_ == null) { session_ = null; } else { session_ = null; sessionBuilder_ = 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_OpenSession_Response_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Response getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Response build() { io.bloombox.schema.services.pos.v1beta1.OpenSession.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Response buildPartial() { io.bloombox.schema.services.pos.v1beta1.OpenSession.Response result = new io.bloombox.schema.services.pos.v1beta1.OpenSession.Response(this); if (sessionBuilder_ == null) { result.session_ = session_; } else { result.session_ = sessionBuilder_.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.OpenSession.Response) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.OpenSession.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.OpenSession.Response other) { if (other == io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.getDefaultInstance()) return this; if (other.hasSession()) { mergeSession(other.getSession()); } 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.OpenSession.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.OpenSession.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.services.pos.v1beta1.CashRegisterSession session_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.CashRegisterSession, io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.Builder, io.bloombox.schema.services.pos.v1beta1.CashRegisterSessionOrBuilder> sessionBuilder_; /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public boolean hasSession() { return sessionBuilder_ != null || session_ != null; } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public io.bloombox.schema.services.pos.v1beta1.CashRegisterSession getSession() { if (sessionBuilder_ == null) { return session_ == null ? io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.getDefaultInstance() : session_; } else { return sessionBuilder_.getMessage(); } } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public Builder setSession(io.bloombox.schema.services.pos.v1beta1.CashRegisterSession value) { if (sessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } session_ = value; onChanged(); } else { sessionBuilder_.setMessage(value); } return this; } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public Builder setSession( io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.Builder builderForValue) { if (sessionBuilder_ == null) { session_ = builderForValue.build(); onChanged(); } else { sessionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public Builder mergeSession(io.bloombox.schema.services.pos.v1beta1.CashRegisterSession value) { if (sessionBuilder_ == null) { if (session_ != null) { session_ = io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.newBuilder(session_).mergeFrom(value).buildPartial(); } else { session_ = value; } onChanged(); } else { sessionBuilder_.mergeFrom(value); } return this; } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public Builder clearSession() { if (sessionBuilder_ == null) { session_ = null; onChanged(); } else { session_ = null; sessionBuilder_ = null; } return this; } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.Builder getSessionBuilder() { onChanged(); return getSessionFieldBuilder().getBuilder(); } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ public io.bloombox.schema.services.pos.v1beta1.CashRegisterSessionOrBuilder getSessionOrBuilder() { if (sessionBuilder_ != null) { return sessionBuilder_.getMessageOrBuilder(); } else { return session_ == null ? io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.getDefaultInstance() : session_; } } /** *
       * Updated session, after it has presumably been opened (i.e. not encountered a fatal error).
       * 
* * .bloombox.services.pos.v1beta1.CashRegisterSession session = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.CashRegisterSession, io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.Builder, io.bloombox.schema.services.pos.v1beta1.CashRegisterSessionOrBuilder> getSessionFieldBuilder() { if (sessionBuilder_ == null) { sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.CashRegisterSession, io.bloombox.schema.services.pos.v1beta1.CashRegisterSession.Builder, io.bloombox.schema.services.pos.v1beta1.CashRegisterSessionOrBuilder>( getSession(), getParentForChildren(), isClean()); session_ = null; } return sessionBuilder_; } @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.OpenSession.Response) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.OpenSession.Response) private static final io.bloombox.schema.services.pos.v1beta1.OpenSession.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.OpenSession.Response(); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperationOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.OpenSession.Operation) com.google.protobuf.MessageOrBuilder { /** *
     * Request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ boolean hasRequest(); /** *
     * Request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ io.bloombox.schema.services.pos.v1beta1.OpenSession.Request getRequest(); /** *
     * Request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ io.bloombox.schema.services.pos.v1beta1.OpenSession.RequestOrBuilder getRequestOrBuilder(); /** *
     * Response to a request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ boolean hasResponse(); /** *
     * Response to a request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ io.bloombox.schema.services.pos.v1beta1.OpenSession.Response getResponse(); /** *
     * Response to a request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ io.bloombox.schema.services.pos.v1beta1.OpenSession.ResponseOrBuilder getResponseOrBuilder(); } /** *
   * Specifies one entire open-session operation.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession.Operation} */ public static final class Operation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.OpenSession.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.OpenSession.Request.Builder subBuilder = null; if (request_ != null) { subBuilder = request_.toBuilder(); } request_ = input.readMessage(io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(request_); request_ = subBuilder.buildPartial(); } break; } case 18: { io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder subBuilder = null; if (response_ != null) { subBuilder = response_.toBuilder(); } response_ = input.readMessage(io.bloombox.schema.services.pos.v1beta1.OpenSession.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_OpenSession_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_OpenSession_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation.Builder.class); } public static final int REQUEST_FIELD_NUMBER = 1; private io.bloombox.schema.services.pos.v1beta1.OpenSession.Request request_; /** *
     * Request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public boolean hasRequest() { return request_ != null; } /** *
     * Request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.Request getRequest() { return request_ == null ? io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.getDefaultInstance() : request_; } /** *
     * Request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.RequestOrBuilder getRequestOrBuilder() { return getRequest(); } public static final int RESPONSE_FIELD_NUMBER = 2; private io.bloombox.schema.services.pos.v1beta1.OpenSession.Response response_; /** *
     * Response to a request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public boolean hasResponse() { return response_ != null; } /** *
     * Response to a request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.Response getResponse() { return response_ == null ? io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.getDefaultInstance() : response_; } /** *
     * Response to a request to open a POS session.
     * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Operation)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation other = (io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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.OpenSession.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 one entire open-session operation.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.OpenSession.Operation) io.bloombox.schema.services.pos.v1beta1.OpenSession.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_OpenSession_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_OpenSession_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.OpenSession.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_OpenSession_Operation_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation build() { io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation buildPartial() { io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation result = new io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Operation) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation other) { if (other == io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Operation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.services.pos.v1beta1.OpenSession.Request request_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.OpenSession.Request, io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.Builder, io.bloombox.schema.services.pos.v1beta1.OpenSession.RequestOrBuilder> requestBuilder_; /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public boolean hasRequest() { return requestBuilder_ != null || request_ != null; } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.Request getRequest() { if (requestBuilder_ == null) { return request_ == null ? io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public Builder setRequest(io.bloombox.schema.services.pos.v1beta1.OpenSession.Request value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestBuilder_.setMessage(value); } return this; } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public Builder setRequest( io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public Builder mergeRequest(io.bloombox.schema.services.pos.v1beta1.OpenSession.Request value) { if (requestBuilder_ == null) { if (request_ != null) { request_ = io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.newBuilder(request_).mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { requestBuilder_.mergeFrom(value); } return this; } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public Builder clearRequest() { if (requestBuilder_ == null) { request_ = null; onChanged(); } else { request_ = null; requestBuilder_ = null; } return this; } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.Builder getRequestBuilder() { onChanged(); return getRequestFieldBuilder().getBuilder(); } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.RequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { return request_ == null ? io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.getDefaultInstance() : request_; } } /** *
       * Request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Request request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.OpenSession.Request, io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.Builder, io.bloombox.schema.services.pos.v1beta1.OpenSession.RequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.OpenSession.Request, io.bloombox.schema.services.pos.v1beta1.OpenSession.Request.Builder, io.bloombox.schema.services.pos.v1beta1.OpenSession.RequestOrBuilder>( getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } private io.bloombox.schema.services.pos.v1beta1.OpenSession.Response response_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.OpenSession.Response, io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder, io.bloombox.schema.services.pos.v1beta1.OpenSession.ResponseOrBuilder> responseBuilder_; /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public boolean hasResponse() { return responseBuilder_ != null || response_ != null; } /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.Response getResponse() { if (responseBuilder_ == null) { return response_ == null ? io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.getDefaultInstance() : response_; } else { return responseBuilder_.getMessage(); } } /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public Builder setResponse(io.bloombox.schema.services.pos.v1beta1.OpenSession.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 open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public Builder setResponse( io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public Builder mergeResponse(io.bloombox.schema.services.pos.v1beta1.OpenSession.Response value) { if (responseBuilder_ == null) { if (response_ != null) { response_ = io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.newBuilder(response_).mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { responseBuilder_.mergeFrom(value); } return this; } /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public Builder clearResponse() { if (responseBuilder_ == null) { response_ = null; onChanged(); } else { response_ = null; responseBuilder_ = null; } return this; } /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ public io.bloombox.schema.services.pos.v1beta1.OpenSession.ResponseOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { return responseBuilder_.getMessageOrBuilder(); } else { return response_ == null ? io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.getDefaultInstance() : response_; } } /** *
       * Response to a request to open a POS session.
       * 
* * .bloombox.services.pos.v1beta1.OpenSession.Response response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.OpenSession.Response, io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder, io.bloombox.schema.services.pos.v1beta1.OpenSession.ResponseOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.OpenSession.Response, io.bloombox.schema.services.pos.v1beta1.OpenSession.Response.Builder, io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.Operation) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.OpenSession.Operation) private static final io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.OpenSession.Operation(); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession.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.OpenSession)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.OpenSession other = (io.bloombox.schema.services.pos.v1beta1.OpenSession) 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.OpenSession parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession 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.OpenSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession 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.OpenSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession 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.OpenSession 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.OpenSession 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.OpenSession 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.OpenSession 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.OpenSession 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.OpenSession 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.OpenSession 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 open a formal point-of-sale session.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.OpenSession} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.OpenSession) io.bloombox.schema.services.pos.v1beta1.OpenSessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_OpenSession_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_OpenSession_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.OpenSession.class, io.bloombox.schema.services.pos.v1beta1.OpenSession.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.OpenSession.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_OpenSession_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.OpenSession.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession build() { io.bloombox.schema.services.pos.v1beta1.OpenSession result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.OpenSession buildPartial() { io.bloombox.schema.services.pos.v1beta1.OpenSession result = new io.bloombox.schema.services.pos.v1beta1.OpenSession(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.OpenSession) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.OpenSession)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.OpenSession other) { if (other == io.bloombox.schema.services.pos.v1beta1.OpenSession.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.OpenSession parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.OpenSession) 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.OpenSession) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.OpenSession) private static final io.bloombox.schema.services.pos.v1beta1.OpenSession DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.OpenSession(); } public static io.bloombox.schema.services.pos.v1beta1.OpenSession getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpenSession parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OpenSession(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.OpenSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy