public final class CustomErrorResponsePolicyCustomErrorResponseRule extends GeneratedMessageV3 implements CustomErrorResponsePolicyCustomErrorResponseRuleOrBuilder
Specifies the mapping between the response code that will be returned along with the custom error content and the response code returned by the backend service.
Protobuf type google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
MATCH_RESPONSE_CODES_FIELD_NUMBER
public static final int MATCH_RESPONSE_CODES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
OVERRIDE_RESPONSE_CODE_FIELD_NUMBER
public static final int OVERRIDE_RESPONSE_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CustomErrorResponsePolicyCustomErrorResponseRule getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CustomErrorResponsePolicyCustomErrorResponseRule.Builder newBuilder()
newBuilder(CustomErrorResponsePolicyCustomErrorResponseRule prototype)
public static CustomErrorResponsePolicyCustomErrorResponseRule.Builder newBuilder(CustomErrorResponsePolicyCustomErrorResponseRule prototype)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseDelimitedFrom(InputStream input)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(CodedInputStream input)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(InputStream input)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomErrorResponsePolicyCustomErrorResponseRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CustomErrorResponsePolicyCustomErrorResponseRule> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public CustomErrorResponsePolicyCustomErrorResponseRule getDefaultInstanceForType()
getMatchResponseCodes(int index)
public String getMatchResponseCodes(int index)
Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value. - 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599. - 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499. Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
repeated string match_response_codes = 104973410;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The matchResponseCodes at the given index.
|
getMatchResponseCodesBytes(int index)
public ByteString getMatchResponseCodesBytes(int index)
Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value. - 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599. - 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499. Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
repeated string match_response_codes = 104973410;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the matchResponseCodes at the given index.
|
getMatchResponseCodesCount()
public int getMatchResponseCodesCount()
Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value. - 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599. - 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499. Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
repeated string match_response_codes = 104973410;
Returns |
Type |
Description |
int |
The count of matchResponseCodes.
|
getMatchResponseCodesList()
public ProtocolStringList getMatchResponseCodesList()
Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value. - 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599. - 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499. Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
repeated string match_response_codes = 104973410;
getOverrideResponseCode()
public int getOverrideResponseCode()
The HTTP status code returned with the response containing the custom error content. If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
optional int32 override_response_code = 530328568;
Returns |
Type |
Description |
int |
The overrideResponseCode.
|
getParserForType()
public Parser<CustomErrorResponsePolicyCustomErrorResponseRule> getParserForType()
Overrides
getPath()
The full path to a file within backendBucket . For example: /errors/defaultError.html path must start with a leading slash. path cannot have trailing slashes. If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client. The value must be from 1 to 1024 characters
optional string path = 3433509;
Returns |
Type |
Description |
String |
The path.
|
getPathBytes()
public ByteString getPathBytes()
The full path to a file within backendBucket . For example: /errors/defaultError.html path must start with a leading slash. path cannot have trailing slashes. If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client. The value must be from 1 to 1024 characters
optional string path = 3433509;
Returns |
Type |
Description |
ByteString |
The bytes for path.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasOverrideResponseCode()
public boolean hasOverrideResponseCode()
The HTTP status code returned with the response containing the custom error content. If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
optional int32 override_response_code = 530328568;
Returns |
Type |
Description |
boolean |
Whether the overrideResponseCode field is set.
|
hasPath()
The full path to a file within backendBucket . For example: /errors/defaultError.html path must start with a leading slash. path cannot have trailing slashes. If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client. The value must be from 1 to 1024 characters
optional string path = 3433509;
Returns |
Type |
Description |
boolean |
Whether the path field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CustomErrorResponsePolicyCustomErrorResponseRule.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomErrorResponsePolicyCustomErrorResponseRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public CustomErrorResponsePolicyCustomErrorResponseRule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides