Class CreateConnectorRequest.Builder (2.45.0)

public static final class CreateConnectorRequest.Builder extends GeneratedMessageV3.Builder<CreateConnectorRequest.Builder> implements CreateConnectorRequestOrBuilder

Request for creating a Serverless VPC Access connector.

Protobuf type google.cloud.vpcaccess.v1.CreateConnectorRequest

Static 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
Overrides

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
Overrides

clearConnector()

public CreateConnectorRequest.Builder clearConnector()

Required. Resource to create.

.google.cloud.vpcaccess.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 this connector.

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
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateConnectorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateConnectorRequest.Builder
Overrides

clearParent()

public CreateConnectorRequest.Builder clearParent()

Required. The project and location in which the configuration should be created, specified in the format projects/*/locations/*.

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
Overrides

getConnector()

public Connector getConnector()

Required. Resource to create.

.google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Connector

The connector.

getConnectorBuilder()

public Connector.Builder getConnectorBuilder()

Required. Resource to create.

.google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Connector.Builder

getConnectorId()

public String getConnectorId()

Required. The ID to use for this connector.

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 this connector.

string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for connectorId.

getConnectorOrBuilder()

public ConnectorOrBuilder getConnectorOrBuilder()

Required. Resource to create.

.google.cloud.vpcaccess.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
Overrides

getParent()

public String getParent()

Required. The project and location in which the configuration should be created, specified in the format projects/*/locations/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project and location in which the configuration should be created, specified in the format projects/*/locations/*.

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. Resource to create.

.google.cloud.vpcaccess.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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConnector(Connector value)

public CreateConnectorRequest.Builder mergeConnector(Connector value)

Required. Resource to create.

.google.cloud.vpcaccess.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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateConnectorRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateConnectorRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateConnectorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateConnectorRequest.Builder
Overrides

setConnector(Connector value)

public CreateConnectorRequest.Builder setConnector(Connector value)

Required. Resource to create.

.google.cloud.vpcaccess.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. Resource to create.

.google.cloud.vpcaccess.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 this connector.

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 this connector.

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
Overrides

setParent(String value)

public CreateConnectorRequest.Builder setParent(String value)

Required. The project and location in which the configuration should be created, specified in the format projects/*/locations/*.

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 project and location in which the configuration should be created, specified in the format projects/*/locations/*.

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateConnectorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateConnectorRequest.Builder
Overrides