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

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

There is a newer version: 1.8
Show newest version
/*
 * Copyright 2018, 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 establish an inventory status stream, wherein initial inventory information is sent and
 * then kept up to date with real-time notifications.
 * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryStream} */ public final class InventoryStream extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryStream) InventoryStreamOrBuilder { private static final long serialVersionUID = 0L; // Use InventoryStream.newBuilder() to construct. private InventoryStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InventoryStream() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InventoryStream( 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 (!parseUnknownFieldProto3( 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_InventoryStream_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_InventoryStream_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryStream.class, io.bloombox.schema.services.pos.v1beta1.InventoryStream.Builder.class); } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.InventoryStream.Request) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ boolean hasLocation(); /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ io.opencannabis.schema.inventory.InventoryLocationKey getLocation(); /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ io.opencannabis.schema.inventory.InventoryLocationKeyOrBuilder getLocationOrBuilder(); /** *
     * Active and valid point-of-sale session.
     * 
* * string session = 3; */ java.lang.String getSession(); /** *
     * Active and valid point-of-sale session.
     * 
* * string session = 3; */ com.google.protobuf.ByteString getSessionBytes(); /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ java.util.List getLocalList(); /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ int getLocalCount(); /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ java.lang.String getLocal(int index); /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ com.google.protobuf.ByteString getLocalBytes(int index); } /** *
   * Specifies a request to establish an inventory update stream.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryStream.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryStream.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_ = ""; local_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @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.opencannabis.schema.inventory.InventoryLocationKey.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(io.opencannabis.schema.inventory.InventoryLocationKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { local_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } local_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); session_ = s; break; } default: { if (!parseUnknownFieldProto3( 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { local_ = local_.getUnmodifiableView(); } 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_InventoryStream_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_InventoryStream_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request.class, io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request.Builder.class); } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private io.opencannabis.schema.inventory.InventoryLocationKey location_; /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public boolean hasLocation() { return location_ != null; } /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public io.opencannabis.schema.inventory.InventoryLocationKey getLocation() { return location_ == null ? io.opencannabis.schema.inventory.InventoryLocationKey.getDefaultInstance() : location_; } /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public io.opencannabis.schema.inventory.InventoryLocationKeyOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int SESSION_FIELD_NUMBER = 3; private volatile java.lang.Object session_; /** *
     * Active and valid point-of-sale session.
     * 
* * string session = 3; */ public java.lang.String getSession() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } } /** *
     * Active and valid point-of-sale session.
     * 
* * string session = 3; */ public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCAL_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList local_; /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ public com.google.protobuf.ProtocolStringList getLocalList() { return local_; } /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ public int getLocalCount() { return local_.size(); } /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ public java.lang.String getLocal(int index) { return local_.get(index); } /** *
     * Local bloom filters that constitute local client inventory data, if existing data is present.
     * 
* * repeated string local = 2; */ public com.google.protobuf.ByteString getLocalBytes(int index) { return local_.getByteString(index); } 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 (location_ != null) { output.writeMessage(1, getLocation()); } for (int i = 0; i < local_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, local_.getRaw(i)); } if (!getSessionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, session_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocation()); } { int dataSize = 0; for (int i = 0; i < local_.size(); i++) { dataSize += computeStringSizeNoTag(local_.getRaw(i)); } size += dataSize; size += 1 * getLocalList().size(); } if (!getSessionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, session_); } 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.InventoryStream.Request)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request other = (io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request) obj; boolean result = true; result = result && (hasLocation() == other.hasLocation()); if (hasLocation()) { result = result && getLocation() .equals(other.getLocation()); } result = result && getSession() .equals(other.getSession()); result = result && getLocalList() .equals(other.getLocalList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); if (getLocalCount() > 0) { hash = (37 * hash) + LOCAL_FIELD_NUMBER; hash = (53 * hash) + getLocalList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.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.InventoryStream.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.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.InventoryStream.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.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.InventoryStream.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.InventoryStream.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.InventoryStream.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.InventoryStream.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.InventoryStream.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.InventoryStream.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.InventoryStream.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 establish an inventory update stream.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryStream.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryStream.Request) io.bloombox.schema.services.pos.v1beta1.InventoryStream.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryStream_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_InventoryStream_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request.class, io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryStream.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 (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } session_ = ""; local_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); 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_InventoryStream_Request_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request build() { io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request result = new io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.session_ = session_; if (((bitField0_ & 0x00000004) == 0x00000004)) { local_ = local_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.local_ = local_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (!other.getSession().isEmpty()) { session_ = other.session_; onChanged(); } if (!other.local_.isEmpty()) { if (local_.isEmpty()) { local_ = other.local_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLocalIsMutable(); local_.addAll(other.local_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.opencannabis.schema.inventory.InventoryLocationKey location_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.inventory.InventoryLocationKey, io.opencannabis.schema.inventory.InventoryLocationKey.Builder, io.opencannabis.schema.inventory.InventoryLocationKeyOrBuilder> locationBuilder_; /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public io.opencannabis.schema.inventory.InventoryLocationKey getLocation() { if (locationBuilder_ == null) { return location_ == null ? io.opencannabis.schema.inventory.InventoryLocationKey.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public Builder setLocation(io.opencannabis.schema.inventory.InventoryLocationKey value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public Builder setLocation( io.opencannabis.schema.inventory.InventoryLocationKey.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public Builder mergeLocation(io.opencannabis.schema.inventory.InventoryLocationKey value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = io.opencannabis.schema.inventory.InventoryLocationKey.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public io.opencannabis.schema.inventory.InventoryLocationKey.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ public io.opencannabis.schema.inventory.InventoryLocationKeyOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? io.opencannabis.schema.inventory.InventoryLocationKey.getDefaultInstance() : location_; } } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .opencannabis.inventory.InventoryLocationKey location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.inventory.InventoryLocationKey, io.opencannabis.schema.inventory.InventoryLocationKey.Builder, io.opencannabis.schema.inventory.InventoryLocationKeyOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.inventory.InventoryLocationKey, io.opencannabis.schema.inventory.InventoryLocationKey.Builder, io.opencannabis.schema.inventory.InventoryLocationKeyOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private java.lang.Object session_ = ""; /** *
       * Active and valid point-of-sale session.
       * 
* * string session = 3; */ public java.lang.String getSession() { java.lang.Object ref = session_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Active and valid point-of-sale session.
       * 
* * string session = 3; */ public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Active and valid point-of-sale session.
       * 
* * string session = 3; */ public Builder setSession( java.lang.String value) { if (value == null) { throw new NullPointerException(); } session_ = value; onChanged(); return this; } /** *
       * Active and valid point-of-sale session.
       * 
* * string session = 3; */ public Builder clearSession() { session_ = getDefaultInstance().getSession(); onChanged(); return this; } /** *
       * Active and valid point-of-sale session.
       * 
* * string session = 3; */ public Builder setSessionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); session_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList local_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLocalIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { local_ = new com.google.protobuf.LazyStringArrayList(local_); bitField0_ |= 0x00000004; } } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public com.google.protobuf.ProtocolStringList getLocalList() { return local_.getUnmodifiableView(); } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public int getLocalCount() { return local_.size(); } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public java.lang.String getLocal(int index) { return local_.get(index); } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public com.google.protobuf.ByteString getLocalBytes(int index) { return local_.getByteString(index); } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public Builder setLocal( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLocalIsMutable(); local_.set(index, value); onChanged(); return this; } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public Builder addLocal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLocalIsMutable(); local_.add(value); onChanged(); return this; } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public Builder addAllLocal( java.lang.Iterable values) { ensureLocalIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, local_); onChanged(); return this; } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public Builder clearLocal() { local_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Local bloom filters that constitute local client inventory data, if existing data is present.
       * 
* * repeated string local = 2; */ public Builder addLocalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLocalIsMutable(); local_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(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.InventoryStream.Request) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryStream.Request) private static final io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryStream.Request(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.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.InventoryStream.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.InventoryStream.Payload) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies the event being transmitted in this payload.
     * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ int getEventValue(); /** *
     * Specifies the event being transmitted in this payload.
     * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent getEvent(); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ java.util.List getItemList(); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ io.opencannabis.schema.inventory.InventoryProduct getItem(int index); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ int getItemCount(); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ java.util.List getItemOrBuilderList(); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ io.opencannabis.schema.inventory.InventoryProductOrBuilder getItemOrBuilder( int index); } /** *
   * Response stanza payload for an inventory stream.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryStream.Payload} */ public static final class Payload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryStream.Payload) PayloadOrBuilder { private static final long serialVersionUID = 0L; // Use Payload.newBuilder() to construct. private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Payload() { event_ = 0; item_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Payload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); event_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { item_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } item_.add( input.readMessage(io.opencannabis.schema.inventory.InventoryProduct.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { item_ = java.util.Collections.unmodifiableList(item_); } 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_InventoryStream_Payload_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_InventoryStream_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload.class, io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload.Builder.class); } private int bitField0_; public static final int EVENT_FIELD_NUMBER = 1; private int event_; /** *
     * Specifies the event being transmitted in this payload.
     * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ public int getEventValue() { return event_; } /** *
     * Specifies the event being transmitted in this payload.
     * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ public io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent getEvent() { @SuppressWarnings("deprecation") io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent result = io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent.valueOf(event_); return result == null ? io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent.UNRECOGNIZED : result; } public static final int ITEM_FIELD_NUMBER = 2; private java.util.List item_; /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public java.util.List getItemList() { return item_; } /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public java.util.List getItemOrBuilderList() { return item_; } /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public int getItemCount() { return item_.size(); } /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public io.opencannabis.schema.inventory.InventoryProduct getItem(int index) { return item_.get(index); } /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public io.opencannabis.schema.inventory.InventoryProductOrBuilder getItemOrBuilder( int index) { return item_.get(index); } 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 (event_ != io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent.PING_PONG.getNumber()) { output.writeEnum(1, event_); } for (int i = 0; i < item_.size(); i++) { output.writeMessage(2, item_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (event_ != io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent.PING_PONG.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, event_); } for (int i = 0; i < item_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, item_.get(i)); } 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.InventoryStream.Payload)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload other = (io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload) obj; boolean result = true; result = result && event_ == other.event_; result = result && getItemList() .equals(other.getItemList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + event_; if (getItemCount() > 0) { hash = (37 * hash) + ITEM_FIELD_NUMBER; hash = (53 * hash) + getItemList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload 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.InventoryStream.Payload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload 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.InventoryStream.Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload 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.InventoryStream.Payload 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.InventoryStream.Payload 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.InventoryStream.Payload 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.InventoryStream.Payload 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.InventoryStream.Payload 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.InventoryStream.Payload 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.InventoryStream.Payload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response stanza payload for an inventory stream.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryStream.Payload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryStream.Payload) io.bloombox.schema.services.pos.v1beta1.InventoryStream.PayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryStream_Payload_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_InventoryStream_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload.class, io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getItemFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); event_ = 0; if (itemBuilder_ == null) { item_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemBuilder_.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_InventoryStream_Payload_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload build() { io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload result = new io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.event_ = event_; if (itemBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { item_ = java.util.Collections.unmodifiableList(item_); bitField0_ = (bitField0_ & ~0x00000002); } result.item_ = item_; } else { result.item_ = itemBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload.getDefaultInstance()) return this; if (other.event_ != 0) { setEventValue(other.getEventValue()); } if (itemBuilder_ == null) { if (!other.item_.isEmpty()) { if (item_.isEmpty()) { item_ = other.item_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureItemIsMutable(); item_.addAll(other.item_); } onChanged(); } } else { if (!other.item_.isEmpty()) { if (itemBuilder_.isEmpty()) { itemBuilder_.dispose(); itemBuilder_ = null; item_ = other.item_; bitField0_ = (bitField0_ & ~0x00000002); itemBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemFieldBuilder() : null; } else { itemBuilder_.addAllMessages(other.item_); } } } 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.InventoryStream.Payload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int event_ = 0; /** *
       * Specifies the event being transmitted in this payload.
       * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ public int getEventValue() { return event_; } /** *
       * Specifies the event being transmitted in this payload.
       * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ public Builder setEventValue(int value) { event_ = value; onChanged(); return this; } /** *
       * Specifies the event being transmitted in this payload.
       * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ public io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent getEvent() { @SuppressWarnings("deprecation") io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent result = io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent.valueOf(event_); return result == null ? io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent.UNRECOGNIZED : result; } /** *
       * Specifies the event being transmitted in this payload.
       * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ public Builder setEvent(io.bloombox.schema.services.pos.v1beta1.InventoryStreamEvent value) { if (value == null) { throw new NullPointerException(); } event_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies the event being transmitted in this payload.
       * 
* * .bloombox.services.pos.v1beta1.InventoryStreamEvent event = 1; */ public Builder clearEvent() { event_ = 0; onChanged(); return this; } private java.util.List item_ = java.util.Collections.emptyList(); private void ensureItemIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { item_ = new java.util.ArrayList(item_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencannabis.schema.inventory.InventoryProduct, io.opencannabis.schema.inventory.InventoryProduct.Builder, io.opencannabis.schema.inventory.InventoryProductOrBuilder> itemBuilder_; /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public java.util.List getItemList() { if (itemBuilder_ == null) { return java.util.Collections.unmodifiableList(item_); } else { return itemBuilder_.getMessageList(); } } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public int getItemCount() { if (itemBuilder_ == null) { return item_.size(); } else { return itemBuilder_.getCount(); } } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public io.opencannabis.schema.inventory.InventoryProduct getItem(int index) { if (itemBuilder_ == null) { return item_.get(index); } else { return itemBuilder_.getMessage(index); } } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder setItem( int index, io.opencannabis.schema.inventory.InventoryProduct value) { if (itemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.set(index, value); onChanged(); } else { itemBuilder_.setMessage(index, value); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder setItem( int index, io.opencannabis.schema.inventory.InventoryProduct.Builder builderForValue) { if (itemBuilder_ == null) { ensureItemIsMutable(); item_.set(index, builderForValue.build()); onChanged(); } else { itemBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder addItem(io.opencannabis.schema.inventory.InventoryProduct value) { if (itemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.add(value); onChanged(); } else { itemBuilder_.addMessage(value); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder addItem( int index, io.opencannabis.schema.inventory.InventoryProduct value) { if (itemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.add(index, value); onChanged(); } else { itemBuilder_.addMessage(index, value); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder addItem( io.opencannabis.schema.inventory.InventoryProduct.Builder builderForValue) { if (itemBuilder_ == null) { ensureItemIsMutable(); item_.add(builderForValue.build()); onChanged(); } else { itemBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder addItem( int index, io.opencannabis.schema.inventory.InventoryProduct.Builder builderForValue) { if (itemBuilder_ == null) { ensureItemIsMutable(); item_.add(index, builderForValue.build()); onChanged(); } else { itemBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder addAllItem( java.lang.Iterable values) { if (itemBuilder_ == null) { ensureItemIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, item_); onChanged(); } else { itemBuilder_.addAllMessages(values); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder clearItem() { if (itemBuilder_ == null) { item_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemBuilder_.clear(); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public Builder removeItem(int index) { if (itemBuilder_ == null) { ensureItemIsMutable(); item_.remove(index); onChanged(); } else { itemBuilder_.remove(index); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public io.opencannabis.schema.inventory.InventoryProduct.Builder getItemBuilder( int index) { return getItemFieldBuilder().getBuilder(index); } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public io.opencannabis.schema.inventory.InventoryProductOrBuilder getItemOrBuilder( int index) { if (itemBuilder_ == null) { return item_.get(index); } else { return itemBuilder_.getMessageOrBuilder(index); } } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public java.util.List getItemOrBuilderList() { if (itemBuilder_ != null) { return itemBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(item_); } } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public io.opencannabis.schema.inventory.InventoryProduct.Builder addItemBuilder() { return getItemFieldBuilder().addBuilder( io.opencannabis.schema.inventory.InventoryProduct.getDefaultInstance()); } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public io.opencannabis.schema.inventory.InventoryProduct.Builder addItemBuilder( int index) { return getItemFieldBuilder().addBuilder( index, io.opencannabis.schema.inventory.InventoryProduct.getDefaultInstance()); } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 2; */ public java.util.List getItemBuilderList() { return getItemFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencannabis.schema.inventory.InventoryProduct, io.opencannabis.schema.inventory.InventoryProduct.Builder, io.opencannabis.schema.inventory.InventoryProductOrBuilder> getItemFieldBuilder() { if (itemBuilder_ == null) { itemBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opencannabis.schema.inventory.InventoryProduct, io.opencannabis.schema.inventory.InventoryProduct.Builder, io.opencannabis.schema.inventory.InventoryProductOrBuilder>( item_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); item_ = null; } return itemBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(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.InventoryStream.Payload) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryStream.Payload) private static final io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream.Payload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Payload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Payload(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.InventoryStream.Payload 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.InventoryStream)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryStream other = (io.bloombox.schema.services.pos.v1beta1.InventoryStream) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @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.InventoryStream parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream 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.InventoryStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream 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.InventoryStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream 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.InventoryStream 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.InventoryStream 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.InventoryStream 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.InventoryStream 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.InventoryStream 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.InventoryStream 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.InventoryStream 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 establish an inventory status stream, wherein initial inventory information is sent and
   * then kept up to date with real-time notifications.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryStream} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryStream) io.bloombox.schema.services.pos.v1beta1.InventoryStreamOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryStream_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_InventoryStream_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryStream.class, io.bloombox.schema.services.pos.v1beta1.InventoryStream.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryStream.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_InventoryStream_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryStream.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream build() { io.bloombox.schema.services.pos.v1beta1.InventoryStream result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryStream buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryStream result = new io.bloombox.schema.services.pos.v1beta1.InventoryStream(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.services.pos.v1beta1.InventoryStream) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryStream)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryStream other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryStream.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.InventoryStream parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryStream) 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.setUnknownFieldsProto3(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.InventoryStream) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryStream) private static final io.bloombox.schema.services.pos.v1beta1.InventoryStream DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryStream(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryStream getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InventoryStream parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InventoryStream(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.InventoryStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy