Class StorageProperties.Builder (1.38.0)

public static final class StorageProperties.Builder extends GeneratedMessageV3.Builder<StorageProperties.Builder> implements StoragePropertiesOrBuilder

Details the properties of the underlying storage.

Protobuf type google.cloud.datacatalog.v1.StorageProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFilePattern(Iterable<String> values)

public StorageProperties.Builder addAllFilePattern(Iterable<String> values)

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Parameter
NameDescription
valuesIterable<String>

The filePattern to add.

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

addFilePattern(String value)

public StorageProperties.Builder addFilePattern(String value)

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Parameter
NameDescription
valueString

The filePattern to add.

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

addFilePatternBytes(ByteString value)

public StorageProperties.Builder addFilePatternBytes(ByteString value)

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Parameter
NameDescription
valueByteString

The bytes of the filePattern to add.

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StorageProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StorageProperties.Builder
Overrides

build()

public StorageProperties build()
Returns
TypeDescription
StorageProperties

buildPartial()

public StorageProperties buildPartial()
Returns
TypeDescription
StorageProperties

clear()

public StorageProperties.Builder clear()
Returns
TypeDescription
StorageProperties.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StorageProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StorageProperties.Builder
Overrides

clearFilePattern()

public StorageProperties.Builder clearFilePattern()

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

clearFileType()

public StorageProperties.Builder clearFileType()

File type in MIME format, for example, text/plain.

string file_type = 2;

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StorageProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StorageProperties.Builder
Overrides

clone()

public StorageProperties.Builder clone()
Returns
TypeDescription
StorageProperties.Builder
Overrides

getDefaultInstanceForType()

public StorageProperties getDefaultInstanceForType()
Returns
TypeDescription
StorageProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFilePattern(int index)

public String getFilePattern(int index)

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The filePattern at the given index.

getFilePatternBytes(int index)

public ByteString getFilePatternBytes(int index)

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the filePattern at the given index.

getFilePatternCount()

public int getFilePatternCount()

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Returns
TypeDescription
int

The count of filePattern.

getFilePatternList()

public ProtocolStringList getFilePatternList()

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the filePattern.

getFileType()

public String getFileType()

File type in MIME format, for example, text/plain.

string file_type = 2;

Returns
TypeDescription
String

The fileType.

getFileTypeBytes()

public ByteString getFileTypeBytes()

File type in MIME format, for example, text/plain.

string file_type = 2;

Returns
TypeDescription
ByteString

The bytes for fileType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StorageProperties other)

public StorageProperties.Builder mergeFrom(StorageProperties other)
Parameter
NameDescription
otherStorageProperties
Returns
TypeDescription
StorageProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StorageProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageProperties.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StorageProperties.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StorageProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageProperties.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StorageProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StorageProperties.Builder
Overrides

setFilePattern(int index, String value)

public StorageProperties.Builder setFilePattern(int index, String value)

Patterns to identify a set of files for this fileset.

Examples of a valid file_pattern:

  • gs://bucket_name/dir/*: matches all files in the bucket_name/dir directory
  • gs://bucket_name/dir/**: matches all files in the bucket_name/dir and all subdirectories recursively
  • gs://bucket_name/file*: matches files prefixed by file in bucket_name
  • gs://bucket_name/??.txt: matches files with two characters followed by .txt in bucket_name
  • gs://bucket_name/[aeiou].txt: matches files that contain a single vowel character followed by .txt in bucket_name
  • gs://bucket_name/[a-m].txt: matches files that contain a, b, ... or m followed by .txt in bucket_name
  • gs://bucket_name/a/*/b: matches all files in bucket_name that match the a/*/b pattern, such as a/c/b, a/d/b
  • gs://another_bucket/a.txt: matches gs://another_bucket/a.txt

repeated string file_pattern = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The filePattern to set.

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

setFileType(String value)

public StorageProperties.Builder setFileType(String value)

File type in MIME format, for example, text/plain.

string file_type = 2;

Parameter
NameDescription
valueString

The fileType to set.

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

setFileTypeBytes(ByteString value)

public StorageProperties.Builder setFileTypeBytes(ByteString value)

File type in MIME format, for example, text/plain.

string file_type = 2;

Parameter
NameDescription
valueByteString

The bytes for fileType to set.

Returns
TypeDescription
StorageProperties.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StorageProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StorageProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StorageProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageProperties.Builder
Overrides