public static final class ConnectGcpConfig.Builder extends GeneratedMessageV3.Builder<ConnectGcpConfig.Builder> implements ConnectGcpConfigOrBuilder
Configuration properties for a Kafka Connect cluster deployed to Google Cloud
Platform.
Protobuf type google.cloud.managedkafka.v1.ConnectGcpConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllSecretPaths(Iterable<String> values)
public ConnectGcpConfig.Builder addAllSecretPaths(Iterable<String> values)
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
values |
Iterable<String>
The secretPaths to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConnectGcpConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSecretPaths(String value)
public ConnectGcpConfig.Builder addSecretPaths(String value)
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The secretPaths to add.
|
addSecretPathsBytes(ByteString value)
public ConnectGcpConfig.Builder addSecretPathsBytes(ByteString value)
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes of the secretPaths to add.
|
build()
public ConnectGcpConfig build()
buildPartial()
public ConnectGcpConfig buildPartial()
clear()
public ConnectGcpConfig.Builder clear()
Overrides
clearAccessConfig()
public ConnectGcpConfig.Builder clearAccessConfig()
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public ConnectGcpConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConnectGcpConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSecretPaths()
public ConnectGcpConfig.Builder clearSecretPaths()
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
clone()
public ConnectGcpConfig.Builder clone()
Overrides
getAccessConfig()
public ConnectAccessConfig getAccessConfig()
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
getAccessConfigBuilder()
public ConnectAccessConfig.Builder getAccessConfigBuilder()
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
getAccessConfigOrBuilder()
public ConnectAccessConfigOrBuilder getAccessConfigOrBuilder()
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public ConnectGcpConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSecretPaths(int index)
public String getSecretPaths(int index)
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The secretPaths at the given index.
|
getSecretPathsBytes(int index)
public ByteString getSecretPathsBytes(int index)
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the secretPaths at the given index.
|
getSecretPathsCount()
public int getSecretPathsCount()
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
int |
The count of secretPaths.
|
getSecretPathsList()
public ProtocolStringList getSecretPathsList()
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
hasAccessConfig()
public boolean hasAccessConfig()
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the accessConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAccessConfig(ConnectAccessConfig value)
public ConnectGcpConfig.Builder mergeAccessConfig(ConnectAccessConfig value)
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(ConnectGcpConfig other)
public ConnectGcpConfig.Builder mergeFrom(ConnectGcpConfig other)
public ConnectGcpConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ConnectGcpConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConnectGcpConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAccessConfig(ConnectAccessConfig value)
public ConnectGcpConfig.Builder setAccessConfig(ConnectAccessConfig value)
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
setAccessConfig(ConnectAccessConfig.Builder builderForValue)
public ConnectGcpConfig.Builder setAccessConfig(ConnectAccessConfig.Builder builderForValue)
Required. Access configuration for the Kafka Connect cluster.
.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public ConnectGcpConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConnectGcpConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSecretPaths(int index, String value)
public ConnectGcpConfig.Builder setSecretPaths(int index, String value)
Optional. Secrets to load into workers. Exact SecretVersions from Secret
Manager must be provided -- aliases are not supported. Up to 32 secrets may
be loaded into one cluster. Format:
projects/<project-id>/secrets/<secret-name>/versions/<version-id>
repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The secretPaths to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ConnectGcpConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides