Class SourceProperty.Builder (1.102.0)

public static final class SourceProperty.Builder extends GeneratedMessage.Builder<SourceProperty.Builder> implements SourcePropertyOrBuilder

Source property.

Protobuf type google.cloud.datastream.v1.SourceProperty

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllProperties(Iterable<? extends SourceProperty> values)

public SourceProperty.Builder addAllProperties(Iterable<? extends SourceProperty> values)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.datastream.v1.SourceProperty>
Returns
Type Description
SourceProperty.Builder

addProperties(SourceProperty value)

public SourceProperty.Builder addProperties(SourceProperty value)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SourceProperty
Returns
Type Description
SourceProperty.Builder

addProperties(SourceProperty.Builder builderForValue)

public SourceProperty.Builder addProperties(SourceProperty.Builder builderForValue)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SourceProperty.Builder
Returns
Type Description
SourceProperty.Builder

addProperties(int index, SourceProperty value)

public SourceProperty.Builder addProperties(int index, SourceProperty value)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SourceProperty
Returns
Type Description
SourceProperty.Builder

addProperties(int index, SourceProperty.Builder builderForValue)

public SourceProperty.Builder addProperties(int index, SourceProperty.Builder builderForValue)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SourceProperty.Builder
Returns
Type Description
SourceProperty.Builder

addPropertiesBuilder()

public SourceProperty.Builder addPropertiesBuilder()

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceProperty.Builder

addPropertiesBuilder(int index)

public SourceProperty.Builder addPropertiesBuilder(int index)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceProperty.Builder

build()

public SourceProperty build()
Returns
Type Description
SourceProperty

buildPartial()

public SourceProperty buildPartial()
Returns
Type Description
SourceProperty

clear()

public SourceProperty.Builder clear()
Returns
Type Description
SourceProperty.Builder
Overrides

clearPrimaryKey()

public SourceProperty.Builder clearPrimaryKey()

Optional. Whether or not the property is a primary key.

bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceProperty.Builder

This builder for chaining.

clearProperties()

public SourceProperty.Builder clearProperties()

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceProperty.Builder

clearPropertyName()

public SourceProperty.Builder clearPropertyName()

Required. The property name.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SourceProperty.Builder

This builder for chaining.

getDefaultInstanceForType()

public SourceProperty getDefaultInstanceForType()
Returns
Type Description
SourceProperty

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrimaryKey()

public boolean getPrimaryKey()

Optional. Whether or not the property is a primary key.

bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The primaryKey.

getProperties(int index)

public SourceProperty getProperties(int index)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceProperty

getPropertiesBuilder(int index)

public SourceProperty.Builder getPropertiesBuilder(int index)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceProperty.Builder

getPropertiesBuilderList()

public List<SourceProperty.Builder> getPropertiesBuilderList()

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getPropertiesCount()

public int getPropertiesCount()

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getPropertiesList()

public List<SourceProperty> getPropertiesList()

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SourceProperty>

getPropertiesOrBuilder(int index)

public SourcePropertyOrBuilder getPropertiesOrBuilder(int index)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourcePropertyOrBuilder

getPropertiesOrBuilderList()

public List<? extends SourcePropertyOrBuilder> getPropertiesOrBuilderList()

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.datastream.v1.SourcePropertyOrBuilder>

getPropertyName()

public String getPropertyName()

Required. The property name.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The propertyName.

getPropertyNameBytes()

public ByteString getPropertyNameBytes()

Required. The property name.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for propertyName.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceProperty other)

public SourceProperty.Builder mergeFrom(SourceProperty other)
Parameter
Name Description
other SourceProperty
Returns
Type Description
SourceProperty.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SourceProperty.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceProperty.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SourceProperty.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SourceProperty.Builder
Overrides

removeProperties(int index)

public SourceProperty.Builder removeProperties(int index)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SourceProperty.Builder

setPrimaryKey(boolean value)

public SourceProperty.Builder setPrimaryKey(boolean value)

Optional. Whether or not the property is a primary key.

bool primary_key = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The primaryKey to set.

Returns
Type Description
SourceProperty.Builder

This builder for chaining.

setProperties(int index, SourceProperty value)

public SourceProperty.Builder setProperties(int index, SourceProperty value)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SourceProperty
Returns
Type Description
SourceProperty.Builder

setProperties(int index, SourceProperty.Builder builderForValue)

public SourceProperty.Builder setProperties(int index, SourceProperty.Builder builderForValue)

Optional. Source properties. When specified, it means that the current property contains nested properties of its own. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

repeated .google.cloud.datastream.v1.SourceProperty properties = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SourceProperty.Builder
Returns
Type Description
SourceProperty.Builder

setPropertyName(String value)

public SourceProperty.Builder setPropertyName(String value)

Required. The property name.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The propertyName to set.

Returns
Type Description
SourceProperty.Builder

This builder for chaining.

setPropertyNameBytes(ByteString value)

public SourceProperty.Builder setPropertyNameBytes(ByteString value)

Required. The property name.

string property_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for propertyName to set.

Returns
Type Description
SourceProperty.Builder

This builder for chaining.