public static final class BigtableConfig.ColumnFamilyMapping extends GeneratedMessage implements BigtableConfig.ColumnFamilyMappingOrBuilder
Configuration for writing a Pub/Sub message to a Bigtable row with a
user-defined key and writing to column families.
If this field is set:
- The subscription messages must be formatted as JSON.
- The row key mapping is configured in the
key_definition section.
- The top-level fields will be written either:
- By default, they will be written to the
data column family with the
field name as the column qualifier.
- But if the field name matches an existing column family (except for
the default
data column), then that field will be written to that
column family, either as a scalar or its next level nested fields if
it's a JSON object.
The cell timestamp will be the message publish timestamp.
If the field is not set, the default behavior is to write:
row key: subscription name, message ID hash, and message ID delimited by
#.
- columns: message bytes written to a single column family
data with an
empty-string column qualifier.
- cell timestamp: the message publish timestamp.
Protobuf type google.pubsub.v1.BigtableConfig.ColumnFamilyMapping
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DELIMITED_KEY_FIELD_NUMBER
public static final int DELIMITED_KEY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ROW_KEY_SCHEMA_FIELD_NUMBER
public static final int ROW_KEY_SCHEMA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static BigtableConfig.ColumnFamilyMapping getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BigtableConfig.ColumnFamilyMapping.Builder newBuilder()
newBuilder(BigtableConfig.ColumnFamilyMapping prototype)
public static BigtableConfig.ColumnFamilyMapping.Builder newBuilder(BigtableConfig.ColumnFamilyMapping prototype)
public static BigtableConfig.ColumnFamilyMapping parseDelimitedFrom(InputStream input)
public static BigtableConfig.ColumnFamilyMapping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BigtableConfig.ColumnFamilyMapping parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BigtableConfig.ColumnFamilyMapping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BigtableConfig.ColumnFamilyMapping parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BigtableConfig.ColumnFamilyMapping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BigtableConfig.ColumnFamilyMapping parseFrom(CodedInputStream input)
public static BigtableConfig.ColumnFamilyMapping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BigtableConfig.ColumnFamilyMapping parseFrom(InputStream input)
public static BigtableConfig.ColumnFamilyMapping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BigtableConfig.ColumnFamilyMapping parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BigtableConfig.ColumnFamilyMapping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BigtableConfig.ColumnFamilyMapping> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public BigtableConfig.ColumnFamilyMapping getDefaultInstanceForType()
getDelimitedKey()
public BigtableConfig.ColumnFamilyMapping.DelimitedKey getDelimitedKey()
Optional. If set, the row key is constructed from the given key fields
and delimiter. All key fields must be present in the message;
otherwise, the message remains in the subscription backlog.
.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL];
getDelimitedKeyOrBuilder()
public BigtableConfig.ColumnFamilyMapping.DelimitedKeyOrBuilder getDelimitedKeyOrBuilder()
Optional. If set, the row key is constructed from the given key fields
and delimiter. All key fields must be present in the message;
otherwise, the message remains in the subscription backlog.
.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL];
getKeyDefinitionCase()
public BigtableConfig.ColumnFamilyMapping.KeyDefinitionCase getKeyDefinitionCase()
getParserForType()
public Parser<BigtableConfig.ColumnFamilyMapping> getParserForType()
Overrides
getRowKeySchema()
public BigtableConfig.ColumnFamilyMapping.RowKeySchema getRowKeySchema()
Optional. If set, the row key is constructed from the field names of
the table's structured row key
({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
Note that if the field is nullable in the structured row key, then it
need not be present in the message; null will be used instead.
.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL];
getRowKeySchemaOrBuilder()
public BigtableConfig.ColumnFamilyMapping.RowKeySchemaOrBuilder getRowKeySchemaOrBuilder()
Optional. If set, the row key is constructed from the field names of
the table's structured row key
({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
Note that if the field is nullable in the structured row key, then it
need not be present in the message; null will be used instead.
.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasDelimitedKey()
public boolean hasDelimitedKey()
Optional. If set, the row key is constructed from the given key fields
and delimiter. All key fields must be present in the message;
otherwise, the message remains in the subscription backlog.
.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.DelimitedKey delimited_key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the delimitedKey field is set.
|
hasRowKeySchema()
public boolean hasRowKeySchema()
Optional. If set, the row key is constructed from the field names of
the table's structured row key
({$universe.dns_names.final_documentation_domain}/bigtable/docs/manage-row-key-schemas).
Note that if the field is nullable in the structured row key, then it
need not be present in the message; null will be used instead.
.google.pubsub.v1.BigtableConfig.ColumnFamilyMapping.RowKeySchema row_key_schema = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the rowKeySchema field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BigtableConfig.ColumnFamilyMapping.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected BigtableConfig.ColumnFamilyMapping.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public BigtableConfig.ColumnFamilyMapping.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides