• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 HttpRedirectActionOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.HttpRedirectAction)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters.
31    * </pre>
32    *
33    * <code>optional string host_redirect = 107417747;</code>
34    *
35    * @return Whether the hostRedirect field is set.
36    */
hasHostRedirect()37   boolean hasHostRedirect();
38   /**
39    *
40    *
41    * <pre>
42    * The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters.
43    * </pre>
44    *
45    * <code>optional string host_redirect = 107417747;</code>
46    *
47    * @return The hostRedirect.
48    */
getHostRedirect()49   java.lang.String getHostRedirect();
50   /**
51    *
52    *
53    * <pre>
54    * The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters.
55    * </pre>
56    *
57    * <code>optional string host_redirect = 107417747;</code>
58    *
59    * @return The bytes for hostRedirect.
60    */
getHostRedirectBytes()61   com.google.protobuf.ByteString getHostRedirectBytes();
62 
63   /**
64    *
65    *
66    * <pre>
67    * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the URL scheme of the redirected request remains the same as that of the request. This must only be set for URL maps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
68    * </pre>
69    *
70    * <code>optional bool https_redirect = 170260656;</code>
71    *
72    * @return Whether the httpsRedirect field is set.
73    */
hasHttpsRedirect()74   boolean hasHttpsRedirect();
75   /**
76    *
77    *
78    * <pre>
79    * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the URL scheme of the redirected request remains the same as that of the request. This must only be set for URL maps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
80    * </pre>
81    *
82    * <code>optional bool https_redirect = 170260656;</code>
83    *
84    * @return The httpsRedirect.
85    */
getHttpsRedirect()86   boolean getHttpsRedirect();
87 
88   /**
89    *
90    *
91    * <pre>
92    * The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
93    * </pre>
94    *
95    * <code>optional string path_redirect = 272342710;</code>
96    *
97    * @return Whether the pathRedirect field is set.
98    */
hasPathRedirect()99   boolean hasPathRedirect();
100   /**
101    *
102    *
103    * <pre>
104    * The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
105    * </pre>
106    *
107    * <code>optional string path_redirect = 272342710;</code>
108    *
109    * @return The pathRedirect.
110    */
getPathRedirect()111   java.lang.String getPathRedirect();
112   /**
113    *
114    *
115    * <pre>
116    * The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
117    * </pre>
118    *
119    * <code>optional string path_redirect = 272342710;</code>
120    *
121    * @return The bytes for pathRedirect.
122    */
getPathRedirectBytes()123   com.google.protobuf.ByteString getPathRedirectBytes();
124 
125   /**
126    *
127    *
128    * <pre>
129    * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
130    * </pre>
131    *
132    * <code>optional string prefix_redirect = 446184169;</code>
133    *
134    * @return Whether the prefixRedirect field is set.
135    */
hasPrefixRedirect()136   boolean hasPrefixRedirect();
137   /**
138    *
139    *
140    * <pre>
141    * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
142    * </pre>
143    *
144    * <code>optional string prefix_redirect = 446184169;</code>
145    *
146    * @return The prefixRedirect.
147    */
getPrefixRedirect()148   java.lang.String getPrefixRedirect();
149   /**
150    *
151    *
152    * <pre>
153    * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.
154    * </pre>
155    *
156    * <code>optional string prefix_redirect = 446184169;</code>
157    *
158    * @return The bytes for prefixRedirect.
159    */
getPrefixRedirectBytes()160   com.google.protobuf.ByteString getPrefixRedirectBytes();
161 
162   /**
163    *
164    *
165    * <pre>
166    * The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained.
167    * Check the RedirectResponseCode enum for the list of possible values.
168    * </pre>
169    *
170    * <code>optional string redirect_response_code = 436710408;</code>
171    *
172    * @return Whether the redirectResponseCode field is set.
173    */
hasRedirectResponseCode()174   boolean hasRedirectResponseCode();
175   /**
176    *
177    *
178    * <pre>
179    * The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained.
180    * Check the RedirectResponseCode enum for the list of possible values.
181    * </pre>
182    *
183    * <code>optional string redirect_response_code = 436710408;</code>
184    *
185    * @return The redirectResponseCode.
186    */
getRedirectResponseCode()187   java.lang.String getRedirectResponseCode();
188   /**
189    *
190    *
191    * <pre>
192    * The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained.
193    * Check the RedirectResponseCode enum for the list of possible values.
194    * </pre>
195    *
196    * <code>optional string redirect_response_code = 436710408;</code>
197    *
198    * @return The bytes for redirectResponseCode.
199    */
getRedirectResponseCodeBytes()200   com.google.protobuf.ByteString getRedirectResponseCodeBytes();
201 
202   /**
203    *
204    *
205    * <pre>
206    * If set to true, any accompanying query portion of the original URL is removed before redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false.
207    * </pre>
208    *
209    * <code>optional bool strip_query = 52284641;</code>
210    *
211    * @return Whether the stripQuery field is set.
212    */
hasStripQuery()213   boolean hasStripQuery();
214   /**
215    *
216    *
217    * <pre>
218    * If set to true, any accompanying query portion of the original URL is removed before redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false.
219    * </pre>
220    *
221    * <code>optional bool strip_query = 52284641;</code>
222    *
223    * @return The stripQuery.
224    */
getStripQuery()225   boolean getStripQuery();
226 }
227