io.opencannabis.schema.menu.SectionedMenu Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas Co.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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: products/menu/Menu.proto
package io.opencannabis.schema.menu;
/**
*
* Specifies a menu split into section-level chunks.
*
*
* Protobuf type {@code opencannabis.products.menu.SectionedMenu}
*/
public final class SectionedMenu extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencannabis.products.menu.SectionedMenu)
SectionedMenuOrBuilder {
private static final long serialVersionUID = 0L;
// Use SectionedMenu.newBuilder() to construct.
private SectionedMenu(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SectionedMenu() {
payload_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SectionedMenu(
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: {
count_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
payload_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
payload_.add(
input.readMessage(io.opencannabis.schema.menu.SectionData.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_ & 0x00000002) != 0)) {
payload_ = java.util.Collections.unmodifiableList(payload_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencannabis.schema.menu.MenuOuterClass.internal_static_opencannabis_products_menu_SectionedMenu_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencannabis.schema.menu.MenuOuterClass.internal_static_opencannabis_products_menu_SectionedMenu_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencannabis.schema.menu.SectionedMenu.class, io.opencannabis.schema.menu.SectionedMenu.Builder.class);
}
private int bitField0_;
public static final int COUNT_FIELD_NUMBER = 1;
private int count_;
/**
*
* Count of all products included in this menu, all sections considered.
*
*
* int32 count = 1;
*/
public int getCount() {
return count_;
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private java.util.List payload_;
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public java.util.List getPayloadList() {
return payload_;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public java.util.List extends io.opencannabis.schema.menu.SectionDataOrBuilder>
getPayloadOrBuilderList() {
return payload_;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public int getPayloadCount() {
return payload_.size();
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public io.opencannabis.schema.menu.SectionData getPayload(int index) {
return payload_.get(index);
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public io.opencannabis.schema.menu.SectionDataOrBuilder getPayloadOrBuilder(
int index) {
return payload_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (count_ != 0) {
output.writeInt32(1, count_);
}
for (int i = 0; i < payload_.size(); i++) {
output.writeMessage(2, payload_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, count_);
}
for (int i = 0; i < payload_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, payload_.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.opencannabis.schema.menu.SectionedMenu)) {
return super.equals(obj);
}
io.opencannabis.schema.menu.SectionedMenu other = (io.opencannabis.schema.menu.SectionedMenu) obj;
if (getCount()
!= other.getCount()) return false;
if (!getPayloadList()
.equals(other.getPayloadList())) 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) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
if (getPayloadCount() > 0) {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayloadList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencannabis.schema.menu.SectionedMenu parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.menu.SectionedMenu parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opencannabis.schema.menu.SectionedMenu parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.menu.SectionedMenu parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opencannabis.schema.menu.SectionedMenu parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.menu.SectionedMenu parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opencannabis.schema.menu.SectionedMenu parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencannabis.schema.menu.SectionedMenu 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.opencannabis.schema.menu.SectionedMenu parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencannabis.schema.menu.SectionedMenu 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.opencannabis.schema.menu.SectionedMenu parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencannabis.schema.menu.SectionedMenu 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.opencannabis.schema.menu.SectionedMenu prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Specifies a menu split into section-level chunks.
*
*
* Protobuf type {@code opencannabis.products.menu.SectionedMenu}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencannabis.products.menu.SectionedMenu)
io.opencannabis.schema.menu.SectionedMenuOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencannabis.schema.menu.MenuOuterClass.internal_static_opencannabis_products_menu_SectionedMenu_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencannabis.schema.menu.MenuOuterClass.internal_static_opencannabis_products_menu_SectionedMenu_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencannabis.schema.menu.SectionedMenu.class, io.opencannabis.schema.menu.SectionedMenu.Builder.class);
}
// Construct using io.opencannabis.schema.menu.SectionedMenu.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPayloadFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
count_ = 0;
if (payloadBuilder_ == null) {
payload_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
payloadBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opencannabis.schema.menu.MenuOuterClass.internal_static_opencannabis_products_menu_SectionedMenu_descriptor;
}
@java.lang.Override
public io.opencannabis.schema.menu.SectionedMenu getDefaultInstanceForType() {
return io.opencannabis.schema.menu.SectionedMenu.getDefaultInstance();
}
@java.lang.Override
public io.opencannabis.schema.menu.SectionedMenu build() {
io.opencannabis.schema.menu.SectionedMenu result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencannabis.schema.menu.SectionedMenu buildPartial() {
io.opencannabis.schema.menu.SectionedMenu result = new io.opencannabis.schema.menu.SectionedMenu(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.count_ = count_;
if (payloadBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
payload_ = java.util.Collections.unmodifiableList(payload_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.payload_ = payload_;
} else {
result.payload_ = payloadBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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.opencannabis.schema.menu.SectionedMenu) {
return mergeFrom((io.opencannabis.schema.menu.SectionedMenu)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencannabis.schema.menu.SectionedMenu other) {
if (other == io.opencannabis.schema.menu.SectionedMenu.getDefaultInstance()) return this;
if (other.getCount() != 0) {
setCount(other.getCount());
}
if (payloadBuilder_ == null) {
if (!other.payload_.isEmpty()) {
if (payload_.isEmpty()) {
payload_ = other.payload_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePayloadIsMutable();
payload_.addAll(other.payload_);
}
onChanged();
}
} else {
if (!other.payload_.isEmpty()) {
if (payloadBuilder_.isEmpty()) {
payloadBuilder_.dispose();
payloadBuilder_ = null;
payload_ = other.payload_;
bitField0_ = (bitField0_ & ~0x00000002);
payloadBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPayloadFieldBuilder() : null;
} else {
payloadBuilder_.addAllMessages(other.payload_);
}
}
}
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.opencannabis.schema.menu.SectionedMenu parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencannabis.schema.menu.SectionedMenu) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int count_ ;
/**
*
* Count of all products included in this menu, all sections considered.
*
*
* int32 count = 1;
*/
public int getCount() {
return count_;
}
/**
*
* Count of all products included in this menu, all sections considered.
*
*
* int32 count = 1;
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
*
* Count of all products included in this menu, all sections considered.
*
*
* int32 count = 1;
*/
public Builder clearCount() {
count_ = 0;
onChanged();
return this;
}
private java.util.List payload_ =
java.util.Collections.emptyList();
private void ensurePayloadIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
payload_ = new java.util.ArrayList(payload_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opencannabis.schema.menu.SectionData, io.opencannabis.schema.menu.SectionData.Builder, io.opencannabis.schema.menu.SectionDataOrBuilder> payloadBuilder_;
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public java.util.List getPayloadList() {
if (payloadBuilder_ == null) {
return java.util.Collections.unmodifiableList(payload_);
} else {
return payloadBuilder_.getMessageList();
}
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public int getPayloadCount() {
if (payloadBuilder_ == null) {
return payload_.size();
} else {
return payloadBuilder_.getCount();
}
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public io.opencannabis.schema.menu.SectionData getPayload(int index) {
if (payloadBuilder_ == null) {
return payload_.get(index);
} else {
return payloadBuilder_.getMessage(index);
}
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder setPayload(
int index, io.opencannabis.schema.menu.SectionData value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadIsMutable();
payload_.set(index, value);
onChanged();
} else {
payloadBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder setPayload(
int index, io.opencannabis.schema.menu.SectionData.Builder builderForValue) {
if (payloadBuilder_ == null) {
ensurePayloadIsMutable();
payload_.set(index, builderForValue.build());
onChanged();
} else {
payloadBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder addPayload(io.opencannabis.schema.menu.SectionData value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadIsMutable();
payload_.add(value);
onChanged();
} else {
payloadBuilder_.addMessage(value);
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder addPayload(
int index, io.opencannabis.schema.menu.SectionData value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadIsMutable();
payload_.add(index, value);
onChanged();
} else {
payloadBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder addPayload(
io.opencannabis.schema.menu.SectionData.Builder builderForValue) {
if (payloadBuilder_ == null) {
ensurePayloadIsMutable();
payload_.add(builderForValue.build());
onChanged();
} else {
payloadBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder addPayload(
int index, io.opencannabis.schema.menu.SectionData.Builder builderForValue) {
if (payloadBuilder_ == null) {
ensurePayloadIsMutable();
payload_.add(index, builderForValue.build());
onChanged();
} else {
payloadBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder addAllPayload(
java.lang.Iterable extends io.opencannabis.schema.menu.SectionData> values) {
if (payloadBuilder_ == null) {
ensurePayloadIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, payload_);
onChanged();
} else {
payloadBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder clearPayload() {
if (payloadBuilder_ == null) {
payload_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
payloadBuilder_.clear();
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public Builder removePayload(int index) {
if (payloadBuilder_ == null) {
ensurePayloadIsMutable();
payload_.remove(index);
onChanged();
} else {
payloadBuilder_.remove(index);
}
return this;
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public io.opencannabis.schema.menu.SectionData.Builder getPayloadBuilder(
int index) {
return getPayloadFieldBuilder().getBuilder(index);
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public io.opencannabis.schema.menu.SectionDataOrBuilder getPayloadOrBuilder(
int index) {
if (payloadBuilder_ == null) {
return payload_.get(index); } else {
return payloadBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public java.util.List extends io.opencannabis.schema.menu.SectionDataOrBuilder>
getPayloadOrBuilderList() {
if (payloadBuilder_ != null) {
return payloadBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(payload_);
}
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public io.opencannabis.schema.menu.SectionData.Builder addPayloadBuilder() {
return getPayloadFieldBuilder().addBuilder(
io.opencannabis.schema.menu.SectionData.getDefaultInstance());
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public io.opencannabis.schema.menu.SectionData.Builder addPayloadBuilder(
int index) {
return getPayloadFieldBuilder().addBuilder(
index, io.opencannabis.schema.menu.SectionData.getDefaultInstance());
}
/**
*
* Specifies a payload of sectioned menu data.
*
*
* repeated .opencannabis.products.menu.SectionData payload = 2;
*/
public java.util.List
getPayloadBuilderList() {
return getPayloadFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opencannabis.schema.menu.SectionData, io.opencannabis.schema.menu.SectionData.Builder, io.opencannabis.schema.menu.SectionDataOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
payloadBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.opencannabis.schema.menu.SectionData, io.opencannabis.schema.menu.SectionData.Builder, io.opencannabis.schema.menu.SectionDataOrBuilder>(
payload_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
payload_ = null;
}
return payloadBuilder_;
}
@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:opencannabis.products.menu.SectionedMenu)
}
// @@protoc_insertion_point(class_scope:opencannabis.products.menu.SectionedMenu)
private static final io.opencannabis.schema.menu.SectionedMenu DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencannabis.schema.menu.SectionedMenu();
}
public static io.opencannabis.schema.menu.SectionedMenu getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SectionedMenu parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SectionedMenu(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.opencannabis.schema.menu.SectionedMenu getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy