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 MetadataOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Metadata) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource. 31 * </pre> 32 * 33 * <code>optional string fingerprint = 234678500;</code> 34 * 35 * @return Whether the fingerprint field is set. 36 */ hasFingerprint()37 boolean hasFingerprint(); 38 /** 39 * 40 * 41 * <pre> 42 * Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource. 43 * </pre> 44 * 45 * <code>optional string fingerprint = 234678500;</code> 46 * 47 * @return The fingerprint. 48 */ getFingerprint()49 java.lang.String getFingerprint(); 50 /** 51 * 52 * 53 * <pre> 54 * Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource. 55 * </pre> 56 * 57 * <code>optional string fingerprint = 234678500;</code> 58 * 59 * @return The bytes for fingerprint. 60 */ getFingerprintBytes()61 com.google.protobuf.ByteString getFingerprintBytes(); 62 63 /** 64 * 65 * 66 * <pre> 67 * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. 68 * </pre> 69 * 70 * <code>repeated .google.cloud.compute.v1.Items items = 100526016;</code> 71 */ getItemsList()72 java.util.List<com.google.cloud.compute.v1.Items> getItemsList(); 73 /** 74 * 75 * 76 * <pre> 77 * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. 78 * </pre> 79 * 80 * <code>repeated .google.cloud.compute.v1.Items items = 100526016;</code> 81 */ getItems(int index)82 com.google.cloud.compute.v1.Items getItems(int index); 83 /** 84 * 85 * 86 * <pre> 87 * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. 88 * </pre> 89 * 90 * <code>repeated .google.cloud.compute.v1.Items items = 100526016;</code> 91 */ getItemsCount()92 int getItemsCount(); 93 /** 94 * 95 * 96 * <pre> 97 * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. 98 * </pre> 99 * 100 * <code>repeated .google.cloud.compute.v1.Items items = 100526016;</code> 101 */ getItemsOrBuilderList()102 java.util.List<? extends com.google.cloud.compute.v1.ItemsOrBuilder> getItemsOrBuilderList(); 103 /** 104 * 105 * 106 * <pre> 107 * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. 108 * </pre> 109 * 110 * <code>repeated .google.cloud.compute.v1.Items items = 100526016;</code> 111 */ getItemsOrBuilder(int index)112 com.google.cloud.compute.v1.ItemsOrBuilder getItemsOrBuilder(int index); 113 114 /** 115 * 116 * 117 * <pre> 118 * [Output Only] Type of the resource. Always compute#metadata for metadata. 119 * </pre> 120 * 121 * <code>optional string kind = 3292052;</code> 122 * 123 * @return Whether the kind field is set. 124 */ hasKind()125 boolean hasKind(); 126 /** 127 * 128 * 129 * <pre> 130 * [Output Only] Type of the resource. Always compute#metadata for metadata. 131 * </pre> 132 * 133 * <code>optional string kind = 3292052;</code> 134 * 135 * @return The kind. 136 */ getKind()137 java.lang.String getKind(); 138 /** 139 * 140 * 141 * <pre> 142 * [Output Only] Type of the resource. Always compute#metadata for metadata. 143 * </pre> 144 * 145 * <code>optional string kind = 3292052;</code> 146 * 147 * @return The bytes for kind. 148 */ getKindBytes()149 com.google.protobuf.ByteString getKindBytes(); 150 } 151