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 UrlMapTestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.UrlMapTest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Description of this test case. 31 * </pre> 32 * 33 * <code>optional string description = 422937596;</code> 34 * 35 * @return Whether the description field is set. 36 */ hasDescription()37 boolean hasDescription(); 38 /** 39 * 40 * 41 * <pre> 42 * Description of this test case. 43 * </pre> 44 * 45 * <code>optional string description = 422937596;</code> 46 * 47 * @return The description. 48 */ getDescription()49 java.lang.String getDescription(); 50 /** 51 * 52 * 53 * <pre> 54 * Description of this test case. 55 * </pre> 56 * 57 * <code>optional string description = 422937596;</code> 58 * 59 * @return The bytes for description. 60 */ getDescriptionBytes()61 com.google.protobuf.ByteString getDescriptionBytes(); 62 63 /** 64 * 65 * 66 * <pre> 67 * 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. 68 * </pre> 69 * 70 * <code>optional string expected_output_url = 433967384;</code> 71 * 72 * @return Whether the expectedOutputUrl field is set. 73 */ hasExpectedOutputUrl()74 boolean hasExpectedOutputUrl(); 75 /** 76 * 77 * 78 * <pre> 79 * 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. 80 * </pre> 81 * 82 * <code>optional string expected_output_url = 433967384;</code> 83 * 84 * @return The expectedOutputUrl. 85 */ getExpectedOutputUrl()86 java.lang.String getExpectedOutputUrl(); 87 /** 88 * 89 * 90 * <pre> 91 * 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. 92 * </pre> 93 * 94 * <code>optional string expected_output_url = 433967384;</code> 95 * 96 * @return The bytes for expectedOutputUrl. 97 */ getExpectedOutputUrlBytes()98 com.google.protobuf.ByteString getExpectedOutputUrlBytes(); 99 100 /** 101 * 102 * 103 * <pre> 104 * 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. 105 * </pre> 106 * 107 * <code>optional int32 expected_redirect_response_code = 18888047;</code> 108 * 109 * @return Whether the expectedRedirectResponseCode field is set. 110 */ hasExpectedRedirectResponseCode()111 boolean hasExpectedRedirectResponseCode(); 112 /** 113 * 114 * 115 * <pre> 116 * 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. 117 * </pre> 118 * 119 * <code>optional int32 expected_redirect_response_code = 18888047;</code> 120 * 121 * @return The expectedRedirectResponseCode. 122 */ getExpectedRedirectResponseCode()123 int getExpectedRedirectResponseCode(); 124 125 /** 126 * 127 * 128 * <pre> 129 * HTTP headers for this request. If headers contains a host header, then host must also match the header value. 130 * </pre> 131 * 132 * <code>repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;</code> 133 */ getHeadersList()134 java.util.List<com.google.cloud.compute.v1.UrlMapTestHeader> getHeadersList(); 135 /** 136 * 137 * 138 * <pre> 139 * HTTP headers for this request. If headers contains a host header, then host must also match the header value. 140 * </pre> 141 * 142 * <code>repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;</code> 143 */ getHeaders(int index)144 com.google.cloud.compute.v1.UrlMapTestHeader getHeaders(int index); 145 /** 146 * 147 * 148 * <pre> 149 * HTTP headers for this request. If headers contains a host header, then host must also match the header value. 150 * </pre> 151 * 152 * <code>repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;</code> 153 */ getHeadersCount()154 int getHeadersCount(); 155 /** 156 * 157 * 158 * <pre> 159 * HTTP headers for this request. If headers contains a host header, then host must also match the header value. 160 * </pre> 161 * 162 * <code>repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;</code> 163 */ 164 java.util.List<? extends com.google.cloud.compute.v1.UrlMapTestHeaderOrBuilder> getHeadersOrBuilderList()165 getHeadersOrBuilderList(); 166 /** 167 * 168 * 169 * <pre> 170 * HTTP headers for this request. If headers contains a host header, then host must also match the header value. 171 * </pre> 172 * 173 * <code>repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;</code> 174 */ getHeadersOrBuilder(int index)175 com.google.cloud.compute.v1.UrlMapTestHeaderOrBuilder getHeadersOrBuilder(int index); 176 177 /** 178 * 179 * 180 * <pre> 181 * Host portion of the URL. If headers contains a host header, then host must also match the header value. 182 * </pre> 183 * 184 * <code>optional string host = 3208616;</code> 185 * 186 * @return Whether the host field is set. 187 */ hasHost()188 boolean hasHost(); 189 /** 190 * 191 * 192 * <pre> 193 * Host portion of the URL. If headers contains a host header, then host must also match the header value. 194 * </pre> 195 * 196 * <code>optional string host = 3208616;</code> 197 * 198 * @return The host. 199 */ getHost()200 java.lang.String getHost(); 201 /** 202 * 203 * 204 * <pre> 205 * Host portion of the URL. If headers contains a host header, then host must also match the header value. 206 * </pre> 207 * 208 * <code>optional string host = 3208616;</code> 209 * 210 * @return The bytes for host. 211 */ getHostBytes()212 com.google.protobuf.ByteString getHostBytes(); 213 214 /** 215 * 216 * 217 * <pre> 218 * Path portion of the URL. 219 * </pre> 220 * 221 * <code>optional string path = 3433509;</code> 222 * 223 * @return Whether the path field is set. 224 */ hasPath()225 boolean hasPath(); 226 /** 227 * 228 * 229 * <pre> 230 * Path portion of the URL. 231 * </pre> 232 * 233 * <code>optional string path = 3433509;</code> 234 * 235 * @return The path. 236 */ getPath()237 java.lang.String getPath(); 238 /** 239 * 240 * 241 * <pre> 242 * Path portion of the URL. 243 * </pre> 244 * 245 * <code>optional string path = 3433509;</code> 246 * 247 * @return The bytes for path. 248 */ getPathBytes()249 com.google.protobuf.ByteString getPathBytes(); 250 251 /** 252 * 253 * 254 * <pre> 255 * Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set. 256 * </pre> 257 * 258 * <code>optional string service = 373540533;</code> 259 * 260 * @return Whether the service field is set. 261 */ hasService()262 boolean hasService(); 263 /** 264 * 265 * 266 * <pre> 267 * Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set. 268 * </pre> 269 * 270 * <code>optional string service = 373540533;</code> 271 * 272 * @return The service. 273 */ getService()274 java.lang.String getService(); 275 /** 276 * 277 * 278 * <pre> 279 * Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set. 280 * </pre> 281 * 282 * <code>optional string service = 373540533;</code> 283 * 284 * @return The bytes for service. 285 */ getServiceBytes()286 com.google.protobuf.ByteString getServiceBytes(); 287 } 288