Class PartitionSpec.Builder (3.4.0)

public static final class PartitionSpec.Builder extends GeneratedMessageV3.Builder<PartitionSpec.Builder> implements PartitionSpecOrBuilder

Specifications of BigQuery partitioned table as export destination.

Protobuf type google.cloud.asset.v1.PartitionSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PartitionSpec build()
Returns
TypeDescription
PartitionSpec

buildPartial()

public PartitionSpec buildPartial()
Returns
TypeDescription
PartitionSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionKey()

public PartitionSpec.Builder clearPartitionKey()

The partition key for BigQuery partitioned table.

.google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1;

Returns
TypeDescription
PartitionSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PartitionSpec getDefaultInstanceForType()
Returns
TypeDescription
PartitionSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPartitionKey()

public PartitionSpec.PartitionKey getPartitionKey()

The partition key for BigQuery partitioned table.

.google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1;

Returns
TypeDescription
PartitionSpec.PartitionKey

The partitionKey.

getPartitionKeyValue()

public int getPartitionKeyValue()

The partition key for BigQuery partitioned table.

.google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for partitionKey.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PartitionSpec other)

public PartitionSpec.Builder mergeFrom(PartitionSpec other)
Parameter
NameDescription
otherPartitionSpec
Returns
TypeDescription
PartitionSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPartitionKey(PartitionSpec.PartitionKey value)

public PartitionSpec.Builder setPartitionKey(PartitionSpec.PartitionKey value)

The partition key for BigQuery partitioned table.

.google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1;

Parameter
NameDescription
valuePartitionSpec.PartitionKey

The partitionKey to set.

Returns
TypeDescription
PartitionSpec.Builder

This builder for chaining.

setPartitionKeyValue(int value)

public PartitionSpec.Builder setPartitionKeyValue(int value)

The partition key for BigQuery partitioned table.

.google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for partitionKey to set.

Returns
TypeDescription
PartitionSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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