Enum EventType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<EventType>
@Generated
public enum EventType
extends Enum<EventType>
implements com.google.protobuf.ProtocolMessageEnum
The part of the request or response for which the extension is called.Protobuf enum
google.cloud.networkservices.v1.EventType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified value.If included in `supported_events`, the extension is called when the HTTP request body arrives.If included in `supported_events`, the extension is called when the HTTP request headers arrive.If included in `supported_events`, the extension is called when the HTTP request trailers arrives.If included in `supported_events`, the extension is called when the HTTP response body arrives.If included in `supported_events`, the extension is called when the HTTP response headers arrive.If included in `supported_events`, the extension is called when the HTTP response trailers arrives. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified value.static final intIf included in `supported_events`, the extension is called when the HTTP request body arrives.static final intIf included in `supported_events`, the extension is called when the HTTP request headers arrive.static final intIf included in `supported_events`, the extension is called when the HTTP request trailers arrives.static final intIf included in `supported_events`, the extension is called when the HTTP response body arrives.static final intIf included in `supported_events`, the extension is called when the HTTP response headers arrive.static final intIf included in `supported_events`, the extension is called when the HTTP response trailers arrives. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<EventType>static EventTypevalueOf(int value) Deprecated.static EventTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static EventTypeReturns the enum constant of this type with the specified name.static EventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EVENT_TYPE_UNSPECIFIED
Unspecified value. Do not use.
EVENT_TYPE_UNSPECIFIED = 0; -
REQUEST_HEADERS
If included in `supported_events`, the extension is called when the HTTP request headers arrive.
REQUEST_HEADERS = 1; -
REQUEST_BODY
If included in `supported_events`, the extension is called when the HTTP request body arrives.
REQUEST_BODY = 2; -
RESPONSE_HEADERS
If included in `supported_events`, the extension is called when the HTTP response headers arrive.
RESPONSE_HEADERS = 3; -
RESPONSE_BODY
If included in `supported_events`, the extension is called when the HTTP response body arrives.
RESPONSE_BODY = 4; -
REQUEST_TRAILERS
If included in `supported_events`, the extension is called when the HTTP request trailers arrives.
REQUEST_TRAILERS = 5; -
RESPONSE_TRAILERS
If included in `supported_events`, the extension is called when the HTTP response trailers arrives.
RESPONSE_TRAILERS = 6; -
UNRECOGNIZED
-
-
Field Details
-
EVENT_TYPE_UNSPECIFIED_VALUE
public static final int EVENT_TYPE_UNSPECIFIED_VALUEUnspecified value. Do not use.
EVENT_TYPE_UNSPECIFIED = 0;- See Also:
-
REQUEST_HEADERS_VALUE
public static final int REQUEST_HEADERS_VALUEIf included in `supported_events`, the extension is called when the HTTP request headers arrive.
REQUEST_HEADERS = 1;- See Also:
-
REQUEST_BODY_VALUE
public static final int REQUEST_BODY_VALUEIf included in `supported_events`, the extension is called when the HTTP request body arrives.
REQUEST_BODY = 2;- See Also:
-
RESPONSE_HEADERS_VALUE
public static final int RESPONSE_HEADERS_VALUEIf included in `supported_events`, the extension is called when the HTTP response headers arrive.
RESPONSE_HEADERS = 3;- See Also:
-
RESPONSE_BODY_VALUE
public static final int RESPONSE_BODY_VALUEIf included in `supported_events`, the extension is called when the HTTP response body arrives.
RESPONSE_BODY = 4;- See Also:
-
REQUEST_TRAILERS_VALUE
public static final int REQUEST_TRAILERS_VALUEIf included in `supported_events`, the extension is called when the HTTP request trailers arrives.
REQUEST_TRAILERS = 5;- See Also:
-
RESPONSE_TRAILERS_VALUE
public static final int RESPONSE_TRAILERS_VALUEIf included in `supported_events`, the extension is called when the HTTP response trailers arrives.
RESPONSE_TRAILERS = 6;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-