Class Asset (0.31.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.31.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Asset   extends   GeneratedMessageV3   implements   AssetOrBuilder  
   An asset is a resource in corpus. It represents a media object inside corpus,
 contains metadata and another resource annotation. Different feature could be
 applied to the asset to generate annotations. User could specified annotation
 related to the target asset.
 Protobuf type google.cloud.visionai.v1.Asset
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  ASSET_GCS_SOURCE_FIELD_NUMBER 
  
    
public   static   final   int   ASSET_GCS_SOURCE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TTL_FIELD_NUMBER 
  
    
public   static   final   int   TTL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Asset   getDefaultInstance ()  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Asset . Builder   newBuilder ()  
  
  newBuilder(Asset prototype) 
  
    
public   static   Asset . Builder   newBuilder ( Asset   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeAsset  
     
  
  
  
    
public   static   Asset   parseDelimitedFrom ( InputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  
    
public   static   Asset   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  parseFrom(byte[] data) 
  
    
public   static   Asset   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Asset   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  parseFrom(ByteString data) 
  
    
public   static   Asset   parseFrom ( ByteString   data )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Asset   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  
    
public   static   Asset   parseFrom ( CodedInputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  
    
public   static   Asset   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  
    
public   static   Asset   parseFrom ( InputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  
    
public   static   Asset   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Asset   parseFrom ( ByteBuffer   data )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Asset   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  
  parser() 
  
    
public   static   Parser<Asset>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getAssetGcsSource() 
  
    
public   AssetSource . AssetGcsSource   getAssetGcsSource ()  
   Output only. The original cloud storage source uri that is associated with
 this asset.
 
 .google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getAssetGcsSourceOrBuilder() 
  
    
public   AssetSource . AssetGcsSourceOrBuilder   getAssetGcsSourceOrBuilder ()  
   Output only. The original cloud storage source uri that is associated with
 this asset.
 
 .google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getDefaultInstanceForType() 
  
    
public   Asset   getDefaultInstanceForType ()  
  
    
      
        Returns  
      
        Type Description  
      
        Asset  
     
  
  getName() 
  
   Resource name of the asset.
 Format:
 projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   Resource name of the asset.
 Format:
 projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  getParserForType() 
  
    
public   Parser<Asset>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getTtl() 
  
   The duration for which all media assets, associated metadata, and search
 documents can exist. If not set, then it will using the default ttl in the
 parent corpus resource.
 .google.protobuf.Duration ttl = 2;
    
      
        Returns  
      
        Type Description  
      
        Duration The ttl.
 
     
  
  getTtlOrBuilder() 
  
    
public   DurationOrBuilder   getTtlOrBuilder ()  
   The duration for which all media assets, associated metadata, and search
 documents can exist. If not set, then it will using the default ttl in the
 parent corpus resource.
 .google.protobuf.Duration ttl = 2;
hasAssetGcsSource() 
  
    
public   boolean   hasAssetGcsSource ()  
   Output only. The original cloud storage source uri that is associated with
 this asset.
 
 .google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the assetGcsSource field is set.
 
     
  
  hasTtl() 
  
   The duration for which all media assets, associated metadata, and search
 documents can exist. If not set, then it will using the default ttl in the
 parent corpus resource.
 .google.protobuf.Duration ttl = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the ttl field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Asset . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Asset . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Asset . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]