Class VersionedResource (3.6.0)

public final class VersionedResource extends GeneratedMessageV3 implements VersionedResourceOrBuilder

Resource representation as defined by the corresponding service providing the resource for a given API version.

Protobuf type google.cloud.asset.v1.VersionedResource

Static Fields

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VersionedResource getDefaultInstance()
Returns
Type Description
VersionedResource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static VersionedResource.Builder newBuilder()
Returns
Type Description
VersionedResource.Builder

newBuilder(VersionedResource prototype)

public static VersionedResource.Builder newBuilder(VersionedResource prototype)
Parameter
Name Description
prototype VersionedResource
Returns
Type Description
VersionedResource.Builder

parseDelimitedFrom(InputStream input)

public static VersionedResource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VersionedResource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VersionedResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionedResource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VersionedResource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VersionedResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VersionedResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionedResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VersionedResource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VersionedResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VersionedResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionedResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VersionedResource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VersionedResource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VersionedResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionedResource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VersionedResource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VersionedResource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VersionedResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionedResource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VersionedResource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VersionedResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VersionedResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionedResource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VersionedResource> parser()
Returns
Type Description
Parser<VersionedResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public VersionedResource getDefaultInstanceForType()
Returns
Type Description
VersionedResource

getParserForType()

public Parser<VersionedResource> getParserForType()
Returns
Type Description
Parser<VersionedResource>
Overrides

getResource()

public 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;

Returns
Type Description
Struct

The resource.

getResourceOrBuilder()

public 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;

Returns
Type Description
StructOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getVersion()

public 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;

Returns
Type Description
String

The version.

getVersionBytes()

public 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;

Returns
Type Description
ByteString

The bytes for version.

hasResource()

public 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;

Returns
Type Description
boolean

Whether the resource field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VersionedResource.Builder newBuilderForType()
Returns
Type Description
VersionedResource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VersionedResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VersionedResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public VersionedResource.Builder toBuilder()
Returns
Type Description
VersionedResource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException