Class Registry.ShareImageRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Registry.ShareImageRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Registry.ShareImageRequest.Builder>
namespace.cloud.registry.v1beta.Registry.ShareImageRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Registry.ShareImageRequestOrBuilder
Enclosing class:
Registry.ShareImageRequest

public static final class Registry.ShareImageRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Registry.ShareImageRequest.Builder> implements Registry.ShareImageRequestOrBuilder
Protobuf type namespace.cloud.registry.v1beta.ShareImageRequest
  • 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<Registry.ShareImageRequest.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<Registry.ShareImageRequest.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<Registry.ShareImageRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public Registry.ShareImageRequest.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<Registry.ShareImageRequest.Builder>
      Throws:
      IOException
    • getRepository

      public String getRepository()
       The repository that contains the image to be shared.
       
      string repository = 1;
      Specified by:
      getRepository in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       The repository that contains the image to be shared.
       
      string repository = 1;
      Specified by:
      getRepositoryBytes in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

      public Registry.ShareImageRequest.Builder setRepository(String value)
       The repository that contains the image to be shared.
       
      string repository = 1;
      Parameters:
      value - The repository to set.
      Returns:
      This builder for chaining.
    • clearRepository

      public Registry.ShareImageRequest.Builder clearRepository()
       The repository that contains the image to be shared.
       
      string repository = 1;
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public Registry.ShareImageRequest.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       The repository that contains the image to be shared.
       
      string repository = 1;
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.
    • getDigest

      public String getDigest()
       The digest of the image to be shared.
       
      string digest = 2;
      Specified by:
      getDigest in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The digest.
    • getDigestBytes

      public com.google.protobuf.ByteString getDigestBytes()
       The digest of the image to be shared.
       
      string digest = 2;
      Specified by:
      getDigestBytes in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The bytes for digest.
    • setDigest

      public Registry.ShareImageRequest.Builder setDigest(String value)
       The digest of the image to be shared.
       
      string digest = 2;
      Parameters:
      value - The digest to set.
      Returns:
      This builder for chaining.
    • clearDigest

      public Registry.ShareImageRequest.Builder clearDigest()
       The digest of the image to be shared.
       
      string digest = 2;
      Returns:
      This builder for chaining.
    • setDigestBytes

      public Registry.ShareImageRequest.Builder setDigestBytes(com.google.protobuf.ByteString value)
       The digest of the image to be shared.
       
      string digest = 2;
      Parameters:
      value - The bytes for digest to set.
      Returns:
      This builder for chaining.
    • hasExpiresAt

      public boolean hasExpiresAt()
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
      Specified by:
      hasExpiresAt in interface Registry.ShareImageRequestOrBuilder
      Returns:
      Whether the expiresAt field is set.
    • getExpiresAt

      public com.google.protobuf.Timestamp getExpiresAt()
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
      Specified by:
      getExpiresAt in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The expiresAt.
    • setExpiresAt

      public Registry.ShareImageRequest.Builder setExpiresAt(com.google.protobuf.Timestamp value)
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
    • setExpiresAt

      public Registry.ShareImageRequest.Builder setExpiresAt(com.google.protobuf.Timestamp.Builder builderForValue)
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
    • mergeExpiresAt

      public Registry.ShareImageRequest.Builder mergeExpiresAt(com.google.protobuf.Timestamp value)
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
    • clearExpiresAt

      public Registry.ShareImageRequest.Builder clearExpiresAt()
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
    • getExpiresAtBuilder

      public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder()
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
    • getExpiresAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder()
       When the shared image should expire. Not setting this results in indefinitely shared images.
       
      .google.protobuf.Timestamp expires_at = 3;
      Specified by:
      getExpiresAtOrBuilder in interface Registry.ShareImageRequestOrBuilder
    • getVisibilityValue

      public int getVisibilityValue()
       Defines who can access this shared image.
       
      .namespace.cloud.registry.v1beta.Visibility visibility = 4;
      Specified by:
      getVisibilityValue in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The enum numeric value on the wire for visibility.
    • setVisibilityValue

      public Registry.ShareImageRequest.Builder setVisibilityValue(int value)
       Defines who can access this shared image.
       
      .namespace.cloud.registry.v1beta.Visibility visibility = 4;
      Parameters:
      value - The enum numeric value on the wire for visibility to set.
      Returns:
      This builder for chaining.
    • getVisibility

      public Registry.Visibility getVisibility()
       Defines who can access this shared image.
       
      .namespace.cloud.registry.v1beta.Visibility visibility = 4;
      Specified by:
      getVisibility in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The visibility.
    • setVisibility

       Defines who can access this shared image.
       
      .namespace.cloud.registry.v1beta.Visibility visibility = 4;
      Parameters:
      value - The visibility to set.
      Returns:
      This builder for chaining.
    • clearVisibility

      public Registry.ShareImageRequest.Builder clearVisibility()
       Defines who can access this shared image.
       
      .namespace.cloud.registry.v1beta.Visibility visibility = 4;
      Returns:
      This builder for chaining.
    • getSuffix

      public String getSuffix()
       The optional suffix does not have a practical purpose apart from making the image more operationally distinct.
       The resulting image reference will, for example, be: public.nscr.io/{meaningful_id}/{suffix}
       
      string suffix = 5;
      Specified by:
      getSuffix in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The suffix.
    • getSuffixBytes

      public com.google.protobuf.ByteString getSuffixBytes()
       The optional suffix does not have a practical purpose apart from making the image more operationally distinct.
       The resulting image reference will, for example, be: public.nscr.io/{meaningful_id}/{suffix}
       
      string suffix = 5;
      Specified by:
      getSuffixBytes in interface Registry.ShareImageRequestOrBuilder
      Returns:
      The bytes for suffix.
    • setSuffix

      public Registry.ShareImageRequest.Builder setSuffix(String value)
       The optional suffix does not have a practical purpose apart from making the image more operationally distinct.
       The resulting image reference will, for example, be: public.nscr.io/{meaningful_id}/{suffix}
       
      string suffix = 5;
      Parameters:
      value - The suffix to set.
      Returns:
      This builder for chaining.
    • clearSuffix

      public Registry.ShareImageRequest.Builder clearSuffix()
       The optional suffix does not have a practical purpose apart from making the image more operationally distinct.
       The resulting image reference will, for example, be: public.nscr.io/{meaningful_id}/{suffix}
       
      string suffix = 5;
      Returns:
      This builder for chaining.
    • setSuffixBytes

      public Registry.ShareImageRequest.Builder setSuffixBytes(com.google.protobuf.ByteString value)
       The optional suffix does not have a practical purpose apart from making the image more operationally distinct.
       The resulting image reference will, for example, be: public.nscr.io/{meaningful_id}/{suffix}
       
      string suffix = 5;
      Parameters:
      value - The bytes for suffix to set.
      Returns:
      This builder for chaining.