Class Asset.ResourceSpec (0.14.1)

public static final class Asset.ResourceSpec extends GeneratedMessageV3 implements Asset.ResourceSpecOrBuilder

Identifies the cloud resource that is referenced by this asset.

Protobuf type google.events.cloud.dataplex.v1.Asset.ResourceSpec

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

READ_ACCESS_MODE_FIELD_NUMBER

public static final int READ_ACCESS_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Asset.ResourceSpec getDefaultInstance()
Returns
TypeDescription
Asset.ResourceSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Asset.ResourceSpec.Builder newBuilder()
Returns
TypeDescription
Asset.ResourceSpec.Builder

newBuilder(Asset.ResourceSpec prototype)

public static Asset.ResourceSpec.Builder newBuilder(Asset.ResourceSpec prototype)
Parameter
NameDescription
prototypeAsset.ResourceSpec
Returns
TypeDescription
Asset.ResourceSpec.Builder

parseDelimitedFrom(InputStream input)

public static Asset.ResourceSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset.ResourceSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Asset.ResourceSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Asset.ResourceSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Asset.ResourceSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Asset.ResourceSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Asset.ResourceSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset.ResourceSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Asset.ResourceSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset.ResourceSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Asset.ResourceSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Asset.ResourceSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.ResourceSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Asset.ResourceSpec> parser()
Returns
TypeDescription
Parser<ResourceSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Asset.ResourceSpec getDefaultInstanceForType()
Returns
TypeDescription
Asset.ResourceSpec

getName()

public String getName()

Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Asset.ResourceSpec> getParserForType()
Returns
TypeDescription
Parser<ResourceSpec>
Overrides

getReadAccessMode()

public Asset.ResourceSpec.AccessMode getReadAccessMode()

Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets.

.google.events.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5;

Returns
TypeDescription
Asset.ResourceSpec.AccessMode

The readAccessMode.

getReadAccessModeValue()

public int getReadAccessModeValue()

Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets.

.google.events.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for readAccessMode.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public Asset.ResourceSpec.Type getType()

Required. Immutable. Type of resource.

.google.events.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2;

Returns
TypeDescription
Asset.ResourceSpec.Type

The type.

getTypeValue()

public int getTypeValue()

Required. Immutable. Type of resource.

.google.events.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Asset.ResourceSpec.Builder newBuilderForType()
Returns
TypeDescription
Asset.ResourceSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Asset.ResourceSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Asset.ResourceSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Asset.ResourceSpec.Builder toBuilder()
Returns
TypeDescription
Asset.ResourceSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException