Package com.google.cloud.datacatalog.v1
Class StorageProperties.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
- com.google.cloud.datacatalog.v1.StorageProperties.Builder
-
- All Implemented Interfaces:
StoragePropertiesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StorageProperties
public static final class StorageProperties.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder> implements StoragePropertiesOrBuilder
Details the properties of the underlying storage.
Protobuf typegoogle.cloud.datacatalog.v1.StorageProperties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageProperties.BuilderaddAllFilePattern(Iterable<String> values)Patterns to identify a set of files for this fileset.StorageProperties.BuilderaddFilePattern(String value)Patterns to identify a set of files for this fileset.StorageProperties.BuilderaddFilePatternBytes(com.google.protobuf.ByteString value)Patterns to identify a set of files for this fileset.StorageProperties.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StoragePropertiesbuild()StoragePropertiesbuildPartial()StorageProperties.Builderclear()StorageProperties.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)StorageProperties.BuilderclearFilePattern()Patterns to identify a set of files for this fileset.StorageProperties.BuilderclearFileType()File type in MIME format, for example, `text/plain`.StorageProperties.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)StorageProperties.Builderclone()StoragePropertiesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFilePattern(int index)Patterns to identify a set of files for this fileset.com.google.protobuf.ByteStringgetFilePatternBytes(int index)Patterns to identify a set of files for this fileset.intgetFilePatternCount()Patterns to identify a set of files for this fileset.com.google.protobuf.ProtocolStringListgetFilePatternList()Patterns to identify a set of files for this fileset.StringgetFileType()File type in MIME format, for example, `text/plain`.com.google.protobuf.ByteStringgetFileTypeBytes()File type in MIME format, for example, `text/plain`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()StorageProperties.BuildermergeFrom(StorageProperties other)StorageProperties.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)StorageProperties.BuildermergeFrom(com.google.protobuf.Message other)StorageProperties.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)StorageProperties.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StorageProperties.BuildersetFilePattern(int index, String value)Patterns to identify a set of files for this fileset.StorageProperties.BuildersetFileType(String value)File type in MIME format, for example, `text/plain`.StorageProperties.BuildersetFileTypeBytes(com.google.protobuf.ByteString value)File type in MIME format, for example, `text/plain`.StorageProperties.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)StorageProperties.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
clear
public StorageProperties.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
getDefaultInstanceForType
public StorageProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public StorageProperties build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StorageProperties buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StorageProperties.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
setField
public StorageProperties.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
clearField
public StorageProperties.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
clearOneof
public StorageProperties.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
setRepeatedField
public StorageProperties.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
addRepeatedField
public StorageProperties.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
mergeFrom
public StorageProperties.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StorageProperties.Builder>
-
mergeFrom
public StorageProperties.Builder mergeFrom(StorageProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
mergeFrom
public StorageProperties.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StorageProperties.Builder>- Throws:
IOException
-
getFilePatternList
public com.google.protobuf.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;- Specified by:
getFilePatternListin interfaceStoragePropertiesOrBuilder- Returns:
- A list containing the filePattern.
-
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;- Specified by:
getFilePatternCountin interfaceStoragePropertiesOrBuilder- Returns:
- The count of filePattern.
-
getFilePattern
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;- Specified by:
getFilePatternin interfaceStoragePropertiesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The filePattern at the given index.
-
getFilePatternBytes
public com.google.protobuf.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;- Specified by:
getFilePatternBytesin interfaceStoragePropertiesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the filePattern at the given index.
-
setFilePattern
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:
index- The index to set the value at.value- The filePattern to set.- Returns:
- This builder for chaining.
-
addFilePattern
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;- Parameters:
value- The filePattern to add.- Returns:
- This builder for chaining.
-
addAllFilePattern
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;- Parameters:
values- The filePattern to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addFilePatternBytes
public StorageProperties.Builder addFilePatternBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the filePattern to add.- Returns:
- This builder for chaining.
-
getFileType
public String getFileType()
File type in MIME format, for example, `text/plain`.
string file_type = 2;- Specified by:
getFileTypein interfaceStoragePropertiesOrBuilder- Returns:
- The fileType.
-
getFileTypeBytes
public com.google.protobuf.ByteString getFileTypeBytes()
File type in MIME format, for example, `text/plain`.
string file_type = 2;- Specified by:
getFileTypeBytesin interfaceStoragePropertiesOrBuilder- Returns:
- The bytes for fileType.
-
setFileType
public StorageProperties.Builder setFileType(String value)
File type in MIME format, for example, `text/plain`.
string file_type = 2;- Parameters:
value- The fileType to set.- Returns:
- This builder for chaining.
-
clearFileType
public StorageProperties.Builder clearFileType()
File type in MIME format, for example, `text/plain`.
string file_type = 2;- Returns:
- This builder for chaining.
-
setFileTypeBytes
public StorageProperties.Builder setFileTypeBytes(com.google.protobuf.ByteString value)
File type in MIME format, for example, `text/plain`.
string file_type = 2;- Parameters:
value- The bytes for fileType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final StorageProperties.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
mergeUnknownFields
public final StorageProperties.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
-
-