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

io.bloombox.schema.services.pos.v1beta1.InventoryQuery 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 search for active stock status at a given location.
 * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery} */ public final class InventoryQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryQuery) InventoryQueryOrBuilder { private static final long serialVersionUID = 0L; // Use InventoryQuery.newBuilder() to construct. private InventoryQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InventoryQuery() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InventoryQuery( 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_InventoryQuery_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_InventoryQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Builder.class); } public interface KeyQuerySpecOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) com.google.protobuf.MessageOrBuilder { /** *
     * Specific key the requestor is interested in, if applicable.
     * 
* * .opencannabis.inventory.InventoryKey key = 1; */ boolean hasKey(); /** *
     * Specific key the requestor is interested in, if applicable.
     * 
* * .opencannabis.inventory.InventoryKey key = 1; */ io.opencannabis.schema.inventory.InventoryKey getKey(); /** *
     * Specific key the requestor is interested in, if applicable.
     * 
* * .opencannabis.inventory.InventoryKey key = 1; */ io.opencannabis.schema.inventory.InventoryKeyOrBuilder getKeyOrBuilder(); } /** *
   * Specifies an inventory query based on item keys.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec} */ public static final class KeyQuerySpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) KeyQuerySpecOrBuilder { private static final long serialVersionUID = 0L; // Use KeyQuerySpec.newBuilder() to construct. private KeyQuerySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyQuerySpec() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyQuerySpec( 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.InventoryKey.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(io.opencannabis.schema.inventory.InventoryKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = 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_InventoryQuery_KeyQuerySpec_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_InventoryQuery_KeyQuerySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private io.opencannabis.schema.inventory.InventoryKey key_; /** *
     * Specific key the requestor is interested in, if applicable.
     * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public boolean hasKey() { return key_ != null; } /** *
     * Specific key the requestor is interested in, if applicable.
     * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public io.opencannabis.schema.inventory.InventoryKey getKey() { return key_ == null ? io.opencannabis.schema.inventory.InventoryKey.getDefaultInstance() : key_; } /** *
     * Specific key the requestor is interested in, if applicable.
     * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public io.opencannabis.schema.inventory.InventoryKeyOrBuilder getKeyOrBuilder() { return getKey(); } 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 (key_ != null) { output.writeMessage(1, getKey()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKey()); } 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.InventoryQuery.KeyQuerySpec)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec other = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec 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.InventoryQuery.KeyQuerySpec 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 inventory query based on item keys.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryQuery_KeyQuerySpec_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_InventoryQuery_KeyQuerySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.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 (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = 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_InventoryQuery_KeyQuerySpec_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec build() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec result = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec(this); if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.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.InventoryQuery.KeyQuerySpec) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } 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.InventoryQuery.KeyQuerySpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.opencannabis.schema.inventory.InventoryKey key_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.inventory.InventoryKey, io.opencannabis.schema.inventory.InventoryKey.Builder, io.opencannabis.schema.inventory.InventoryKeyOrBuilder> keyBuilder_; /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public io.opencannabis.schema.inventory.InventoryKey getKey() { if (keyBuilder_ == null) { return key_ == null ? io.opencannabis.schema.inventory.InventoryKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public Builder setKey(io.opencannabis.schema.inventory.InventoryKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public Builder setKey( io.opencannabis.schema.inventory.InventoryKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public Builder mergeKey(io.opencannabis.schema.inventory.InventoryKey value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = io.opencannabis.schema.inventory.InventoryKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public io.opencannabis.schema.inventory.InventoryKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ public io.opencannabis.schema.inventory.InventoryKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? io.opencannabis.schema.inventory.InventoryKey.getDefaultInstance() : key_; } } /** *
       * Specific key the requestor is interested in, if applicable.
       * 
* * .opencannabis.inventory.InventoryKey key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.inventory.InventoryKey, io.opencannabis.schema.inventory.InventoryKey.Builder, io.opencannabis.schema.inventory.InventoryKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.inventory.InventoryKey, io.opencannabis.schema.inventory.InventoryKey.Builder, io.opencannabis.schema.inventory.InventoryKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } @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.InventoryQuery.KeyQuerySpec) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) private static final io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeyQuerySpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyQuerySpec(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.InventoryQuery.KeyQuerySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SectionQuerySpecOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies a menu section for which to retrieve inventory.
     * 
* * .opencannabis.products.menu.section.Section section = 1; */ int getSectionValue(); /** *
     * Specifies a menu section for which to retrieve inventory.
     * 
* * .opencannabis.products.menu.section.Section section = 1; */ io.opencannabis.schema.menu.section.Section getSection(); } /** *
   * Specifies an inventory query based on menu sections.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec} */ public static final class SectionQuerySpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) SectionQuerySpecOrBuilder { private static final long serialVersionUID = 0L; // Use SectionQuerySpec.newBuilder() to construct. private SectionQuerySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SectionQuerySpec() { section_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SectionQuerySpec( 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(); section_ = rawValue; 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_InventoryQuery_SectionQuerySpec_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_InventoryQuery_SectionQuerySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder.class); } public static final int SECTION_FIELD_NUMBER = 1; private int section_; /** *
     * Specifies a menu section for which to retrieve inventory.
     * 
* * .opencannabis.products.menu.section.Section section = 1; */ public int getSectionValue() { return section_; } /** *
     * Specifies a menu section for which to retrieve inventory.
     * 
* * .opencannabis.products.menu.section.Section section = 1; */ public io.opencannabis.schema.menu.section.Section getSection() { @SuppressWarnings("deprecation") io.opencannabis.schema.menu.section.Section result = io.opencannabis.schema.menu.section.Section.valueOf(section_); return result == null ? io.opencannabis.schema.menu.section.Section.UNRECOGNIZED : result; } 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 (section_ != io.opencannabis.schema.menu.section.Section.UNSPECIFIED.getNumber()) { output.writeEnum(1, section_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (section_ != io.opencannabis.schema.menu.section.Section.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, section_); } 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.InventoryQuery.SectionQuerySpec)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec other = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) obj; if (section_ != other.section_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SECTION_FIELD_NUMBER; hash = (53 * hash) + section_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec 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.InventoryQuery.SectionQuerySpec 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 inventory query based on menu sections.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryQuery_SectionQuerySpec_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_InventoryQuery_SectionQuerySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.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(); section_ = 0; 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_InventoryQuery_SectionQuerySpec_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec build() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec result = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec(this); result.section_ = section_; 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.InventoryQuery.SectionQuerySpec) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance()) return this; if (other.section_ != 0) { setSectionValue(other.getSectionValue()); } 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.InventoryQuery.SectionQuerySpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int section_ = 0; /** *
       * Specifies a menu section for which to retrieve inventory.
       * 
* * .opencannabis.products.menu.section.Section section = 1; */ public int getSectionValue() { return section_; } /** *
       * Specifies a menu section for which to retrieve inventory.
       * 
* * .opencannabis.products.menu.section.Section section = 1; */ public Builder setSectionValue(int value) { section_ = value; onChanged(); return this; } /** *
       * Specifies a menu section for which to retrieve inventory.
       * 
* * .opencannabis.products.menu.section.Section section = 1; */ public io.opencannabis.schema.menu.section.Section getSection() { @SuppressWarnings("deprecation") io.opencannabis.schema.menu.section.Section result = io.opencannabis.schema.menu.section.Section.valueOf(section_); return result == null ? io.opencannabis.schema.menu.section.Section.UNRECOGNIZED : result; } /** *
       * Specifies a menu section for which to retrieve inventory.
       * 
* * .opencannabis.products.menu.section.Section section = 1; */ public Builder setSection(io.opencannabis.schema.menu.section.Section value) { if (value == null) { throw new NullPointerException(); } section_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies a menu section for which to retrieve inventory.
       * 
* * .opencannabis.products.menu.section.Section section = 1; */ public Builder clearSection() { section_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) private static final io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SectionQuerySpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SectionQuerySpec(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.InventoryQuery.SectionQuerySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.InventoryQuery.Request) com.google.protobuf.MessageOrBuilder { /** *
     * The device that is submitting this search.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ boolean hasRegister(); /** *
     * The device that is submitting this search.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getRegister(); /** *
     * The device that is submitting this search.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder getRegisterOrBuilder(); /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .bloombox.partner.LocationKey location = 2; */ boolean hasLocation(); /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .bloombox.partner.LocationKey location = 2; */ io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation(); /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .bloombox.partner.LocationKey location = 2; */ io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder(); /** *
     * Flag to indicate that we need a full menu.
     * 
* * bool full = 3; */ boolean getFull(); /** *
     * Specifies a key-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ boolean hasKeys(); /** *
     * Specifies a key-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec getKeys(); /** *
     * Specifies a key-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpecOrBuilder getKeysOrBuilder(); /** *
     * Specifies a section-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ boolean hasSections(); /** *
     * Specifies a section-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec getSections(); /** *
     * Specifies a section-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpecOrBuilder getSectionsOrBuilder(); public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.QueryCase getQueryCase(); } /** *
   * Request to query inventory status.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryQuery.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder subBuilder = null; if (register_ != null) { subBuilder = register_.toBuilder(); } register_ = input.readMessage(io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(register_); register_ = subBuilder.buildPartial(); } break; } case 18: { io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(io.bloombox.schema.partner.LocationAccountKey.LocationKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 24: { queryCase_ = 3; query_ = input.readBool(); break; } case 34: { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder subBuilder = null; if (queryCase_ == 4) { subBuilder = ((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_).toBuilder(); } query_ = input.readMessage(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_); query_ = subBuilder.buildPartial(); } queryCase_ = 4; break; } case 42: { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder subBuilder = null; if (queryCase_ == 5) { subBuilder = ((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_).toBuilder(); } query_ = input.readMessage(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_); query_ = subBuilder.buildPartial(); } queryCase_ = 5; 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_InventoryQuery_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_InventoryQuery_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.Builder.class); } private int queryCase_ = 0; private java.lang.Object query_; public enum QueryCase implements com.google.protobuf.Internal.EnumLite { FULL(3), KEYS(4), SECTIONS(5), QUERY_NOT_SET(0); private final int value; private QueryCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static QueryCase valueOf(int value) { return forNumber(value); } public static QueryCase forNumber(int value) { switch (value) { case 3: return FULL; case 4: return KEYS; case 5: return SECTIONS; case 0: return QUERY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public QueryCase getQueryCase() { return QueryCase.forNumber( queryCase_); } public static final int REGISTER_FIELD_NUMBER = 1; private io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey register_; /** *
     * The device that is submitting this search.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public boolean hasRegister() { return register_ != null; } /** *
     * The device that is submitting this search.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey getRegister() { return register_ == null ? io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.getDefaultInstance() : register_; } /** *
     * The device that is submitting this search.
     * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder getRegisterOrBuilder() { return getRegister(); } public static final int LOCATION_FIELD_NUMBER = 2; private io.bloombox.schema.partner.LocationAccountKey.LocationKey location_; /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .bloombox.partner.LocationKey location = 2; */ public boolean hasLocation() { return location_ != null; } /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } /** *
     * Specifies the location at which we wish to query inventory.
     * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int FULL_FIELD_NUMBER = 3; /** *
     * Flag to indicate that we need a full menu.
     * 
* * bool full = 3; */ public boolean getFull() { if (queryCase_ == 3) { return (java.lang.Boolean) query_; } return false; } public static final int KEYS_FIELD_NUMBER = 4; /** *
     * Specifies a key-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public boolean hasKeys() { return queryCase_ == 4; } /** *
     * Specifies a key-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec getKeys() { if (queryCase_ == 4) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance(); } /** *
     * Specifies a key-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpecOrBuilder getKeysOrBuilder() { if (queryCase_ == 4) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance(); } public static final int SECTIONS_FIELD_NUMBER = 5; /** *
     * Specifies a section-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public boolean hasSections() { return queryCase_ == 5; } /** *
     * Specifies a section-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec getSections() { if (queryCase_ == 5) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance(); } /** *
     * Specifies a section-based query.
     * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpecOrBuilder getSectionsOrBuilder() { if (queryCase_ == 5) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance(); } 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 (location_ != null) { output.writeMessage(2, getLocation()); } if (queryCase_ == 3) { output.writeBool( 3, (boolean)((java.lang.Boolean) query_)); } if (queryCase_ == 4) { output.writeMessage(4, (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_); } if (queryCase_ == 5) { output.writeMessage(5, (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_); } 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 (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocation()); } if (queryCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 3, (boolean)((java.lang.Boolean) query_)); } if (queryCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_); } if (queryCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_); } 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.InventoryQuery.Request)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request other = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request) obj; if (hasRegister() != other.hasRegister()) return false; if (hasRegister()) { if (!getRegister() .equals(other.getRegister())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 3: if (getFull() != other.getFull()) return false; break; case 4: if (!getKeys() .equals(other.getKeys())) return false; break; case 5: if (!getSections() .equals(other.getSections())) 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(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } switch (queryCase_) { case 3: hash = (37 * hash) + FULL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFull()); break; case 4: hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeys().hashCode(); break; case 5: hash = (37 * hash) + SECTIONS_FIELD_NUMBER; hash = (53 * hash) + getSections().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.Request prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to query inventory status.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryQuery.Request) io.bloombox.schema.services.pos.v1beta1.InventoryQuery.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryQuery_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_InventoryQuery_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (registerBuilder_ == null) { register_ = null; } else { register_ = null; registerBuilder_ = null; } if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } queryCase_ = 0; query_ = 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_InventoryQuery_Request_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request build() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request result = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request(this); if (registerBuilder_ == null) { result.register_ = register_; } else { result.register_ = registerBuilder_.build(); } if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } if (queryCase_ == 3) { result.query_ = query_; } if (queryCase_ == 4) { if (keysBuilder_ == null) { result.query_ = query_; } else { result.query_ = keysBuilder_.build(); } } if (queryCase_ == 5) { if (sectionsBuilder_ == null) { result.query_ = query_; } else { result.query_ = sectionsBuilder_.build(); } } result.queryCase_ = queryCase_; 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.InventoryQuery.Request) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request.getDefaultInstance()) return this; if (other.hasRegister()) { mergeRegister(other.getRegister()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } switch (other.getQueryCase()) { case FULL: { setFull(other.getFull()); break; } case KEYS: { mergeKeys(other.getKeys()); break; } case SECTIONS: { mergeSections(other.getSections()); break; } case QUERY_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.InventoryQuery.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int queryCase_ = 0; private java.lang.Object query_; public QueryCase getQueryCase() { return QueryCase.forNumber( queryCase_); } public Builder clearQuery() { queryCase_ = 0; query_ = 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_; /** *
       * The device that is submitting this search.
       * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public boolean hasRegister() { return registerBuilder_ != null || register_ != null; } /** *
       * The device that is submitting this search.
       * 
* * .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(); } } /** *
       * The device that is submitting this search.
       * 
* * .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; } /** *
       * The device that is submitting this search.
       * 
* * .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; } /** *
       * The device that is submitting this search.
       * 
* * .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; } /** *
       * The device that is submitting this search.
       * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public Builder clearRegister() { if (registerBuilder_ == null) { register_ = null; onChanged(); } else { register_ = null; registerBuilder_ = null; } return this; } /** *
       * The device that is submitting this search.
       * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ public io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder getRegisterBuilder() { onChanged(); return getRegisterFieldBuilder().getBuilder(); } /** *
       * The device that is submitting this search.
       * 
* * .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_; } } /** *
       * The device that is submitting this search.
       * 
* * .bloombox.partner.PartnerDeviceKey register = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder> getRegisterFieldBuilder() { if (registerBuilder_ == null) { registerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKey.Builder, io.bloombox.schema.partner.PartnerDevices.PartnerDeviceKeyOrBuilder>( getRegister(), getParentForChildren(), isClean()); register_ = null; } return registerBuilder_; } private io.bloombox.schema.partner.LocationAccountKey.LocationKey location_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder> locationBuilder_; /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey getLocation() { if (locationBuilder_ == null) { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public Builder setLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey 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.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public Builder setLocation( io.bloombox.schema.partner.LocationAccountKey.LocationKey.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.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public Builder mergeLocation(io.bloombox.schema.partner.LocationAccountKey.LocationKey value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = io.bloombox.schema.partner.LocationAccountKey.LocationKey.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.
       * 
* * .bloombox.partner.LocationKey location = 2; */ 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.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .bloombox.partner.LocationKey location = 2; */ public io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? io.bloombox.schema.partner.LocationAccountKey.LocationKey.getDefaultInstance() : location_; } } /** *
       * Specifies the location at which we wish to query inventory.
       * 
* * .bloombox.partner.LocationKey location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.LocationAccountKey.LocationKey, io.bloombox.schema.partner.LocationAccountKey.LocationKey.Builder, io.bloombox.schema.partner.LocationAccountKey.LocationKeyOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } /** *
       * Flag to indicate that we need a full menu.
       * 
* * bool full = 3; */ public boolean getFull() { if (queryCase_ == 3) { return (java.lang.Boolean) query_; } return false; } /** *
       * Flag to indicate that we need a full menu.
       * 
* * bool full = 3; */ public Builder setFull(boolean value) { queryCase_ = 3; query_ = value; onChanged(); return this; } /** *
       * Flag to indicate that we need a full menu.
       * 
* * bool full = 3; */ public Builder clearFull() { if (queryCase_ == 3) { queryCase_ = 0; query_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpecOrBuilder> keysBuilder_; /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public boolean hasKeys() { return queryCase_ == 4; } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec getKeys() { if (keysBuilder_ == null) { if (queryCase_ == 4) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance(); } else { if (queryCase_ == 4) { return keysBuilder_.getMessage(); } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance(); } } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public Builder setKeys(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); } else { keysBuilder_.setMessage(value); } queryCase_ = 4; return this; } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public Builder setKeys( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder builderForValue) { if (keysBuilder_ == null) { query_ = builderForValue.build(); onChanged(); } else { keysBuilder_.setMessage(builderForValue.build()); } queryCase_ = 4; return this; } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public Builder mergeKeys(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec value) { if (keysBuilder_ == null) { if (queryCase_ == 4 && query_ != io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance()) { query_ = io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.newBuilder((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_) .mergeFrom(value).buildPartial(); } else { query_ = value; } onChanged(); } else { if (queryCase_ == 4) { keysBuilder_.mergeFrom(value); } keysBuilder_.setMessage(value); } queryCase_ = 4; return this; } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public Builder clearKeys() { if (keysBuilder_ == null) { if (queryCase_ == 4) { queryCase_ = 0; query_ = null; onChanged(); } } else { if (queryCase_ == 4) { queryCase_ = 0; query_ = null; } keysBuilder_.clear(); } return this; } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder getKeysBuilder() { return getKeysFieldBuilder().getBuilder(); } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpecOrBuilder getKeysOrBuilder() { if ((queryCase_ == 4) && (keysBuilder_ != null)) { return keysBuilder_.getMessageOrBuilder(); } else { if (queryCase_ == 4) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance(); } } /** *
       * Specifies a key-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.KeyQuerySpec keys = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpecOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { if (!(queryCase_ == 4)) { query_ = io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.getDefaultInstance(); } keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec.Builder, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpecOrBuilder>( (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.KeyQuerySpec) query_, getParentForChildren(), isClean()); query_ = null; } queryCase_ = 4; onChanged();; return keysBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpecOrBuilder> sectionsBuilder_; /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public boolean hasSections() { return queryCase_ == 5; } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec getSections() { if (sectionsBuilder_ == null) { if (queryCase_ == 5) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance(); } else { if (queryCase_ == 5) { return sectionsBuilder_.getMessage(); } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance(); } } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public Builder setSections(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec value) { if (sectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); } else { sectionsBuilder_.setMessage(value); } queryCase_ = 5; return this; } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public Builder setSections( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder builderForValue) { if (sectionsBuilder_ == null) { query_ = builderForValue.build(); onChanged(); } else { sectionsBuilder_.setMessage(builderForValue.build()); } queryCase_ = 5; return this; } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public Builder mergeSections(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec value) { if (sectionsBuilder_ == null) { if (queryCase_ == 5 && query_ != io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance()) { query_ = io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.newBuilder((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_) .mergeFrom(value).buildPartial(); } else { query_ = value; } onChanged(); } else { if (queryCase_ == 5) { sectionsBuilder_.mergeFrom(value); } sectionsBuilder_.setMessage(value); } queryCase_ = 5; return this; } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public Builder clearSections() { if (sectionsBuilder_ == null) { if (queryCase_ == 5) { queryCase_ = 0; query_ = null; onChanged(); } } else { if (queryCase_ == 5) { queryCase_ = 0; query_ = null; } sectionsBuilder_.clear(); } return this; } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder getSectionsBuilder() { return getSectionsFieldBuilder().getBuilder(); } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpecOrBuilder getSectionsOrBuilder() { if ((queryCase_ == 5) && (sectionsBuilder_ != null)) { return sectionsBuilder_.getMessageOrBuilder(); } else { if (queryCase_ == 5) { return (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_; } return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance(); } } /** *
       * Specifies a section-based query.
       * 
* * .bloombox.services.pos.v1beta1.InventoryQuery.SectionQuerySpec sections = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpecOrBuilder> getSectionsFieldBuilder() { if (sectionsBuilder_ == null) { if (!(queryCase_ == 5)) { query_ = io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.getDefaultInstance(); } sectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec.Builder, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpecOrBuilder>( (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.SectionQuerySpec) query_, getParentForChildren(), isClean()); query_ = null; } queryCase_ = 5; onChanged();; return sectionsBuilder_; } @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.InventoryQuery.Request) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryQuery.Request) private static final io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Request(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.services.pos.v1beta1.InventoryQuery.Response) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ java.util.List getItemList(); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ io.opencannabis.schema.inventory.InventoryProduct getItem(int index); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ int getItemCount(); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ java.util.List getItemOrBuilderList(); /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ io.opencannabis.schema.inventory.InventoryProductOrBuilder getItemOrBuilder( int index); } /** *
   * Response to an inventory enquiry. Indicates status of the requested stock items.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.services.pos.v1beta1.InventoryQuery.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() { item_ = java.util.Collections.emptyList(); } @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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { item_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } item_.add( input.readMessage(io.opencannabis.schema.inventory.InventoryProduct.parser(), extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { 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_InventoryQuery_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_InventoryQuery_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response.Builder.class); } public static final int ITEM_FIELD_NUMBER = 1; private java.util.List item_; /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ public java.util.List getItemList() { return item_; } /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ public java.util.List getItemOrBuilderList() { return item_; } /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ public int getItemCount() { return item_.size(); } /** *
     * Specifies update payloads for this event, if applicable.
     * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ 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 = 1; */ 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 { for (int i = 0; i < item_.size(); i++) { output.writeMessage(1, item_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < item_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, 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.InventoryQuery.Response)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response other = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response) obj; if (!getItemList() .equals(other.getItemList())) 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 (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.InventoryQuery.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.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.InventoryQuery.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response to an inventory enquiry. Indicates status of the requested stock items.
     * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryQuery.Response) io.bloombox.schema.services.pos.v1beta1.InventoryQuery.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryQuery_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_InventoryQuery_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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) { getItemFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (itemBuilder_ == null) { item_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } 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_InventoryQuery_Response_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response build() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response result = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response(this); int from_bitField0_ = bitField0_; if (itemBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { item_ = java.util.Collections.unmodifiableList(item_); bitField0_ = (bitField0_ & ~0x00000001); } result.item_ = item_; } else { result.item_ = itemBuilder_.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.InventoryQuery.Response) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response.getDefaultInstance()) return this; if (itemBuilder_ == null) { if (!other.item_.isEmpty()) { if (item_.isEmpty()) { item_ = other.item_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemIsMutable(); item_.addAll(other.item_); } onChanged(); } } else { if (!other.item_.isEmpty()) { if (itemBuilder_.isEmpty()) { itemBuilder_.dispose(); itemBuilder_ = null; item_ = other.item_; bitField0_ = (bitField0_ & ~0x00000001); 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.InventoryQuery.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List item_ = java.util.Collections.emptyList(); private void ensureItemIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { item_ = new java.util.ArrayList(item_); bitField0_ |= 0x00000001; } } 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ public Builder clearItem() { if (itemBuilder_ == null) { item_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { itemBuilder_.clear(); } return this; } /** *
       * Specifies update payloads for this event, if applicable.
       * 
* * repeated .opencannabis.inventory.InventoryProduct item = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); item_ = null; } return itemBuilder_; } @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.InventoryQuery.Response) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryQuery.Response) private static final io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Response(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery.Response 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.InventoryQuery)) { return super.equals(obj); } io.bloombox.schema.services.pos.v1beta1.InventoryQuery other = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery) 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.InventoryQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery 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.InventoryQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery 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.InventoryQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery 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.InventoryQuery 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.InventoryQuery 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.InventoryQuery 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.InventoryQuery 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.InventoryQuery 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.InventoryQuery 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.InventoryQuery 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 search for active stock status at a given location.
   * 
* * Protobuf type {@code bloombox.services.pos.v1beta1.InventoryQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.services.pos.v1beta1.InventoryQuery) io.bloombox.schema.services.pos.v1beta1.InventoryQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.services.pos.v1beta1.POSServiceBeta1.internal_static_bloombox_services_pos_v1beta1_InventoryQuery_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_InventoryQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.services.pos.v1beta1.InventoryQuery.class, io.bloombox.schema.services.pos.v1beta1.InventoryQuery.Builder.class); } // Construct using io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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_InventoryQuery_descriptor; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery getDefaultInstanceForType() { return io.bloombox.schema.services.pos.v1beta1.InventoryQuery.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery build() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.services.pos.v1beta1.InventoryQuery buildPartial() { io.bloombox.schema.services.pos.v1beta1.InventoryQuery result = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery(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.InventoryQuery) { return mergeFrom((io.bloombox.schema.services.pos.v1beta1.InventoryQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.services.pos.v1beta1.InventoryQuery other) { if (other == io.bloombox.schema.services.pos.v1beta1.InventoryQuery.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.InventoryQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.services.pos.v1beta1.InventoryQuery) 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.InventoryQuery) } // @@protoc_insertion_point(class_scope:bloombox.services.pos.v1beta1.InventoryQuery) private static final io.bloombox.schema.services.pos.v1beta1.InventoryQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.services.pos.v1beta1.InventoryQuery(); } public static io.bloombox.schema.services.pos.v1beta1.InventoryQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InventoryQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InventoryQuery(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.InventoryQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy