Class ViewEntity.Builder (2.20.0)

public static final class ViewEntity.Builder extends GeneratedMessageV3.Builder<ViewEntity.Builder> implements ViewEntityOrBuilder

View's parent is a schema.

Protobuf type google.cloud.clouddms.v1.ViewEntity

Implements

ViewEntityOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllConstraints(Iterable<? extends ConstraintEntity> values)

public ViewEntity.Builder addAllConstraints(Iterable<? extends ConstraintEntity> values)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.clouddms.v1.ConstraintEntity>
Returns
TypeDescription
ViewEntity.Builder

addConstraints(ConstraintEntity value)

public ViewEntity.Builder addConstraints(ConstraintEntity value)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
valueConstraintEntity
Returns
TypeDescription
ViewEntity.Builder

addConstraints(ConstraintEntity.Builder builderForValue)

public ViewEntity.Builder addConstraints(ConstraintEntity.Builder builderForValue)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
builderForValueConstraintEntity.Builder
Returns
TypeDescription
ViewEntity.Builder

addConstraints(int index, ConstraintEntity value)

public ViewEntity.Builder addConstraints(int index, ConstraintEntity value)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameters
NameDescription
indexint
valueConstraintEntity
Returns
TypeDescription
ViewEntity.Builder

addConstraints(int index, ConstraintEntity.Builder builderForValue)

public ViewEntity.Builder addConstraints(int index, ConstraintEntity.Builder builderForValue)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameters
NameDescription
indexint
builderForValueConstraintEntity.Builder
Returns
TypeDescription
ViewEntity.Builder

addConstraintsBuilder()

public ConstraintEntity.Builder addConstraintsBuilder()

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Returns
TypeDescription
ConstraintEntity.Builder

addConstraintsBuilder(int index)

public ConstraintEntity.Builder addConstraintsBuilder(int index)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConstraintEntity.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ViewEntity build()
Returns
TypeDescription
ViewEntity

buildPartial()

public ViewEntity buildPartial()
Returns
TypeDescription
ViewEntity

clear()

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

clearConstraints()

public ViewEntity.Builder clearConstraints()

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Returns
TypeDescription
ViewEntity.Builder

clearCustomFeatures()

public ViewEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Returns
TypeDescription
ViewEntity.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSqlCode()

public ViewEntity.Builder clearSqlCode()

The SQL code which creates the view.

string sql_code = 1;

Returns
TypeDescription
ViewEntity.Builder

This builder for chaining.

clone()

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

getConstraints(int index)

public ConstraintEntity getConstraints(int index)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConstraintEntity

getConstraintsBuilder(int index)

public ConstraintEntity.Builder getConstraintsBuilder(int index)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConstraintEntity.Builder

getConstraintsBuilderList()

public List<ConstraintEntity.Builder> getConstraintsBuilderList()

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Returns
TypeDescription
List<Builder>

getConstraintsCount()

public int getConstraintsCount()

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Returns
TypeDescription
int

getConstraintsList()

public List<ConstraintEntity> getConstraintsList()

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Returns
TypeDescription
List<ConstraintEntity>

getConstraintsOrBuilder(int index)

public ConstraintEntityOrBuilder getConstraintsOrBuilder(int index)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConstraintEntityOrBuilder

getConstraintsOrBuilderList()

public List<? extends ConstraintEntityOrBuilder> getConstraintsOrBuilderList()

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Returns
TypeDescription
List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Returns
TypeDescription
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Returns
TypeDescription
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public ViewEntity getDefaultInstanceForType()
Returns
TypeDescription
ViewEntity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSqlCode()

public String getSqlCode()

The SQL code which creates the view.

string sql_code = 1;

Returns
TypeDescription
String

The sqlCode.

getSqlCodeBytes()

public ByteString getSqlCodeBytes()

The SQL code which creates the view.

string sql_code = 1;

Returns
TypeDescription
ByteString

The bytes for sqlCode.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Returns
TypeDescription
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomFeatures(Struct value)

public ViewEntity.Builder mergeCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ViewEntity.Builder

mergeFrom(ViewEntity other)

public ViewEntity.Builder mergeFrom(ViewEntity other)
Parameter
NameDescription
otherViewEntity
Returns
TypeDescription
ViewEntity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConstraints(int index)

public ViewEntity.Builder removeConstraints(int index)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ViewEntity.Builder

setConstraints(int index, ConstraintEntity value)

public ViewEntity.Builder setConstraints(int index, ConstraintEntity value)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameters
NameDescription
indexint
valueConstraintEntity
Returns
TypeDescription
ViewEntity.Builder

setConstraints(int index, ConstraintEntity.Builder builderForValue)

public ViewEntity.Builder setConstraints(int index, ConstraintEntity.Builder builderForValue)

View constraints.

repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3;

Parameters
NameDescription
indexint
builderForValueConstraintEntity.Builder
Returns
TypeDescription
ViewEntity.Builder

setCustomFeatures(Struct value)

public ViewEntity.Builder setCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ViewEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public ViewEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ViewEntity.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSqlCode(String value)

public ViewEntity.Builder setSqlCode(String value)

The SQL code which creates the view.

string sql_code = 1;

Parameter
NameDescription
valueString

The sqlCode to set.

Returns
TypeDescription
ViewEntity.Builder

This builder for chaining.

setSqlCodeBytes(ByteString value)

public ViewEntity.Builder setSqlCodeBytes(ByteString value)

The SQL code which creates the view.

string sql_code = 1;

Parameter
NameDescription
valueByteString

The bytes for sqlCode to set.

Returns
TypeDescription
ViewEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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