Class PropertyMask.Builder (0.16.0)

public static final class PropertyMask.Builder extends GeneratedMessageV3.Builder<PropertyMask.Builder> implements PropertyMaskOrBuilder

A set of property paths on an entity.

Protobuf type google.events.cloud.datastore.v1.PropertyMask

Static Methods

getDescriptor()

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

Methods

addAllPropertyPaths(Iterable<String> values)

public PropertyMask.Builder addAllPropertyPaths(Iterable<String> values)

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Parameter
Name Description
values Iterable<String>

The propertyPaths to add.

Returns
Type Description
PropertyMask.Builder

This builder for chaining.

addPropertyPaths(String value)

public PropertyMask.Builder addPropertyPaths(String value)

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Parameter
Name Description
value String

The propertyPaths to add.

Returns
Type Description
PropertyMask.Builder

This builder for chaining.

addPropertyPathsBytes(ByteString value)

public PropertyMask.Builder addPropertyPathsBytes(ByteString value)

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Parameter
Name Description
value ByteString

The bytes of the propertyPaths to add.

Returns
Type Description
PropertyMask.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PropertyMask.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PropertyMask.Builder
Overrides

build()

public PropertyMask build()
Returns
Type Description
PropertyMask

buildPartial()

public PropertyMask buildPartial()
Returns
Type Description
PropertyMask

clear()

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

clearField(Descriptors.FieldDescriptor field)

public PropertyMask.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PropertyMask.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PropertyMask.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PropertyMask.Builder
Overrides

clearPropertyPaths()

public PropertyMask.Builder clearPropertyPaths()

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Returns
Type Description
PropertyMask.Builder

This builder for chaining.

clone()

public PropertyMask.Builder clone()
Returns
Type Description
PropertyMask.Builder
Overrides

getDefaultInstanceForType()

public PropertyMask getDefaultInstanceForType()
Returns
Type Description
PropertyMask

getDescriptorForType()

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

getPropertyPaths(int index)

public String getPropertyPaths(int index)

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The propertyPaths at the given index.

getPropertyPathsBytes(int index)

public ByteString getPropertyPathsBytes(int index)

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the propertyPaths at the given index.

getPropertyPathsCount()

public int getPropertyPathsCount()

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Returns
Type Description
int

The count of propertyPaths.

getPropertyPathsList()

public ProtocolStringList getPropertyPathsList()

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Returns
Type Description
ProtocolStringList

A list containing the propertyPaths.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PropertyMask other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PropertyMask.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PropertyMask.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PropertyMask.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PropertyMask.Builder
Overrides

setPropertyPaths(int index, String value)

public PropertyMask.Builder setPropertyPaths(int index, String value)

The list of property paths in the mask. This is not populated for delete events.

repeated string property_paths = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The propertyPaths to set.

Returns
Type Description
PropertyMask.Builder

This builder for chaining.

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

public PropertyMask.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PropertyMask.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PropertyMask.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PropertyMask.Builder
Overrides