Class ExportArtifactMetadata.ExportedFile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>
com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder
- All Implemented Interfaces:
ExportArtifactMetadata.ExportedFileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExportArtifactMetadata.ExportedFile
public static final class ExportArtifactMetadata.ExportedFile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>
implements ExportArtifactMetadata.ExportedFileOrBuilder
The exported artifact file.Protobuf type
google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile-
Method Summary
Modifier and TypeMethodDescriptionaddAllHashes(Iterable<? extends Hash> values) The hashes of the file content.The hashes of the file content.addHashes(int index, Hash.Builder builderForValue) The hashes of the file content.The hashes of the file content.addHashes(Hash.Builder builderForValue) The hashes of the file content.The hashes of the file content.addHashesBuilder(int index) The hashes of the file content.build()clear()Cloud Storage Object path of the exported file.The hashes of the file content.Name of the exported artifact file.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCloud Storage Object path of the exported file.com.google.protobuf.ByteStringCloud Storage Object path of the exported file.getHashes(int index) The hashes of the file content.getHashesBuilder(int index) The hashes of the file content.The hashes of the file content.intThe hashes of the file content.The hashes of the file content.getHashesOrBuilder(int index) The hashes of the file content.List<? extends HashOrBuilder>The hashes of the file content.getName()Name of the exported artifact file.com.google.protobuf.ByteStringName of the exported artifact file.booleanCloud Storage Object path of the exported file.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeHashes(int index) The hashes of the file content.setGcsObjectPath(String value) Cloud Storage Object path of the exported file.setGcsObjectPathBytes(com.google.protobuf.ByteString value) Cloud Storage Object path of the exported file.The hashes of the file content.setHashes(int index, Hash.Builder builderForValue) The hashes of the file content.Name of the exported artifact file.setNameBytes(com.google.protobuf.ByteString value) Name of the exported artifact file.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>
-
mergeFrom
public ExportArtifactMetadata.ExportedFile.Builder mergeFrom(ExportArtifactMetadata.ExportedFile other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>
-
mergeFrom
public ExportArtifactMetadata.ExportedFile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportArtifactMetadata.ExportedFile.Builder>- Throws:
IOException
-
getDestinationCase
- Specified by:
getDestinationCasein interfaceExportArtifactMetadata.ExportedFileOrBuilder
-
clearDestination
-
hasGcsObjectPath
public boolean hasGcsObjectPath()Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
string gcs_object_path = 2;- Specified by:
hasGcsObjectPathin interfaceExportArtifactMetadata.ExportedFileOrBuilder- Returns:
- Whether the gcsObjectPath field is set.
-
getGcsObjectPath
Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
string gcs_object_path = 2;- Specified by:
getGcsObjectPathin interfaceExportArtifactMetadata.ExportedFileOrBuilder- Returns:
- The gcsObjectPath.
-
getGcsObjectPathBytes
public com.google.protobuf.ByteString getGcsObjectPathBytes()Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
string gcs_object_path = 2;- Specified by:
getGcsObjectPathBytesin interfaceExportArtifactMetadata.ExportedFileOrBuilder- Returns:
- The bytes for gcsObjectPath.
-
setGcsObjectPath
Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
string gcs_object_path = 2;- Parameters:
value- The gcsObjectPath to set.- Returns:
- This builder for chaining.
-
clearGcsObjectPath
Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
string gcs_object_path = 2;- Returns:
- This builder for chaining.
-
setGcsObjectPathBytes
public ExportArtifactMetadata.ExportedFile.Builder setGcsObjectPathBytes(com.google.protobuf.ByteString value) Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
string gcs_object_path = 2;- Parameters:
value- The bytes for gcsObjectPath to set.- Returns:
- This builder for chaining.
-
getName
Name of the exported artifact file. Format: `projects/p1/locations/us/repositories/repo1/files/file1`
string name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceExportArtifactMetadata.ExportedFileOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the exported artifact file. Format: `projects/p1/locations/us/repositories/repo1/files/file1`
string name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceExportArtifactMetadata.ExportedFileOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the exported artifact file. Format: `projects/p1/locations/us/repositories/repo1/files/file1`
string name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the exported artifact file. Format: `projects/p1/locations/us/repositories/repo1/files/file1`
string name = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public ExportArtifactMetadata.ExportedFile.Builder setNameBytes(com.google.protobuf.ByteString value) Name of the exported artifact file. Format: `projects/p1/locations/us/repositories/repo1/files/file1`
string name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getHashesList
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;- Specified by:
getHashesListin interfaceExportArtifactMetadata.ExportedFileOrBuilder
-
getHashesCount
public int getHashesCount()The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;- Specified by:
getHashesCountin interfaceExportArtifactMetadata.ExportedFileOrBuilder
-
getHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;- Specified by:
getHashesin interfaceExportArtifactMetadata.ExportedFileOrBuilder
-
setHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
setHashes
public ExportArtifactMetadata.ExportedFile.Builder setHashes(int index, Hash.Builder builderForValue) The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
addHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
addHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
addHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
addHashes
public ExportArtifactMetadata.ExportedFile.Builder addHashes(int index, Hash.Builder builderForValue) The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
addAllHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
clearHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
removeHashes
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
getHashesBuilder
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
getHashesOrBuilder
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;- Specified by:
getHashesOrBuilderin interfaceExportArtifactMetadata.ExportedFileOrBuilder
-
getHashesOrBuilderList
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;- Specified by:
getHashesOrBuilderListin interfaceExportArtifactMetadata.ExportedFileOrBuilder
-
addHashesBuilder
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
addHashesBuilder
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; -
getHashesBuilderList
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
-