Class CreateConnectionRequest.Builder (3.24.0)

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

Message for creating a Connection

Protobuf type google.devtools.cloudbuild.v2.CreateConnectionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateConnectionRequest build()
Returns
TypeDescription
CreateConnectionRequest

buildPartial()

public CreateConnectionRequest buildPartial()
Returns
TypeDescription
CreateConnectionRequest

clear()

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

clearConnection()

public CreateConnectionRequest.Builder clearConnection()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateConnectionRequest.Builder

clearConnectionId()

public CreateConnectionRequest.Builder clearConnectionId()

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string connection_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateConnectionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateConnectionRequest.Builder clearParent()

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

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

Returns
TypeDescription
CreateConnectionRequest.Builder

This builder for chaining.

clone()

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

getConnection()

public Connection getConnection()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Connection

The connection.

getConnectionBuilder()

public Connection.Builder getConnectionBuilder()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Connection.Builder

getConnectionId()

public String getConnectionId()

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string connection_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The connectionId.

getConnectionIdBytes()

public ByteString getConnectionIdBytes()

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string connection_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for connectionId.

getConnectionOrBuilder()

public ConnectionOrBuilder getConnectionOrBuilder()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConnectionOrBuilder

getDefaultInstanceForType()

public CreateConnectionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateConnectionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Project and location where the connection will be created. 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. Project and location where the connection will be created. Format: projects/*/locations/*.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasConnection()

public boolean hasConnection()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.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(Connection value)

public CreateConnectionRequest.Builder mergeConnection(Connection value)

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConnection
Returns
TypeDescription
CreateConnectionRequest.Builder

mergeFrom(CreateConnectionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConnection(Connection value)

public CreateConnectionRequest.Builder setConnection(Connection value)

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConnection
Returns
TypeDescription
CreateConnectionRequest.Builder

setConnection(Connection.Builder builderForValue)

public CreateConnectionRequest.Builder setConnection(Connection.Builder builderForValue)

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueConnection.Builder
Returns
TypeDescription
CreateConnectionRequest.Builder

setConnectionId(String value)

public CreateConnectionRequest.Builder setConnectionId(String value)

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string connection_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The connectionId to set.

Returns
TypeDescription
CreateConnectionRequest.Builder

This builder for chaining.

setConnectionIdBytes(ByteString value)

public CreateConnectionRequest.Builder setConnectionIdBytes(ByteString value)

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string connection_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for connectionId to set.

Returns
TypeDescription
CreateConnectionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateConnectionRequest.Builder setParent(String value)

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateConnectionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateConnectionRequest.Builder setParentBytes(ByteString value)

Required. Project and location where the connection will be created. 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
CreateConnectionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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