Class ConnectionProto.CreateConnectionRequest.Builder (2.16.0)

public static final class ConnectionProto.CreateConnectionRequest.Builder extends GeneratedMessageV3.Builder<ConnectionProto.CreateConnectionRequest.Builder> implements ConnectionProto.CreateConnectionRequestOrBuilder

The request for ConnectionService.CreateConnection.

Protobuf type google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectionProto.CreateConnectionRequest build()
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest

buildPartial()

public ConnectionProto.CreateConnectionRequest buildPartial()
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest

clear()

public ConnectionProto.CreateConnectionRequest.Builder clear()
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder
Overrides

clearConnection()

public ConnectionProto.CreateConnectionRequest.Builder clearConnection()

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

clearConnectionId()

public ConnectionProto.CreateConnectionRequest.Builder clearConnectionId()

Optional. Connection id that should be assigned to the created connection.

string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectionProto.CreateConnectionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder
Overrides

clearParent()

public ConnectionProto.CreateConnectionRequest.Builder clearParent()

Required. Parent resource name. Must be in the format projects/{project_id}/locations/{location_id}

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

Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

This builder for chaining.

clone()

public ConnectionProto.CreateConnectionRequest.Builder clone()
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder
Overrides

getConnection()

public ConnectionProto.Connection getConnection()

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConnectionProto.Connection

The connection.

getConnectionBuilder()

public ConnectionProto.Connection.Builder getConnectionBuilder()

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConnectionProto.Connection.Builder

getConnectionId()

public String getConnectionId()

Optional. Connection id that should be assigned to the created connection.

string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The connectionId.

getConnectionIdBytes()

public ByteString getConnectionIdBytes()

Optional. Connection id that should be assigned to the created connection.

string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for connectionId.

getConnectionOrBuilder()

public ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder()

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConnectionProto.ConnectionOrBuilder

getDefaultInstanceForType()

public ConnectionProto.CreateConnectionRequest getDefaultInstanceForType()
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Parent resource name. Must be in the format projects/{project_id}/locations/{location_id}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name. Must be in the format projects/{project_id}/locations/{location_id}

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasConnection()

public boolean hasConnection()

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the connection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConnection(ConnectionProto.Connection value)

public ConnectionProto.CreateConnectionRequest.Builder mergeConnection(ConnectionProto.Connection value)

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConnectionProto.Connection
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

mergeFrom(ConnectionProto.CreateConnectionRequest other)

public ConnectionProto.CreateConnectionRequest.Builder mergeFrom(ConnectionProto.CreateConnectionRequest other)
Parameter
NameDescription
otherConnectionProto.CreateConnectionRequest
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProto.CreateConnectionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder
Overrides

setConnection(ConnectionProto.Connection value)

public ConnectionProto.CreateConnectionRequest.Builder setConnection(ConnectionProto.Connection value)

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConnectionProto.Connection
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

setConnection(ConnectionProto.Connection.Builder builderForValue)

public ConnectionProto.CreateConnectionRequest.Builder setConnection(ConnectionProto.Connection.Builder builderForValue)

Required. Connection to create.

.google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueConnectionProto.Connection.Builder
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

setConnectionId(String value)

public ConnectionProto.CreateConnectionRequest.Builder setConnectionId(String value)

Optional. Connection id that should be assigned to the created connection.

string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The connectionId to set.

Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

This builder for chaining.

setConnectionIdBytes(ByteString value)

public ConnectionProto.CreateConnectionRequest.Builder setConnectionIdBytes(ByteString value)

Optional. Connection id that should be assigned to the created connection.

string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for connectionId to set.

Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConnectionProto.CreateConnectionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder
Overrides

setParent(String value)

public ConnectionProto.CreateConnectionRequest.Builder setParent(String value)

Required. Parent resource name. Must be in the format projects/{project_id}/locations/{location_id}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ConnectionProto.CreateConnectionRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name. Must be in the format projects/{project_id}/locations/{location_id}

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConnectionProto.CreateConnectionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConnectionProto.CreateConnectionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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