Package com.google.cloud.managedkafka.v1
Interface ConnectorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Connector,Connector.Builder
@Generated
public interface ConnectorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsConfigs(String key) Optional.Deprecated.intOptional.Optional.getConfigsOrDefault(String key, String defaultValue) Optional.getConfigsOrThrow(String key) Optional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.getState()Output only.intOutput only.Optional.Optional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasTaskRestartPolicy
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:
- Whether the taskRestartPolicy field is set.
-
getTaskRestartPolicy
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:
- The taskRestartPolicy.
-
getTaskRestartPolicyOrBuilder
TaskRetryPolicyOrBuilder getTaskRestartPolicyOrBuilder()Optional. Restarts the individual tasks of a Connector.
.google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getName
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:
- The name.
-
getNameBytes
com.google.protobuf.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:
- The bytes for name.
-
getConfigsCount
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]; -
containsConfigs
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]; -
getConfigs
Deprecated.UsegetConfigsMap()instead. -
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]; -
getConfigsOrDefault
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]; -
getConfigsOrThrow
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]; -
getStateValue
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:
- The enum numeric value on the wire for state.
-
getState
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:
- The state.
-
getRestartPolicyCase
Connector.RestartPolicyCase getRestartPolicyCase()
-