public static enum Type.WellKnownType extends Enum<Type.WellKnownType> implements com.google.protobuf.ProtocolMessageEnum
Well-known protobuf types treated with first-class support in CEL.Protobuf enum
google.api.expr.v1alpha1.Type.WellKnownType| Enum Constant and Description |
|---|
ANY
Well-known protobuf.Any type.
|
DURATION
Well-known protobuf.Duration type, internally referenced as `duration`.
|
TIMESTAMP
Well-known protobuf.Timestamp type, internally referenced as `timestamp`.
|
UNRECOGNIZED |
WELL_KNOWN_TYPE_UNSPECIFIED
Unspecified type.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_VALUE
Well-known protobuf.Any type.
|
static int |
DURATION_VALUE
Well-known protobuf.Duration type, internally referenced as `duration`.
|
static int |
TIMESTAMP_VALUE
Well-known protobuf.Timestamp type, internally referenced as `timestamp`.
|
static int |
WELL_KNOWN_TYPE_UNSPECIFIED_VALUE
Unspecified type.
|
| Modifier and Type | Method and Description |
|---|---|
static Type.WellKnownType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Type.WellKnownType> |
internalGetValueMap() |
static Type.WellKnownType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Type.WellKnownType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Type.WellKnownType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type.WellKnownType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type.WellKnownType WELL_KNOWN_TYPE_UNSPECIFIED
Unspecified type.
WELL_KNOWN_TYPE_UNSPECIFIED = 0;public static final Type.WellKnownType ANY
Well-known protobuf.Any type. Any types are a polymorphic message type. During type-checking they are treated like `DYN` types, but at runtime they are resolved to a specific message type specified at evaluation time.
ANY = 1;public static final Type.WellKnownType TIMESTAMP
Well-known protobuf.Timestamp type, internally referenced as `timestamp`.
TIMESTAMP = 2;public static final Type.WellKnownType DURATION
Well-known protobuf.Duration type, internally referenced as `duration`.
DURATION = 3;public static final Type.WellKnownType UNRECOGNIZED
public static final int WELL_KNOWN_TYPE_UNSPECIFIED_VALUE
Unspecified type.
WELL_KNOWN_TYPE_UNSPECIFIED = 0;public static final int ANY_VALUE
Well-known protobuf.Any type. Any types are a polymorphic message type. During type-checking they are treated like `DYN` types, but at runtime they are resolved to a specific message type specified at evaluation time.
ANY = 1;public static final int TIMESTAMP_VALUE
Well-known protobuf.Timestamp type, internally referenced as `timestamp`.
TIMESTAMP = 2;public static final int DURATION_VALUE
Well-known protobuf.Duration type, internally referenced as `duration`.
DURATION = 3;public static Type.WellKnownType[] values()
for (Type.WellKnownType c : Type.WellKnownType.values()) System.out.println(c);
public static Type.WellKnownType 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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Type.WellKnownType valueOf(int value)
forNumber(int) instead.public static Type.WellKnownType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Type.WellKnownType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Type.WellKnownType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.