Class SourceObject.Builder (1.102.0)

public static final class SourceObject.Builder extends GeneratedMessage.Builder<SourceObject.Builder> implements SourceObjectOrBuilder

Source object.

Protobuf type google.cloud.datastream.v1.SourceObject

Static Methods

getDescriptor()

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

Methods

addAllProperties(Iterable<? extends SourceProperty> values)

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

Optional. Source properties. 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
SourceObject.Builder

addProperties(SourceProperty value)

public SourceObject.Builder addProperties(SourceProperty value)

Optional. Source properties. 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
SourceObject.Builder

addProperties(SourceProperty.Builder builderForValue)

public SourceObject.Builder addProperties(SourceProperty.Builder builderForValue)

Optional. Source properties. 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
SourceObject.Builder

addProperties(int index, SourceProperty value)

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

Optional. Source properties. 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
SourceObject.Builder

addProperties(int index, SourceProperty.Builder builderForValue)

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

Optional. Source properties. 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
SourceObject.Builder

addPropertiesBuilder()

public SourceProperty.Builder addPropertiesBuilder()

Optional. Source properties. 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 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 SourceObject build()
Returns
Type Description
SourceObject

buildPartial()

public SourceObject buildPartial()
Returns
Type Description
SourceObject

clear()

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

clearObjectName()

public SourceObject.Builder clearObjectName()

Required. The object name.

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

Returns
Type Description
SourceObject.Builder

This builder for chaining.

clearProperties()

public SourceObject.Builder clearProperties()

Optional. Source properties. 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
SourceObject.Builder

getDefaultInstanceForType()

public SourceObject getDefaultInstanceForType()
Returns
Type Description
SourceObject

getDescriptorForType()

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

getObjectName()

public String getObjectName()

Required. The object name.

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

Returns
Type Description
String

The objectName.

getObjectNameBytes()

public ByteString getObjectNameBytes()

Required. The object name.

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

Returns
Type Description
ByteString

The bytes for objectName.

getProperties(int index)

public SourceProperty getProperties(int index)

Optional. Source properties. 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 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 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 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 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 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 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>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceObject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeProperties(int index)

public SourceObject.Builder removeProperties(int index)

Optional. Source properties. 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
SourceObject.Builder

setObjectName(String value)

public SourceObject.Builder setObjectName(String value)

Required. The object name.

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

Parameter
Name Description
value String

The objectName to set.

Returns
Type Description
SourceObject.Builder

This builder for chaining.

setObjectNameBytes(ByteString value)

public SourceObject.Builder setObjectNameBytes(ByteString value)

Required. The object name.

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

Parameter
Name Description
value ByteString

The bytes for objectName to set.

Returns
Type Description
SourceObject.Builder

This builder for chaining.

setProperties(int index, SourceProperty value)

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

Optional. Source properties. 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
SourceObject.Builder

setProperties(int index, SourceProperty.Builder builderForValue)

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

Optional. Source properties. 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
SourceObject.Builder