Class File.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
- com.google.devtools.artifactregistry.v1beta2.File.Builder
-
- All Implemented Interfaces:
FileOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- File
public static final class File.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<File.Builder> implements FileOrBuilder
Files store content that is potentially associated with Packages or Versions.
Protobuf typegoogle.devtools.artifactregistry.v1beta2.File
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description File.Builder
addAllHashes(Iterable<? extends Hash> values)
The hashes of the file content.File.Builder
addHashes(int index, Hash value)
The hashes of the file content.File.Builder
addHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.File.Builder
addHashes(Hash value)
The hashes of the file content.File.Builder
addHashes(Hash.Builder builderForValue)
The hashes of the file content.Hash.Builder
addHashesBuilder()
The hashes of the file content.Hash.Builder
addHashesBuilder(int index)
The hashes of the file content.File.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
File
build()
File
buildPartial()
File.Builder
clear()
File.Builder
clearCreateTime()
The time when the File was created.File.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
File.Builder
clearHashes()
The hashes of the file content.File.Builder
clearName()
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".File.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
File.Builder
clearOwner()
The name of the Package or Version that owns this file, if any.File.Builder
clearSizeBytes()
The size of the File in bytes.File.Builder
clearUpdateTime()
The time when the File was last updated.File.Builder
clone()
com.google.protobuf.Timestamp
getCreateTime()
The time when the File was created.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
The time when the File was created.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The time when the File was created.File
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Hash
getHashes(int index)
The hashes of the file content.Hash.Builder
getHashesBuilder(int index)
The hashes of the file content.List<Hash.Builder>
getHashesBuilderList()
The hashes of the file content.int
getHashesCount()
The hashes of the file content.List<Hash>
getHashesList()
The hashes of the file content.HashOrBuilder
getHashesOrBuilder(int index)
The hashes of the file content.List<? extends HashOrBuilder>
getHashesOrBuilderList()
The hashes of the file content.String
getName()
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".com.google.protobuf.ByteString
getNameBytes()
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".String
getOwner()
The name of the Package or Version that owns this file, if any.com.google.protobuf.ByteString
getOwnerBytes()
The name of the Package or Version that owns this file, if any.long
getSizeBytes()
The size of the File in bytes.com.google.protobuf.Timestamp
getUpdateTime()
The time when the File was last updated.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
The time when the File was last updated.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
The time when the File was last updated.boolean
hasCreateTime()
The time when the File was created.boolean
hasUpdateTime()
The time when the File was last updated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
File.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
The time when the File was created.File.Builder
mergeFrom(File other)
File.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
File.Builder
mergeFrom(com.google.protobuf.Message other)
File.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
File.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
The time when the File was last updated.File.Builder
removeHashes(int index)
The hashes of the file content.File.Builder
setCreateTime(com.google.protobuf.Timestamp value)
The time when the File was created.File.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the File was created.File.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
File.Builder
setHashes(int index, Hash value)
The hashes of the file content.File.Builder
setHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.File.Builder
setName(String value)
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".File.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".File.Builder
setOwner(String value)
The name of the Package or Version that owns this file, if any.File.Builder
setOwnerBytes(com.google.protobuf.ByteString value)
The name of the Package or Version that owns this file, if any.File.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
File.Builder
setSizeBytes(long value)
The size of the File in bytes.File.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
File.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
The time when the File was last updated.File.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the File was last updated.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clear
public File.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
getDefaultInstanceForType
public File getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public File build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public File buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public File.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
setField
public File.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clearField
public File.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
clearOneof
public File.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
setRepeatedField
public File.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
addRepeatedField
public File.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(File other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeFrom
public File.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<File.Builder>
- Throws:
IOException
-
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;
- Specified by:
getName
in interfaceFileOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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;
- Specified by:
getNameBytes
in interfaceFileOrBuilder
- Returns:
- The bytes for name.
-
setName
public File.Builder setName(String value)
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public File.Builder clearName()
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:
- This builder for chaining.
-
setNameBytes
public File.Builder setNameBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSizeBytes
public long getSizeBytes()
The size of the File in bytes.
int64 size_bytes = 3;
- Specified by:
getSizeBytes
in interfaceFileOrBuilder
- Returns:
- The sizeBytes.
-
setSizeBytes
public File.Builder setSizeBytes(long value)
The size of the File in bytes.
int64 size_bytes = 3;
- Parameters:
value
- The sizeBytes to set.- Returns:
- This builder for chaining.
-
clearSizeBytes
public File.Builder clearSizeBytes()
The size of the File in bytes.
int64 size_bytes = 3;
- Returns:
- This builder for chaining.
-
getHashesList
public List<Hash> getHashesList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
- Specified by:
getHashesList
in interfaceFileOrBuilder
-
getHashesCount
public int getHashesCount()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
- Specified by:
getHashesCount
in interfaceFileOrBuilder
-
getHashes
public Hash getHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
- Specified by:
getHashes
in interfaceFileOrBuilder
-
setHashes
public File.Builder setHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
setHashes
public File.Builder setHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
addHashes
public File.Builder addHashes(Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
addHashes
public File.Builder addHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
addHashes
public File.Builder addHashes(Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
addHashes
public File.Builder addHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
addAllHashes
public File.Builder addAllHashes(Iterable<? extends Hash> values)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
clearHashes
public File.Builder clearHashes()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
removeHashes
public File.Builder removeHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
getHashesBuilder
public Hash.Builder getHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
getHashesOrBuilder
public HashOrBuilder getHashesOrBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
- Specified by:
getHashesOrBuilder
in interfaceFileOrBuilder
-
getHashesOrBuilderList
public List<? extends HashOrBuilder> getHashesOrBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
- Specified by:
getHashesOrBuilderList
in interfaceFileOrBuilder
-
addHashesBuilder
public Hash.Builder addHashesBuilder()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
addHashesBuilder
public Hash.Builder addHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
getHashesBuilderList
public List<Hash.Builder> getHashesBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
-
hasCreateTime
public boolean hasCreateTime()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
- Specified by:
hasCreateTime
in interfaceFileOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
- Specified by:
getCreateTime
in interfaceFileOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public File.Builder setCreateTime(com.google.protobuf.Timestamp value)
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
-
setCreateTime
public File.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
-
mergeCreateTime
public File.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
-
clearCreateTime
public File.Builder clearCreateTime()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
- Specified by:
getCreateTimeOrBuilder
in interfaceFileOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
- Specified by:
hasUpdateTime
in interfaceFileOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
- Specified by:
getUpdateTime
in interfaceFileOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public File.Builder setUpdateTime(com.google.protobuf.Timestamp value)
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
-
setUpdateTime
public File.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
-
mergeUpdateTime
public File.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
-
clearUpdateTime
public File.Builder clearUpdateTime()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
- Specified by:
getUpdateTimeOrBuilder
in interfaceFileOrBuilder
-
getOwner
public String getOwner()
The name of the Package or Version that owns this file, if any.
string owner = 7;
- Specified by:
getOwner
in interfaceFileOrBuilder
- Returns:
- The owner.
-
getOwnerBytes
public com.google.protobuf.ByteString getOwnerBytes()
The name of the Package or Version that owns this file, if any.
string owner = 7;
- Specified by:
getOwnerBytes
in interfaceFileOrBuilder
- Returns:
- The bytes for owner.
-
setOwner
public File.Builder setOwner(String value)
The name of the Package or Version that owns this file, if any.
string owner = 7;
- Parameters:
value
- The owner to set.- Returns:
- This builder for chaining.
-
clearOwner
public File.Builder clearOwner()
The name of the Package or Version that owns this file, if any.
string owner = 7;
- Returns:
- This builder for chaining.
-
setOwnerBytes
public File.Builder setOwnerBytes(com.google.protobuf.ByteString value)
The name of the Package or Version that owns this file, if any.
string owner = 7;
- Parameters:
value
- The bytes for owner to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final File.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
mergeUnknownFields
public final File.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<File.Builder>
-
-