public static final class CreateConnectorRequest.Builder extends GeneratedMessageV3.Builder<CreateConnectorRequest.Builder> implements CreateConnectorRequestOrBuilder
Request for CreateConnector.
Protobuf type google.cloud.managedkafka.v1.CreateConnectorRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateConnectorRequest.BuilderImplements
CreateConnectorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateConnectorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
build()
public CreateConnectorRequest build()
Returns | |
---|---|
Type | Description |
CreateConnectorRequest |
buildPartial()
public CreateConnectorRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateConnectorRequest |
clear()
public CreateConnectorRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
clearConnector()
public CreateConnectorRequest.Builder clearConnector()
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
clearConnectorId()
public CreateConnectorRequest.Builder clearConnectorId()
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression a-z?
to comply with
RFC 1035.
This value is structured like: my-connector-id
.
string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateConnectorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateConnectorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
clearParent()
public CreateConnectorRequest.Builder clearParent()
Required. The parent Connect cluster in which to create the connector.
Structured like
projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
This builder for chaining. |
clone()
public CreateConnectorRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
getConnector()
public Connector getConnector()
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Connector |
The connector. |
getConnectorBuilder()
public Connector.Builder getConnectorBuilder()
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Connector.Builder |
getConnectorId()
public String getConnectorId()
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression a-z?
to comply with
RFC 1035.
This value is structured like: my-connector-id
.
string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The connectorId. |
getConnectorIdBytes()
public ByteString getConnectorIdBytes()
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression a-z?
to comply with
RFC 1035.
This value is structured like: my-connector-id
.
string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for connectorId. |
getConnectorOrBuilder()
public ConnectorOrBuilder getConnectorOrBuilder()
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ConnectorOrBuilder |
getDefaultInstanceForType()
public CreateConnectorRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateConnectorRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The parent Connect cluster in which to create the connector.
Structured like
projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The parent Connect cluster in which to create the connector.
Structured like
projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
hasConnector()
public boolean hasConnector()
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the connector field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeConnector(Connector value)
public CreateConnectorRequest.Builder mergeConnector(Connector value)
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Connector |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
mergeFrom(CreateConnectorRequest other)
public CreateConnectorRequest.Builder mergeFrom(CreateConnectorRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateConnectorRequest |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateConnectorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateConnectorRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateConnectorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
setConnector(Connector value)
public CreateConnectorRequest.Builder setConnector(Connector value)
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Connector |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
setConnector(Connector.Builder builderForValue)
public CreateConnectorRequest.Builder setConnector(Connector.Builder builderForValue)
Required. The connector to create.
.google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Connector.Builder |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
setConnectorId(String value)
public CreateConnectorRequest.Builder setConnectorId(String value)
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression a-z?
to comply with
RFC 1035.
This value is structured like: my-connector-id
.
string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The connectorId to set. |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
This builder for chaining. |
setConnectorIdBytes(ByteString value)
public CreateConnectorRequest.Builder setConnectorIdBytes(ByteString value)
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression a-z?
to comply with
RFC 1035.
This value is structured like: my-connector-id
.
string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for connectorId to set. |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateConnectorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
setParent(String value)
public CreateConnectorRequest.Builder setParent(String value)
Required. The parent Connect cluster in which to create the connector.
Structured like
projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateConnectorRequest.Builder setParentBytes(ByteString value)
Required. The parent Connect cluster in which to create the connector.
Structured like
projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateConnectorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateConnectorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateConnectorRequest.Builder |