Class Artifact (0.24.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.24.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Artifact   extends   GeneratedMessageV3   implements   ArtifactOrBuilder  
   Artifacts of resources. Artifacts are unique (single-value) per resource
 and are used to store metadata that is too large or numerous to be stored
 directly on the resource. Since artifacts are stored separately from parent
 resources, they should generally be used for metadata that is needed
 infrequently, i.e., not for display in primary views of the resource but
 perhaps displayed or downloaded upon request. The ListArtifacts method
 allows artifacts to be quickly enumerated and checked for presence without
 downloading their (potentially-large) contents.
 Protobuf type google.cloud.apigeeregistry.v1.Artifact
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  CONTENTS_FIELD_NUMBER 
  
    
public   static   final   int   CONTENTS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CREATE_TIME_FIELD_NUMBER 
  
    
public   static   final   int   CREATE_TIME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  HASH_FIELD_NUMBER 
  
    
public   static   final   int   HASH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  MIME_TYPE_FIELD_NUMBER 
  
    
public   static   final   int   MIME_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  SIZE_BYTES_FIELD_NUMBER 
  
    
public   static   final   int   SIZE_BYTES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  UPDATE_TIME_FIELD_NUMBER 
  
    
public   static   final   int   UPDATE_TIME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Artifact   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Artifact . Builder   newBuilder ()  
  
  newBuilder(Artifact prototype) 
  
    
public   static   Artifact . Builder   newBuilder ( Artifact   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeArtifact  
     
  
  
  
    
public   static   Artifact   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Artifact   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Artifact   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Artifact   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Artifact   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Artifact   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Artifact   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Artifact   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Artifact   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Artifact   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Artifact   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Artifact   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Artifact>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getContents() 
  
    
public   ByteString   getContents ()  
   Input only. The contents of the artifact.
 Provided by API callers when artifacts are created or replaced.
 To access the contents of an artifact, use GetArtifactContents.
 bytes contents = 7 [(.google.api.field_behavior) = INPUT_ONLY];
getCreateTime() 
  
    
public   Timestamp   getCreateTime ()  
   Output only. Creation timestamp.
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        Timestamp The createTime.
 
     
  
  getCreateTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getCreateTimeOrBuilder ()  
   Output only. Creation timestamp.
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getDefaultInstanceForType() 
  
    
public   Artifact   getDefaultInstanceForType ()  
  
  getHash() 
  
   Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped,
 this is the hash of the uncompressed artifact.
 string hash = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        String The hash.
 
     
  
  getHashBytes() 
  
    
public   ByteString   getHashBytes ()  
   Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped,
 this is the hash of the uncompressed artifact.
 string hash = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for hash.
 
     
  
  getMimeType() 
  
    
public   String   getMimeType ()  
   A content type specifier for the artifact.
 Content type specifiers are Media Types
 (https://en.wikipedia.org/wiki/Media_type ) with a possible "schema"
 parameter that specifies a schema for the stored information.
 Content types can specify compression. Currently only GZip compression is
 supported (indicated with "+gzip").
 string mime_type = 4;
    
      
        Returns  
      
        Type Description  
      
        String The mimeType.
 
     
  
  getMimeTypeBytes() 
  
    
public   ByteString   getMimeTypeBytes ()  
   A content type specifier for the artifact.
 Content type specifiers are Media Types
 (https://en.wikipedia.org/wiki/Media_type ) with a possible "schema"
 parameter that specifies a schema for the stored information.
 Content types can specify compression. Currently only GZip compression is
 supported (indicated with "+gzip").
 string mime_type = 4;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for mimeType.
 
     
  
  getName() 
  
   Resource name.
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   Resource name.
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  getParserForType() 
  
    
public   Parser<Artifact>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getSizeBytes() 
  
    
public   int   getSizeBytes ()  
   Output only. The size of the artifact in bytes. If the artifact is gzipped, this is
 the size of the uncompressed artifact.
 int32 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        int The sizeBytes.
 
     
  
  getUpdateTime() 
  
    
public   Timestamp   getUpdateTime ()  
   Output only. Last update timestamp.
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        Timestamp The updateTime.
 
     
  
  getUpdateTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getUpdateTimeOrBuilder ()  
   Output only. Last update timestamp.
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
hasCreateTime() 
  
    
public   boolean   hasCreateTime ()  
   Output only. Creation timestamp.
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the createTime field is set.
 
     
  
  hasUpdateTime() 
  
    
public   boolean   hasUpdateTime ()  
   Output only. Last update timestamp.
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the updateTime field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Artifact . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Artifact . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Artifact . 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-28 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-28 UTC."],[],[]]