Class GcRule (2.17.1)

public final class GcRule extends GeneratedMessageV3 implements GcRuleOrBuilder

Rule for determining which cells to delete during garbage collection.

Protobuf type google.bigtable.admin.v2.GcRule

Implements

GcRuleOrBuilder

Static Fields

INTERSECTION_FIELD_NUMBER

public static final int INTERSECTION_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_AGE_FIELD_NUMBER

public static final int MAX_AGE_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_NUM_VERSIONS_FIELD_NUMBER

public static final int MAX_NUM_VERSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

UNION_FIELD_NUMBER

public static final int UNION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GcRule getDefaultInstance()
Returns
TypeDescription
GcRule

getDescriptor()

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

newBuilder()

public static GcRule.Builder newBuilder()
Returns
TypeDescription
GcRule.Builder

newBuilder(GcRule prototype)

public static GcRule.Builder newBuilder(GcRule prototype)
Parameter
NameDescription
prototypeGcRule
Returns
TypeDescription
GcRule.Builder

parseDelimitedFrom(InputStream input)

public static GcRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GcRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GcRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GcRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GcRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GcRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GcRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GcRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GcRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GcRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GcRule> parser()
Returns
TypeDescription
Parser<GcRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GcRule getDefaultInstanceForType()
Returns
TypeDescription
GcRule

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.

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.

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.

getParserForType()

public Parser<GcRule> getParserForType()
Returns
TypeDescription
Parser<GcRule>
Overrides

getRuleCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GcRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GcRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException