io.bloombox.schema.services.menu.v1beta1.GetCatalog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or publishing of derivative works, for commercial
* purposes or any other purpose, from a duly authorized officer of Momentum
* Ideas Co.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: menu/v1beta1/MenuService_Beta1.proto
package io.bloombox.schema.services.menu.v1beta1;
/**
*
* Specifies an RPC operation, wherein a set of product data is returned in universal product catalog format, which uses
* Comma Separated Values (CSV) in a particular arrangement to supply standards-compliant providers with basic product
* information (including Facebook, Google, and others).
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.GetCatalog}
*/
public final class GetCatalog extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.menu.v1beta1.GetCatalog)
GetCatalogOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetCatalog.newBuilder() to construct.
private GetCatalog(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetCatalog() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetCatalog(
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.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.GetCatalog.class, io.bloombox.schema.services.menu.v1beta1.GetCatalog.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.menu.v1beta1.GetCatalog.Request)
com.google.protobuf.MessageOrBuilder {
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
java.lang.String getScope();
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
com.google.protobuf.ByteString
getScopeBytes();
/**
*
* Only include featured products in the output of this response.
*
*
* bool featured = 2;
*/
boolean getFeatured();
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
java.util.List getSectionList();
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
int getSectionCount();
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
io.opencannabis.schema.menu.section.Section getSection(int index);
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
java.util.List
getSectionValueList();
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
int getSectionValue(int index);
/**
*
* Consume the full menu, including products that are not currently available for sale (due to being out of stock,
* or not being moved into active inventory yet).
*
*
* bool full = 4;
*/
boolean getFull();
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
int getProviderValue();
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
io.bloombox.schema.services.menu.v1beta1.CatalogProvider getProvider();
}
/**
*
* Request for catalog information, to include the partner, location, and any automatic filters the invoking code
* desires to apply to products before returning them.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.GetCatalog.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.menu.v1beta1.GetCatalog.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() {
scope_ = "";
section_ = java.util.Collections.emptyList();
provider_ = 0;
}
@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: {
java.lang.String s = input.readStringRequireUtf8();
scope_ = s;
break;
}
case 16: {
featured_ = input.readBool();
break;
}
case 24: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
section_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
section_.add(rawValue);
break;
}
case 26: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
section_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
section_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 32: {
full_ = input.readBool();
break;
}
case 40: {
int rawValue = input.readEnum();
provider_ = 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 {
if (((mutable_bitField0_ & 0x00000004) != 0)) {
section_ = java.util.Collections.unmodifiableList(section_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request.class, io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request.Builder.class);
}
private int bitField0_;
public static final int SCOPE_FIELD_NUMBER = 1;
private volatile java.lang.Object scope_;
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
public java.lang.String getScope() {
java.lang.Object ref = scope_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scope_ = s;
return s;
}
}
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
public com.google.protobuf.ByteString
getScopeBytes() {
java.lang.Object ref = scope_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FEATURED_FIELD_NUMBER = 2;
private boolean featured_;
/**
*
* Only include featured products in the output of this response.
*
*
* bool featured = 2;
*/
public boolean getFeatured() {
return featured_;
}
public static final int SECTION_FIELD_NUMBER = 3;
private java.util.List section_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, io.opencannabis.schema.menu.section.Section> section_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, io.opencannabis.schema.menu.section.Section>() {
public io.opencannabis.schema.menu.section.Section convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
io.opencannabis.schema.menu.section.Section result = io.opencannabis.schema.menu.section.Section.valueOf(from);
return result == null ? io.opencannabis.schema.menu.section.Section.UNRECOGNIZED : result;
}
};
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public java.util.List getSectionList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, io.opencannabis.schema.menu.section.Section>(section_, section_converter_);
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public int getSectionCount() {
return section_.size();
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public io.opencannabis.schema.menu.section.Section getSection(int index) {
return section_converter_.convert(section_.get(index));
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public java.util.List
getSectionValueList() {
return section_;
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public int getSectionValue(int index) {
return section_.get(index);
}
private int sectionMemoizedSerializedSize;
public static final int FULL_FIELD_NUMBER = 4;
private boolean full_;
/**
*
* Consume the full menu, including products that are not currently available for sale (due to being out of stock,
* or not being moved into active inventory yet).
*
*
* bool full = 4;
*/
public boolean getFull() {
return full_;
}
public static final int PROVIDER_FIELD_NUMBER = 5;
private int provider_;
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
public int getProviderValue() {
return provider_;
}
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
public io.bloombox.schema.services.menu.v1beta1.CatalogProvider getProvider() {
@SuppressWarnings("deprecation")
io.bloombox.schema.services.menu.v1beta1.CatalogProvider result = io.bloombox.schema.services.menu.v1beta1.CatalogProvider.valueOf(provider_);
return result == null ? io.bloombox.schema.services.menu.v1beta1.CatalogProvider.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 {
getSerializedSize();
if (!getScopeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_);
}
if (featured_ != false) {
output.writeBool(2, featured_);
}
if (getSectionList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(sectionMemoizedSerializedSize);
}
for (int i = 0; i < section_.size(); i++) {
output.writeEnumNoTag(section_.get(i));
}
if (full_ != false) {
output.writeBool(4, full_);
}
if (provider_ != io.bloombox.schema.services.menu.v1beta1.CatalogProvider.UNSPECIFIED_CATALOG_PROVIDER.getNumber()) {
output.writeEnum(5, provider_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getScopeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scope_);
}
if (featured_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, featured_);
}
{
int dataSize = 0;
for (int i = 0; i < section_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(section_.get(i));
}
size += dataSize;
if (!getSectionList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}sectionMemoizedSerializedSize = dataSize;
}
if (full_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, full_);
}
if (provider_ != io.bloombox.schema.services.menu.v1beta1.CatalogProvider.UNSPECIFIED_CATALOG_PROVIDER.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, provider_);
}
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.menu.v1beta1.GetCatalog.Request)) {
return super.equals(obj);
}
io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request other = (io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request) obj;
if (!getScope()
.equals(other.getScope())) return false;
if (getFeatured()
!= other.getFeatured()) return false;
if (!section_.equals(other.section_)) return false;
if (getFull()
!= other.getFull()) return false;
if (provider_ != other.provider_) 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) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getScope().hashCode();
hash = (37 * hash) + FEATURED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFeatured());
if (getSectionCount() > 0) {
hash = (37 * hash) + SECTION_FIELD_NUMBER;
hash = (53 * hash) + section_.hashCode();
}
hash = (37 * hash) + FULL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFull());
hash = (37 * hash) + PROVIDER_FIELD_NUMBER;
hash = (53 * hash) + provider_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.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 for catalog information, to include the partner, location, and any automatic filters the invoking code
* desires to apply to products before returning them.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.GetCatalog.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.menu.v1beta1.GetCatalog.Request)
io.bloombox.schema.services.menu.v1beta1.GetCatalog.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request.class, io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request.Builder.class);
}
// Construct using io.bloombox.schema.services.menu.v1beta1.GetCatalog.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();
scope_ = "";
featured_ = false;
section_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
full_ = false;
provider_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_Request_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request getDefaultInstanceForType() {
return io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request build() {
io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request buildPartial() {
io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request result = new io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.scope_ = scope_;
result.featured_ = featured_;
if (((bitField0_ & 0x00000004) != 0)) {
section_ = java.util.Collections.unmodifiableList(section_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.section_ = section_;
result.full_ = full_;
result.provider_ = provider_;
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.bloombox.schema.services.menu.v1beta1.GetCatalog.Request) {
return mergeFrom((io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request other) {
if (other == io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request.getDefaultInstance()) return this;
if (!other.getScope().isEmpty()) {
scope_ = other.scope_;
onChanged();
}
if (other.getFeatured() != false) {
setFeatured(other.getFeatured());
}
if (!other.section_.isEmpty()) {
if (section_.isEmpty()) {
section_ = other.section_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSectionIsMutable();
section_.addAll(other.section_);
}
onChanged();
}
if (other.getFull() != false) {
setFull(other.getFull());
}
if (other.provider_ != 0) {
setProviderValue(other.getProviderValue());
}
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.menu.v1beta1.GetCatalog.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object scope_ = "";
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
public java.lang.String getScope() {
java.lang.Object ref = scope_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scope_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
public com.google.protobuf.ByteString
getScopeBytes() {
java.lang.Object ref = scope_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
public Builder setScope(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
scope_ = value;
onChanged();
return this;
}
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
public Builder clearScope() {
scope_ = getDefaultInstance().getScope();
onChanged();
return this;
}
/**
*
* Partner and location scope for the catalog request. Indicates the partner organization that owns the location for
* which we are fetching catalog data.
*
*
* string scope = 1;
*/
public Builder setScopeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
scope_ = value;
onChanged();
return this;
}
private boolean featured_ ;
/**
*
* Only include featured products in the output of this response.
*
*
* bool featured = 2;
*/
public boolean getFeatured() {
return featured_;
}
/**
*
* Only include featured products in the output of this response.
*
*
* bool featured = 2;
*/
public Builder setFeatured(boolean value) {
featured_ = value;
onChanged();
return this;
}
/**
*
* Only include featured products in the output of this response.
*
*
* bool featured = 2;
*/
public Builder clearFeatured() {
featured_ = false;
onChanged();
return this;
}
private java.util.List section_ =
java.util.Collections.emptyList();
private void ensureSectionIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
section_ = new java.util.ArrayList(section_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public java.util.List getSectionList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, io.opencannabis.schema.menu.section.Section>(section_, section_converter_);
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public int getSectionCount() {
return section_.size();
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public io.opencannabis.schema.menu.section.Section getSection(int index) {
return section_converter_.convert(section_.get(index));
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public Builder setSection(
int index, io.opencannabis.schema.menu.section.Section value) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionIsMutable();
section_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public Builder addSection(io.opencannabis.schema.menu.section.Section value) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionIsMutable();
section_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public Builder addAllSection(
java.lang.Iterable extends io.opencannabis.schema.menu.section.Section> values) {
ensureSectionIsMutable();
for (io.opencannabis.schema.menu.section.Section value : values) {
section_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public Builder clearSection() {
section_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public java.util.List
getSectionValueList() {
return java.util.Collections.unmodifiableList(section_);
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public int getSectionValue(int index) {
return section_.get(index);
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public Builder setSectionValue(
int index, int value) {
ensureSectionIsMutable();
section_.set(index, value);
onChanged();
return this;
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public Builder addSectionValue(int value) {
ensureSectionIsMutable();
section_.add(value);
onChanged();
return this;
}
/**
*
* Filter the menu by menu section. This flag can be specified multiple times, in which case it is interpreted to be
* joined between `AND` conjunctions, to produce an inclusive filter of products from all specified sections.
*
*
* repeated .opencannabis.products.menu.section.Section section = 3;
*/
public Builder addAllSectionValue(
java.lang.Iterable values) {
ensureSectionIsMutable();
for (int value : values) {
section_.add(value);
}
onChanged();
return this;
}
private boolean full_ ;
/**
*
* Consume the full menu, including products that are not currently available for sale (due to being out of stock,
* or not being moved into active inventory yet).
*
*
* bool full = 4;
*/
public boolean getFull() {
return full_;
}
/**
*
* Consume the full menu, including products that are not currently available for sale (due to being out of stock,
* or not being moved into active inventory yet).
*
*
* bool full = 4;
*/
public Builder setFull(boolean value) {
full_ = value;
onChanged();
return this;
}
/**
*
* Consume the full menu, including products that are not currently available for sale (due to being out of stock,
* or not being moved into active inventory yet).
*
*
* bool full = 4;
*/
public Builder clearFull() {
full_ = false;
onChanged();
return this;
}
private int provider_ = 0;
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
public int getProviderValue() {
return provider_;
}
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
public Builder setProviderValue(int value) {
provider_ = value;
onChanged();
return this;
}
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
public io.bloombox.schema.services.menu.v1beta1.CatalogProvider getProvider() {
@SuppressWarnings("deprecation")
io.bloombox.schema.services.menu.v1beta1.CatalogProvider result = io.bloombox.schema.services.menu.v1beta1.CatalogProvider.valueOf(provider_);
return result == null ? io.bloombox.schema.services.menu.v1beta1.CatalogProvider.UNRECOGNIZED : result;
}
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
public Builder setProvider(io.bloombox.schema.services.menu.v1beta1.CatalogProvider value) {
if (value == null) {
throw new NullPointerException();
}
provider_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies the source catalog provider, if known.
*
*
* .bloombox.services.menu.v1beta1.CatalogProvider provider = 5;
*/
public Builder clearProvider() {
provider_ = 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.menu.v1beta1.GetCatalog.Request)
}
// @@protoc_insertion_point(class_scope:bloombox.services.menu.v1beta1.GetCatalog.Request)
private static final io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.menu.v1beta1.GetCatalog.Request();
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog.Request 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.menu.v1beta1.GetCatalog)) {
return super.equals(obj);
}
io.bloombox.schema.services.menu.v1beta1.GetCatalog other = (io.bloombox.schema.services.menu.v1beta1.GetCatalog) 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.menu.v1beta1.GetCatalog parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog 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.menu.v1beta1.GetCatalog parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog 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.menu.v1beta1.GetCatalog parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog 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.menu.v1beta1.GetCatalog parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog 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.menu.v1beta1.GetCatalog parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog 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.menu.v1beta1.GetCatalog 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, wherein a set of product data is returned in universal product catalog format, which uses
* Comma Separated Values (CSV) in a particular arrangement to supply standards-compliant providers with basic product
* information (including Facebook, Google, and others).
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.GetCatalog}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.menu.v1beta1.GetCatalog)
io.bloombox.schema.services.menu.v1beta1.GetCatalogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.GetCatalog.class, io.bloombox.schema.services.menu.v1beta1.GetCatalog.Builder.class);
}
// Construct using io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_GetCatalog_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.GetCatalog getDefaultInstanceForType() {
return io.bloombox.schema.services.menu.v1beta1.GetCatalog.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.GetCatalog build() {
io.bloombox.schema.services.menu.v1beta1.GetCatalog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.GetCatalog buildPartial() {
io.bloombox.schema.services.menu.v1beta1.GetCatalog result = new io.bloombox.schema.services.menu.v1beta1.GetCatalog(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.menu.v1beta1.GetCatalog) {
return mergeFrom((io.bloombox.schema.services.menu.v1beta1.GetCatalog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.menu.v1beta1.GetCatalog other) {
if (other == io.bloombox.schema.services.menu.v1beta1.GetCatalog.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.menu.v1beta1.GetCatalog parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.menu.v1beta1.GetCatalog) 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.menu.v1beta1.GetCatalog)
}
// @@protoc_insertion_point(class_scope:bloombox.services.menu.v1beta1.GetCatalog)
private static final io.bloombox.schema.services.menu.v1beta1.GetCatalog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.menu.v1beta1.GetCatalog();
}
public static io.bloombox.schema.services.menu.v1beta1.GetCatalog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetCatalog parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetCatalog(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.menu.v1beta1.GetCatalog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy