Class AssetReference

  • All Implemented Interfaces:
    AssetReferenceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class AssetReference
    extends com.google.protobuf.GeneratedMessageV3
    implements AssetReferenceOrBuilder
     Defines the reference of an asset belonging to a product.
     
    Protobuf type google.cloud.privatecatalog.v1beta1.AssetReference
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getId

        public String getId()
         Output only. A unique identifier among asset references in a product.
         
        string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface AssetReferenceOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Output only. A unique identifier among asset references in a product.
         
        string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIdBytes in interface AssetReferenceOrBuilder
        Returns:
        The bytes for id.
      • 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];
        Specified by:
        getDescription in interface AssetReferenceOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.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];
        Specified by:
        getDescriptionBytes in interface AssetReferenceOrBuilder
        Returns:
        The bytes for description.
      • 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];
        Specified by:
        hasInputs in interface AssetReferenceOrBuilder
        Returns:
        Whether the inputs field is set.
      • 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];
        Specified by:
        getInputs in interface AssetReferenceOrBuilder
        Returns:
        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];
        Specified by:
        getInputsOrBuilder in interface AssetReferenceOrBuilder
      • 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];
        Specified by:
        getValidationStatusValue in interface AssetReferenceOrBuilder
        Returns:
        The enum numeric value on the wire for validationStatus.
      • 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];
        Specified by:
        getValidationStatus in interface AssetReferenceOrBuilder
        Returns:
        The validationStatus.
      • hasValidationOperation

        public boolean hasValidationOperation()
         Output only. The validation process metadata.
         
        .google.longrunning.Operation validation_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasValidationOperation in interface AssetReferenceOrBuilder
        Returns:
        Whether the validationOperation field is set.
      • getValidationOperation

        public com.google.longrunning.Operation getValidationOperation()
         Output only. The validation process metadata.
         
        .google.longrunning.Operation validation_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getValidationOperation in interface AssetReferenceOrBuilder
        Returns:
        The validationOperation.
      • getValidationOperationOrBuilder

        public com.google.longrunning.OperationOrBuilder getValidationOperationOrBuilder()
         Output only. The validation process metadata.
         
        .google.longrunning.Operation validation_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getValidationOperationOrBuilder in interface AssetReferenceOrBuilder
      • 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];
        Specified by:
        hasAsset in interface AssetReferenceOrBuilder
        Returns:
        Whether the asset field is set.
      • 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];
        Specified by:
        getAsset in interface AssetReferenceOrBuilder
        Returns:
        The asset.
      • getAssetBytes

        public com.google.protobuf.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];
        Specified by:
        getAssetBytes in interface AssetReferenceOrBuilder
        Returns:
        The bytes for asset.
      • 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];
        Specified by:
        hasGcsPath in interface AssetReferenceOrBuilder
        Returns:
        Whether the gcsPath field is set.
      • 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];
        Specified by:
        getGcsPath in interface AssetReferenceOrBuilder
        Returns:
        The gcsPath.
      • getGcsPathBytes

        @Deprecated
        public com.google.protobuf.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];
        Specified by:
        getGcsPathBytes in interface AssetReferenceOrBuilder
        Returns:
        The bytes for gcsPath.
      • hasGitSource

        public boolean hasGitSource()
         Output only. The git source.
         
        .google.cloud.privatecatalog.v1beta1.GitSource git_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasGitSource in interface AssetReferenceOrBuilder
        Returns:
        Whether the gitSource field is set.
      • getGitSource

        public GitSource getGitSource()
         Output only. The git source.
         
        .google.cloud.privatecatalog.v1beta1.GitSource git_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGitSource in interface AssetReferenceOrBuilder
        Returns:
        The gitSource.
      • hasGcsSource

        public boolean hasGcsSource()
         Output only. The cloud storage source.
         
        .google.cloud.privatecatalog.v1beta1.GcsSource gcs_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasGcsSource in interface AssetReferenceOrBuilder
        Returns:
        Whether the gcsSource field is set.
      • getGcsSource

        public GcsSource getGcsSource()
         Output only. The cloud storage source.
         
        .google.cloud.privatecatalog.v1beta1.GcsSource gcs_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGcsSource in interface AssetReferenceOrBuilder
        Returns:
        The gcsSource.
      • 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];
        Specified by:
        hasCreateTime in interface AssetReferenceOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The creation timestamp of the asset reference.
         
        .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface AssetReferenceOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The creation timestamp of the asset reference.
         
        .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface AssetReferenceOrBuilder
      • 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];
        Specified by:
        hasUpdateTime in interface AssetReferenceOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last update timestamp of the asset reference.
         
        .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface AssetReferenceOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last update timestamp of the asset reference.
         
        .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface AssetReferenceOrBuilder
      • 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];
        Specified by:
        getVersion in interface AssetReferenceOrBuilder
        Returns:
        The version.
      • getVersionBytes

        @Deprecated
        public com.google.protobuf.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];
        Specified by:
        getVersionBytes in interface AssetReferenceOrBuilder
        Returns:
        The bytes for version.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static AssetReference parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AssetReference parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AssetReference parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AssetReference parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AssetReference parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AssetReference parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AssetReference parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public AssetReference.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AssetReference.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AssetReference.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static AssetReference getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<AssetReference> parser()
      • getParserForType

        public com.google.protobuf.Parser<AssetReference> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AssetReference getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder