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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GcsDestinationConfig
build()
GcsDestinationConfig
buildPartial()
GcsDestinationConfig.Builder
clear()
GcsDestinationConfig.Builder
clearAvroFileFormat()
AVRO file format configuration.GcsDestinationConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GcsDestinationConfig.Builder
clearFileFormat()
GcsDestinationConfig.Builder
clearFileRotationInterval()
The maximum duration for which new events are added before a file is closed and a new file is created.GcsDestinationConfig.Builder
clearFileRotationMb()
The maximum file size to be saved in the bucket.GcsDestinationConfig.Builder
clearJsonFileFormat()
JSON file format configuration.GcsDestinationConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GcsDestinationConfig.Builder
clearPath()
Path inside the Cloud Storage bucket to write data to.GcsDestinationConfig.Builder
clone()
AvroFileFormat
getAvroFileFormat()
AVRO file format configuration.AvroFileFormat.Builder
getAvroFileFormatBuilder()
AVRO file format configuration.AvroFileFormatOrBuilder
getAvroFileFormatOrBuilder()
AVRO file format configuration.GcsDestinationConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GcsDestinationConfig.FileFormatCase
getFileFormatCase()
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.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.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.int
getFileRotationMb()
The maximum file size to be saved in the bucket.JsonFileFormat
getJsonFileFormat()
JSON file format configuration.JsonFileFormat.Builder
getJsonFileFormatBuilder()
JSON file format configuration.JsonFileFormatOrBuilder
getJsonFileFormatOrBuilder()
JSON file format configuration.String
getPath()
Path inside the Cloud Storage bucket to write data to.com.google.protobuf.ByteString
getPathBytes()
Path inside the Cloud Storage bucket to write data to.boolean
hasAvroFileFormat()
AVRO file format configuration.boolean
hasFileRotationInterval()
The maximum duration for which new events are added before a file is closed and a new file is created.boolean
hasJsonFileFormat()
JSON file format configuration.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GcsDestinationConfig.Builder
mergeAvroFileFormat(AvroFileFormat value)
AVRO file format configuration.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.GcsDestinationConfig.Builder
mergeFrom(GcsDestinationConfig other)
GcsDestinationConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GcsDestinationConfig.Builder
mergeFrom(com.google.protobuf.Message other)
GcsDestinationConfig.Builder
mergeJsonFileFormat(JsonFileFormat value)
JSON file format configuration.GcsDestinationConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GcsDestinationConfig.Builder
setAvroFileFormat(AvroFileFormat value)
AVRO file format configuration.GcsDestinationConfig.Builder
setAvroFileFormat(AvroFileFormat.Builder builderForValue)
AVRO file format configuration.GcsDestinationConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.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.GcsDestinationConfig.Builder
setFileRotationMb(int value)
The maximum file size to be saved in the bucket.GcsDestinationConfig.Builder
setJsonFileFormat(JsonFileFormat value)
JSON file format configuration.GcsDestinationConfig.Builder
setJsonFileFormat(JsonFileFormat.Builder builderForValue)
JSON file format configuration.GcsDestinationConfig.Builder
setPath(String value)
Path inside the Cloud Storage bucket to write data to.GcsDestinationConfig.Builder
setPathBytes(com.google.protobuf.ByteString value)
Path inside the Cloud Storage bucket to write data to.GcsDestinationConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GcsDestinationConfig.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
clear
public GcsDestinationConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
getDefaultInstanceForType
public GcsDestinationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GcsDestinationConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GcsDestinationConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GcsDestinationConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
setField
public GcsDestinationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
clearField
public GcsDestinationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
clearOneof
public GcsDestinationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
setRepeatedField
public GcsDestinationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
addRepeatedField
public GcsDestinationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
mergeFrom
public GcsDestinationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GcsDestinationConfig.Builder>
-
mergeFrom
public GcsDestinationConfig.Builder mergeFrom(GcsDestinationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GcsDestinationConfig.Builder>
- Throws:
IOException
-
getFileFormatCase
public GcsDestinationConfig.FileFormatCase getFileFormatCase()
- Specified by:
getFileFormatCase
in 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:
getPath
in 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:
getPathBytes
in 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:
getFileRotationMb
in 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:
hasFileRotationInterval
in 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:
getFileRotationInterval
in 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:
getFileRotationIntervalOrBuilder
in interfaceGcsDestinationConfigOrBuilder
-
hasAvroFileFormat
public boolean hasAvroFileFormat()
AVRO file format configuration.
.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;
- Specified by:
hasAvroFileFormat
in 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:
getAvroFileFormat
in 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:
getAvroFileFormatOrBuilder
in interfaceGcsDestinationConfigOrBuilder
-
hasJsonFileFormat
public boolean hasJsonFileFormat()
JSON file format configuration.
.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;
- Specified by:
hasJsonFileFormat
in 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:
getJsonFileFormat
in 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:
getJsonFileFormatOrBuilder
in interfaceGcsDestinationConfigOrBuilder
-
setUnknownFields
public final GcsDestinationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
mergeUnknownFields
public final GcsDestinationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
-
-