Class Folder.Builder

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

public static final class Folder.Builder extends com.google.protobuf.GeneratedMessage.Builder<Folder.Builder> implements FolderOrBuilder
 Represents a Dataform Folder. This is a resource that is used to organize
 Files and other Folders and provide hierarchical access controls.
 
Protobuf type google.cloud.dataform.v1beta1.Folder
  • 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<Folder.Builder>
    • clear

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

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

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

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

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

      public Folder.Builder mergeFrom(Folder other)
    • isInitialized

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

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

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

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

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

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

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

      public String getDisplayName()
       Required. The Folder's user-friendly name.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface FolderOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The Folder's user-friendly name.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface FolderOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Folder.Builder setDisplayName(String value)
       Required. The Folder's user-friendly name.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Folder.Builder clearDisplayName()
       Required. The Folder's user-friendly name.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Folder.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The Folder's user-friendly name.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getContainingFolder

      public String getContainingFolder()
       Optional. The containing Folder resource name. This should take
       the format: projects/{project}/locations/{location}/folders/{folder},
       projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
       projects/{project}/locations/{location} if this is a root Folder. This
       field can only be updated through MoveFolder.
       
      string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContainingFolder in interface FolderOrBuilder
      Returns:
      The containingFolder.
    • getContainingFolderBytes

      public com.google.protobuf.ByteString getContainingFolderBytes()
       Optional. The containing Folder resource name. This should take
       the format: projects/{project}/locations/{location}/folders/{folder},
       projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
       projects/{project}/locations/{location} if this is a root Folder. This
       field can only be updated through MoveFolder.
       
      string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContainingFolderBytes in interface FolderOrBuilder
      Returns:
      The bytes for containingFolder.
    • setContainingFolder

      public Folder.Builder setContainingFolder(String value)
       Optional. The containing Folder resource name. This should take
       the format: projects/{project}/locations/{location}/folders/{folder},
       projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
       projects/{project}/locations/{location} if this is a root Folder. This
       field can only be updated through MoveFolder.
       
      string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The containingFolder to set.
      Returns:
      This builder for chaining.
    • clearContainingFolder

      public Folder.Builder clearContainingFolder()
       Optional. The containing Folder resource name. This should take
       the format: projects/{project}/locations/{location}/folders/{folder},
       projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
       projects/{project}/locations/{location} if this is a root Folder. This
       field can only be updated through MoveFolder.
       
      string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setContainingFolderBytes

      public Folder.Builder setContainingFolderBytes(com.google.protobuf.ByteString value)
       Optional. The containing Folder resource name. This should take
       the format: projects/{project}/locations/{location}/folders/{folder},
       projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
       projects/{project}/locations/{location} if this is a root Folder. This
       field can only be updated through MoveFolder.
       
      string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for containingFolder to set.
      Returns:
      This builder for chaining.
    • getTeamFolderName

      public String getTeamFolderName()
       Output only. The resource name of the TeamFolder that this Folder is
       associated with. This should take the format:
       projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
       is not set, the Folder is not associated with a TeamFolder and is a
       UserFolder.
       
      string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTeamFolderName in interface FolderOrBuilder
      Returns:
      The teamFolderName.
    • getTeamFolderNameBytes

      public com.google.protobuf.ByteString getTeamFolderNameBytes()
       Output only. The resource name of the TeamFolder that this Folder is
       associated with. This should take the format:
       projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
       is not set, the Folder is not associated with a TeamFolder and is a
       UserFolder.
       
      string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTeamFolderNameBytes in interface FolderOrBuilder
      Returns:
      The bytes for teamFolderName.
    • setTeamFolderName

      public Folder.Builder setTeamFolderName(String value)
       Output only. The resource name of the TeamFolder that this Folder is
       associated with. This should take the format:
       projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
       is not set, the Folder is not associated with a TeamFolder and is a
       UserFolder.
       
      string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The teamFolderName to set.
      Returns:
      This builder for chaining.
    • clearTeamFolderName

      public Folder.Builder clearTeamFolderName()
       Output only. The resource name of the TeamFolder that this Folder is
       associated with. This should take the format:
       projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
       is not set, the Folder is not associated with a TeamFolder and is a
       UserFolder.
       
      string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTeamFolderNameBytes

      public Folder.Builder setTeamFolderNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the TeamFolder that this Folder is
       associated with. This should take the format:
       projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
       is not set, the Folder is not associated with a TeamFolder and is a
       UserFolder.
       
      string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for teamFolderName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

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

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

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

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

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

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

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

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

      public boolean hasUpdateTime()
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface FolderOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface FolderOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Folder.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Folder.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Folder.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Folder.Builder clearUpdateTime()
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp of when the Folder was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface FolderOrBuilder
    • 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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasInternalMetadata in interface FolderOrBuilder
      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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInternalMetadata in interface FolderOrBuilder
      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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInternalMetadataBytes in interface FolderOrBuilder
      Returns:
      The bytes for internalMetadata.
    • setInternalMetadata

      public Folder.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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The internalMetadata to set.
      Returns:
      This builder for chaining.
    • clearInternalMetadata

      public Folder.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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setInternalMetadataBytes

      public Folder.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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for internalMetadata to set.
      Returns:
      This builder for chaining.
    • hasCreatorIamPrincipal

      public boolean hasCreatorIamPrincipal()
       Output only. The IAM principal identifier of the creator of the Folder.
       
      optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreatorIamPrincipal in interface FolderOrBuilder
      Returns:
      Whether the creatorIamPrincipal field is set.
    • getCreatorIamPrincipal

      public String getCreatorIamPrincipal()
       Output only. The IAM principal identifier of the creator of the Folder.
       
      optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreatorIamPrincipal in interface FolderOrBuilder
      Returns:
      The creatorIamPrincipal.
    • getCreatorIamPrincipalBytes

      public com.google.protobuf.ByteString getCreatorIamPrincipalBytes()
       Output only. The IAM principal identifier of the creator of the Folder.
       
      optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreatorIamPrincipalBytes in interface FolderOrBuilder
      Returns:
      The bytes for creatorIamPrincipal.
    • setCreatorIamPrincipal

      public Folder.Builder setCreatorIamPrincipal(String value)
       Output only. The IAM principal identifier of the creator of the Folder.
       
      optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The creatorIamPrincipal to set.
      Returns:
      This builder for chaining.
    • clearCreatorIamPrincipal

      public Folder.Builder clearCreatorIamPrincipal()
       Output only. The IAM principal identifier of the creator of the Folder.
       
      optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCreatorIamPrincipalBytes

      public Folder.Builder setCreatorIamPrincipalBytes(com.google.protobuf.ByteString value)
       Output only. The IAM principal identifier of the creator of the Folder.
       
      optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for creatorIamPrincipal to set.
      Returns:
      This builder for chaining.