Class UrlMap

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.UrlMap
All Implemented Interfaces:
UrlMapOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class UrlMap extends com.google.protobuf.GeneratedMessage implements UrlMapOrBuilder
 Represents a URL Map resource.

 Compute Engine has two URL Map resources:

 * [Global](/compute/docs/reference/rest/v1/urlMaps)
 * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps)

 A URL map resource is a component of certain types of cloud load balancers
 and Traffic Director:

 * urlMaps are used by global external Application Load
 Balancers, classic Application Load Balancers, and cross-region internal
 Application Load Balancers.
 * regionUrlMaps are used by internal Application Load Balancers,
 regional external Application Load Balancers and regional internal
 Application Load Balancers.

 For a list of supported URL map features by the load balancer type, see the
 Load balancing features: Routing and traffic management table.

 For a list of supported URL map features for Traffic Director, see the
 Traffic Director features: Routing and traffic management table.

 This resource defines mappings from hostnames and URL paths to either a
 backend service or a backend bucket.

 To use the global urlMaps resource, the backend service must
 have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use
 the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more
 information, read URL
 Map Concepts.
 
Protobuf type google.cloud.compute.v1.UrlMap
See Also:
  • Field Details

    • CREATION_TIMESTAMP_FIELD_NUMBER

      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      See Also:
    • DEFAULT_CUSTOM_ERROR_RESPONSE_POLICY_FIELD_NUMBER

      public static final int DEFAULT_CUSTOM_ERROR_RESPONSE_POLICY_FIELD_NUMBER
      See Also:
    • DEFAULT_ROUTE_ACTION_FIELD_NUMBER

      public static final int DEFAULT_ROUTE_ACTION_FIELD_NUMBER
      See Also:
    • DEFAULT_SERVICE_FIELD_NUMBER

      public static final int DEFAULT_SERVICE_FIELD_NUMBER
      See Also:
    • DEFAULT_URL_REDIRECT_FIELD_NUMBER

      public static final int DEFAULT_URL_REDIRECT_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • FINGERPRINT_FIELD_NUMBER

      public static final int FINGERPRINT_FIELD_NUMBER
      See Also:
    • HEADER_ACTION_FIELD_NUMBER

      public static final int HEADER_ACTION_FIELD_NUMBER
      See Also:
    • HOST_RULES_FIELD_NUMBER

      public static final int HOST_RULES_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • KIND_FIELD_NUMBER

      public static final int KIND_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PATH_MATCHERS_FIELD_NUMBER

      public static final int PATH_MATCHERS_FIELD_NUMBER
      See Also:
    • REGION_FIELD_NUMBER

      public static final int REGION_FIELD_NUMBER
      See Also:
    • TESTS_FIELD_NUMBER

      public static final int TESTS_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface UrlMapOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface UrlMapOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • hasDefaultCustomErrorResponsePolicy

      public boolean hasDefaultCustomErrorResponsePolicy()
       defaultCustomErrorResponsePolicy specifies how the Load
       Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
      
       This policy takes
       effect at the load balancer level and applies only when no policy has been
       defined for the error code at lower levels like PathMatcher, RouteRule and
       PathRule within this UrlMap.
      
       For example, consider a UrlMap with the
       following configuration:
      
      
       - defaultCustomErrorResponsePolicy containing policies for
       responding to 5xx and 4xx errors
       - A PathMatcher configured for *.example.com has
       defaultCustomErrorResponsePolicy for 4xx.
      
       If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
       When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
       a request that does not match any host in *.example.com such
       as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
       takes effect.
      
       When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
       once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
       a retry, if load balancer is successful in reaching the
       service, the defaultCustomErrorResponsePolicy is ignored and
       the response from the service is returned to the client.
      
       defaultCustomErrorResponsePolicy is supported only for
       global external Application Load Balancers.
       
      optional .google.cloud.compute.v1.CustomErrorResponsePolicy default_custom_error_response_policy = 81266089;
      Specified by:
      hasDefaultCustomErrorResponsePolicy in interface UrlMapOrBuilder
      Returns:
      Whether the defaultCustomErrorResponsePolicy field is set.
    • getDefaultCustomErrorResponsePolicy

      public CustomErrorResponsePolicy getDefaultCustomErrorResponsePolicy()
       defaultCustomErrorResponsePolicy specifies how the Load
       Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
      
       This policy takes
       effect at the load balancer level and applies only when no policy has been
       defined for the error code at lower levels like PathMatcher, RouteRule and
       PathRule within this UrlMap.
      
       For example, consider a UrlMap with the
       following configuration:
      
      
       - defaultCustomErrorResponsePolicy containing policies for
       responding to 5xx and 4xx errors
       - A PathMatcher configured for *.example.com has
       defaultCustomErrorResponsePolicy for 4xx.
      
       If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
       When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
       a request that does not match any host in *.example.com such
       as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
       takes effect.
      
       When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
       once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
       a retry, if load balancer is successful in reaching the
       service, the defaultCustomErrorResponsePolicy is ignored and
       the response from the service is returned to the client.
      
       defaultCustomErrorResponsePolicy is supported only for
       global external Application Load Balancers.
       
      optional .google.cloud.compute.v1.CustomErrorResponsePolicy default_custom_error_response_policy = 81266089;
      Specified by:
      getDefaultCustomErrorResponsePolicy in interface UrlMapOrBuilder
      Returns:
      The defaultCustomErrorResponsePolicy.
    • getDefaultCustomErrorResponsePolicyOrBuilder

      public CustomErrorResponsePolicyOrBuilder getDefaultCustomErrorResponsePolicyOrBuilder()
       defaultCustomErrorResponsePolicy specifies how the Load
       Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
      
       This policy takes
       effect at the load balancer level and applies only when no policy has been
       defined for the error code at lower levels like PathMatcher, RouteRule and
       PathRule within this UrlMap.
      
       For example, consider a UrlMap with the
       following configuration:
      
      
       - defaultCustomErrorResponsePolicy containing policies for
       responding to 5xx and 4xx errors
       - A PathMatcher configured for *.example.com has
       defaultCustomErrorResponsePolicy for 4xx.
      
       If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
       When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
       a request that does not match any host in *.example.com such
       as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
       takes effect.
      
       When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
       once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
       a retry, if load balancer is successful in reaching the
       service, the defaultCustomErrorResponsePolicy is ignored and
       the response from the service is returned to the client.
      
       defaultCustomErrorResponsePolicy is supported only for
       global external Application Load Balancers.
       
      optional .google.cloud.compute.v1.CustomErrorResponsePolicy default_custom_error_response_policy = 81266089;
      Specified by:
      getDefaultCustomErrorResponsePolicyOrBuilder in interface UrlMapOrBuilder
    • hasDefaultRouteAction

      public boolean hasDefaultRouteAction()
       defaultRouteAction takes effect when none of the
       hostRules match. The load balancer performs advanced routing
       actions, such as URL rewrites and header transformations, before forwarding
       the request to the selected backend.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       URL maps for classic Application Load Balancers only support
       the urlRewrite action within defaultRouteAction.
      
      
       defaultRouteAction has no effect when the URL map is bound
       to a target gRPC proxy that has the validateForProxyless field
       set to true.
       
      optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
      Specified by:
      hasDefaultRouteAction in interface UrlMapOrBuilder
      Returns:
      Whether the defaultRouteAction field is set.
    • getDefaultRouteAction

      public HttpRouteAction getDefaultRouteAction()
       defaultRouteAction takes effect when none of the
       hostRules match. The load balancer performs advanced routing
       actions, such as URL rewrites and header transformations, before forwarding
       the request to the selected backend.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       URL maps for classic Application Load Balancers only support
       the urlRewrite action within defaultRouteAction.
      
      
       defaultRouteAction has no effect when the URL map is bound
       to a target gRPC proxy that has the validateForProxyless field
       set to true.
       
      optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
      Specified by:
      getDefaultRouteAction in interface UrlMapOrBuilder
      Returns:
      The defaultRouteAction.
    • getDefaultRouteActionOrBuilder

      public HttpRouteActionOrBuilder getDefaultRouteActionOrBuilder()
       defaultRouteAction takes effect when none of the
       hostRules match. The load balancer performs advanced routing
       actions, such as URL rewrites and header transformations, before forwarding
       the request to the selected backend.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       URL maps for classic Application Load Balancers only support
       the urlRewrite action within defaultRouteAction.
      
      
       defaultRouteAction has no effect when the URL map is bound
       to a target gRPC proxy that has the validateForProxyless field
       set to true.
       
      optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
      Specified by:
      getDefaultRouteActionOrBuilder in interface UrlMapOrBuilder
    • hasDefaultService

      public boolean hasDefaultService()
       The full or partial URL of the defaultService resource to
       which traffic is directed if none of the hostRules match.
       If defaultRouteAction is also specified, advanced
       routing actions, such as URL rewrites, take effect before sending the
       request to the backend.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       defaultService has no effect when the URL map is bound
       to a target gRPC proxy that has the validateForProxyless field
       set to true.
       
      optional string default_service = 370242231;
      Specified by:
      hasDefaultService in interface UrlMapOrBuilder
      Returns:
      Whether the defaultService field is set.
    • getDefaultService

      public String getDefaultService()
       The full or partial URL of the defaultService resource to
       which traffic is directed if none of the hostRules match.
       If defaultRouteAction is also specified, advanced
       routing actions, such as URL rewrites, take effect before sending the
       request to the backend.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       defaultService has no effect when the URL map is bound
       to a target gRPC proxy that has the validateForProxyless field
       set to true.
       
      optional string default_service = 370242231;
      Specified by:
      getDefaultService in interface UrlMapOrBuilder
      Returns:
      The defaultService.
    • getDefaultServiceBytes

      public com.google.protobuf.ByteString getDefaultServiceBytes()
       The full or partial URL of the defaultService resource to
       which traffic is directed if none of the hostRules match.
       If defaultRouteAction is also specified, advanced
       routing actions, such as URL rewrites, take effect before sending the
       request to the backend.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       defaultService has no effect when the URL map is bound
       to a target gRPC proxy that has the validateForProxyless field
       set to true.
       
      optional string default_service = 370242231;
      Specified by:
      getDefaultServiceBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for defaultService.
    • hasDefaultUrlRedirect

      public boolean hasDefaultUrlRedirect()
       When none of the specified hostRules match, the request
       is redirected to a URL specified by defaultUrlRedirect.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       Not supported when the URL map is bound to a target gRPC proxy.
       
      optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
      Specified by:
      hasDefaultUrlRedirect in interface UrlMapOrBuilder
      Returns:
      Whether the defaultUrlRedirect field is set.
    • getDefaultUrlRedirect

      public HttpRedirectAction getDefaultUrlRedirect()
       When none of the specified hostRules match, the request
       is redirected to a URL specified by defaultUrlRedirect.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       Not supported when the URL map is bound to a target gRPC proxy.
       
      optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
      Specified by:
      getDefaultUrlRedirect in interface UrlMapOrBuilder
      Returns:
      The defaultUrlRedirect.
    • getDefaultUrlRedirectOrBuilder

      public HttpRedirectActionOrBuilder getDefaultUrlRedirectOrBuilder()
       When none of the specified hostRules match, the request
       is redirected to a URL specified by defaultUrlRedirect.
      
      
       Only one of defaultUrlRedirect, defaultService
       or defaultRouteAction.weightedBackendService can be set.
      
      
       Not supported when the URL map is bound to a target gRPC proxy.
       
      optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
      Specified by:
      getDefaultUrlRedirectOrBuilder in interface UrlMapOrBuilder
    • hasDescription

      public boolean hasDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface UrlMapOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface UrlMapOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for description.
    • hasFingerprint

      public boolean hasFingerprint()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field is ignored when
       inserting a UrlMap. An up-to-date fingerprint must be provided
       in order to update the UrlMap, otherwise the request will
       fail with error 412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a UrlMap.
       
      optional string fingerprint = 234678500;
      Specified by:
      hasFingerprint in interface UrlMapOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public String getFingerprint()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field is ignored when
       inserting a UrlMap. An up-to-date fingerprint must be provided
       in order to update the UrlMap, otherwise the request will
       fail with error 412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a UrlMap.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprint in interface UrlMapOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public com.google.protobuf.ByteString getFingerprintBytes()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field is ignored when
       inserting a UrlMap. An up-to-date fingerprint must be provided
       in order to update the UrlMap, otherwise the request will
       fail with error 412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a UrlMap.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprintBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for fingerprint.
    • hasHeaderAction

      public boolean hasHeaderAction()
       Specifies changes to request and response headers that need to take effect
       for the selected backendService.
      
       The headerAction specified here take effect afterheaderAction specified under pathMatcher.
      
       headerAction is not supported for load balancers
       that have
       their loadBalancingScheme set to EXTERNAL.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;
      Specified by:
      hasHeaderAction in interface UrlMapOrBuilder
      Returns:
      Whether the headerAction field is set.
    • getHeaderAction

      public HttpHeaderAction getHeaderAction()
       Specifies changes to request and response headers that need to take effect
       for the selected backendService.
      
       The headerAction specified here take effect afterheaderAction specified under pathMatcher.
      
       headerAction is not supported for load balancers
       that have
       their loadBalancingScheme set to EXTERNAL.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;
      Specified by:
      getHeaderAction in interface UrlMapOrBuilder
      Returns:
      The headerAction.
    • getHeaderActionOrBuilder

      public HttpHeaderActionOrBuilder getHeaderActionOrBuilder()
       Specifies changes to request and response headers that need to take effect
       for the selected backendService.
      
       The headerAction specified here take effect afterheaderAction specified under pathMatcher.
      
       headerAction is not supported for load balancers
       that have
       their loadBalancingScheme set to EXTERNAL.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;
      Specified by:
      getHeaderActionOrBuilder in interface UrlMapOrBuilder
    • getHostRulesList

      public List<HostRule> getHostRulesList()
       The list of host rules to use against the URL.
       
      repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;
      Specified by:
      getHostRulesList in interface UrlMapOrBuilder
    • getHostRulesOrBuilderList

      public List<? extends HostRuleOrBuilder> getHostRulesOrBuilderList()
       The list of host rules to use against the URL.
       
      repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;
      Specified by:
      getHostRulesOrBuilderList in interface UrlMapOrBuilder
    • getHostRulesCount

      public int getHostRulesCount()
       The list of host rules to use against the URL.
       
      repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;
      Specified by:
      getHostRulesCount in interface UrlMapOrBuilder
    • getHostRules

      public HostRule getHostRules(int index)
       The list of host rules to use against the URL.
       
      repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;
      Specified by:
      getHostRules in interface UrlMapOrBuilder
    • getHostRulesOrBuilder

      public HostRuleOrBuilder getHostRulesOrBuilder(int index)
       The list of host rules to use against the URL.
       
      repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;
      Specified by:
      getHostRulesOrBuilder in interface UrlMapOrBuilder
    • hasId

      public boolean hasId()
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface UrlMapOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface UrlMapOrBuilder
      Returns:
      The id.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Always compute#urlMaps for
       url maps.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface UrlMapOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Always compute#urlMaps for
       url maps.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface UrlMapOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Always compute#urlMaps for
       url maps.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for kind.
    • hasName

      public boolean hasName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface UrlMapOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getName in interface UrlMapOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for name.
    • getPathMatchersList

      public List<PathMatcher> getPathMatchersList()
       The list of named PathMatchers to use against the URL.
       
      repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;
      Specified by:
      getPathMatchersList in interface UrlMapOrBuilder
    • getPathMatchersOrBuilderList

      public List<? extends PathMatcherOrBuilder> getPathMatchersOrBuilderList()
       The list of named PathMatchers to use against the URL.
       
      repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;
      Specified by:
      getPathMatchersOrBuilderList in interface UrlMapOrBuilder
    • getPathMatchersCount

      public int getPathMatchersCount()
       The list of named PathMatchers to use against the URL.
       
      repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;
      Specified by:
      getPathMatchersCount in interface UrlMapOrBuilder
    • getPathMatchers

      public PathMatcher getPathMatchers(int index)
       The list of named PathMatchers to use against the URL.
       
      repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;
      Specified by:
      getPathMatchers in interface UrlMapOrBuilder
    • getPathMatchersOrBuilder

      public PathMatcherOrBuilder getPathMatchersOrBuilder(int index)
       The list of named PathMatchers to use against the URL.
       
      repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;
      Specified by:
      getPathMatchersOrBuilder in interface UrlMapOrBuilder
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] URL of the region where the regional URL map resides.
       This field is not applicable to global URL maps.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface UrlMapOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] URL of the region where the regional URL map resides.
       This field is not applicable to global URL maps.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface UrlMapOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] URL of the region where the regional URL map resides.
       This field is not applicable to global URL maps.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for region.
    • hasSelfLink

      public boolean hasSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface UrlMapOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface UrlMapOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface UrlMapOrBuilder
      Returns:
      The bytes for selfLink.
    • getTestsList

      public List<UrlMapTest> getTestsList()
       The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
       maximum of 100 tests per UrlMap.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;
      Specified by:
      getTestsList in interface UrlMapOrBuilder
    • getTestsOrBuilderList

      public List<? extends UrlMapTestOrBuilder> getTestsOrBuilderList()
       The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
       maximum of 100 tests per UrlMap.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;
      Specified by:
      getTestsOrBuilderList in interface UrlMapOrBuilder
    • getTestsCount

      public int getTestsCount()
       The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
       maximum of 100 tests per UrlMap.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;
      Specified by:
      getTestsCount in interface UrlMapOrBuilder
    • getTests

      public UrlMapTest getTests(int index)
       The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
       maximum of 100 tests per UrlMap.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;
      Specified by:
      getTests in interface UrlMapOrBuilder
    • getTestsOrBuilder

      public UrlMapTestOrBuilder getTestsOrBuilder(int index)
       The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
       maximum of 100 tests per UrlMap.
      
       Not supported when the URL map is bound to a target gRPC proxy that
       has validateForProxyless field set to true.
       
      repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;
      Specified by:
      getTestsOrBuilder in interface UrlMapOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 UrlMap parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UrlMap parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UrlMap parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UrlMap parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UrlMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UrlMap parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UrlMap parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UrlMap parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UrlMap parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UrlMap parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UrlMap parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static UrlMap.Builder newBuilder()
    • newBuilder

      public static UrlMap.Builder newBuilder(UrlMap prototype)
    • toBuilder

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

      protected UrlMap.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static UrlMap getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<UrlMap> 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.GeneratedMessage
    • getDefaultInstanceForType

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