Class Repository.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
com.google.cloud.securesourcemanager.v1.Repository.Builder
All Implemented Interfaces:
RepositoryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Repository

public static final class Repository.Builder extends com.google.protobuf.GeneratedMessage.Builder<Repository.Builder> implements RepositoryOrBuilder
 Metadata of a Secure Source Manager repository.
 
Protobuf type google.cloud.securesourcemanager.v1.Repository
  • 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<Repository.Builder>
    • clear

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

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

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

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

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

      public Repository.Builder mergeFrom(Repository other)
    • isInitialized

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

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

      public String getName()
       Identifier. A unique identifier for a repository. The name should be of the
       format:
       `projects/{project}/locations/{location_id}/repositories/{repository_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface RepositoryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. A unique identifier for a repository. The name should be of the
       format:
       `projects/{project}/locations/{location_id}/repositories/{repository_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Repository.Builder setName(String value)
       Identifier. A unique identifier for a repository. The name should be of the
       format:
       `projects/{project}/locations/{location_id}/repositories/{repository_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Repository.Builder clearName()
       Identifier. A unique identifier for a repository. The name should be of the
       format:
       `projects/{project}/locations/{location_id}/repositories/{repository_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Repository.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. A unique identifier for a repository. The name should be of the
       format:
       `projects/{project}/locations/{location_id}/repositories/{repository_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Description of the repository, which cannot exceed 500
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface RepositoryOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the repository, which cannot exceed 500
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Repository.Builder setDescription(String value)
       Optional. Description of the repository, which cannot exceed 500
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Repository.Builder clearDescription()
       Optional. Description of the repository, which cannot exceed 500
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Repository.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the repository, which cannot exceed 500
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getInstance

      public String getInstance()
       Optional. The name of the instance in which the repository is hosted,
       formatted as
       `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
       When creating repository via securesourcemanager.googleapis.com, this field
       is used as input. When creating repository via *.sourcemanager.dev, this
       field is output only.
       
      string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getInstance in interface RepositoryOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Optional. The name of the instance in which the repository is hosted,
       formatted as
       `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
       When creating repository via securesourcemanager.googleapis.com, this field
       is used as input. When creating repository via *.sourcemanager.dev, this
       field is output only.
       
      string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getInstanceBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public Repository.Builder setInstance(String value)
       Optional. The name of the instance in which the repository is hosted,
       formatted as
       `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
       When creating repository via securesourcemanager.googleapis.com, this field
       is used as input. When creating repository via *.sourcemanager.dev, this
       field is output only.
       
      string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public Repository.Builder clearInstance()
       Optional. The name of the instance in which the repository is hosted,
       formatted as
       `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
       When creating repository via securesourcemanager.googleapis.com, this field
       is used as input. When creating repository via *.sourcemanager.dev, this
       field is output only.
       
      string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public Repository.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       Optional. The name of the instance in which the repository is hosted,
       formatted as
       `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
       When creating repository via securesourcemanager.googleapis.com, this field
       is used as input. When creating repository via *.sourcemanager.dev, this
       field is output only.
       
      string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. Unique identifier of the repository.
       
      string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface RepositoryOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Unique identifier of the repository.
       
      string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Repository.Builder setUid(String value)
       Output only. Unique identifier of the repository.
       
      string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Repository.Builder clearUid()
       Output only. Unique identifier of the repository.
       
      string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public Repository.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Unique identifier of the repository.
       
      string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface RepositoryOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface RepositoryOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Repository.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Repository.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Repository.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Repository.Builder clearCreateTime()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface RepositoryOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface RepositoryOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface RepositoryOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Repository.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Repository.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Repository.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Repository.Builder clearUpdateTime()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface RepositoryOrBuilder
    • getEtag

      public String getEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface RepositoryOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Repository.Builder setEtag(String value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Repository.Builder clearEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Repository.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • hasUris

      public boolean hasUris()
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUris in interface RepositoryOrBuilder
      Returns:
      Whether the uris field is set.
    • getUris

      public Repository.URIs getUris()
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUris in interface RepositoryOrBuilder
      Returns:
      The uris.
    • setUris

      public Repository.Builder setUris(Repository.URIs value)
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUris

      public Repository.Builder setUris(Repository.URIs.Builder builderForValue)
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUris

      public Repository.Builder mergeUris(Repository.URIs value)
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUris

      public Repository.Builder clearUris()
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUrisBuilder

      public Repository.URIs.Builder getUrisBuilder()
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUrisOrBuilder

      public Repository.URIsOrBuilder getUrisOrBuilder()
       Output only. URIs for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.URIs uris = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUrisOrBuilder in interface RepositoryOrBuilder
    • hasInitialConfig

      public boolean hasInitialConfig()
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasInitialConfig in interface RepositoryOrBuilder
      Returns:
      Whether the initialConfig field is set.
    • getInitialConfig

      public Repository.InitialConfig getInitialConfig()
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getInitialConfig in interface RepositoryOrBuilder
      Returns:
      The initialConfig.
    • setInitialConfig

      public Repository.Builder setInitialConfig(Repository.InitialConfig value)
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
    • setInitialConfig

      public Repository.Builder setInitialConfig(Repository.InitialConfig.Builder builderForValue)
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
    • mergeInitialConfig

      public Repository.Builder mergeInitialConfig(Repository.InitialConfig value)
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
    • clearInitialConfig

      public Repository.Builder clearInitialConfig()
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
    • getInitialConfigBuilder

      public Repository.InitialConfig.Builder getInitialConfigBuilder()
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
    • getInitialConfigOrBuilder

      public Repository.InitialConfigOrBuilder getInitialConfigOrBuilder()
       Input only. Initial configurations for the repository.
       
      .google.cloud.securesourcemanager.v1.Repository.InitialConfig initial_config = 10 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getInitialConfigOrBuilder in interface RepositoryOrBuilder