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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public CreateConnectionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CreateConnectionRequest build()
Returns
public CreateConnectionRequest buildPartial()
Returns
public CreateConnectionRequest.Builder clear()
Returns
Overrides
public CreateConnectionRequest.Builder clearConnection()
Required. The Connection to create.
.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
public CreateConnectionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public CreateConnectionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public CreateConnectionRequest.Builder clone()
Returns
Overrides
public Connection getConnection()
Required. The Connection to create.
.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public Connection.Builder getConnectionBuilder()
Required. The Connection to create.
.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Type | Description |
String | The connectionId.
|
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
Type | Description |
ByteString | The bytes for connectionId.
|
public ConnectionOrBuilder getConnectionOrBuilder()
Required. The Connection to create.
.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public CreateConnectionRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
String | The parent.
|
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
public boolean hasConnection()
Required. The Connection to create.
.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the connection field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CreateConnectionRequest.Builder mergeConnection(Connection value)
Required. The Connection to create.
.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public CreateConnectionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public CreateConnectionRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public CreateConnectionRequest.Builder mergeFrom(CreateConnectionRequest other)
Parameter
Returns
public final CreateConnectionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public CreateConnectionRequest.Builder setConnection(Connection value)
Required. The Connection to create.
.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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
Returns
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
Name | Description |
value | String
The connectionId to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for connectionId to set.
|
Returns
public CreateConnectionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Name | Description |
value | String
The parent to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
public CreateConnectionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final CreateConnectionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides