Class Workspace.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Workspace.Builder>
com.google.cloud.dataform.v1beta1.Workspace.Builder
All Implemented Interfaces:
WorkspaceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Workspace

public static final class Workspace.Builder extends com.google.protobuf.GeneratedMessage.Builder<Workspace.Builder> implements WorkspaceOrBuilder
 Represents a Dataform Git workspace.
 
Protobuf type google.cloud.dataform.v1beta1.Workspace
  • 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<Workspace.Builder>
    • clear

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

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

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

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

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

      public Workspace.Builder mergeFrom(Workspace other)
    • isInitialized

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

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

      public String getName()
       Identifier. The workspace's name.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface WorkspaceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The workspace's name.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface WorkspaceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Workspace.Builder setName(String value)
       Identifier. The workspace's name.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Workspace.Builder clearName()
       Identifier. The workspace's name.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Workspace.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The workspace's name.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface WorkspaceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface WorkspaceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Workspace.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Workspace.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Workspace.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Workspace.Builder clearCreateTime()
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp of when the workspace was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface WorkspaceOrBuilder
    • hasDataEncryptionState

      public boolean hasDataEncryptionState()
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDataEncryptionState in interface WorkspaceOrBuilder
      Returns:
      Whether the dataEncryptionState field is set.
    • getDataEncryptionState

      public DataEncryptionState getDataEncryptionState()
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataEncryptionState in interface WorkspaceOrBuilder
      Returns:
      The dataEncryptionState.
    • setDataEncryptionState

      public Workspace.Builder setDataEncryptionState(DataEncryptionState value)
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDataEncryptionState

      public Workspace.Builder setDataEncryptionState(DataEncryptionState.Builder builderForValue)
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDataEncryptionState

      public Workspace.Builder mergeDataEncryptionState(DataEncryptionState value)
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDataEncryptionState

      public Workspace.Builder clearDataEncryptionState()
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDataEncryptionStateBuilder

      public DataEncryptionState.Builder getDataEncryptionStateBuilder()
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDataEncryptionStateOrBuilder

      public DataEncryptionStateOrBuilder getDataEncryptionStateOrBuilder()
       Output only. A data encryption state of a Git repository if this Workspace
       is protected by a KMS key.
       
      .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataEncryptionStateOrBuilder in interface WorkspaceOrBuilder
    • hasInternalMetadata

      public boolean hasInternalMetadata()
       Output only. All the metadata information that is used internally to serve
       the resource. For example: timestamps, flags, status fields, etc. The
       format of this field is a JSON string.
       
      optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasInternalMetadata in interface WorkspaceOrBuilder
      Returns:
      Whether the internalMetadata field is set.
    • getInternalMetadata

      public String getInternalMetadata()
       Output only. All the metadata information that is used internally to serve
       the resource. For example: timestamps, flags, status fields, etc. The
       format of this field is a JSON string.
       
      optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInternalMetadata in interface WorkspaceOrBuilder
      Returns:
      The internalMetadata.
    • getInternalMetadataBytes

      public com.google.protobuf.ByteString getInternalMetadataBytes()
       Output only. All the metadata information that is used internally to serve
       the resource. For example: timestamps, flags, status fields, etc. The
       format of this field is a JSON string.
       
      optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInternalMetadataBytes in interface WorkspaceOrBuilder
      Returns:
      The bytes for internalMetadata.
    • setInternalMetadata

      public Workspace.Builder setInternalMetadata(String value)
       Output only. All the metadata information that is used internally to serve
       the resource. For example: timestamps, flags, status fields, etc. The
       format of this field is a JSON string.
       
      optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The internalMetadata to set.
      Returns:
      This builder for chaining.
    • clearInternalMetadata

      public Workspace.Builder clearInternalMetadata()
       Output only. All the metadata information that is used internally to serve
       the resource. For example: timestamps, flags, status fields, etc. The
       format of this field is a JSON string.
       
      optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setInternalMetadataBytes

      public Workspace.Builder setInternalMetadataBytes(com.google.protobuf.ByteString value)
       Output only. All the metadata information that is used internally to serve
       the resource. For example: timestamps, flags, status fields, etc. The
       format of this field is a JSON string.
       
      optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for internalMetadata to set.
      Returns:
      This builder for chaining.
    • hasDisableMoves

      public boolean hasDisableMoves()
       Optional. If set to true, workspaces will not be moved if its linked
       Repository is moved. Instead, it will be deleted.
       
      optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDisableMoves in interface WorkspaceOrBuilder
      Returns:
      Whether the disableMoves field is set.
    • getDisableMoves

      public boolean getDisableMoves()
       Optional. If set to true, workspaces will not be moved if its linked
       Repository is moved. Instead, it will be deleted.
       
      optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisableMoves in interface WorkspaceOrBuilder
      Returns:
      The disableMoves.
    • setDisableMoves

      public Workspace.Builder setDisableMoves(boolean value)
       Optional. If set to true, workspaces will not be moved if its linked
       Repository is moved. Instead, it will be deleted.
       
      optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The disableMoves to set.
      Returns:
      This builder for chaining.
    • clearDisableMoves

      public Workspace.Builder clearDisableMoves()
       Optional. If set to true, workspaces will not be moved if its linked
       Repository is moved. Instead, it will be deleted.
       
      optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasPrivateResourceMetadata

      public boolean hasPrivateResourceMetadata()
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPrivateResourceMetadata in interface WorkspaceOrBuilder
      Returns:
      Whether the privateResourceMetadata field is set.
    • getPrivateResourceMetadata

      public PrivateResourceMetadata getPrivateResourceMetadata()
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrivateResourceMetadata in interface WorkspaceOrBuilder
      Returns:
      The privateResourceMetadata.
    • setPrivateResourceMetadata

      public Workspace.Builder setPrivateResourceMetadata(PrivateResourceMetadata value)
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPrivateResourceMetadata

      public Workspace.Builder setPrivateResourceMetadata(PrivateResourceMetadata.Builder builderForValue)
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePrivateResourceMetadata

      public Workspace.Builder mergePrivateResourceMetadata(PrivateResourceMetadata value)
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPrivateResourceMetadata

      public Workspace.Builder clearPrivateResourceMetadata()
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPrivateResourceMetadataBuilder

      public PrivateResourceMetadata.Builder getPrivateResourceMetadataBuilder()
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPrivateResourceMetadataOrBuilder

      public PrivateResourceMetadataOrBuilder getPrivateResourceMetadataOrBuilder()
       Output only. Metadata indicating whether this resource is user-scoped. For
       `Workspace` resources, the `user_scoped` field is always `true`.
       
      .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrivateResourceMetadataOrBuilder in interface WorkspaceOrBuilder