public static final class SetTablePrimaryKey.Builder extends GeneratedMessage.Builder<SetTablePrimaryKey.Builder> implements SetTablePrimaryKeyOrBuilderOptions to configure rule type SetTablePrimaryKey. The rule is used to specify the columns and name to configure/alter the primary key of a table.
The rule filter field can refer to one entity.
The rule scope can be one of: Table.
Protobuf type google.cloud.clouddms.v1.SetTablePrimaryKey
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SetTablePrimaryKey.BuilderImplements
SetTablePrimaryKeyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPrimaryKeyColumns(Iterable<String> values)
public SetTablePrimaryKey.Builder addAllPrimaryKeyColumns(Iterable<String> values)Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The primaryKeyColumns to add. |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |
addPrimaryKeyColumns(String value)
public SetTablePrimaryKey.Builder addPrimaryKeyColumns(String value)Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe primaryKeyColumns to add. |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |
addPrimaryKeyColumnsBytes(ByteString value)
public SetTablePrimaryKey.Builder addPrimaryKeyColumnsBytes(ByteString value)Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the primaryKeyColumns to add. |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |
build()
public SetTablePrimaryKey build()| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey |
|
buildPartial()
public SetTablePrimaryKey buildPartial()| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey |
|
clear()
public SetTablePrimaryKey.Builder clear()| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
|
clearPrimaryKey()
public SetTablePrimaryKey.Builder clearPrimaryKey()Optional. Name for the primary key
string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |
clearPrimaryKeyColumns()
public SetTablePrimaryKey.Builder clearPrimaryKeyColumns()Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SetTablePrimaryKey getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPrimaryKey()
public String getPrimaryKey()Optional. Name for the primary key
string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The primaryKey. |
getPrimaryKeyBytes()
public ByteString getPrimaryKeyBytes()Optional. Name for the primary key
string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for primaryKey. |
getPrimaryKeyColumns(int index)
public String getPrimaryKeyColumns(int index)Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The primaryKeyColumns at the given index. |
getPrimaryKeyColumnsBytes(int index)
public ByteString getPrimaryKeyColumnsBytes(int index)Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the primaryKeyColumns at the given index. |
getPrimaryKeyColumnsCount()
public int getPrimaryKeyColumnsCount()Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of primaryKeyColumns. |
getPrimaryKeyColumnsList()
public ProtocolStringList getPrimaryKeyColumnsList()Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the primaryKeyColumns. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SetTablePrimaryKey other)
public SetTablePrimaryKey.Builder mergeFrom(SetTablePrimaryKey other)| Parameter | |
|---|---|
| Name | Description |
other |
SetTablePrimaryKey |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SetTablePrimaryKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SetTablePrimaryKey.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
|
setPrimaryKey(String value)
public SetTablePrimaryKey.Builder setPrimaryKey(String value)Optional. Name for the primary key
string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe primaryKey to set. |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |
setPrimaryKeyBytes(ByteString value)
public SetTablePrimaryKey.Builder setPrimaryKeyBytes(ByteString value)Optional. Name for the primary key
string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for primaryKey to set. |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |
setPrimaryKeyColumns(int index, String value)
public SetTablePrimaryKey.Builder setPrimaryKeyColumns(int index, String value)Required. List of column names for the primary key
repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe primaryKeyColumns to set. |
| Returns | |
|---|---|
| Type | Description |
SetTablePrimaryKey.Builder |
This builder for chaining. |