Class File (1.34.0)

public final class File extends GeneratedMessageV3 implements FileOrBuilder

Files store content that is potentially associated with Packages or Versions.

Protobuf type google.devtools.artifactregistry.v1beta2.File

Implements

FileOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

HASHES_FIELD_NUMBER

public static final int HASHES_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

OWNER_FIELD_NUMBER

public static final int OWNER_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_BYTES_FIELD_NUMBER

public static final int SIZE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static File getDefaultInstance()
Returns
TypeDescription
File

getDescriptor()

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

newBuilder()

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

newBuilder(File prototype)

public static File.Builder newBuilder(File prototype)
Parameter
NameDescription
prototypeFile
Returns
TypeDescription
File.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

The time when the File was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the File was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public File getDefaultInstanceForType()
Returns
TypeDescription
File

getHashes(int index)

public Hash getHashes(int index)

The hashes of the file content.

repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hash

getHashesCount()

public int getHashesCount()

The hashes of the file content.

repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;

Returns
TypeDescription
int

getHashesList()

public List<Hash> getHashesList()

The hashes of the file content.

repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;

Returns
TypeDescription
List<Hash>

getHashesOrBuilder(int index)

public HashOrBuilder getHashesOrBuilder(int index)

The hashes of the file content.

repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HashOrBuilder

getHashesOrBuilderList()

public List<? extends HashOrBuilder> getHashesOrBuilderList()

The hashes of the file content.

repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;

Returns
TypeDescription
List<? extends com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>

getName()

public 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
TypeDescription
String

The name.

getNameBytes()

public 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
TypeDescription
ByteString

The bytes for name.

getOwner()

public String getOwner()

The name of the Package or Version that owns this file, if any.

string owner = 7;

Returns
TypeDescription
String

The owner.

getOwnerBytes()

public ByteString getOwnerBytes()

The name of the Package or Version that owns this file, if any.

string owner = 7;

Returns
TypeDescription
ByteString

The bytes for owner.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSizeBytes()

public long getSizeBytes()

The size of the File in bytes.

int64 size_bytes = 3;

Returns
TypeDescription
long

The sizeBytes.

getUpdateTime()

public Timestamp getUpdateTime()

The time when the File was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time when the File was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time when the File was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The time when the File was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
boolean

Whether the updateTime 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 File.Builder newBuilderForType()
Returns
TypeDescription
File.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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