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 PatchSubnetworkRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.PatchSubnetworkRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. 31 * </pre> 32 * 33 * <code>optional int32 drain_timeout_seconds = 357707098;</code> 34 * 35 * @return Whether the drainTimeoutSeconds field is set. 36 */ hasDrainTimeoutSeconds()37 boolean hasDrainTimeoutSeconds(); 38 /** 39 * 40 * 41 * <pre> 42 * The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. 43 * </pre> 44 * 45 * <code>optional int32 drain_timeout_seconds = 357707098;</code> 46 * 47 * @return The drainTimeoutSeconds. 48 */ getDrainTimeoutSeconds()49 int getDrainTimeoutSeconds(); 50 51 /** 52 * 53 * 54 * <pre> 55 * Project ID for this request. 56 * </pre> 57 * 58 * <code> 59 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 60 * </code> 61 * 62 * @return The project. 63 */ getProject()64 java.lang.String getProject(); 65 /** 66 * 67 * 68 * <pre> 69 * Project ID for this request. 70 * </pre> 71 * 72 * <code> 73 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 74 * </code> 75 * 76 * @return The bytes for project. 77 */ getProjectBytes()78 com.google.protobuf.ByteString getProjectBytes(); 79 80 /** 81 * 82 * 83 * <pre> 84 * Name of the region scoping this request. 85 * </pre> 86 * 87 * <code> 88 * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; 89 * </code> 90 * 91 * @return The region. 92 */ getRegion()93 java.lang.String getRegion(); 94 /** 95 * 96 * 97 * <pre> 98 * Name of the region scoping this request. 99 * </pre> 100 * 101 * <code> 102 * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; 103 * </code> 104 * 105 * @return The bytes for region. 106 */ getRegionBytes()107 com.google.protobuf.ByteString getRegionBytes(); 108 109 /** 110 * 111 * 112 * <pre> 113 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 114 * </pre> 115 * 116 * <code>optional string request_id = 37109963;</code> 117 * 118 * @return Whether the requestId field is set. 119 */ hasRequestId()120 boolean hasRequestId(); 121 /** 122 * 123 * 124 * <pre> 125 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 126 * </pre> 127 * 128 * <code>optional string request_id = 37109963;</code> 129 * 130 * @return The requestId. 131 */ getRequestId()132 java.lang.String getRequestId(); 133 /** 134 * 135 * 136 * <pre> 137 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 138 * </pre> 139 * 140 * <code>optional string request_id = 37109963;</code> 141 * 142 * @return The bytes for requestId. 143 */ getRequestIdBytes()144 com.google.protobuf.ByteString getRequestIdBytes(); 145 146 /** 147 * 148 * 149 * <pre> 150 * Name of the Subnetwork resource to patch. 151 * </pre> 152 * 153 * <code>string subnetwork = 307827694 [(.google.api.field_behavior) = REQUIRED];</code> 154 * 155 * @return The subnetwork. 156 */ getSubnetwork()157 java.lang.String getSubnetwork(); 158 /** 159 * 160 * 161 * <pre> 162 * Name of the Subnetwork resource to patch. 163 * </pre> 164 * 165 * <code>string subnetwork = 307827694 [(.google.api.field_behavior) = REQUIRED];</code> 166 * 167 * @return The bytes for subnetwork. 168 */ getSubnetworkBytes()169 com.google.protobuf.ByteString getSubnetworkBytes(); 170 171 /** 172 * 173 * 174 * <pre> 175 * The body resource for this request 176 * </pre> 177 * 178 * <code> 179 * .google.cloud.compute.v1.Subnetwork subnetwork_resource = 42233151 [(.google.api.field_behavior) = REQUIRED]; 180 * </code> 181 * 182 * @return Whether the subnetworkResource field is set. 183 */ hasSubnetworkResource()184 boolean hasSubnetworkResource(); 185 /** 186 * 187 * 188 * <pre> 189 * The body resource for this request 190 * </pre> 191 * 192 * <code> 193 * .google.cloud.compute.v1.Subnetwork subnetwork_resource = 42233151 [(.google.api.field_behavior) = REQUIRED]; 194 * </code> 195 * 196 * @return The subnetworkResource. 197 */ getSubnetworkResource()198 com.google.cloud.compute.v1.Subnetwork getSubnetworkResource(); 199 /** 200 * 201 * 202 * <pre> 203 * The body resource for this request 204 * </pre> 205 * 206 * <code> 207 * .google.cloud.compute.v1.Subnetwork subnetwork_resource = 42233151 [(.google.api.field_behavior) = REQUIRED]; 208 * </code> 209 */ getSubnetworkResourceOrBuilder()210 com.google.cloud.compute.v1.SubnetworkOrBuilder getSubnetworkResourceOrBuilder(); 211 } 212