Class PythonPackage.Builder (1.40.0)

public static final class PythonPackage.Builder extends GeneratedMessageV3.Builder<PythonPackage.Builder> implements PythonPackageOrBuilder

PythonPackage represents a python artifact.

Protobuf type google.devtools.artifactregistry.v1.PythonPackage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PythonPackage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PythonPackage.Builder
Overrides

build()

public PythonPackage build()
Returns
TypeDescription
PythonPackage

buildPartial()

public PythonPackage buildPartial()
Returns
TypeDescription
PythonPackage

clear()

public PythonPackage.Builder clear()
Returns
TypeDescription
PythonPackage.Builder
Overrides

clearCreateTime()

public PythonPackage.Builder clearCreateTime()

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PythonPackage.Builder

clearField(Descriptors.FieldDescriptor field)

public PythonPackage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PythonPackage.Builder
Overrides

clearName()

public PythonPackage.Builder clearName()

Required. registry_location, project_id, repository_name and python_package forms a unique package name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>. For example, "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and python_package:1.0.0" is the python package.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PythonPackage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PythonPackage.Builder
Overrides

clearPackageName()

public PythonPackage.Builder clearPackageName()

Package for the artifact.

string package_name = 3;

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

clearUpdateTime()

public PythonPackage.Builder clearUpdateTime()

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PythonPackage.Builder

clearUri()

public PythonPackage.Builder clearUri()

Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

clearVersion()

public PythonPackage.Builder clearVersion()

Version of this package.

string version = 4;

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

clone()

public PythonPackage.Builder clone()
Returns
TypeDescription
PythonPackage.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public PythonPackage getDefaultInstanceForType()
Returns
TypeDescription
PythonPackage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. registry_location, project_id, repository_name and python_package forms a unique package name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>. For example, "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and python_package:1.0.0" is the python package.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. registry_location, project_id, repository_name and python_package forms a unique package name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>. For example, "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and python_package:1.0.0" is the python package.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getPackageName()

public String getPackageName()

Package for the artifact.

string package_name = 3;

Returns
TypeDescription
String

The packageName.

getPackageNameBytes()

public ByteString getPackageNameBytes()

Package for the artifact.

string package_name = 3;

Returns
TypeDescription
ByteString

The bytes for packageName.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getUri()

public String getUri()

Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for uri.

getVersion()

public String getVersion()

Version of this package.

string version = 4;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of this package.

string version = 4;

Returns
TypeDescription
ByteString

The bytes for version.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public PythonPackage.Builder mergeCreateTime(Timestamp value)

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PythonPackage.Builder

mergeFrom(PythonPackage other)

public PythonPackage.Builder mergeFrom(PythonPackage other)
Parameter
NameDescription
otherPythonPackage
Returns
TypeDescription
PythonPackage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PythonPackage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PythonPackage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PythonPackage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PythonPackage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PythonPackage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PythonPackage.Builder
Overrides

mergeUpdateTime(Timestamp value)

public PythonPackage.Builder mergeUpdateTime(Timestamp value)

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PythonPackage.Builder

setCreateTime(Timestamp value)

public PythonPackage.Builder setCreateTime(Timestamp value)

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PythonPackage.Builder

setCreateTime(Timestamp.Builder builderForValue)

public PythonPackage.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time the package was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
PythonPackage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PythonPackage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PythonPackage.Builder
Overrides

setName(String value)

public PythonPackage.Builder setName(String value)

Required. registry_location, project_id, repository_name and python_package forms a unique package name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>. For example, "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and python_package:1.0.0" is the python package.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PythonPackage.Builder setNameBytes(ByteString value)

Required. registry_location, project_id, repository_name and python_package forms a unique package name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>. For example, "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and python_package:1.0.0" is the python package.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

setPackageName(String value)

public PythonPackage.Builder setPackageName(String value)

Package for the artifact.

string package_name = 3;

Parameter
NameDescription
valueString

The packageName to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

setPackageNameBytes(ByteString value)

public PythonPackage.Builder setPackageNameBytes(ByteString value)

Package for the artifact.

string package_name = 3;

Parameter
NameDescription
valueByteString

The bytes for packageName to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PythonPackage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PythonPackage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PythonPackage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PythonPackage.Builder
Overrides

setUpdateTime(Timestamp value)

public PythonPackage.Builder setUpdateTime(Timestamp value)

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PythonPackage.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PythonPackage.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time the package was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
PythonPackage.Builder

setUri(String value)

public PythonPackage.Builder setUri(String value)

Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

setUriBytes(ByteString value)

public PythonPackage.Builder setUriBytes(ByteString value)

Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

setVersion(String value)

public PythonPackage.Builder setVersion(String value)

Version of this package.

string version = 4;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public PythonPackage.Builder setVersionBytes(ByteString value)

Version of this package.

string version = 4;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
PythonPackage.Builder

This builder for chaining.