public static final class ConsumerPartitionMetadata.Builder extends GeneratedMessageV3.Builder<ConsumerPartitionMetadata.Builder> implements ConsumerPartitionMetadataOrBuilder
Metadata for a consumer group corresponding to a specific partition.
Protobuf type google.cloud.managedkafka.v1.ConsumerPartitionMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public ConsumerPartitionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ConsumerPartitionMetadata build()
public ConsumerPartitionMetadata buildPartial()
public ConsumerPartitionMetadata.Builder clear()
Overrides
public ConsumerPartitionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ConsumerPartitionMetadata.Builder clearMetadata()
Optional. The associated metadata for this partition, or empty if it does
not exist.
string metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
public ConsumerPartitionMetadata.Builder clearOffset()
Required. The offset for this partition, or 0 if no offset has been
committed.
int64 offset = 1 [(.google.api.field_behavior) = REQUIRED];
public ConsumerPartitionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ConsumerPartitionMetadata.Builder clone()
Overrides
public ConsumerPartitionMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getMetadata()
Optional. The associated metadata for this partition, or empty if it does
not exist.
string metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The metadata.
|
public ByteString getMetadataBytes()
Optional. The associated metadata for this partition, or empty if it does
not exist.
string metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for metadata.
|
Required. The offset for this partition, or 0 if no offset has been
committed.
int64 offset = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
long |
The offset.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ConsumerPartitionMetadata.Builder mergeFrom(ConsumerPartitionMetadata other)
public ConsumerPartitionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ConsumerPartitionMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final ConsumerPartitionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ConsumerPartitionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ConsumerPartitionMetadata.Builder setMetadata(String value)
Optional. The associated metadata for this partition, or empty if it does
not exist.
string metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The metadata to set.
|
public ConsumerPartitionMetadata.Builder setMetadataBytes(ByteString value)
Optional. The associated metadata for this partition, or empty if it does
not exist.
string metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for metadata to set.
|
public ConsumerPartitionMetadata.Builder setOffset(long value)
Required. The offset for this partition, or 0 if no offset has been
committed.
int64 offset = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
long
The offset to set.
|
public ConsumerPartitionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ConsumerPartitionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides