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 InsertInstanceRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InsertInstanceRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The body resource for this request 31 * </pre> 32 * 33 * <code> 34 * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED]; 35 * </code> 36 * 37 * @return Whether the instanceResource field is set. 38 */ hasInstanceResource()39 boolean hasInstanceResource(); 40 /** 41 * 42 * 43 * <pre> 44 * The body resource for this request 45 * </pre> 46 * 47 * <code> 48 * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED]; 49 * </code> 50 * 51 * @return The instanceResource. 52 */ getInstanceResource()53 com.google.cloud.compute.v1.Instance getInstanceResource(); 54 /** 55 * 56 * 57 * <pre> 58 * The body resource for this request 59 * </pre> 60 * 61 * <code> 62 * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED]; 63 * </code> 64 */ getInstanceResourceOrBuilder()65 com.google.cloud.compute.v1.InstanceOrBuilder getInstanceResourceOrBuilder(); 66 67 /** 68 * 69 * 70 * <pre> 71 * Project ID for this request. 72 * </pre> 73 * 74 * <code> 75 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 76 * </code> 77 * 78 * @return The project. 79 */ getProject()80 java.lang.String getProject(); 81 /** 82 * 83 * 84 * <pre> 85 * Project ID for this request. 86 * </pre> 87 * 88 * <code> 89 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 90 * </code> 91 * 92 * @return The bytes for project. 93 */ getProjectBytes()94 com.google.protobuf.ByteString getProjectBytes(); 95 96 /** 97 * 98 * 99 * <pre> 100 * 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). 101 * </pre> 102 * 103 * <code>optional string request_id = 37109963;</code> 104 * 105 * @return Whether the requestId field is set. 106 */ hasRequestId()107 boolean hasRequestId(); 108 /** 109 * 110 * 111 * <pre> 112 * 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). 113 * </pre> 114 * 115 * <code>optional string request_id = 37109963;</code> 116 * 117 * @return The requestId. 118 */ getRequestId()119 java.lang.String getRequestId(); 120 /** 121 * 122 * 123 * <pre> 124 * 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). 125 * </pre> 126 * 127 * <code>optional string request_id = 37109963;</code> 128 * 129 * @return The bytes for requestId. 130 */ getRequestIdBytes()131 com.google.protobuf.ByteString getRequestIdBytes(); 132 133 /** 134 * 135 * 136 * <pre> 137 * Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate 138 * </pre> 139 * 140 * <code>optional string source_instance_template = 332423616;</code> 141 * 142 * @return Whether the sourceInstanceTemplate field is set. 143 */ hasSourceInstanceTemplate()144 boolean hasSourceInstanceTemplate(); 145 /** 146 * 147 * 148 * <pre> 149 * Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate 150 * </pre> 151 * 152 * <code>optional string source_instance_template = 332423616;</code> 153 * 154 * @return The sourceInstanceTemplate. 155 */ getSourceInstanceTemplate()156 java.lang.String getSourceInstanceTemplate(); 157 /** 158 * 159 * 160 * <pre> 161 * Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate 162 * </pre> 163 * 164 * <code>optional string source_instance_template = 332423616;</code> 165 * 166 * @return The bytes for sourceInstanceTemplate. 167 */ getSourceInstanceTemplateBytes()168 com.google.protobuf.ByteString getSourceInstanceTemplateBytes(); 169 170 /** 171 * 172 * 173 * <pre> 174 * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage 175 * </pre> 176 * 177 * <code>optional string source_machine_image = 21769791;</code> 178 * 179 * @return Whether the sourceMachineImage field is set. 180 */ hasSourceMachineImage()181 boolean hasSourceMachineImage(); 182 /** 183 * 184 * 185 * <pre> 186 * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage 187 * </pre> 188 * 189 * <code>optional string source_machine_image = 21769791;</code> 190 * 191 * @return The sourceMachineImage. 192 */ getSourceMachineImage()193 java.lang.String getSourceMachineImage(); 194 /** 195 * 196 * 197 * <pre> 198 * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage 199 * </pre> 200 * 201 * <code>optional string source_machine_image = 21769791;</code> 202 * 203 * @return The bytes for sourceMachineImage. 204 */ getSourceMachineImageBytes()205 com.google.protobuf.ByteString getSourceMachineImageBytes(); 206 207 /** 208 * 209 * 210 * <pre> 211 * The name of the zone for this request. 212 * </pre> 213 * 214 * <code> 215 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 216 * </code> 217 * 218 * @return The zone. 219 */ getZone()220 java.lang.String getZone(); 221 /** 222 * 223 * 224 * <pre> 225 * The name of the zone for this request. 226 * </pre> 227 * 228 * <code> 229 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 230 * </code> 231 * 232 * @return The bytes for zone. 233 */ getZoneBytes()234 com.google.protobuf.ByteString getZoneBytes(); 235 } 236