Class Divider.Builder (2.40.0)

public static final class Divider.Builder extends GeneratedMessageV3.Builder<Divider.Builder> implements DividerOrBuilder

Displays a divider between widgets as a horizontal line. For an example in Google Chat apps, see Add a horizontal divider between widgets.

Google Workspace Add-ons and Chat apps:

For example, the following JSON creates a divider:

<code><code> "divider": {} </code></code>

Protobuf type google.apps.card.v1.Divider

Implements

DividerOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Divider.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Divider.Builder
Overrides

build()

public Divider build()
Returns
Type Description
Divider

buildPartial()

public Divider buildPartial()
Returns
Type Description
Divider

clear()

public Divider.Builder clear()
Returns
Type Description
Divider.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Divider.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Divider.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Divider.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Divider.Builder
Overrides

clone()

public Divider.Builder clone()
Returns
Type Description
Divider.Builder
Overrides

getDefaultInstanceForType()

public Divider getDefaultInstanceForType()
Returns
Type Description
Divider

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Divider other)

public Divider.Builder mergeFrom(Divider other)
Parameter
Name Description
other Divider
Returns
Type Description
Divider.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Divider.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Divider.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Divider.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Divider.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Divider.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Divider.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Divider.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Divider.Builder
Overrides

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

public Divider.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Divider.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Divider.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Divider.Builder
Overrides