public static final class RunStreamRequest.Builder extends GeneratedMessage.Builder<RunStreamRequest.Builder> implements RunStreamRequestOrBuilderRequest message for running a stream.
Protobuf type google.cloud.datastream.v1.RunStreamRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RunStreamRequest.BuilderImplements
RunStreamRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RunStreamRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RunStreamRequest.Builder |
|
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 |
|
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 |
booleanThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
RunStreamRequest.Builder |
This builder for chaining. |