Class AssetReference (0.21.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
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_PATH_FIELD_NUMBER

public static final int GCS_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_SOURCE_FIELD_NUMBER

public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

GIT_SOURCE_FIELD_NUMBER

public static final int GIT_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

INPUTS_FIELD_NUMBER

public static final int INPUTS_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATION_OPERATION_FIELD_NUMBER

public static final int VALIDATION_OPERATION_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATION_STATUS_FIELD_NUMBER

public static final int VALIDATION_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AssetReference getDefaultInstance()
Returns
TypeDescription
AssetReference

getDescriptor()

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

newBuilder()

public static AssetReference.Builder newBuilder()
Returns
TypeDescription
AssetReference.Builder

newBuilder(AssetReference prototype)

public static AssetReference.Builder newBuilder(AssetReference prototype)
Parameter
NameDescription
prototypeAssetReference
Returns
TypeDescription
AssetReference.Builder

parseDelimitedFrom(InputStream input)

public static AssetReference parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AssetReference
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AssetReference parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AssetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AssetReference parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AssetReference
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AssetReference parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AssetReference
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AssetReference parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AssetReference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AssetReference> parser()
Returns
TypeDescription
Parser<AssetReference>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AssetReference getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InputsOrBuilder

getParserForType()

public Parser<AssetReference> getParserForType()
Returns
TypeDescription
Parser<AssetReference>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceCase()

public AssetReference.SourceCase getSourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getValidationOperation()

public Operation getValidationOperation()

Output only. The validation process metadata.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the validationOperation field is set.

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 AssetReference.Builder newBuilderForType()
Returns
TypeDescription
AssetReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AssetReference.Builder toBuilder()
Returns
TypeDescription
AssetReference.Builder

writeTo(CodedOutputStream output)

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