public static final class CreateConnectionRequest.Builder extends GeneratedMessageV3.Builder<CreateConnectionRequest.Builder> implements CreateConnectionRequestOrBuilder
Request message for CreateConnection.
Protobuf type google.privacy.dlp.v2.CreateConnectionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateConnectionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateConnectionRequest build()
buildPartial()
public CreateConnectionRequest buildPartial()
clear()
public CreateConnectionRequest.Builder clear()
Overrides
clearConnection()
public CreateConnectionRequest.Builder clearConnection()
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateConnectionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateConnectionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public CreateConnectionRequest.Builder clearParent()
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
- Projects scope:
projects/{project_id}/locations/{location_id}
- Organizations scope:
organizations/{org_id}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public CreateConnectionRequest.Builder clone()
Overrides
getConnection()
public Connection getConnection()
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Connection |
The connection.
|
getConnectionBuilder()
public Connection.Builder getConnectionBuilder()
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
getConnectionOrBuilder()
public ConnectionOrBuilder getConnectionOrBuilder()
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateConnectionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getParent()
public String getParent()
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
- Projects scope:
projects/{project_id}/locations/{location_id}
- Organizations scope:
organizations/{org_id}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
- Projects scope:
projects/{project_id}/locations/{location_id}
- Organizations scope:
organizations/{org_id}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
hasConnection()
public boolean hasConnection()
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the connection field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeConnection(Connection value)
public CreateConnectionRequest.Builder mergeConnection(Connection value)
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(CreateConnectionRequest other)
public CreateConnectionRequest.Builder mergeFrom(CreateConnectionRequest other)
public CreateConnectionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateConnectionRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateConnectionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setConnection(Connection value)
public CreateConnectionRequest.Builder setConnection(Connection value)
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
setConnection(Connection.Builder builderForValue)
public CreateConnectionRequest.Builder setConnection(Connection.Builder builderForValue)
Required. The connection resource.
.google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateConnectionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParent(String value)
public CreateConnectionRequest.Builder setParent(String value)
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
- Projects scope:
projects/{project_id}/locations/{location_id}
- Organizations scope:
organizations/{org_id}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
setParentBytes(ByteString value)
public CreateConnectionRequest.Builder setParentBytes(ByteString value)
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
- Projects scope:
projects/{project_id}/locations/{location_id}
- Organizations scope:
organizations/{org_id}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateConnectionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateConnectionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides