Class GcsDestinationConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
      • clear

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

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

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

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

        public GcsDestinationConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
      • setField

        public GcsDestinationConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
      • clearField

        public GcsDestinationConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
      • clearOneof

        public GcsDestinationConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
      • addRepeatedField

        public GcsDestinationConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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<GcsDestinationConfig.Builder>
        Throws:
        IOException
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         Path inside the Cloud Storage bucket to write data to.
         
        string path = 1;
        Specified by:
        getPathBytes in interface GcsDestinationConfigOrBuilder
        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.
      • getGcsFileFormatValue

        @Deprecated
        public int getGcsFileFormatValue()
        Deprecated.
        google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476
         File format that data should be written in.
         Deprecated field - use file_format instead.
         
        .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];
        Specified by:
        getGcsFileFormatValue in interface GcsDestinationConfigOrBuilder
        Returns:
        The enum numeric value on the wire for gcsFileFormat.
      • setGcsFileFormatValue

        @Deprecated
        public GcsDestinationConfig.Builder setGcsFileFormatValue​(int value)
        Deprecated.
        google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476
         File format that data should be written in.
         Deprecated field - use file_format instead.
         
        .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];
        Parameters:
        value - The enum numeric value on the wire for gcsFileFormat to set.
        Returns:
        This builder for chaining.
      • getGcsFileFormat

        @Deprecated
        public GcsFileFormat getGcsFileFormat()
        Deprecated.
        google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476
         File format that data should be written in.
         Deprecated field - use file_format instead.
         
        .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];
        Specified by:
        getGcsFileFormat in interface GcsDestinationConfigOrBuilder
        Returns:
        The gcsFileFormat.
      • setGcsFileFormat

        @Deprecated
        public GcsDestinationConfig.Builder setGcsFileFormat​(GcsFileFormat value)
        Deprecated.
        google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476
         File format that data should be written in.
         Deprecated field - use file_format instead.
         
        .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];
        Parameters:
        value - The gcsFileFormat to set.
        Returns:
        This builder for chaining.
      • clearGcsFileFormat

        @Deprecated
        public GcsDestinationConfig.Builder clearGcsFileFormat()
        Deprecated.
        google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476
         File format that data should be written in.
         Deprecated field - use file_format instead.
         
        .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • getFileRotationMb

        public int getFileRotationMb()
         The maximum file size to be saved in the bucket.
         
        int32 file_rotation_mb = 3;
        Specified by:
        getFileRotationMb in interface GcsDestinationConfigOrBuilder
        Returns:
        The fileRotationMb.
      • setFileRotationMb

        public GcsDestinationConfig.Builder setFileRotationMb​(int value)
         The maximum file size to be saved in the bucket.
         
        int32 file_rotation_mb = 3;
        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 = 3;
        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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
        Specified by:
        hasFileRotationInterval in interface GcsDestinationConfigOrBuilder
        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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
        Specified by:
        getFileRotationInterval in interface GcsDestinationConfigOrBuilder
        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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
      • 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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
      • 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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
      • 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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
      • 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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
      • 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.
         
        .google.protobuf.Duration file_rotation_interval = 4;
        Specified by:
        getFileRotationIntervalOrBuilder in interface GcsDestinationConfigOrBuilder
      • hasAvroFileFormat

        public boolean hasAvroFileFormat()
         AVRO file format configuration.
         
        .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;
        Specified by:
        hasAvroFileFormat in interface GcsDestinationConfigOrBuilder
        Returns:
        Whether the avroFileFormat field is set.
      • mergeAvroFileFormat

        public GcsDestinationConfig.Builder mergeAvroFileFormat​(AvroFileFormat value)
         AVRO file format configuration.
         
        .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;
      • clearAvroFileFormat

        public GcsDestinationConfig.Builder clearAvroFileFormat()
         AVRO file format configuration.
         
        .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;
      • getAvroFileFormatBuilder

        public AvroFileFormat.Builder getAvroFileFormatBuilder()
         AVRO file format configuration.
         
        .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100;
      • hasJsonFileFormat

        public boolean hasJsonFileFormat()
         JSON file format configuration.
         
        .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;
        Specified by:
        hasJsonFileFormat in interface GcsDestinationConfigOrBuilder
        Returns:
        Whether the jsonFileFormat field is set.
      • mergeJsonFileFormat

        public GcsDestinationConfig.Builder mergeJsonFileFormat​(JsonFileFormat value)
         JSON file format configuration.
         
        .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;
      • clearJsonFileFormat

        public GcsDestinationConfig.Builder clearJsonFileFormat()
         JSON file format configuration.
         
        .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;
      • getJsonFileFormatBuilder

        public JsonFileFormat.Builder getJsonFileFormatBuilder()
         JSON file format configuration.
         
        .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101;
      • setUnknownFields

        public final GcsDestinationConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>
      • mergeUnknownFields

        public final GcsDestinationConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GcsDestinationConfig.Builder>