Package com.google.cloud.datastream.v1
Class GcsDestinationConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
- com.google.cloud.datastream.v1.GcsDestinationConfig.Builder
-
- All Implemented Interfaces:
GcsDestinationConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GcsDestinationConfig
public static final class GcsDestinationConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder> implements GcsDestinationConfigOrBuilder
Google Cloud Storage destination configuration
Protobuf typegoogle.cloud.datastream.v1.GcsDestinationConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GcsDestinationConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GcsDestinationConfigbuild()GcsDestinationConfigbuildPartial()GcsDestinationConfig.Builderclear()GcsDestinationConfig.BuilderclearAvroFileFormat()AVRO file format configuration.GcsDestinationConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GcsDestinationConfig.BuilderclearFileFormat()GcsDestinationConfig.BuilderclearFileRotationInterval()The maximum duration for which new events are added before a file is closed and a new file is created.GcsDestinationConfig.BuilderclearFileRotationMb()The maximum file size to be saved in the bucket.GcsDestinationConfig.BuilderclearJsonFileFormat()JSON file format configuration.GcsDestinationConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GcsDestinationConfig.BuilderclearPath()Path inside the Cloud Storage bucket to write data to.GcsDestinationConfig.Builderclone()AvroFileFormatgetAvroFileFormat()AVRO file format configuration.AvroFileFormat.BuildergetAvroFileFormatBuilder()AVRO file format configuration.AvroFileFormatOrBuildergetAvroFileFormatOrBuilder()AVRO file format configuration.GcsDestinationConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GcsDestinationConfig.FileFormatCasegetFileFormatCase()com.google.protobuf.DurationgetFileRotationInterval()The maximum duration for which new events are added before a file is closed and a new file is created.com.google.protobuf.Duration.BuildergetFileRotationIntervalBuilder()The maximum duration for which new events are added before a file is closed and a new file is created.com.google.protobuf.DurationOrBuildergetFileRotationIntervalOrBuilder()The maximum duration for which new events are added before a file is closed and a new file is created.intgetFileRotationMb()The maximum file size to be saved in the bucket.JsonFileFormatgetJsonFileFormat()JSON file format configuration.JsonFileFormat.BuildergetJsonFileFormatBuilder()JSON file format configuration.JsonFileFormatOrBuildergetJsonFileFormatOrBuilder()JSON file format configuration.StringgetPath()Path inside the Cloud Storage bucket to write data to.com.google.protobuf.ByteStringgetPathBytes()Path inside the Cloud Storage bucket to write data to.booleanhasAvroFileFormat()AVRO file format configuration.booleanhasFileRotationInterval()The maximum duration for which new events are added before a file is closed and a new file is created.booleanhasJsonFileFormat()JSON file format configuration.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GcsDestinationConfig.BuildermergeAvroFileFormat(AvroFileFormat value)AVRO file format configuration.GcsDestinationConfig.BuildermergeFileRotationInterval(com.google.protobuf.Duration value)The maximum duration for which new events are added before a file is closed and a new file is created.GcsDestinationConfig.BuildermergeFrom(GcsDestinationConfig other)GcsDestinationConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GcsDestinationConfig.BuildermergeFrom(com.google.protobuf.Message other)GcsDestinationConfig.BuildermergeJsonFileFormat(JsonFileFormat value)JSON file format configuration.GcsDestinationConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GcsDestinationConfig.BuildersetAvroFileFormat(AvroFileFormat value)AVRO file format configuration.GcsDestinationConfig.BuildersetAvroFileFormat(AvroFileFormat.Builder builderForValue)AVRO file format configuration.GcsDestinationConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GcsDestinationConfig.BuildersetFileRotationInterval(com.google.protobuf.Duration value)The maximum duration for which new events are added before a file is closed and a new file is created.GcsDestinationConfig.BuildersetFileRotationInterval(com.google.protobuf.Duration.Builder builderForValue)The maximum duration for which new events are added before a file is closed and a new file is created.GcsDestinationConfig.BuildersetFileRotationMb(int value)The maximum file size to be saved in the bucket.GcsDestinationConfig.BuildersetJsonFileFormat(JsonFileFormat value)JSON file format configuration.GcsDestinationConfig.BuildersetJsonFileFormat(JsonFileFormat.Builder builderForValue)JSON file format configuration.GcsDestinationConfig.BuildersetPath(String value)Path inside the Cloud Storage bucket to write data to.GcsDestinationConfig.BuildersetPathBytes(com.google.protobuf.ByteString value)Path inside the Cloud Storage bucket to write data to.GcsDestinationConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GcsDestinationConfig.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<GcsDestinationConfig.Builder>
-
clear
public GcsDestinationConfig.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<GcsDestinationConfig.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<GcsDestinationConfig.Builder>
-
getDefaultInstanceForType
public GcsDestinationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GcsDestinationConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GcsDestinationConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GcsDestinationConfig.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<GcsDestinationConfig.Builder>
-
setField
public GcsDestinationConfig.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<GcsDestinationConfig.Builder>
-
clearField
public GcsDestinationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
clearOneof
public GcsDestinationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
setRepeatedField
public GcsDestinationConfig.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<GcsDestinationConfig.Builder>
-
addRepeatedField
public GcsDestinationConfig.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<GcsDestinationConfig.Builder>
-
mergeFrom
public GcsDestinationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GcsDestinationConfig.Builder>
-
mergeFrom
public GcsDestinationConfig.Builder mergeFrom(GcsDestinationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
mergeFrom
public GcsDestinationConfig.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<GcsDestinationConfig.Builder>- Throws:
IOException
-
getFileFormatCase
public GcsDestinationConfig.FileFormatCase getFileFormatCase()
- Specified by:
getFileFormatCasein interfaceGcsDestinationConfigOrBuilder
-
clearFileFormat
public GcsDestinationConfig.Builder clearFileFormat()
-
getPath
public String getPath()
Path inside the Cloud Storage bucket to write data to.
string path = 1;- Specified by:
getPathin interfaceGcsDestinationConfigOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
Path inside the Cloud Storage bucket to write data to.
string path = 1;- Specified by:
getPathBytesin interfaceGcsDestinationConfigOrBuilder- Returns:
- The bytes for path.
-
setPath
public GcsDestinationConfig.Builder setPath(String value)
Path inside the Cloud Storage bucket to write data to.
string path = 1;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public GcsDestinationConfig.Builder clearPath()
Path inside the Cloud Storage bucket to write data to.
string path = 1;- Returns:
- This builder for chaining.
-
setPathBytes
public GcsDestinationConfig.Builder setPathBytes(com.google.protobuf.ByteString value)
Path inside the Cloud Storage bucket to write data to.
string path = 1;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getFileRotationMb
public int getFileRotationMb()
The maximum file size to be saved in the bucket.
int32 file_rotation_mb = 2;- Specified by:
getFileRotationMbin interfaceGcsDestinationConfigOrBuilder- Returns:
- The fileRotationMb.
-
setFileRotationMb
public GcsDestinationConfig.Builder setFileRotationMb(int value)
The maximum file size to be saved in the bucket.
int32 file_rotation_mb = 2;- Parameters:
value- The fileRotationMb to set.- Returns:
- This builder for chaining.
-
clearFileRotationMb
public GcsDestinationConfig.Builder clearFileRotationMb()
The maximum file size to be saved in the bucket.
int32 file_rotation_mb = 2;- Returns:
- This builder for chaining.
-
hasFileRotationInterval
public boolean hasFileRotationInterval()
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;- Specified by:
hasFileRotationIntervalin interfaceGcsDestinationConfigOrBuilder- Returns:
- Whether the fileRotationInterval field is set.
-
getFileRotationInterval
public com.google.protobuf.Duration getFileRotationInterval()
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;- Specified by:
getFileRotationIntervalin interfaceGcsDestinationConfigOrBuilder- Returns:
- The fileRotationInterval.
-
setFileRotationInterval
public GcsDestinationConfig.Builder setFileRotationInterval(com.google.protobuf.Duration value)
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;
-
setFileRotationInterval
public GcsDestinationConfig.Builder setFileRotationInterval(com.google.protobuf.Duration.Builder builderForValue)
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;
-
mergeFileRotationInterval
public GcsDestinationConfig.Builder mergeFileRotationInterval(com.google.protobuf.Duration value)
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;
-
clearFileRotationInterval
public GcsDestinationConfig.Builder clearFileRotationInterval()
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;
-
getFileRotationIntervalBuilder
public com.google.protobuf.Duration.Builder getFileRotationIntervalBuilder()
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;
-
getFileRotationIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.
.google.protobuf.Duration file_rotation_interval = 3;- Specified by:
getFileRotationIntervalOrBuilderin interfaceGcsDestinationConfigOrBuilder
-
hasAvroFileFormat
public boolean hasAvroFileFormat()
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;- Specified by:
hasAvroFileFormatin interfaceGcsDestinationConfigOrBuilder- Returns:
- Whether the avroFileFormat field is set.
-
getAvroFileFormat
public AvroFileFormat getAvroFileFormat()
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;- Specified by:
getAvroFileFormatin interfaceGcsDestinationConfigOrBuilder- Returns:
- The avroFileFormat.
-
setAvroFileFormat
public GcsDestinationConfig.Builder setAvroFileFormat(AvroFileFormat value)
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;
-
setAvroFileFormat
public GcsDestinationConfig.Builder setAvroFileFormat(AvroFileFormat.Builder builderForValue)
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;
-
mergeAvroFileFormat
public GcsDestinationConfig.Builder mergeAvroFileFormat(AvroFileFormat value)
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;
-
clearAvroFileFormat
public GcsDestinationConfig.Builder clearAvroFileFormat()
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;
-
getAvroFileFormatBuilder
public AvroFileFormat.Builder getAvroFileFormatBuilder()
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;
-
getAvroFileFormatOrBuilder
public AvroFileFormatOrBuilder getAvroFileFormatOrBuilder()
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;- Specified by:
getAvroFileFormatOrBuilderin interfaceGcsDestinationConfigOrBuilder
-
hasJsonFileFormat
public boolean hasJsonFileFormat()
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;- Specified by:
hasJsonFileFormatin interfaceGcsDestinationConfigOrBuilder- Returns:
- Whether the jsonFileFormat field is set.
-
getJsonFileFormat
public JsonFileFormat getJsonFileFormat()
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;- Specified by:
getJsonFileFormatin interfaceGcsDestinationConfigOrBuilder- Returns:
- The jsonFileFormat.
-
setJsonFileFormat
public GcsDestinationConfig.Builder setJsonFileFormat(JsonFileFormat value)
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;
-
setJsonFileFormat
public GcsDestinationConfig.Builder setJsonFileFormat(JsonFileFormat.Builder builderForValue)
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;
-
mergeJsonFileFormat
public GcsDestinationConfig.Builder mergeJsonFileFormat(JsonFileFormat value)
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;
-
clearJsonFileFormat
public GcsDestinationConfig.Builder clearJsonFileFormat()
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;
-
getJsonFileFormatBuilder
public JsonFileFormat.Builder getJsonFileFormatBuilder()
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;
-
getJsonFileFormatOrBuilder
public JsonFileFormatOrBuilder getJsonFileFormatOrBuilder()
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;- Specified by:
getJsonFileFormatOrBuilderin interfaceGcsDestinationConfigOrBuilder
-
setUnknownFields
public final GcsDestinationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
mergeUnknownFields
public final GcsDestinationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
-