Class UrlMapTest (1.11.0)

public final class UrlMapTest extends GeneratedMessageV3 implements UrlMapTestOrBuilder

Message for the expected URL mappings.

Protobuf type google.cloud.compute.v1.UrlMapTest

Implements

UrlMapTestOrBuilder

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

EXPECTED_OUTPUT_URL_FIELD_NUMBER

public static final int EXPECTED_OUTPUT_URL_FIELD_NUMBER
Field Value
TypeDescription
int

EXPECTED_REDIRECT_RESPONSE_CODE_FIELD_NUMBER

public static final int EXPECTED_REDIRECT_RESPONSE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

HEADERS_FIELD_NUMBER

public static final int HEADERS_FIELD_NUMBER
Field Value
TypeDescription
int

HOST_FIELD_NUMBER

public static final int HOST_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UrlMapTest getDefaultInstance()
Returns
TypeDescription
UrlMapTest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UrlMapTest.Builder newBuilder()
Returns
TypeDescription
UrlMapTest.Builder

newBuilder(UrlMapTest prototype)

public static UrlMapTest.Builder newBuilder(UrlMapTest prototype)
Parameter
NameDescription
prototypeUrlMapTest
Returns
TypeDescription
UrlMapTest.Builder

parseDelimitedFrom(InputStream input)

public static UrlMapTest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UrlMapTest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UrlMapTest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UrlMapTest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UrlMapTest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UrlMapTest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UrlMapTest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UrlMapTest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UrlMapTest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UrlMapTest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UrlMapTest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UrlMapTest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UrlMapTest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UrlMapTest> parser()
Returns
TypeDescription
Parser<UrlMapTest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UrlMapTest getDefaultInstanceForType()
Returns
TypeDescription
UrlMapTest

getDescription()

public String getDescription()

Description of this test case.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of this test case.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getExpectedOutputUrl()

public String getExpectedOutputUrl()

The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.

optional string expected_output_url = 433967384;

Returns
TypeDescription
String

The expectedOutputUrl.

getExpectedOutputUrlBytes()

public ByteString getExpectedOutputUrlBytes()

The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.

optional string expected_output_url = 433967384;

Returns
TypeDescription
ByteString

The bytes for expectedOutputUrl.

getExpectedRedirectResponseCode()

public int getExpectedRedirectResponseCode()

For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.

optional int32 expected_redirect_response_code = 18888047;

Returns
TypeDescription
int

The expectedRedirectResponseCode.

getHeaders(int index)

public UrlMapTestHeader getHeaders(int index)

HTTP headers for this request. If headers contains a host header, then host must also match the header value.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
NameDescription
indexint
Returns
TypeDescription
UrlMapTestHeader

getHeadersCount()

public int getHeadersCount()

HTTP headers for this request. If headers contains a host header, then host must also match the header value.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
TypeDescription
int

getHeadersList()

public List<UrlMapTestHeader> getHeadersList()

HTTP headers for this request. If headers contains a host header, then host must also match the header value.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
TypeDescription
List<UrlMapTestHeader>

getHeadersOrBuilder(int index)

public UrlMapTestHeaderOrBuilder getHeadersOrBuilder(int index)

HTTP headers for this request. If headers contains a host header, then host must also match the header value.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
NameDescription
indexint
Returns
TypeDescription
UrlMapTestHeaderOrBuilder

getHeadersOrBuilderList()

public List<? extends UrlMapTestHeaderOrBuilder> getHeadersOrBuilderList()

HTTP headers for this request. If headers contains a host header, then host must also match the header value.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.UrlMapTestHeaderOrBuilder>

getHost()

public String getHost()

Host portion of the URL. If headers contains a host header, then host must also match the header value.

optional string host = 3208616;

Returns
TypeDescription
String

The host.

getHostBytes()

public ByteString getHostBytes()

Host portion of the URL. If headers contains a host header, then host must also match the header value.

optional string host = 3208616;

Returns
TypeDescription
ByteString

The bytes for host.

getParserForType()

public Parser<UrlMapTest> getParserForType()
Returns
TypeDescription
Parser<UrlMapTest>
Overrides

getPath()

public String getPath()

Path portion of the URL.

optional string path = 3433509;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path portion of the URL.

optional string path = 3433509;

Returns
TypeDescription
ByteString

The bytes for path.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getService()

public String getService()

Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.

optional string service = 373540533;

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.

optional string service = 373540533;

Returns
TypeDescription
ByteString

The bytes for service.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDescription()

public boolean hasDescription()

Description of this test case.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasExpectedOutputUrl()

public boolean hasExpectedOutputUrl()

The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.

optional string expected_output_url = 433967384;

Returns
TypeDescription
boolean

Whether the expectedOutputUrl field is set.

hasExpectedRedirectResponseCode()

public boolean hasExpectedRedirectResponseCode()

For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.

optional int32 expected_redirect_response_code = 18888047;

Returns
TypeDescription
boolean

Whether the expectedRedirectResponseCode field is set.

hasHost()

public boolean hasHost()

Host portion of the URL. If headers contains a host header, then host must also match the header value.

optional string host = 3208616;

Returns
TypeDescription
boolean

Whether the host field is set.

hasPath()

public boolean hasPath()

Path portion of the URL.

optional string path = 3433509;

Returns
TypeDescription
boolean

Whether the path field is set.

hasService()

public boolean hasService()

Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.

optional string service = 373540533;

Returns
TypeDescription
boolean

Whether the service field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UrlMapTest.Builder newBuilderForType()
Returns
TypeDescription
UrlMapTest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UrlMapTest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UrlMapTest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UrlMapTest.Builder toBuilder()
Returns
TypeDescription
UrlMapTest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException