Package com.google.cloud.compute.v1
Class UrlMapTest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.UrlMapTest
- All Implemented Interfaces:
UrlMapTestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class UrlMapTest
extends com.google.protobuf.GeneratedMessage
implements UrlMapTestOrBuilder
Message for the expected URL mappings.Protobuf type
google.cloud.compute.v1.UrlMapTest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage for the expected URL mappings.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UrlMapTestDescription of this test case.com.google.protobuf.ByteStringDescription of this test case.static final com.google.protobuf.Descriptors.DescriptorThe expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.com.google.protobuf.ByteStringThe expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.intFor rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.getHeaders(int index) HTTP headers for this request.intHTTP headers for this request.HTTP headers for this request.getHeadersOrBuilder(int index) HTTP headers for this request.List<? extends UrlMapTestHeaderOrBuilder>HTTP headers for this request.getHost()Host portion of the URL.com.google.protobuf.ByteStringHost portion of the URL.com.google.protobuf.Parser<UrlMapTest>getPath()Path portion of the URL.com.google.protobuf.ByteStringPath portion of the URL.intExpected BackendService or BackendBucket resource the given URL should be mapped to.com.google.protobuf.ByteStringExpected BackendService or BackendBucket resource the given URL should be mapped to.booleanDescription of this test case.booleanThe expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.booleanFor rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.inthashCode()booleanhasHost()Host portion of the URL.booleanhasPath()Path portion of the URL.booleanExpected BackendService or BackendBucket resource the given URL should be mapped to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic UrlMapTest.Builderstatic UrlMapTest.BuildernewBuilder(UrlMapTest prototype) protected UrlMapTest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static UrlMapTestparseDelimitedFrom(InputStream input) static UrlMapTestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UrlMapTestparseFrom(byte[] data) static UrlMapTestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UrlMapTestparseFrom(com.google.protobuf.ByteString data) static UrlMapTestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UrlMapTestparseFrom(com.google.protobuf.CodedInputStream input) static UrlMapTestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UrlMapTestparseFrom(InputStream input) static UrlMapTestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UrlMapTestparseFrom(ByteBuffer data) static UrlMapTestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<UrlMapTest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
EXPECTED_OUTPUT_URL_FIELD_NUMBER
public static final int EXPECTED_OUTPUT_URL_FIELD_NUMBER- See Also:
-
EXPECTED_REDIRECT_RESPONSE_CODE_FIELD_NUMBER
public static final int EXPECTED_REDIRECT_RESPONSE_CODE_FIELD_NUMBER- See Also:
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER- See Also:
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasDescription
public boolean hasDescription()Description of this test case.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceUrlMapTestOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
Description of this test case.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceUrlMapTestOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of this test case.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceUrlMapTestOrBuilder- Returns:
- The bytes for description.
-
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 whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl 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 whenservice is specified.
optional string expected_output_url = 433967384;- Specified by:
hasExpectedOutputUrlin interfaceUrlMapTestOrBuilder- Returns:
- Whether the expectedOutputUrl field is set.
-
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 whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl 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 whenservice is specified.
optional string expected_output_url = 433967384;- Specified by:
getExpectedOutputUrlin interfaceUrlMapTestOrBuilder- Returns:
- The expectedOutputUrl.
-
getExpectedOutputUrlBytes
public com.google.protobuf.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 whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl 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 whenservice is specified.
optional string expected_output_url = 433967384;- Specified by:
getExpectedOutputUrlBytesin interfaceUrlMapTestOrBuilder- Returns:
- The bytes for expectedOutputUrl.
-
hasExpectedRedirectResponseCode
public boolean hasExpectedRedirectResponseCode()For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set whenservice is set.
optional int32 expected_redirect_response_code = 18888047;- Specified by:
hasExpectedRedirectResponseCodein interfaceUrlMapTestOrBuilder- Returns:
- Whether the expectedRedirectResponseCode field is set.
-
getExpectedRedirectResponseCode
public int getExpectedRedirectResponseCode()For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set whenservice is set.
optional int32 expected_redirect_response_code = 18888047;- Specified by:
getExpectedRedirectResponseCodein interfaceUrlMapTestOrBuilder- Returns:
- The expectedRedirectResponseCode.
-
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;- Specified by:
getHeadersListin interfaceUrlMapTestOrBuilder
-
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;- Specified by:
getHeadersOrBuilderListin interfaceUrlMapTestOrBuilder
-
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;- Specified by:
getHeadersCountin interfaceUrlMapTestOrBuilder
-
getHeaders
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;- Specified by:
getHeadersin interfaceUrlMapTestOrBuilder
-
getHeadersOrBuilder
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;- Specified by:
getHeadersOrBuilderin interfaceUrlMapTestOrBuilder
-
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;- Specified by:
hasHostin interfaceUrlMapTestOrBuilder- Returns:
- Whether the host field is set.
-
getHost
Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;- Specified by:
getHostin interfaceUrlMapTestOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.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;- Specified by:
getHostBytesin interfaceUrlMapTestOrBuilder- Returns:
- The bytes for host.
-
hasPath
public boolean hasPath()Path portion of the URL.
optional string path = 3433509;- Specified by:
hasPathin interfaceUrlMapTestOrBuilder- Returns:
- Whether the path field is set.
-
getPath
Path portion of the URL.
optional string path = 3433509;- Specified by:
getPathin interfaceUrlMapTestOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Path portion of the URL.
optional string path = 3433509;- Specified by:
getPathBytesin interfaceUrlMapTestOrBuilder- Returns:
- The bytes for path.
-
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;- Specified by:
hasServicein interfaceUrlMapTestOrBuilder- Returns:
- Whether the service field is set.
-
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;- Specified by:
getServicein interfaceUrlMapTestOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.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;- Specified by:
getServiceBytesin interfaceUrlMapTestOrBuilder- Returns:
- The bytes for service.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static UrlMapTest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UrlMapTest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UrlMapTest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UrlMapTest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UrlMapTest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UrlMapTest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static UrlMapTest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static UrlMapTest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static UrlMapTest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UrlMapTest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-