Class PythonPackage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PythonPackage.Builder>
com.google.devtools.artifactregistry.v1.PythonPackage.Builder
All Implemented Interfaces:
PythonPackageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PythonPackage

public static final class PythonPackage.Builder extends com.google.protobuf.GeneratedMessage.Builder<PythonPackage.Builder> implements PythonPackageOrBuilder
 PythonPackage represents a python artifact.
 
Protobuf type google.devtools.artifactregistry.v1.PythonPackage
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PythonPackage.Builder>
    • clear

      public PythonPackage.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PythonPackage.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PythonPackage.Builder>
    • getDefaultInstanceForType

      public PythonPackage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PythonPackage build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PythonPackage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PythonPackage.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PythonPackage.Builder>
    • mergeFrom

      public PythonPackage.Builder mergeFrom(PythonPackage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PythonPackage.Builder>
    • mergeFrom

      public PythonPackage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PythonPackage.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface PythonPackageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface PythonPackageOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public PythonPackage.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getUri in interface PythonPackageOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.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];
      Specified by:
      getUriBytes in interface PythonPackageOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      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];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setUriBytes

      public PythonPackage.Builder setUriBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getPackageName

      public String getPackageName()
       Package for the artifact.
       
      string package_name = 3;
      Specified by:
      getPackageName in interface PythonPackageOrBuilder
      Returns:
      The packageName.
    • getPackageNameBytes

      public com.google.protobuf.ByteString getPackageNameBytes()
       Package for the artifact.
       
      string package_name = 3;
      Specified by:
      getPackageNameBytes in interface PythonPackageOrBuilder
      Returns:
      The bytes for packageName.
    • setPackageName

      public PythonPackage.Builder setPackageName(String value)
       Package for the artifact.
       
      string package_name = 3;
      Parameters:
      value - The packageName to set.
      Returns:
      This builder for chaining.
    • clearPackageName

      public PythonPackage.Builder clearPackageName()
       Package for the artifact.
       
      string package_name = 3;
      Returns:
      This builder for chaining.
    • setPackageNameBytes

      public PythonPackage.Builder setPackageNameBytes(com.google.protobuf.ByteString value)
       Package for the artifact.
       
      string package_name = 3;
      Parameters:
      value - The bytes for packageName to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Version of this package.
       
      string version = 4;
      Specified by:
      getVersion in interface PythonPackageOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Version of this package.
       
      string version = 4;
      Specified by:
      getVersionBytes in interface PythonPackageOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public PythonPackage.Builder setVersion(String value)
       Version of this package.
       
      string version = 4;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public PythonPackage.Builder clearVersion()
       Version of this package.
       
      string version = 4;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public PythonPackage.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Version of this package.
       
      string version = 4;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface PythonPackageOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface PythonPackageOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public PythonPackage.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public PythonPackage.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public PythonPackage.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public PythonPackage.Builder clearCreateTime()
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time the package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface PythonPackageOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PythonPackageOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PythonPackageOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PythonPackage.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public PythonPackage.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public PythonPackage.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public PythonPackage.Builder clearUpdateTime()
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time the package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PythonPackageOrBuilder