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/osconfig/v1/inventory.proto 18 19 package com.google.cloud.osconfig.v1; 20 21 public interface InventoryOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1.Inventory) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Output only. The `Inventory` API resource name. 31 * Format: 32 * `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory` 33 * </pre> 34 * 35 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 36 * 37 * @return The name. 38 */ getName()39 java.lang.String getName(); 40 /** 41 * 42 * 43 * <pre> 44 * Output only. The `Inventory` API resource name. 45 * Format: 46 * `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory` 47 * </pre> 48 * 49 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 50 * 51 * @return The bytes for name. 52 */ getNameBytes()53 com.google.protobuf.ByteString getNameBytes(); 54 55 /** 56 * 57 * 58 * <pre> 59 * Base level operating system information for the VM. 60 * </pre> 61 * 62 * <code>.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;</code> 63 * 64 * @return Whether the osInfo field is set. 65 */ hasOsInfo()66 boolean hasOsInfo(); 67 /** 68 * 69 * 70 * <pre> 71 * Base level operating system information for the VM. 72 * </pre> 73 * 74 * <code>.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;</code> 75 * 76 * @return The osInfo. 77 */ getOsInfo()78 com.google.cloud.osconfig.v1.Inventory.OsInfo getOsInfo(); 79 /** 80 * 81 * 82 * <pre> 83 * Base level operating system information for the VM. 84 * </pre> 85 * 86 * <code>.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;</code> 87 */ getOsInfoOrBuilder()88 com.google.cloud.osconfig.v1.Inventory.OsInfoOrBuilder getOsInfoOrBuilder(); 89 90 /** 91 * 92 * 93 * <pre> 94 * Inventory items related to the VM keyed by an opaque unique identifier for 95 * each inventory item. The identifier is unique to each distinct and 96 * addressable inventory item and will change, when there is a new package 97 * version. 98 * </pre> 99 * 100 * <code>map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;</code> 101 */ getItemsCount()102 int getItemsCount(); 103 /** 104 * 105 * 106 * <pre> 107 * Inventory items related to the VM keyed by an opaque unique identifier for 108 * each inventory item. The identifier is unique to each distinct and 109 * addressable inventory item and will change, when there is a new package 110 * version. 111 * </pre> 112 * 113 * <code>map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;</code> 114 */ containsItems(java.lang.String key)115 boolean containsItems(java.lang.String key); 116 /** Use {@link #getItemsMap()} instead. */ 117 @java.lang.Deprecated getItems()118 java.util.Map<java.lang.String, com.google.cloud.osconfig.v1.Inventory.Item> getItems(); 119 /** 120 * 121 * 122 * <pre> 123 * Inventory items related to the VM keyed by an opaque unique identifier for 124 * each inventory item. The identifier is unique to each distinct and 125 * addressable inventory item and will change, when there is a new package 126 * version. 127 * </pre> 128 * 129 * <code>map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;</code> 130 */ getItemsMap()131 java.util.Map<java.lang.String, com.google.cloud.osconfig.v1.Inventory.Item> getItemsMap(); 132 /** 133 * 134 * 135 * <pre> 136 * Inventory items related to the VM keyed by an opaque unique identifier for 137 * each inventory item. The identifier is unique to each distinct and 138 * addressable inventory item and will change, when there is a new package 139 * version. 140 * </pre> 141 * 142 * <code>map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;</code> 143 */ 144 /* nullable */ getItemsOrDefault( java.lang.String key, com.google.cloud.osconfig.v1.Inventory.Item defaultValue)145 com.google.cloud.osconfig.v1.Inventory.Item getItemsOrDefault( 146 java.lang.String key, 147 /* nullable */ 148 com.google.cloud.osconfig.v1.Inventory.Item defaultValue); 149 /** 150 * 151 * 152 * <pre> 153 * Inventory items related to the VM keyed by an opaque unique identifier for 154 * each inventory item. The identifier is unique to each distinct and 155 * addressable inventory item and will change, when there is a new package 156 * version. 157 * </pre> 158 * 159 * <code>map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;</code> 160 */ getItemsOrThrow(java.lang.String key)161 com.google.cloud.osconfig.v1.Inventory.Item getItemsOrThrow(java.lang.String key); 162 163 /** 164 * 165 * 166 * <pre> 167 * Output only. Timestamp of the last reported inventory for the VM. 168 * </pre> 169 * 170 * <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 171 * </code> 172 * 173 * @return Whether the updateTime field is set. 174 */ hasUpdateTime()175 boolean hasUpdateTime(); 176 /** 177 * 178 * 179 * <pre> 180 * Output only. Timestamp of the last reported inventory for the VM. 181 * </pre> 182 * 183 * <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 184 * </code> 185 * 186 * @return The updateTime. 187 */ getUpdateTime()188 com.google.protobuf.Timestamp getUpdateTime(); 189 /** 190 * 191 * 192 * <pre> 193 * Output only. Timestamp of the last reported inventory for the VM. 194 * </pre> 195 * 196 * <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 197 * </code> 198 */ getUpdateTimeOrBuilder()199 com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); 200 } 201