Interface FileOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
File, File.Builder

@Generated public interface FileOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       The name of the file, for example:
       `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
       If the file ID part contains slashes, they are escaped.
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       The name of the file, for example:
       `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
       If the file ID part contains slashes, they are escaped.
       
      string name = 1;
      Returns:
      The bytes for name.
    • getSizeBytes

      long getSizeBytes()
       The size of the File in bytes.
       
      int64 size_bytes = 3;
      Returns:
      The sizeBytes.
    • getHashesList

      List<Hash> getHashesList()
       The hashes of the file content.
       
      repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
    • getHashes

      Hash getHashes(int index)
       The hashes of the file content.
       
      repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
    • getHashesCount

      int getHashesCount()
       The hashes of the file content.
       
      repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
    • getHashesOrBuilderList

      List<? extends HashOrBuilder> getHashesOrBuilderList()
       The hashes of the file content.
       
      repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
    • getHashesOrBuilder

      HashOrBuilder getHashesOrBuilder(int index)
       The hashes of the file content.
       
      repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
    • hasCreateTime

      boolean hasCreateTime()
       Output only. The time when the File was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the File was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the File was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasUpdateTime

      boolean hasUpdateTime()
       Output only. The time when the File was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time when the File was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time when the File was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOwner

      String getOwner()
       The name of the Package or Version that owns this file, if any.
       
      string owner = 7;
      Returns:
      The owner.
    • getOwnerBytes

      com.google.protobuf.ByteString getOwnerBytes()
       The name of the Package or Version that owns this file, if any.
       
      string owner = 7;
      Returns:
      The bytes for owner.
    • hasFetchTime

      boolean hasFetchTime()
       Output only. The time when the last attempt to refresh the file's data was
       made. Only set when the repository is remote.
       
      .google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the fetchTime field is set.
    • getFetchTime

      com.google.protobuf.Timestamp getFetchTime()
       Output only. The time when the last attempt to refresh the file's data was
       made. Only set when the repository is remote.
       
      .google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The fetchTime.
    • getFetchTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getFetchTimeOrBuilder()
       Output only. The time when the last attempt to refresh the file's data was
       made. Only set when the repository is remote.
       
      .google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAnnotationsCount

      int getAnnotationsCount()
       Optional. Client specified annotations.
       
      map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];
    • containsAnnotations

      boolean containsAnnotations(String key)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getAnnotations

      @Deprecated Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
    • getAnnotationsMap

      Map<String,String> getAnnotationsMap()
       Optional. Client specified annotations.
       
      map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getAnnotationsOrDefault

      String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getAnnotationsOrThrow

      String getAnnotationsOrThrow(String key)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];