public static enum BackendBucket.CompressionMode extends Enum<BackendBucket.CompressionMode> implements com.google.protobuf.ProtocolMessageEnum
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.Protobuf enum
google.cloud.compute.v1.BackendBucket.CompressionMode| Enum Constant and Description |
|---|
AUTOMATIC
Automatically uses the best compression based on the Accept-Encoding header sent by the client.
|
DISABLED
Disables compression.
|
UNDEFINED_COMPRESSION_MODE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOMATIC_VALUE
Automatically uses the best compression based on the Accept-Encoding header sent by the client.
|
static int |
DISABLED_VALUE
Disables compression.
|
static int |
UNDEFINED_COMPRESSION_MODE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static BackendBucket.CompressionMode |
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<BackendBucket.CompressionMode> |
internalGetValueMap() |
static BackendBucket.CompressionMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static BackendBucket.CompressionMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BackendBucket.CompressionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackendBucket.CompressionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackendBucket.CompressionMode UNDEFINED_COMPRESSION_MODE
A value indicating that the enum field is not set.
UNDEFINED_COMPRESSION_MODE = 0;public static final BackendBucket.CompressionMode AUTOMATIC
Automatically uses the best compression based on the Accept-Encoding header sent by the client.
AUTOMATIC = 165298699;public static final BackendBucket.CompressionMode DISABLED
Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients.
DISABLED = 516696700;public static final BackendBucket.CompressionMode UNRECOGNIZED
public static final int UNDEFINED_COMPRESSION_MODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_COMPRESSION_MODE = 0;public static final int AUTOMATIC_VALUE
Automatically uses the best compression based on the Accept-Encoding header sent by the client.
AUTOMATIC = 165298699;public static final int DISABLED_VALUE
Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients.
DISABLED = 516696700;public static BackendBucket.CompressionMode[] values()
for (BackendBucket.CompressionMode c : BackendBucket.CompressionMode.values()) System.out.println(c);
public static BackendBucket.CompressionMode 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 BackendBucket.CompressionMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static BackendBucket.CompressionMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<BackendBucket.CompressionMode> 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 BackendBucket.CompressionMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.