io.bloombox.schema.services.menu.v1beta1.SearchMenu 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 to search menu catalog data and return matching product results.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.SearchMenu}
*/
public final class SearchMenu extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.menu.v1beta1.SearchMenu)
SearchMenuOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchMenu.newBuilder() to construct.
private SearchMenu(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchMenu() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SearchMenu(
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_SearchMenu_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_SearchMenu_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.SearchMenu.class, io.bloombox.schema.services.menu.v1beta1.SearchMenu.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.menu.v1beta1.SearchMenu.Request)
com.google.protobuf.MessageOrBuilder {
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
boolean hasSearch();
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
io.bloombox.schema.search.SearchSpec getSearch();
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
io.bloombox.schema.search.SearchSpecOrBuilder getSearchOrBuilder();
}
/**
*
* Specifies a request to search product catalog data.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.SearchMenu.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.menu.v1beta1.SearchMenu.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.search.SearchSpec.Builder subBuilder = null;
if (search_ != null) {
subBuilder = search_.toBuilder();
}
search_ = input.readMessage(io.bloombox.schema.search.SearchSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(search_);
search_ = 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.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_SearchMenu_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_SearchMenu_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request.class, io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request.Builder.class);
}
public static final int SEARCH_FIELD_NUMBER = 1;
private io.bloombox.schema.search.SearchSpec search_;
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public boolean hasSearch() {
return search_ != null;
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public io.bloombox.schema.search.SearchSpec getSearch() {
return search_ == null ? io.bloombox.schema.search.SearchSpec.getDefaultInstance() : search_;
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public io.bloombox.schema.search.SearchSpecOrBuilder getSearchOrBuilder() {
return getSearch();
}
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 (search_ != null) {
output.writeMessage(1, getSearch());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (search_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSearch());
}
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.SearchMenu.Request)) {
return super.equals(obj);
}
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request other = (io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request) obj;
if (hasSearch() != other.hasSearch()) return false;
if (hasSearch()) {
if (!getSearch()
.equals(other.getSearch())) 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 (hasSearch()) {
hash = (37 * hash) + SEARCH_FIELD_NUMBER;
hash = (53 * hash) + getSearch().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.SearchMenu.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.SearchMenu.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.SearchMenu.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.SearchMenu.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.SearchMenu.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.SearchMenu.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.SearchMenu.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.SearchMenu.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.SearchMenu.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Specifies a request to search product catalog data.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.SearchMenu.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.menu.v1beta1.SearchMenu.Request)
io.bloombox.schema.services.menu.v1beta1.SearchMenu.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_SearchMenu_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_SearchMenu_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request.class, io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request.Builder.class);
}
// Construct using io.bloombox.schema.services.menu.v1beta1.SearchMenu.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 (searchBuilder_ == null) {
search_ = null;
} else {
search_ = null;
searchBuilder_ = null;
}
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_SearchMenu_Request_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request getDefaultInstanceForType() {
return io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request build() {
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request buildPartial() {
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request result = new io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request(this);
if (searchBuilder_ == null) {
result.search_ = search_;
} else {
result.search_ = searchBuilder_.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.menu.v1beta1.SearchMenu.Request) {
return mergeFrom((io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request other) {
if (other == io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request.getDefaultInstance()) return this;
if (other.hasSearch()) {
mergeSearch(other.getSearch());
}
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.SearchMenu.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.bloombox.schema.search.SearchSpec search_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.search.SearchSpec, io.bloombox.schema.search.SearchSpec.Builder, io.bloombox.schema.search.SearchSpecOrBuilder> searchBuilder_;
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public boolean hasSearch() {
return searchBuilder_ != null || search_ != null;
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public io.bloombox.schema.search.SearchSpec getSearch() {
if (searchBuilder_ == null) {
return search_ == null ? io.bloombox.schema.search.SearchSpec.getDefaultInstance() : search_;
} else {
return searchBuilder_.getMessage();
}
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public Builder setSearch(io.bloombox.schema.search.SearchSpec value) {
if (searchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
search_ = value;
onChanged();
} else {
searchBuilder_.setMessage(value);
}
return this;
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public Builder setSearch(
io.bloombox.schema.search.SearchSpec.Builder builderForValue) {
if (searchBuilder_ == null) {
search_ = builderForValue.build();
onChanged();
} else {
searchBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public Builder mergeSearch(io.bloombox.schema.search.SearchSpec value) {
if (searchBuilder_ == null) {
if (search_ != null) {
search_ =
io.bloombox.schema.search.SearchSpec.newBuilder(search_).mergeFrom(value).buildPartial();
} else {
search_ = value;
}
onChanged();
} else {
searchBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public Builder clearSearch() {
if (searchBuilder_ == null) {
search_ = null;
onChanged();
} else {
search_ = null;
searchBuilder_ = null;
}
return this;
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public io.bloombox.schema.search.SearchSpec.Builder getSearchBuilder() {
onChanged();
return getSearchFieldBuilder().getBuilder();
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
public io.bloombox.schema.search.SearchSpecOrBuilder getSearchOrBuilder() {
if (searchBuilder_ != null) {
return searchBuilder_.getMessageOrBuilder();
} else {
return search_ == null ?
io.bloombox.schema.search.SearchSpec.getDefaultInstance() : search_;
}
}
/**
*
* Manifest describing desired search parameters, including search terms.
*
*
* .bloombox.search.SearchSpec search = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.search.SearchSpec, io.bloombox.schema.search.SearchSpec.Builder, io.bloombox.schema.search.SearchSpecOrBuilder>
getSearchFieldBuilder() {
if (searchBuilder_ == null) {
searchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.search.SearchSpec, io.bloombox.schema.search.SearchSpec.Builder, io.bloombox.schema.search.SearchSpecOrBuilder>(
getSearch(),
getParentForChildren(),
isClean());
search_ = null;
}
return searchBuilder_;
}
@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.SearchMenu.Request)
}
// @@protoc_insertion_point(class_scope:bloombox.services.menu.v1beta1.SearchMenu.Request)
private static final io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.menu.v1beta1.SearchMenu.Request();
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.SearchMenu.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.menu.v1beta1.SearchMenu.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
boolean hasResulset();
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
io.bloombox.schema.search.SearchResultset getResulset();
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
io.bloombox.schema.search.SearchResultsetOrBuilder getResulsetOrBuilder();
}
/**
*
* Response to a request to search product catalog data.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.SearchMenu.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.menu.v1beta1.SearchMenu.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.bloombox.schema.search.SearchResultset.Builder subBuilder = null;
if (resulset_ != null) {
subBuilder = resulset_.toBuilder();
}
resulset_ = input.readMessage(io.bloombox.schema.search.SearchResultset.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resulset_);
resulset_ = 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.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_SearchMenu_Response_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_SearchMenu_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response.class, io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response.Builder.class);
}
public static final int RESULSET_FIELD_NUMBER = 1;
private io.bloombox.schema.search.SearchResultset resulset_;
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public boolean hasResulset() {
return resulset_ != null;
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public io.bloombox.schema.search.SearchResultset getResulset() {
return resulset_ == null ? io.bloombox.schema.search.SearchResultset.getDefaultInstance() : resulset_;
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public io.bloombox.schema.search.SearchResultsetOrBuilder getResulsetOrBuilder() {
return getResulset();
}
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 (resulset_ != null) {
output.writeMessage(1, getResulset());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resulset_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResulset());
}
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.SearchMenu.Response)) {
return super.equals(obj);
}
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response other = (io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response) obj;
if (hasResulset() != other.hasResulset()) return false;
if (hasResulset()) {
if (!getResulset()
.equals(other.getResulset())) 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 (hasResulset()) {
hash = (37 * hash) + RESULSET_FIELD_NUMBER;
hash = (53 * hash) + getResulset().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.menu.v1beta1.SearchMenu.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.menu.v1beta1.SearchMenu.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.menu.v1beta1.SearchMenu.Response 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.SearchMenu.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.menu.v1beta1.SearchMenu.Response 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.SearchMenu.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.menu.v1beta1.SearchMenu.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.menu.v1beta1.SearchMenu.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.menu.v1beta1.SearchMenu.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 a request to search product catalog data.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.SearchMenu.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.menu.v1beta1.SearchMenu.Response)
io.bloombox.schema.services.menu.v1beta1.SearchMenu.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_SearchMenu_Response_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_SearchMenu_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response.class, io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response.Builder.class);
}
// Construct using io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resulsetBuilder_ == null) {
resulset_ = null;
} else {
resulset_ = null;
resulsetBuilder_ = null;
}
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_SearchMenu_Response_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response getDefaultInstanceForType() {
return io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response build() {
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response buildPartial() {
io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response result = new io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response(this);
if (resulsetBuilder_ == null) {
result.resulset_ = resulset_;
} else {
result.resulset_ = resulsetBuilder_.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.menu.v1beta1.SearchMenu.Response) {
return mergeFrom((io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response other) {
if (other == io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response.getDefaultInstance()) return this;
if (other.hasResulset()) {
mergeResulset(other.getResulset());
}
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.SearchMenu.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.bloombox.schema.search.SearchResultset resulset_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.search.SearchResultset, io.bloombox.schema.search.SearchResultset.Builder, io.bloombox.schema.search.SearchResultsetOrBuilder> resulsetBuilder_;
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public boolean hasResulset() {
return resulsetBuilder_ != null || resulset_ != null;
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public io.bloombox.schema.search.SearchResultset getResulset() {
if (resulsetBuilder_ == null) {
return resulset_ == null ? io.bloombox.schema.search.SearchResultset.getDefaultInstance() : resulset_;
} else {
return resulsetBuilder_.getMessage();
}
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public Builder setResulset(io.bloombox.schema.search.SearchResultset value) {
if (resulsetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resulset_ = value;
onChanged();
} else {
resulsetBuilder_.setMessage(value);
}
return this;
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public Builder setResulset(
io.bloombox.schema.search.SearchResultset.Builder builderForValue) {
if (resulsetBuilder_ == null) {
resulset_ = builderForValue.build();
onChanged();
} else {
resulsetBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public Builder mergeResulset(io.bloombox.schema.search.SearchResultset value) {
if (resulsetBuilder_ == null) {
if (resulset_ != null) {
resulset_ =
io.bloombox.schema.search.SearchResultset.newBuilder(resulset_).mergeFrom(value).buildPartial();
} else {
resulset_ = value;
}
onChanged();
} else {
resulsetBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public Builder clearResulset() {
if (resulsetBuilder_ == null) {
resulset_ = null;
onChanged();
} else {
resulset_ = null;
resulsetBuilder_ = null;
}
return this;
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public io.bloombox.schema.search.SearchResultset.Builder getResulsetBuilder() {
onChanged();
return getResulsetFieldBuilder().getBuilder();
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
public io.bloombox.schema.search.SearchResultsetOrBuilder getResulsetOrBuilder() {
if (resulsetBuilder_ != null) {
return resulsetBuilder_.getMessageOrBuilder();
} else {
return resulset_ == null ?
io.bloombox.schema.search.SearchResultset.getDefaultInstance() : resulset_;
}
}
/**
*
* Corresponding items for each of the keys that matched the specified query.
*
*
* .bloombox.search.SearchResultset resulset = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.search.SearchResultset, io.bloombox.schema.search.SearchResultset.Builder, io.bloombox.schema.search.SearchResultsetOrBuilder>
getResulsetFieldBuilder() {
if (resulsetBuilder_ == null) {
resulsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.search.SearchResultset, io.bloombox.schema.search.SearchResultset.Builder, io.bloombox.schema.search.SearchResultsetOrBuilder>(
getResulset(),
getParentForChildren(),
isClean());
resulset_ = null;
}
return resulsetBuilder_;
}
@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.SearchMenu.Response)
}
// @@protoc_insertion_point(class_scope:bloombox.services.menu.v1beta1.SearchMenu.Response)
private static final io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.menu.v1beta1.SearchMenu.Response();
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.menu.v1beta1.SearchMenu.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.menu.v1beta1.SearchMenu)) {
return super.equals(obj);
}
io.bloombox.schema.services.menu.v1beta1.SearchMenu other = (io.bloombox.schema.services.menu.v1beta1.SearchMenu) 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.SearchMenu parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu 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.SearchMenu parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu 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.SearchMenu parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu 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.SearchMenu 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.SearchMenu 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.SearchMenu 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.SearchMenu 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.SearchMenu 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.SearchMenu 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.SearchMenu 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 menu catalog data and return matching product results.
*
*
* Protobuf type {@code bloombox.services.menu.v1beta1.SearchMenu}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.menu.v1beta1.SearchMenu)
io.bloombox.schema.services.menu.v1beta1.SearchMenuOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.menu.v1beta1.MenuServiceBeta1.internal_static_bloombox_services_menu_v1beta1_SearchMenu_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_SearchMenu_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.menu.v1beta1.SearchMenu.class, io.bloombox.schema.services.menu.v1beta1.SearchMenu.Builder.class);
}
// Construct using io.bloombox.schema.services.menu.v1beta1.SearchMenu.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_SearchMenu_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu getDefaultInstanceForType() {
return io.bloombox.schema.services.menu.v1beta1.SearchMenu.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu build() {
io.bloombox.schema.services.menu.v1beta1.SearchMenu result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.menu.v1beta1.SearchMenu buildPartial() {
io.bloombox.schema.services.menu.v1beta1.SearchMenu result = new io.bloombox.schema.services.menu.v1beta1.SearchMenu(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.SearchMenu) {
return mergeFrom((io.bloombox.schema.services.menu.v1beta1.SearchMenu)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.menu.v1beta1.SearchMenu other) {
if (other == io.bloombox.schema.services.menu.v1beta1.SearchMenu.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.SearchMenu parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.menu.v1beta1.SearchMenu) 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.SearchMenu)
}
// @@protoc_insertion_point(class_scope:bloombox.services.menu.v1beta1.SearchMenu)
private static final io.bloombox.schema.services.menu.v1beta1.SearchMenu DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.menu.v1beta1.SearchMenu();
}
public static io.bloombox.schema.services.menu.v1beta1.SearchMenu getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchMenu parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SearchMenu(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.SearchMenu getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy