public static final class Connector.Builder extends GeneratedMessage.Builder<Connector.Builder> implements ConnectorOrBuilderA Kafka Connect connector in a given ConnectCluster.
Protobuf type google.cloud.managedkafka.v1.Connector
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Connector.BuilderImplements
ConnectorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Connector build()| Returns | |
|---|---|
| Type | Description |
Connector |
|
buildPartial()
public Connector buildPartial()| Returns | |
|---|---|
| Type | Description |
Connector |
|
clear()
public Connector.Builder clear()| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
clearConfigs()
public Connector.Builder clearConfigs()| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
clearName()
public Connector.Builder clearName()Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
This builder for chaining. |
clearRestartPolicy()
public Connector.Builder clearRestartPolicy()| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
clearState()
public Connector.Builder clearState()Output only. The current state of the connector.
.google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
This builder for chaining. |
clearTaskRestartPolicy()
public Connector.Builder clearTaskRestartPolicy()Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
containsConfigs(String key)
public boolean containsConfigs(String key) Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getConfigs() (deprecated)
public Map<String,String> getConfigs()Use #getConfigsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getConfigsCount()
public int getConfigsCount() Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getConfigsMap()
public Map<String,String> getConfigsMap() Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getConfigsOrDefault(String key, String defaultValue)
public String getConfigsOrDefault(String key, String defaultValue) Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getConfigsOrThrow(String key)
public String getConfigsOrThrow(String key) Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getDefaultInstanceForType()
public Connector getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Connector |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMutableConfigs() (deprecated)
public Map<String,String> getMutableConfigs()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName()Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getRestartPolicyCase()
public Connector.RestartPolicyCase getRestartPolicyCase()| Returns | |
|---|---|
| Type | Description |
Connector.RestartPolicyCase |
|
getState()
public Connector.State getState()Output only. The current state of the connector.
.google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Connector.State |
The state. |
getStateValue()
public int getStateValue()Output only. The current state of the connector.
.google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getTaskRestartPolicy()
public TaskRetryPolicy getTaskRestartPolicy()Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy |
The taskRestartPolicy. |
getTaskRestartPolicyBuilder()
public TaskRetryPolicy.Builder getTaskRestartPolicyBuilder()Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicy.Builder |
|
getTaskRestartPolicyOrBuilder()
public TaskRetryPolicyOrBuilder getTaskRestartPolicyOrBuilder()Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TaskRetryPolicyOrBuilder |
|
hasTaskRestartPolicy()
public boolean hasTaskRestartPolicy()Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the taskRestartPolicy field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Connector other)
public Connector.Builder mergeFrom(Connector other)| Parameter | |
|---|---|
| Name | Description |
other |
Connector |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Connector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Connector.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
mergeTaskRestartPolicy(TaskRetryPolicy value)
public Connector.Builder mergeTaskRestartPolicy(TaskRetryPolicy value)Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TaskRetryPolicy |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
putAllConfigs(Map<String,String> values)
public Connector.Builder putAllConfigs(Map<String,String> values) Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
putConfigs(String key, String value)
public Connector.Builder putConfigs(String key, String value) Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
removeConfigs(String key)
public Connector.Builder removeConfigs(String key) Optional. Connector config as keys/values.
The keys of the map are connector property names, for example:
connector.class, tasks.max, key.converter.
map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
setName(String value)
public Connector.Builder setName(String value)Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Connector.Builder setNameBytes(ByteString value)Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
This builder for chaining. |
setState(Connector.State value)
public Connector.Builder setState(Connector.State value)Output only. The current state of the connector.
.google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Connector.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
This builder for chaining. |
setStateValue(int value)
public Connector.Builder setStateValue(int value)Output only. The current state of the connector.
.google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
This builder for chaining. |
setTaskRestartPolicy(TaskRetryPolicy value)
public Connector.Builder setTaskRestartPolicy(TaskRetryPolicy value)Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TaskRetryPolicy |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|
setTaskRestartPolicy(TaskRetryPolicy.Builder builderForValue)
public Connector.Builder setTaskRestartPolicy(TaskRetryPolicy.Builder builderForValue)Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TaskRetryPolicy.Builder |
| Returns | |
|---|---|
| Type | Description |
Connector.Builder |
|