public interface VersionedResourceOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
Struct |
getResource()
JSON representation of the resource as defined by the corresponding
service providing this resource.
|
StructOrBuilder |
getResourceOrBuilder()
JSON representation of the resource as defined by the corresponding
service providing this resource.
|
String |
getVersion()
API version of the resource.
|
ByteString |
getVersionBytes()
API version of the resource.
|
boolean |
hasResource()
JSON representation of the resource as defined by the corresponding
service providing this resource.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
String getVersion()
API version of the resource. Example: If the resource is an instance provided by Compute Engine v1 API as defined in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, version will be "v1".
string version = 1;
ByteString getVersionBytes()
API version of the resource. Example: If the resource is an instance provided by Compute Engine v1 API as defined in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, version will be "v1".
string version = 1;
boolean hasResource()
JSON representation of the resource as defined by the corresponding service providing this resource. Example: If the resource is an instance provided by Compute Engine, this field will contain the JSON representation of the instance as defined by Compute Engine: `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. You can find the resource definition for each supported resource type in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types`
.google.protobuf.Struct resource = 2;
Struct getResource()
JSON representation of the resource as defined by the corresponding service providing this resource. Example: If the resource is an instance provided by Compute Engine, this field will contain the JSON representation of the instance as defined by Compute Engine: `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. You can find the resource definition for each supported resource type in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types`
.google.protobuf.Struct resource = 2;
StructOrBuilder getResourceOrBuilder()
JSON representation of the resource as defined by the corresponding service providing this resource. Example: If the resource is an instance provided by Compute Engine, this field will contain the JSON representation of the instance as defined by Compute Engine: `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. You can find the resource definition for each supported resource type in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types`
.google.protobuf.Struct resource = 2;
Copyright © 2022 Google LLC. All rights reserved.