Class Topic (1.147.0)

publicfinalclassTopicextendsGeneratedMessageimplementsTopicOrBuilder

A topic resource.

Protobuf typegoogle.pubsub.v1.Topic

Implements

TopicOrBuilder

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

INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER

publicstaticfinalintINGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

KMS_KEY_NAME_FIELD_NUMBER

publicstaticfinalintKMS_KEY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

publicstaticfinalintLABELS_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_RETENTION_DURATION_FIELD_NUMBER

publicstaticfinalintMESSAGE_RETENTION_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_STORAGE_POLICY_FIELD_NUMBER

publicstaticfinalintMESSAGE_STORAGE_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_TRANSFORMS_FIELD_NUMBER

publicstaticfinalintMESSAGE_TRANSFORMS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
TypeDescription
int

SATISFIES_PZS_FIELD_NUMBER

publicstaticfinalintSATISFIES_PZS_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEMA_SETTINGS_FIELD_NUMBER

publicstaticfinalintSCHEMA_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
TypeDescription
int

TAGS_FIELD_NUMBER

publicstaticfinalintTAGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticTopicgetDefaultInstance()
Returns
TypeDescription
Topic

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticTopic.BuildernewBuilder()
Returns
TypeDescription
Topic.Builder

newBuilder(Topic prototype)

publicstaticTopic.BuildernewBuilder(Topicprototype)
Parameter
NameDescription
prototypeTopic
Returns
TypeDescription
Topic.Builder

parseDelimitedFrom(InputStream input)

publicstaticTopicparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Topic
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTopicparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticTopicparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Topic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTopicparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTopicparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Topic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTopicparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTopicparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Topic
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTopicparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticTopicparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Topic
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTopicparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticTopicparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Topic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTopicparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<Topic>parser()
Returns
TypeDescription
Parser<Topic>

Methods

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Optional. SeeCreating and managing labels.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsTags(String key)

publicbooleancontainsTags(Stringkey)

Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" Seehttps://docs.cloud.google.com/pubsub/docs/tags for more information on using tags with Pub/Sub resources.

map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

publicTopicgetDefaultInstanceForType()
Returns
TypeDescription
Topic

getIngestionDataSourceSettings()

publicIngestionDataSourceSettingsgetIngestionDataSourceSettings()

Optional. Settings for ingestion from a data source into this topic.

.google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
IngestionDataSourceSettings

The ingestionDataSourceSettings.

getIngestionDataSourceSettingsOrBuilder()

publicIngestionDataSourceSettingsOrBuildergetIngestionDataSourceSettingsOrBuilder()

Optional. Settings for ingestion from a data source into this topic.

.google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
IngestionDataSourceSettingsOrBuilder

getKmsKeyName()

publicStringgetKmsKeyName()

Optional. The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.

The expected format isprojects/*/locations/*/keyRings/*/cryptoKeys/*.

string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

publicByteStringgetKmsKeyNameBytes()

Optional. The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.

The expected format isprojects/*/locations/*/keyRings/*/cryptoKeys/*.

string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

getLabels() (deprecated)

publicMap<String,String>getLabels()

Use#getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

Optional. SeeCreating and managing labels.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

Optional. SeeCreating and managing labels.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Optional. SeeCreating and managing labels.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

Optional. SeeCreating and managing labels.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMessageRetentionDuration()

publicDurationgetMessageRetentionDuration()

Optional. Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the lastmessage_retention_duration are always available to subscribers. For instance, it allows any attached subscription toseek to a timestamp that is up tomessage_retention_duration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.

.google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The messageRetentionDuration.

getMessageRetentionDurationOrBuilder()

publicDurationOrBuildergetMessageRetentionDurationOrBuilder()

Optional. Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the lastmessage_retention_duration are always available to subscribers. For instance, it allows any attached subscription toseek to a timestamp that is up tomessage_retention_duration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.

.google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

getMessageStoragePolicy()

publicMessageStoragePolicygetMessageStoragePolicy()

Optional. Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.

.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MessageStoragePolicy

The messageStoragePolicy.

getMessageStoragePolicyOrBuilder()

publicMessageStoragePolicyOrBuildergetMessageStoragePolicyOrBuilder()

Optional. Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.

.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MessageStoragePolicyOrBuilder

getMessageTransforms(int index)

publicMessageTransformgetMessageTransforms(intindex)

Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.

repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
MessageTransform

getMessageTransformsCount()

publicintgetMessageTransformsCount()

Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.

repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getMessageTransformsList()

publicList<MessageTransform>getMessageTransformsList()

Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.

repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<MessageTransform>

getMessageTransformsOrBuilder(int index)

publicMessageTransformOrBuildergetMessageTransformsOrBuilder(intindex)

Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.

repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
MessageTransformOrBuilder

getMessageTransformsOrBuilderList()

publicList<?extendsMessageTransformOrBuilder>getMessageTransformsOrBuilderList()

Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.

repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.pubsub.v1.MessageTransformOrBuilder>

getName()

publicStringgetName()

Required. Identifier. The name of the topic. It must have the format"projects/{project}/topics/{topic}".{topic} must start with a letter, and contain only letters ([A-Za-z]), numbers ([0-9]), dashes (-), underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It must be between 3 and 255 characters in length, and it must not start with"goog".

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Required. Identifier. The name of the topic. It must have the format"projects/{project}/topics/{topic}".{topic} must start with a letter, and contain only letters ([A-Za-z]), numbers ([0-9]), dashes (-), underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It must be between 3 and 255 characters in length, and it must not start with"goog".

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

publicParser<Topic>getParserForType()
Returns
TypeDescription
Parser<Topic>
Overrides

getSatisfiesPzs()

publicbooleangetSatisfiesPzs()

Optional. Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.

bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The satisfiesPzs.

getSchemaSettings()

publicSchemaSettingsgetSchemaSettings()

Optional. Settings for validating messages published against a schema.

.google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SchemaSettings

The schemaSettings.

getSchemaSettingsOrBuilder()

publicSchemaSettingsOrBuildergetSchemaSettingsOrBuilder()

Optional. Settings for validating messages published against a schema.

.google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SchemaSettingsOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

publicTopic.StategetState()

Output only. An output-only field indicating the state of the topic.

.google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Topic.State

The state.

getStateValue()

publicintgetStateValue()

Output only. An output-only field indicating the state of the topic.

.google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTags() (deprecated)

publicMap<String,String>getTags()

Use#getTagsMap() instead.

Returns
TypeDescription
Map<String,String>

getTagsCount()

publicintgetTagsCount()

Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" Seehttps://docs.cloud.google.com/pubsub/docs/tags for more information on using tags with Pub/Sub resources.

map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getTagsMap()

publicMap<String,String>getTagsMap()

Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" Seehttps://docs.cloud.google.com/pubsub/docs/tags for more information on using tags with Pub/Sub resources.

map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getTagsOrDefault(String key, String defaultValue)

publicStringgetTagsOrDefault(Stringkey,StringdefaultValue)

Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" Seehttps://docs.cloud.google.com/pubsub/docs/tags for more information on using tags with Pub/Sub resources.

map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getTagsOrThrow(String key)

publicStringgetTagsOrThrow(Stringkey)

Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" Seehttps://docs.cloud.google.com/pubsub/docs/tags for more information on using tags with Pub/Sub resources.

map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

hasIngestionDataSourceSettings()

publicbooleanhasIngestionDataSourceSettings()

Optional. Settings for ingestion from a data source into this topic.

.google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the ingestionDataSourceSettings field is set.

hasMessageRetentionDuration()

publicbooleanhasMessageRetentionDuration()

Optional. Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the lastmessage_retention_duration are always available to subscribers. For instance, it allows any attached subscription toseek to a timestamp that is up tomessage_retention_duration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.

.google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the messageRetentionDuration field is set.

hasMessageStoragePolicy()

publicbooleanhasMessageStoragePolicy()

Optional. Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.

.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the messageStoragePolicy field is set.

hasSchemaSettings()

publicbooleanhasSchemaSettings()

Optional. Settings for validating messages published against a schema.

.google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the schemaSettings field is set.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicTopic.BuildernewBuilderForType()
Returns
TypeDescription
Topic.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protectedTopic.BuildernewBuilderForType(AbstractMessage.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Topic.Builder
Overrides

toBuilder()

publicTopic.BuildertoBuilder()
Returns
TypeDescription
Topic.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-01 UTC.