Class Package.Builder

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

public static final class Package.Builder extends com.google.protobuf.GeneratedMessage.Builder<Package.Builder> implements PackageOrBuilder
 Packages are named collections of versions.
 
Protobuf type google.devtools.artifactregistry.v1.Package
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Package.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Package.Builder>
    • internalGetFieldAccessorTable

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

      public Package.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<Package.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<Package.Builder>
    • getDefaultInstanceForType

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

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

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

      public Package.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<Package.Builder>
    • mergeFrom

      public Package.Builder mergeFrom(Package other)
    • isInitialized

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

      public Package.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<Package.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the package, for example:
       `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
       If the package ID part contains slashes, the slashes are escaped.
       
      string name = 1;
      Specified by:
      getName in interface PackageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the package, for example:
       `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
       If the package ID part contains slashes, the slashes are escaped.
       
      string name = 1;
      Specified by:
      getNameBytes in interface PackageOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Package.Builder setName(String value)
       The name of the package, for example:
       `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
       If the package ID part contains slashes, the slashes are escaped.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Package.Builder clearName()
       The name of the package, for example:
       `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
       If the package ID part contains slashes, the slashes are escaped.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Package.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the package, for example:
       `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
       If the package ID part contains slashes, the slashes are escaped.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The display name of the package.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface PackageOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the package.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface PackageOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Package.Builder setDisplayName(String value)
       The display name of the package.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Package.Builder clearDisplayName()
       The display name of the package.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Package.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the package.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      hasCreateTime in interface PackageOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      getCreateTime in interface PackageOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Package.Builder setCreateTime(com.google.protobuf.Timestamp value)
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • setCreateTime

      public Package.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • mergeCreateTime

      public Package.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • clearCreateTime

      public Package.Builder clearCreateTime()
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       The time when the package was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      getCreateTimeOrBuilder in interface PackageOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
      Specified by:
      hasUpdateTime in interface PackageOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
      Specified by:
      getUpdateTime in interface PackageOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Package.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
    • setUpdateTime

      public Package.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
    • mergeUpdateTime

      public Package.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
    • clearUpdateTime

      public Package.Builder clearUpdateTime()
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The time when the package was last updated. This includes publishing a new
       version of the package.
       
      .google.protobuf.Timestamp update_time = 6;
      Specified by:
      getUpdateTimeOrBuilder in interface PackageOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: PackageOrBuilder
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface PackageOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface PackageOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface PackageOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface PackageOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface PackageOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface PackageOrBuilder
    • clearAnnotations

      public Package.Builder clearAnnotations()
    • removeAnnotations

      public Package.Builder removeAnnotations(String key)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public Package.Builder putAnnotations(String key, String value)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public Package.Builder putAllAnnotations(Map<String,String> values)
       Optional. Client specified annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];