Class RunStreamRequest.Builder (1.54.0)

public static final class RunStreamRequest.Builder extends GeneratedMessageV3.Builder<RunStreamRequest.Builder> implements RunStreamRequestOrBuilder

Request message for running a stream.

Protobuf type google.cloud.datastream.v1.RunStreamRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RunStreamRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunStreamRequest.Builder
Overrides

build()

public RunStreamRequest build()
Returns
Type Description
RunStreamRequest

buildPartial()

public RunStreamRequest buildPartial()
Returns
Type Description
RunStreamRequest

clear()

public RunStreamRequest.Builder clear()
Returns
Type Description
RunStreamRequest.Builder
Overrides

clearCdcStrategy()

public RunStreamRequest.Builder clearCdcStrategy()

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RunStreamRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public RunStreamRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RunStreamRequest.Builder
Overrides

clearForce()

public RunStreamRequest.Builder clearForce()

Optional. Update the stream without validating it.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RunStreamRequest.Builder

This builder for chaining.

clearName()

public RunStreamRequest.Builder clearName()

Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
RunStreamRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RunStreamRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RunStreamRequest.Builder
Overrides

clone()

public RunStreamRequest.Builder clone()
Returns
Type Description
RunStreamRequest.Builder
Overrides

getCdcStrategy()

public CdcStrategy getCdcStrategy()

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy

The cdcStrategy.

getCdcStrategyBuilder()

public CdcStrategy.Builder getCdcStrategyBuilder()

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategy.Builder

getCdcStrategyOrBuilder()

public CdcStrategyOrBuilder getCdcStrategyOrBuilder()

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CdcStrategyOrBuilder

getDefaultInstanceForType()

public RunStreamRequest getDefaultInstanceForType()
Returns
Type Description
RunStreamRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getForce()

public boolean getForce()

Optional. Update the stream without validating it.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

hasCdcStrategy()

public boolean hasCdcStrategy()

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cdcStrategy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCdcStrategy(CdcStrategy value)

public RunStreamRequest.Builder mergeCdcStrategy(CdcStrategy value)

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy
Returns
Type Description
RunStreamRequest.Builder

mergeFrom(RunStreamRequest other)

public RunStreamRequest.Builder mergeFrom(RunStreamRequest other)
Parameter
Name Description
other RunStreamRequest
Returns
Type Description
RunStreamRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RunStreamRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunStreamRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RunStreamRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RunStreamRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunStreamRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunStreamRequest.Builder
Overrides

setCdcStrategy(CdcStrategy value)

public RunStreamRequest.Builder setCdcStrategy(CdcStrategy value)

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CdcStrategy
Returns
Type Description
RunStreamRequest.Builder

setCdcStrategy(CdcStrategy.Builder builderForValue)

public RunStreamRequest.Builder setCdcStrategy(CdcStrategy.Builder builderForValue)

Optional. The CDC strategy of the stream. If not set, the system's default value will be used.

.google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CdcStrategy.Builder
Returns
Type Description
RunStreamRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RunStreamRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunStreamRequest.Builder
Overrides

setForce(boolean value)

public RunStreamRequest.Builder setForce(boolean value)

Optional. Update the stream without validating it.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
RunStreamRequest.Builder

This builder for chaining.

setName(String value)

public RunStreamRequest.Builder setName(String value)

Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RunStreamRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RunStreamRequest.Builder setNameBytes(ByteString value)

Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RunStreamRequest.Builder

This builder for chaining.

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

public RunStreamRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RunStreamRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RunStreamRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunStreamRequest.Builder
Overrides