Class HttpRoute.URLRewrite.Builder (0.23.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.23.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  HttpRoute . URLRewrite . Builder   extends   GeneratedMessageV3 . Builder<HttpRoute . URLRewrite . Builder >  implements   HttpRoute . URLRewriteOrBuilder  
   The specification for modifying the URL of the request, prior to forwarding
 the request to the destination.
 Protobuf type google.cloud.networkservices.v1.HttpRoute.URLRewrite
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   HttpRoute . URLRewrite . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   HttpRoute . URLRewrite   build ()  
  
  buildPartial() 
  
    
public   HttpRoute . URLRewrite   buildPartial ()  
  
  clear() 
  
    
public   HttpRoute . URLRewrite . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   HttpRoute . URLRewrite . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearHostRewrite() 
  
    
public   HttpRoute . URLRewrite . Builder   clearHostRewrite ()  
   Prior to forwarding the request to the selected destination, the requests
 host header is replaced by this value.
 string host_rewrite = 2;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   HttpRoute . URLRewrite . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearPathPrefixRewrite() 
  
    
public   HttpRoute . URLRewrite . Builder   clearPathPrefixRewrite ()  
   Prior to forwarding the request to the selected destination, the matching
 portion of the requests path is replaced by this value.
 string path_prefix_rewrite = 1;
clone() 
  
    
public   HttpRoute . URLRewrite . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   HttpRoute . URLRewrite   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getHostRewrite() 
  
    
public   String   getHostRewrite ()  
   Prior to forwarding the request to the selected destination, the requests
 host header is replaced by this value.
 string host_rewrite = 2;
    
      
        Returns  
      
        Type Description  
      
        String The hostRewrite.
 
     
  
  getHostRewriteBytes() 
  
    
public   ByteString   getHostRewriteBytes ()  
   Prior to forwarding the request to the selected destination, the requests
 host header is replaced by this value.
 string host_rewrite = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for hostRewrite.
 
     
  
  getPathPrefixRewrite() 
  
    
public   String   getPathPrefixRewrite ()  
   Prior to forwarding the request to the selected destination, the matching
 portion of the requests path is replaced by this value.
 string path_prefix_rewrite = 1;
    
      
        Returns  
      
        Type Description  
      
        String The pathPrefixRewrite.
 
     
  
  getPathPrefixRewriteBytes() 
  
    
public   ByteString   getPathPrefixRewriteBytes ()  
   Prior to forwarding the request to the selected destination, the matching
 portion of the requests path is replaced by this value.
 string path_prefix_rewrite = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for pathPrefixRewrite.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(HttpRoute.URLRewrite other) 
  
    
public   HttpRoute . URLRewrite . Builder   mergeFrom ( HttpRoute . URLRewrite   other )  
  
  
  
    
public   HttpRoute . URLRewrite . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   HttpRoute . URLRewrite . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   HttpRoute . URLRewrite . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   HttpRoute . URLRewrite . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setHostRewrite(String value) 
  
    
public   HttpRoute . URLRewrite . Builder   setHostRewrite ( String   value )  
   Prior to forwarding the request to the selected destination, the requests
 host header is replaced by this value.
 string host_rewrite = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueString The hostRewrite to set.
 
     
  
  
  setHostRewriteBytes(ByteString value) 
  
    
public   HttpRoute . URLRewrite . Builder   setHostRewriteBytes ( ByteString   value )  
   Prior to forwarding the request to the selected destination, the requests
 host header is replaced by this value.
 string host_rewrite = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for hostRewrite to set.
 
     
  
  
  setPathPrefixRewrite(String value) 
  
    
public   HttpRoute . URLRewrite . Builder   setPathPrefixRewrite ( String   value )  
   Prior to forwarding the request to the selected destination, the matching
 portion of the requests path is replaced by this value.
 string path_prefix_rewrite = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueString The pathPrefixRewrite to set.
 
     
  
  
  setPathPrefixRewriteBytes(ByteString value) 
  
    
public   HttpRoute . URLRewrite . Builder   setPathPrefixRewriteBytes ( ByteString   value )  
   Prior to forwarding the request to the selected destination, the matching
 portion of the requests path is replaced by this value.
 string path_prefix_rewrite = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for pathPrefixRewrite to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   HttpRoute . URLRewrite . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   HttpRoute . URLRewrite . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]