Class GcRule.Builder (2.17.1)

public static final class GcRule.Builder extends GeneratedMessageV3.Builder<GcRule.Builder> implements GcRuleOrBuilder

Rule for determining which cells to delete during garbage collection.

Protobuf type google.bigtable.admin.v2.GcRule

Implements

GcRuleOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GcRule build()
Returns
TypeDescription
GcRule

buildPartial()

public GcRule buildPartial()
Returns
TypeDescription
GcRule

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIntersection()

public GcRule.Builder clearIntersection()

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Returns
TypeDescription
GcRule.Builder

clearMaxAge()

public GcRule.Builder clearMaxAge()

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Returns
TypeDescription
GcRule.Builder

clearMaxNumVersions()

public GcRule.Builder clearMaxNumVersions()

Delete all cells in a column except the most recent N.

int32 max_num_versions = 1;

Returns
TypeDescription
GcRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRule()

public GcRule.Builder clearRule()
Returns
TypeDescription
GcRule.Builder

clearUnion()

public GcRule.Builder clearUnion()

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Returns
TypeDescription
GcRule.Builder

clone()

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

getDefaultInstanceForType()

public GcRule getDefaultInstanceForType()
Returns
TypeDescription
GcRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntersection()

public GcRule.Intersection getIntersection()

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Returns
TypeDescription
GcRule.Intersection

The intersection.

getIntersectionBuilder()

public GcRule.Intersection.Builder getIntersectionBuilder()

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Returns
TypeDescription
GcRule.Intersection.Builder

getIntersectionOrBuilder()

public GcRule.IntersectionOrBuilder getIntersectionOrBuilder()

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Returns
TypeDescription
GcRule.IntersectionOrBuilder

getMaxAge()

public Duration getMaxAge()

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Returns
TypeDescription
Duration

The maxAge.

getMaxAgeBuilder()

public Duration.Builder getMaxAgeBuilder()

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Returns
TypeDescription
Builder

getMaxAgeOrBuilder()

public DurationOrBuilder getMaxAgeOrBuilder()

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Returns
TypeDescription
DurationOrBuilder

getMaxNumVersions()

public int getMaxNumVersions()

Delete all cells in a column except the most recent N.

int32 max_num_versions = 1;

Returns
TypeDescription
int

The maxNumVersions.

getRuleCase()

public GcRule.RuleCase getRuleCase()
Returns
TypeDescription
GcRule.RuleCase

getUnion()

public GcRule.Union getUnion()

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Returns
TypeDescription
GcRule.Union

The union.

getUnionBuilder()

public GcRule.Union.Builder getUnionBuilder()

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Returns
TypeDescription
GcRule.Union.Builder

getUnionOrBuilder()

public GcRule.UnionOrBuilder getUnionOrBuilder()

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Returns
TypeDescription
GcRule.UnionOrBuilder

hasIntersection()

public boolean hasIntersection()

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Returns
TypeDescription
boolean

Whether the intersection field is set.

hasMaxAge()

public boolean hasMaxAge()

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Returns
TypeDescription
boolean

Whether the maxAge field is set.

hasMaxNumVersions()

public boolean hasMaxNumVersions()

Delete all cells in a column except the most recent N.

int32 max_num_versions = 1;

Returns
TypeDescription
boolean

Whether the maxNumVersions field is set.

hasUnion()

public boolean hasUnion()

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Returns
TypeDescription
boolean

Whether the union field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GcRule other)

public GcRule.Builder mergeFrom(GcRule other)
Parameter
NameDescription
otherGcRule
Returns
TypeDescription
GcRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIntersection(GcRule.Intersection value)

public GcRule.Builder mergeIntersection(GcRule.Intersection value)

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Parameter
NameDescription
valueGcRule.Intersection
Returns
TypeDescription
GcRule.Builder

mergeMaxAge(Duration value)

public GcRule.Builder mergeMaxAge(Duration value)

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
GcRule.Builder

mergeUnion(GcRule.Union value)

public GcRule.Builder mergeUnion(GcRule.Union value)

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Parameter
NameDescription
valueGcRule.Union
Returns
TypeDescription
GcRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntersection(GcRule.Intersection value)

public GcRule.Builder setIntersection(GcRule.Intersection value)

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Parameter
NameDescription
valueGcRule.Intersection
Returns
TypeDescription
GcRule.Builder

setIntersection(GcRule.Intersection.Builder builderForValue)

public GcRule.Builder setIntersection(GcRule.Intersection.Builder builderForValue)

Delete cells that would be deleted by every nested rule.

.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;

Parameter
NameDescription
builderForValueGcRule.Intersection.Builder
Returns
TypeDescription
GcRule.Builder

setMaxAge(Duration value)

public GcRule.Builder setMaxAge(Duration value)

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
GcRule.Builder

setMaxAge(Duration.Builder builderForValue)

public GcRule.Builder setMaxAge(Duration.Builder builderForValue)

Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.

.google.protobuf.Duration max_age = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
GcRule.Builder

setMaxNumVersions(int value)

public GcRule.Builder setMaxNumVersions(int value)

Delete all cells in a column except the most recent N.

int32 max_num_versions = 1;

Parameter
NameDescription
valueint

The maxNumVersions to set.

Returns
TypeDescription
GcRule.Builder

This builder for chaining.

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

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

setUnion(GcRule.Union value)

public GcRule.Builder setUnion(GcRule.Union value)

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Parameter
NameDescription
valueGcRule.Union
Returns
TypeDescription
GcRule.Builder

setUnion(GcRule.Union.Builder builderForValue)

public GcRule.Builder setUnion(GcRule.Union.Builder builderForValue)

Delete cells that would be deleted by any nested rule.

.google.bigtable.admin.v2.GcRule.Union union = 4;

Parameter
NameDescription
builderForValueGcRule.Union.Builder
Returns
TypeDescription
GcRule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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