public static enum NotificationConfig.MessageFormat extends Enum<NotificationConfig.MessageFormat> implements ProtocolMessageEnum
Format of cloud pub/sub message.Protobuf enum
google.cloud.dialogflow.v2.NotificationConfig.MessageFormat
Enum Constant and Description |
---|
JSON
Pub/Sub message will be json.
|
MESSAGE_FORMAT_UNSPECIFIED
If it is unspecified, PROTO will be used.
|
PROTO
Pub/Sub message will be serialized proto.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
JSON_VALUE
Pub/Sub message will be json.
|
static int |
MESSAGE_FORMAT_UNSPECIFIED_VALUE
If it is unspecified, PROTO will be used.
|
static int |
PROTO_VALUE
Pub/Sub message will be serialized proto.
|
Modifier and Type | Method and Description |
---|---|
static NotificationConfig.MessageFormat |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<NotificationConfig.MessageFormat> |
internalGetValueMap() |
static NotificationConfig.MessageFormat |
valueOf(Descriptors.EnumValueDescriptor desc) |
static NotificationConfig.MessageFormat |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static NotificationConfig.MessageFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationConfig.MessageFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationConfig.MessageFormat MESSAGE_FORMAT_UNSPECIFIED
If it is unspecified, PROTO will be used.
MESSAGE_FORMAT_UNSPECIFIED = 0;
public static final NotificationConfig.MessageFormat PROTO
Pub/Sub message will be serialized proto.
PROTO = 1;
public static final NotificationConfig.MessageFormat JSON
Pub/Sub message will be json.
JSON = 2;
public static final NotificationConfig.MessageFormat UNRECOGNIZED
public static final int MESSAGE_FORMAT_UNSPECIFIED_VALUE
If it is unspecified, PROTO will be used.
MESSAGE_FORMAT_UNSPECIFIED = 0;
public static final int PROTO_VALUE
Pub/Sub message will be serialized proto.
PROTO = 1;
public static final int JSON_VALUE
Pub/Sub message will be json.
JSON = 2;
public static NotificationConfig.MessageFormat[] values()
for (NotificationConfig.MessageFormat c : NotificationConfig.MessageFormat.values()) System.out.println(c);
public static NotificationConfig.MessageFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static NotificationConfig.MessageFormat valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static NotificationConfig.MessageFormat forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<NotificationConfig.MessageFormat> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static NotificationConfig.MessageFormat valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.