Interface UrlRewriteOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
UrlRewrite, UrlRewrite.Builder

@Generated public interface UrlRewriteOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
    com.google.protobuf.ByteString
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced bypathPrefixRewrite.
    com.google.protobuf.ByteString
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced bypathPrefixRewrite.
    If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.
    com.google.protobuf.ByteString
    If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.
    boolean
    Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
    boolean
    Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced bypathPrefixRewrite.
    boolean
    If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasHostRewrite

      boolean hasHostRewrite()
       Before forwarding the request to the selected service, the request's
       host header is replaced with contents of hostRewrite.
      
       The value must be from 1 to 255 characters.
       
      optional string host_rewrite = 159819253;
      Returns:
      Whether the hostRewrite field is set.
    • getHostRewrite

      String getHostRewrite()
       Before forwarding the request to the selected service, the request's
       host header is replaced with contents of hostRewrite.
      
       The value must be from 1 to 255 characters.
       
      optional string host_rewrite = 159819253;
      Returns:
      The hostRewrite.
    • getHostRewriteBytes

      com.google.protobuf.ByteString getHostRewriteBytes()
       Before forwarding the request to the selected service, the request's
       host header is replaced with contents of hostRewrite.
      
       The value must be from 1 to 255 characters.
       
      optional string host_rewrite = 159819253;
      Returns:
      The bytes for hostRewrite.
    • hasPathPrefixRewrite

      boolean hasPathPrefixRewrite()
       Before forwarding the request to the selected backend service, the
       matching portion of the request's path is replaced bypathPrefixRewrite.
      
       The value must be from 1 to 1024 characters.
       
      optional string path_prefix_rewrite = 41186361;
      Returns:
      Whether the pathPrefixRewrite field is set.
    • getPathPrefixRewrite

      String getPathPrefixRewrite()
       Before forwarding the request to the selected backend service, the
       matching portion of the request's path is replaced bypathPrefixRewrite.
      
       The value must be from 1 to 1024 characters.
       
      optional string path_prefix_rewrite = 41186361;
      Returns:
      The pathPrefixRewrite.
    • getPathPrefixRewriteBytes

      com.google.protobuf.ByteString getPathPrefixRewriteBytes()
       Before forwarding the request to the selected backend service, the
       matching portion of the request's path is replaced bypathPrefixRewrite.
      
       The value must be from 1 to 1024 characters.
       
      optional string path_prefix_rewrite = 41186361;
      Returns:
      The bytes for pathPrefixRewrite.
    • hasPathTemplateRewrite

      boolean hasPathTemplateRewrite()
       If specified, the pattern rewrites the URL path (based on the :path
       header) using the HTTP template syntax.
      
       A corresponding
       path_template_match must be specified. Any template variables must exist in
       the path_template_match field.
      
      
       - -At least one variable must be specified in the path_template_match
       field
       - You can omit variables from the rewritten URL
       - The * and ** operators cannot be matched
       unless they have a corresponding variable name - e.g.
       {format=*} or {var=**}.
      
       For example, a path_template_match of /static/{format=**}
       could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
       rewrite, so that /{country}/{format}/{suffix=**} can be
       rewritten as /content/{format}/{country}/{suffix}.
      
       At least
       one non-empty routeRules[].matchRules[].path_template_match is
       required.
      
       Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
       
      optional string path_template_rewrite = 423409569;
      Returns:
      Whether the pathTemplateRewrite field is set.
    • getPathTemplateRewrite

      String getPathTemplateRewrite()
       If specified, the pattern rewrites the URL path (based on the :path
       header) using the HTTP template syntax.
      
       A corresponding
       path_template_match must be specified. Any template variables must exist in
       the path_template_match field.
      
      
       - -At least one variable must be specified in the path_template_match
       field
       - You can omit variables from the rewritten URL
       - The * and ** operators cannot be matched
       unless they have a corresponding variable name - e.g.
       {format=*} or {var=**}.
      
       For example, a path_template_match of /static/{format=**}
       could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
       rewrite, so that /{country}/{format}/{suffix=**} can be
       rewritten as /content/{format}/{country}/{suffix}.
      
       At least
       one non-empty routeRules[].matchRules[].path_template_match is
       required.
      
       Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
       
      optional string path_template_rewrite = 423409569;
      Returns:
      The pathTemplateRewrite.
    • getPathTemplateRewriteBytes

      com.google.protobuf.ByteString getPathTemplateRewriteBytes()
       If specified, the pattern rewrites the URL path (based on the :path
       header) using the HTTP template syntax.
      
       A corresponding
       path_template_match must be specified. Any template variables must exist in
       the path_template_match field.
      
      
       - -At least one variable must be specified in the path_template_match
       field
       - You can omit variables from the rewritten URL
       - The * and ** operators cannot be matched
       unless they have a corresponding variable name - e.g.
       {format=*} or {var=**}.
      
       For example, a path_template_match of /static/{format=**}
       could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
       rewrite, so that /{country}/{format}/{suffix=**} can be
       rewritten as /content/{format}/{country}/{suffix}.
      
       At least
       one non-empty routeRules[].matchRules[].path_template_match is
       required.
      
       Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
       
      optional string path_template_rewrite = 423409569;
      Returns:
      The bytes for pathTemplateRewrite.