ai.promoted.proto.delivery.UseCase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deliveryclient Show documentation
Show all versions of deliveryclient Show documentation
A Java Client to contact the Promoted.ai Delivery API.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/delivery/delivery.proto
package ai.promoted.proto.delivery;
/**
* Protobuf enum {@code delivery.UseCase}
*/
public enum UseCase
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_USE_CASE = 0;
*/
UNKNOWN_USE_CASE(0),
/**
* CUSTOM = 1;
*/
CUSTOM(1),
/**
* SEARCH = 2;
*/
SEARCH(2),
/**
* SEARCH_SUGGESTIONS = 3;
*/
SEARCH_SUGGESTIONS(3),
/**
* FEED = 4;
*/
FEED(4),
/**
* RELATED_CONTENT = 5;
*/
RELATED_CONTENT(5),
/**
* CLOSE_UP = 6;
*/
CLOSE_UP(6),
/**
* CATEGORY_CONTENT = 7;
*/
CATEGORY_CONTENT(7),
/**
* MY_CONTENT = 8;
*/
MY_CONTENT(8),
/**
* MY_SAVED_CONTENT = 9;
*/
MY_SAVED_CONTENT(9),
/**
* SELLER_CONTENT = 10;
*/
SELLER_CONTENT(10),
/**
* DISCOVER = 11;
*/
DISCOVER(11),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_USE_CASE = 0;
*/
public static final int UNKNOWN_USE_CASE_VALUE = 0;
/**
* CUSTOM = 1;
*/
public static final int CUSTOM_VALUE = 1;
/**
* SEARCH = 2;
*/
public static final int SEARCH_VALUE = 2;
/**
* SEARCH_SUGGESTIONS = 3;
*/
public static final int SEARCH_SUGGESTIONS_VALUE = 3;
/**
* FEED = 4;
*/
public static final int FEED_VALUE = 4;
/**
* RELATED_CONTENT = 5;
*/
public static final int RELATED_CONTENT_VALUE = 5;
/**
* CLOSE_UP = 6;
*/
public static final int CLOSE_UP_VALUE = 6;
/**
* CATEGORY_CONTENT = 7;
*/
public static final int CATEGORY_CONTENT_VALUE = 7;
/**
* MY_CONTENT = 8;
*/
public static final int MY_CONTENT_VALUE = 8;
/**
* MY_SAVED_CONTENT = 9;
*/
public static final int MY_SAVED_CONTENT_VALUE = 9;
/**
* SELLER_CONTENT = 10;
*/
public static final int SELLER_CONTENT_VALUE = 10;
/**
* DISCOVER = 11;
*/
public static final int DISCOVER_VALUE = 11;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static UseCase valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static UseCase forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_USE_CASE;
case 1: return CUSTOM;
case 2: return SEARCH;
case 3: return SEARCH_SUGGESTIONS;
case 4: return FEED;
case 5: return RELATED_CONTENT;
case 6: return CLOSE_UP;
case 7: return CATEGORY_CONTENT;
case 8: return MY_CONTENT;
case 9: return MY_SAVED_CONTENT;
case 10: return SELLER_CONTENT;
case 11: return DISCOVER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UseCase> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UseCase findValueByNumber(int number) {
return UseCase.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 ai.promoted.proto.delivery.Delivery.getDescriptor().getEnumTypes().get(0);
}
private static final UseCase[] VALUES = values();
public static UseCase 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 UseCase(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:delivery.UseCase)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy