
io.bloombox.schema.search.SearchResultExtension Maven / Gradle / Ivy
/*
* Copyright 2018, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or publishing of derivative works, for commercial
* purposes or any other purpose, from a duly authorized officer of Momentum
* Ideas Co.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: search/SearchSpec.proto
package io.bloombox.schema.search;
/**
*
* Specifies data extensions that may be requested, and returned, with stock search results.
*
*
* Protobuf enum {@code bloombox.search.SearchResultExtension}
*/
public enum SearchResultExtension
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Return the result's name along with its key. This is included in the default set of returned items when not
* searching in `keys_only` mode.
*
*
* NAME = 0;
*/
NAME(0),
/**
*
* Return the result's description along with its key. This is included in the default set of returned items when not
* searching in `keys_only` mode.
*
*
* DESCRIPTION = 1;
*/
DESCRIPTION(1),
/**
*
* Return at least one media link per result along with its key. This is included in the default set of returned items
* when not searching in `keys_only` mode.
*
*
* MEDIA = 2;
*/
MEDIA(2),
/**
*
* Return lab results in full along with each key.
*
*
* LABS = 3;
*/
LABS(3),
/**
*
* Return pricing information along with each key.
*
*
* PRICING = 4;
*/
PRICING(4),
/**
*
* Return related item keys along with each key.
*
*
* RELATED = 5;
*/
RELATED(5),
UNRECOGNIZED(-1),
;
/**
*
* Return the result's name along with its key. This is included in the default set of returned items when not
* searching in `keys_only` mode.
*
*
* NAME = 0;
*/
public static final int NAME_VALUE = 0;
/**
*
* Return the result's description along with its key. This is included in the default set of returned items when not
* searching in `keys_only` mode.
*
*
* DESCRIPTION = 1;
*/
public static final int DESCRIPTION_VALUE = 1;
/**
*
* Return at least one media link per result along with its key. This is included in the default set of returned items
* when not searching in `keys_only` mode.
*
*
* MEDIA = 2;
*/
public static final int MEDIA_VALUE = 2;
/**
*
* Return lab results in full along with each key.
*
*
* LABS = 3;
*/
public static final int LABS_VALUE = 3;
/**
*
* Return pricing information along with each key.
*
*
* PRICING = 4;
*/
public static final int PRICING_VALUE = 4;
/**
*
* Return related item keys along with each key.
*
*
* RELATED = 5;
*/
public static final int RELATED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SearchResultExtension valueOf(int value) {
return forNumber(value);
}
public static SearchResultExtension forNumber(int value) {
switch (value) {
case 0: return NAME;
case 1: return DESCRIPTION;
case 2: return MEDIA;
case 3: return LABS;
case 4: return PRICING;
case 5: return RELATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SearchResultExtension> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SearchResultExtension findValueByNumber(int number) {
return SearchResultExtension.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.bloombox.schema.search.SearchMetadata.getDescriptor().getEnumTypes().get(1);
}
private static final SearchResultExtension[] VALUES = values();
public static SearchResultExtension valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SearchResultExtension(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:bloombox.search.SearchResultExtension)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy