1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 public interface PathRuleOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.PathRule) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 31 * </pre> 32 * 33 * <code>repeated string paths = 106438894;</code> 34 * 35 * @return A list containing the paths. 36 */ getPathsList()37 java.util.List<java.lang.String> getPathsList(); 38 /** 39 * 40 * 41 * <pre> 42 * The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 43 * </pre> 44 * 45 * <code>repeated string paths = 106438894;</code> 46 * 47 * @return The count of paths. 48 */ getPathsCount()49 int getPathsCount(); 50 /** 51 * 52 * 53 * <pre> 54 * The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 55 * </pre> 56 * 57 * <code>repeated string paths = 106438894;</code> 58 * 59 * @param index The index of the element to return. 60 * @return The paths at the given index. 61 */ getPaths(int index)62 java.lang.String getPaths(int index); 63 /** 64 * 65 * 66 * <pre> 67 * The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 68 * </pre> 69 * 70 * <code>repeated string paths = 106438894;</code> 71 * 72 * @param index The index of the value to return. 73 * @return The bytes of the paths at the given index. 74 */ getPathsBytes(int index)75 com.google.protobuf.ByteString getPathsBytes(int index); 76 77 /** 78 * 79 * 80 * <pre> 81 * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within a path rule's routeAction. 82 * </pre> 83 * 84 * <code>optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948;</code> 85 * 86 * @return Whether the routeAction field is set. 87 */ hasRouteAction()88 boolean hasRouteAction(); 89 /** 90 * 91 * 92 * <pre> 93 * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within a path rule's routeAction. 94 * </pre> 95 * 96 * <code>optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948;</code> 97 * 98 * @return The routeAction. 99 */ getRouteAction()100 com.google.cloud.compute.v1.HttpRouteAction getRouteAction(); 101 /** 102 * 103 * 104 * <pre> 105 * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within a path rule's routeAction. 106 * </pre> 107 * 108 * <code>optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948;</code> 109 */ getRouteActionOrBuilder()110 com.google.cloud.compute.v1.HttpRouteActionOrBuilder getRouteActionOrBuilder(); 111 112 /** 113 * 114 * 115 * <pre> 116 * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. 117 * </pre> 118 * 119 * <code>optional string service = 373540533;</code> 120 * 121 * @return Whether the service field is set. 122 */ hasService()123 boolean hasService(); 124 /** 125 * 126 * 127 * <pre> 128 * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. 129 * </pre> 130 * 131 * <code>optional string service = 373540533;</code> 132 * 133 * @return The service. 134 */ getService()135 java.lang.String getService(); 136 /** 137 * 138 * 139 * <pre> 140 * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. 141 * </pre> 142 * 143 * <code>optional string service = 373540533;</code> 144 * 145 * @return The bytes for service. 146 */ getServiceBytes()147 com.google.protobuf.ByteString getServiceBytes(); 148 149 /** 150 * 151 * 152 * <pre> 153 * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. 154 * </pre> 155 * 156 * <code>optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820;</code> 157 * 158 * @return Whether the urlRedirect field is set. 159 */ hasUrlRedirect()160 boolean hasUrlRedirect(); 161 /** 162 * 163 * 164 * <pre> 165 * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. 166 * </pre> 167 * 168 * <code>optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820;</code> 169 * 170 * @return The urlRedirect. 171 */ getUrlRedirect()172 com.google.cloud.compute.v1.HttpRedirectAction getUrlRedirect(); 173 /** 174 * 175 * 176 * <pre> 177 * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. 178 * </pre> 179 * 180 * <code>optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820;</code> 181 */ getUrlRedirectOrBuilder()182 com.google.cloud.compute.v1.HttpRedirectActionOrBuilder getUrlRedirectOrBuilder(); 183 } 184