Class Workspace

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataform.v1.Workspace
All Implemented Interfaces:
WorkspaceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Workspace extends com.google.protobuf.GeneratedMessage implements WorkspaceOrBuilder
 Represents a Dataform Git workspace.
 
Protobuf type google.cloud.dataform.v1.Workspace
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • DATA_ENCRYPTION_STATE_FIELD_NUMBER

      public static final int DATA_ENCRYPTION_STATE_FIELD_NUMBER
      See Also:
    • INTERNAL_METADATA_FIELD_NUMBER

      public static final int INTERNAL_METADATA_FIELD_NUMBER
      See Also:
    • DISABLE_MOVES_FIELD_NUMBER

      public static final int DISABLE_MOVES_FIELD_NUMBER
      See Also:
    • PRIVATE_RESOURCE_METADATA_FIELD_NUMBER

      public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.v1.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.v1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataEncryptionState in interface WorkspaceOrBuilder
      Returns:
      The dataEncryptionState.
    • 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.v1.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.
    • 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.
    • 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.v1.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.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrivateResourceMetadata in interface WorkspaceOrBuilder
      Returns:
      The privateResourceMetadata.
    • 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.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrivateResourceMetadataOrBuilder in interface WorkspaceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Workspace parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Workspace parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Workspace parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Workspace parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Workspace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Workspace parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Workspace parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Workspace parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Workspace parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Workspace parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Workspace parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Workspace parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Workspace.Builder newBuilder()
    • newBuilder

      public static Workspace.Builder newBuilder(Workspace prototype)
    • toBuilder

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

      protected Workspace.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Workspace getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Workspace> parser()
    • getParserForType

      public com.google.protobuf.Parser<Workspace> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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