Class CreateConnectorRequest.Builder (2.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateConnectorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateConnectorRequest.Builder
Overrides

build()

public CreateConnectorRequest build()
Returns
TypeDescription
CreateConnectorRequest

buildPartial()

public CreateConnectorRequest buildPartial()
Returns
TypeDescription
CreateConnectorRequest

clear()

public CreateConnectorRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateConnectorRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateConnectorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateConnectorRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateConnectorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateConnectorRequest.Builder

This builder for chaining.

clone()

public CreateConnectorRequest.Builder clone()
Returns
TypeDescription
CreateConnectorRequest.Builder
Overrides

getConnector()

public Connector getConnector()

Required. Resource to create.

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

Returns
TypeDescription
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
TypeDescription
Connector.Builder

getConnectorId()

public String getConnectorId()

Required. The ID to use for this connector.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConnectorOrBuilder

getDefaultInstanceForType()

public CreateConnectorRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateConnectorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the connector field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConnector
Returns
TypeDescription
CreateConnectorRequest.Builder

mergeFrom(CreateConnectorRequest other)

public CreateConnectorRequest.Builder mergeFrom(CreateConnectorRequest other)
Parameter
NameDescription
otherCreateConnectorRequest
Returns
TypeDescription
CreateConnectorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateConnectorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectorRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateConnectorRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateConnectorRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateConnectorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueConnector
Returns
TypeDescription
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
NameDescription
builderForValueConnector.Builder
Returns
TypeDescription
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
NameDescription
valueString

The connectorId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for connectorId to set.

Returns
TypeDescription
CreateConnectorRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateConnectorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateConnectorRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateConnectorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateConnectorRequest.Builder
Overrides