Class UrlMapTest

  • All Implemented Interfaces:
    UrlMapTestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class UrlMapTest
    extends com.google.protobuf.GeneratedMessageV3
    implements UrlMapTestOrBuilder
     Message for the expected URL mappings.
     
    Protobuf type google.cloud.compute.v1.UrlMapTest
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UrlMapTest.Builder
      Message for the expected URL mappings.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • DESCRIPTION_FIELD_NUMBER

        public static final int DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXPECTED_OUTPUT_URL_FIELD_NUMBER

        public static final int EXPECTED_OUTPUT_URL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXPECTED_REDIRECT_RESPONSE_CODE_FIELD_NUMBER

        public static final int EXPECTED_REDIRECT_RESPONSE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasDescription

        public boolean hasDescription()
         Description of this test case.
         
        optional string description = 422937596;
        Specified by:
        hasDescription in interface UrlMapTestOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         Description of this test case.
         
        optional string description = 422937596;
        Specified by:
        getDescription in interface UrlMapTestOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Description of this test case.
         
        optional string description = 422937596;
        Specified by:
        getDescriptionBytes in interface UrlMapTestOrBuilder
        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 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;
        Specified by:
        hasExpectedOutputUrl in interface UrlMapTestOrBuilder
        Returns:
        Whether the expectedOutputUrl field is set.
      • 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;
        Specified by:
        getExpectedOutputUrl in interface UrlMapTestOrBuilder
        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 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;
        Specified by:
        getExpectedOutputUrlBytes in interface UrlMapTestOrBuilder
        Returns:
        The bytes for expectedOutputUrl.
      • 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;
        Specified by:
        hasExpectedRedirectResponseCode in interface UrlMapTestOrBuilder
        Returns:
        Whether the expectedRedirectResponseCode field is set.
      • 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;
        Specified by:
        getExpectedRedirectResponseCode in interface UrlMapTestOrBuilder
        Returns:
        The expectedRedirectResponseCode.
      • 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;
        Specified by:
        getHeadersList in interface UrlMapTestOrBuilder
      • 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;
        Specified by:
        getHeadersOrBuilderList in interface UrlMapTestOrBuilder
      • 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:
        getHeadersCount in interface UrlMapTestOrBuilder
      • getHeaders

        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;
        Specified by:
        getHeaders in interface UrlMapTestOrBuilder
      • getHeadersOrBuilder

        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;
        Specified by:
        getHeadersOrBuilder in interface UrlMapTestOrBuilder
      • 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:
        hasHost in interface UrlMapTestOrBuilder
        Returns:
        Whether the host field is set.
      • 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;
        Specified by:
        getHost in interface UrlMapTestOrBuilder
        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:
        getHostBytes in interface UrlMapTestOrBuilder
        Returns:
        The bytes for host.
      • hasPath

        public boolean hasPath()
         Path portion of the URL.
         
        optional string path = 3433509;
        Specified by:
        hasPath in interface UrlMapTestOrBuilder
        Returns:
        Whether the path field is set.
      • getPath

        public String getPath()
         Path portion of the URL.
         
        optional string path = 3433509;
        Specified by:
        getPath in interface UrlMapTestOrBuilder
        Returns:
        The path.
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         Path portion of the URL.
         
        optional string path = 3433509;
        Specified by:
        getPathBytes in interface UrlMapTestOrBuilder
        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:
        hasService in interface UrlMapTestOrBuilder
        Returns:
        Whether the service field is set.
      • 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;
        Specified by:
        getService in interface UrlMapTestOrBuilder
        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:
        getServiceBytes in interface UrlMapTestOrBuilder
        Returns:
        The bytes for service.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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

        public static UrlMapTest parseFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Throws:
        IOException
      • newBuilderForType

        public UrlMapTest.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public UrlMapTest.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected UrlMapTest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static UrlMapTest getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<UrlMapTest> parser()
      • getParserForType

        public com.google.protobuf.Parser<UrlMapTest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public UrlMapTest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder