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/asset/v1/assets.proto 18 19 package com.google.cloud.asset.v1; 20 21 public interface ResourceOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Resource) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The API version. Example: `v1` 31 * </pre> 32 * 33 * <code>string version = 1;</code> 34 * 35 * @return The version. 36 */ getVersion()37 java.lang.String getVersion(); 38 /** 39 * 40 * 41 * <pre> 42 * The API version. Example: `v1` 43 * </pre> 44 * 45 * <code>string version = 1;</code> 46 * 47 * @return The bytes for version. 48 */ getVersionBytes()49 com.google.protobuf.ByteString getVersionBytes(); 50 51 /** 52 * 53 * 54 * <pre> 55 * The URL of the discovery document containing the resource's JSON schema. 56 * Example: 57 * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` 58 * This value is unspecified for resources that do not have an API based on a 59 * discovery document, such as Cloud Bigtable. 60 * </pre> 61 * 62 * <code>string discovery_document_uri = 2;</code> 63 * 64 * @return The discoveryDocumentUri. 65 */ getDiscoveryDocumentUri()66 java.lang.String getDiscoveryDocumentUri(); 67 /** 68 * 69 * 70 * <pre> 71 * The URL of the discovery document containing the resource's JSON schema. 72 * Example: 73 * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` 74 * This value is unspecified for resources that do not have an API based on a 75 * discovery document, such as Cloud Bigtable. 76 * </pre> 77 * 78 * <code>string discovery_document_uri = 2;</code> 79 * 80 * @return The bytes for discoveryDocumentUri. 81 */ getDiscoveryDocumentUriBytes()82 com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); 83 84 /** 85 * 86 * 87 * <pre> 88 * The JSON schema name listed in the discovery document. Example: 89 * `Project` 90 * This value is unspecified for resources that do not have an API based on a 91 * discovery document, such as Cloud Bigtable. 92 * </pre> 93 * 94 * <code>string discovery_name = 3;</code> 95 * 96 * @return The discoveryName. 97 */ getDiscoveryName()98 java.lang.String getDiscoveryName(); 99 /** 100 * 101 * 102 * <pre> 103 * The JSON schema name listed in the discovery document. Example: 104 * `Project` 105 * This value is unspecified for resources that do not have an API based on a 106 * discovery document, such as Cloud Bigtable. 107 * </pre> 108 * 109 * <code>string discovery_name = 3;</code> 110 * 111 * @return The bytes for discoveryName. 112 */ getDiscoveryNameBytes()113 com.google.protobuf.ByteString getDiscoveryNameBytes(); 114 115 /** 116 * 117 * 118 * <pre> 119 * The REST URL for accessing the resource. An HTTP `GET` request using this 120 * URL returns the resource itself. Example: 121 * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` 122 * This value is unspecified for resources without a REST API. 123 * </pre> 124 * 125 * <code>string resource_url = 4;</code> 126 * 127 * @return The resourceUrl. 128 */ getResourceUrl()129 java.lang.String getResourceUrl(); 130 /** 131 * 132 * 133 * <pre> 134 * The REST URL for accessing the resource. An HTTP `GET` request using this 135 * URL returns the resource itself. Example: 136 * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` 137 * This value is unspecified for resources without a REST API. 138 * </pre> 139 * 140 * <code>string resource_url = 4;</code> 141 * 142 * @return The bytes for resourceUrl. 143 */ getResourceUrlBytes()144 com.google.protobuf.ByteString getResourceUrlBytes(); 145 146 /** 147 * 148 * 149 * <pre> 150 * The full name of the immediate parent of this resource. See 151 * [Resource 152 * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) 153 * for more information. 154 * For Google Cloud assets, this value is the parent resource defined in the 155 * [IAM policy 156 * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). 157 * Example: 158 * `//cloudresourcemanager.googleapis.com/projects/my_project_123` 159 * For third-party assets, this field may be set differently. 160 * </pre> 161 * 162 * <code>string parent = 5;</code> 163 * 164 * @return The parent. 165 */ getParent()166 java.lang.String getParent(); 167 /** 168 * 169 * 170 * <pre> 171 * The full name of the immediate parent of this resource. See 172 * [Resource 173 * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) 174 * for more information. 175 * For Google Cloud assets, this value is the parent resource defined in the 176 * [IAM policy 177 * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). 178 * Example: 179 * `//cloudresourcemanager.googleapis.com/projects/my_project_123` 180 * For third-party assets, this field may be set differently. 181 * </pre> 182 * 183 * <code>string parent = 5;</code> 184 * 185 * @return The bytes for parent. 186 */ getParentBytes()187 com.google.protobuf.ByteString getParentBytes(); 188 189 /** 190 * 191 * 192 * <pre> 193 * The content of the resource, in which some sensitive fields are removed 194 * and may not be present. 195 * </pre> 196 * 197 * <code>.google.protobuf.Struct data = 6;</code> 198 * 199 * @return Whether the data field is set. 200 */ hasData()201 boolean hasData(); 202 /** 203 * 204 * 205 * <pre> 206 * The content of the resource, in which some sensitive fields are removed 207 * and may not be present. 208 * </pre> 209 * 210 * <code>.google.protobuf.Struct data = 6;</code> 211 * 212 * @return The data. 213 */ getData()214 com.google.protobuf.Struct getData(); 215 /** 216 * 217 * 218 * <pre> 219 * The content of the resource, in which some sensitive fields are removed 220 * and may not be present. 221 * </pre> 222 * 223 * <code>.google.protobuf.Struct data = 6;</code> 224 */ getDataOrBuilder()225 com.google.protobuf.StructOrBuilder getDataOrBuilder(); 226 227 /** 228 * 229 * 230 * <pre> 231 * The location of the resource in Google Cloud, such as its zone and region. 232 * For more information, see https://cloud.google.com/about/locations/. 233 * </pre> 234 * 235 * <code>string location = 8;</code> 236 * 237 * @return The location. 238 */ getLocation()239 java.lang.String getLocation(); 240 /** 241 * 242 * 243 * <pre> 244 * The location of the resource in Google Cloud, such as its zone and region. 245 * For more information, see https://cloud.google.com/about/locations/. 246 * </pre> 247 * 248 * <code>string location = 8;</code> 249 * 250 * @return The bytes for location. 251 */ getLocationBytes()252 com.google.protobuf.ByteString getLocationBytes(); 253 } 254