Class AssetReference (0.45.0)

public final class AssetReference extends GeneratedMessageV3 implements AssetReferenceOrBuilder

Defines the reference of an asset belonging to a product.

Protobuf type google.cloud.privatecatalog.v1beta1.AssetReference

Static Fields

ASSET_FIELD_NUMBER

public static final int ASSET_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

GCS_PATH_FIELD_NUMBER

public static final int GCS_PATH_FIELD_NUMBER
Field Value
Type Description
int

GCS_SOURCE_FIELD_NUMBER

public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

GIT_SOURCE_FIELD_NUMBER

public static final int GIT_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

INPUTS_FIELD_NUMBER

public static final int INPUTS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

VALIDATION_OPERATION_FIELD_NUMBER

public static final int VALIDATION_OPERATION_FIELD_NUMBER
Field Value
Type Description
int

VALIDATION_STATUS_FIELD_NUMBER

public static final int VALIDATION_STATUS_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 AssetReference getDefaultInstance()
Returns
Type Description
AssetReference

getDescriptor()

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

newBuilder()

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

newBuilder(AssetReference prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAsset()

public String getAsset()

Output only. The asset resource name if an asset is hosted by Private Catalog.

string asset = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The asset.

getAssetBytes()

public ByteString getAssetBytes()

Output only. The asset resource name if an asset is hosted by Private Catalog.

string asset = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for asset.

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of the asset reference.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of the asset reference.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AssetReference getDefaultInstanceForType()
Returns
Type Description
AssetReference

getDescription()

public String getDescription()

Output only. The human-readable description of the referenced asset. Maximum 256 characters in length.

string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The human-readable description of the referenced asset. Maximum 256 characters in length.

string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getGcsPath() (deprecated)

public String getGcsPath()

Deprecated. google.cloud.privatecatalog.v1beta1.AssetReference.gcs_path is deprecated. See google/cloud/privatecatalog/v1beta1/private_catalog.proto;l=461

Output only. The cloud storage object path.

string gcs_path = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The gcsPath.

getGcsPathBytes() (deprecated)

public ByteString getGcsPathBytes()

Deprecated. google.cloud.privatecatalog.v1beta1.AssetReference.gcs_path is deprecated. See google/cloud/privatecatalog/v1beta1/private_catalog.proto;l=461

Output only. The cloud storage object path.

string gcs_path = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for gcsPath.

getGcsSource()

public GcsSource getGcsSource()

Output only. The cloud storage source.

.google.cloud.privatecatalog.v1beta1.GcsSource gcs_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsSource

The gcsSource.

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Output only. The cloud storage source.

.google.cloud.privatecatalog.v1beta1.GcsSource gcs_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsSourceOrBuilder

getGitSource()

public GitSource getGitSource()

Output only. The git source.

.google.cloud.privatecatalog.v1beta1.GitSource git_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitSource

The gitSource.

getGitSourceOrBuilder()

public GitSourceOrBuilder getGitSourceOrBuilder()

Output only. The git source.

.google.cloud.privatecatalog.v1beta1.GitSource git_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitSourceOrBuilder

getId()

public String getId()

Output only. A unique identifier among asset references in a product.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. A unique identifier among asset references in a product.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getInputs()

public Inputs getInputs()

Output only. The definition of input parameters to hydrate the asset template.

.google.cloud.privatecatalog.v1beta1.Inputs inputs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Inputs

The inputs.

getInputsOrBuilder()

public InputsOrBuilder getInputsOrBuilder()

Output only. The definition of input parameters to hydrate the asset template.

.google.cloud.privatecatalog.v1beta1.Inputs inputs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InputsOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceCase()

public AssetReference.SourceCase getSourceCase()
Returns
Type Description
AssetReference.SourceCase

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of the asset reference.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of the asset reference.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getValidationOperation()

public Operation getValidationOperation()

Output only. The validation process metadata.

.google.longrunning.Operation validation_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Operation

The validationOperation.

getValidationOperationOrBuilder()

public OperationOrBuilder getValidationOperationOrBuilder()

Output only. The validation process metadata.

.google.longrunning.Operation validation_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OperationOrBuilder

getValidationStatus()

public AssetReference.AssetValidationState getValidationStatus()

Output only. The current state of the asset reference.

.google.cloud.privatecatalog.v1beta1.AssetReference.AssetValidationState validation_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssetReference.AssetValidationState

The validationStatus.

getValidationStatusValue()

public int getValidationStatusValue()

Output only. The current state of the asset reference.

.google.cloud.privatecatalog.v1beta1.AssetReference.AssetValidationState validation_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for validationStatus.

getVersion() (deprecated)

public String getVersion()

Deprecated. google.cloud.privatecatalog.v1beta1.AssetReference.version is deprecated. See google/cloud/privatecatalog/v1beta1/private_catalog.proto;l=480

The version of the source used for this asset reference.

string version = 14 [deprecated = true];

Returns
Type Description
String

The version.

getVersionBytes() (deprecated)

public ByteString getVersionBytes()

Deprecated. google.cloud.privatecatalog.v1beta1.AssetReference.version is deprecated. See google/cloud/privatecatalog/v1beta1/private_catalog.proto;l=480

The version of the source used for this asset reference.

string version = 14 [deprecated = true];

Returns
Type Description
ByteString

The bytes for version.

hasAsset()

public boolean hasAsset()

Output only. The asset resource name if an asset is hosted by Private Catalog.

string asset = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the asset field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of the asset reference.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasGcsPath() (deprecated)

public boolean hasGcsPath()

Deprecated. google.cloud.privatecatalog.v1beta1.AssetReference.gcs_path is deprecated. See google/cloud/privatecatalog/v1beta1/private_catalog.proto;l=461

Output only. The cloud storage object path.

string gcs_path = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the gcsPath field is set.

hasGcsSource()

public boolean hasGcsSource()

Output only. The cloud storage source.

.google.cloud.privatecatalog.v1beta1.GcsSource gcs_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the gcsSource field is set.

hasGitSource()

public boolean hasGitSource()

Output only. The git source.

.google.cloud.privatecatalog.v1beta1.GitSource git_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the gitSource field is set.

hasInputs()

public boolean hasInputs()

Output only. The definition of input parameters to hydrate the asset template.

.google.cloud.privatecatalog.v1beta1.Inputs inputs = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the inputs field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update timestamp of the asset reference.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasValidationOperation()

public boolean hasValidationOperation()

Output only. The validation process metadata.

.google.longrunning.Operation validation_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the validationOperation 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 AssetReference.Builder newBuilderForType()
Returns
Type Description
AssetReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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