public static final class CreateConnectionRequest.Builder extends GeneratedMessageV3.Builder<CreateConnectionRequest.Builder> implements CreateConnectionRequestOrBuilder
Message for creating a Connection
Protobuf type google.cloud.developerconnect.v1.CreateConnectionRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateConnectionRequest.BuilderImplements
CreateConnectionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateConnectionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
build()
public CreateConnectionRequest build()
Returns | |
---|---|
Type | Description |
CreateConnectionRequest |
buildPartial()
public CreateConnectionRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateConnectionRequest |
clear()
public CreateConnectionRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
clearConnection()
public CreateConnectionRequest.Builder clearConnection()
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
clearConnectionId()
public CreateConnectionRequest.Builder clearConnectionId()
Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC
string connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateConnectionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateConnectionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
clearParent()
public CreateConnectionRequest.Builder clearParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
clearRequestId()
public CreateConnectionRequest.Builder clearRequestId()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
clearValidateOnly()
public CreateConnectionRequest.Builder clearValidateOnly()
Optional. If set, validate the request, but do not actually post it.
bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
clone()
public CreateConnectionRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
getConnection()
public Connection getConnection()
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Connection |
The connection. |
getConnectionBuilder()
public Connection.Builder getConnectionBuilder()
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Connection.Builder |
getConnectionId()
public String getConnectionId()
Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC
string connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The connectionId. |
getConnectionIdBytes()
public ByteString getConnectionIdBytes()
Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC
string connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for connectionId. |
getConnectionOrBuilder()
public ConnectionOrBuilder getConnectionOrBuilder()
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ConnectionOrBuilder |
getDefaultInstanceForType()
public CreateConnectionRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateConnectionRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getRequestId()
public String getRequestId()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
String |
The requestId. |
getRequestIdBytes()
public ByteString getRequestIdBytes()
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for requestId. |
getValidateOnly()
public boolean getValidateOnly()
Optional. If set, validate the request, but do not actually post it.
bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The validateOnly. |
hasConnection()
public boolean hasConnection()
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the connection field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeConnection(Connection value)
public CreateConnectionRequest.Builder mergeConnection(Connection value)
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Connection |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
mergeFrom(CreateConnectionRequest other)
public CreateConnectionRequest.Builder mergeFrom(CreateConnectionRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateConnectionRequest |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateConnectionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateConnectionRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateConnectionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
setConnection(Connection value)
public CreateConnectionRequest.Builder setConnection(Connection value)
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Connection |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
setConnection(Connection.Builder builderForValue)
public CreateConnectionRequest.Builder setConnection(Connection.Builder builderForValue)
Required. The resource being created
.google.cloud.developerconnect.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Connection.Builder |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
setConnectionId(String value)
public CreateConnectionRequest.Builder setConnectionId(String value)
Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC
string connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The connectionId to set. |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
setConnectionIdBytes(ByteString value)
public CreateConnectionRequest.Builder setConnectionIdBytes(ByteString value)
Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC
string connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for connectionId to set. |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateConnectionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
setParent(String value)
public CreateConnectionRequest.Builder setParent(String value)
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateConnectionRequest.Builder setParentBytes(ByteString value)
Required. Value for parent.
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 |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
setRequestId(String value)
public CreateConnectionRequest.Builder setRequestId(String value)
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The requestId to set. |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public CreateConnectionRequest.Builder setRequestIdBytes(ByteString value)
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for requestId to set. |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateConnectionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
setValidateOnly(boolean value)
public CreateConnectionRequest.Builder setValidateOnly(boolean value)
Optional. If set, validate the request, but do not actually post it.
bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The validateOnly to set. |
Returns | |
---|---|
Type | Description |
CreateConnectionRequest.Builder |
This builder for chaining. |