Class Divider.Builder (2.37.1)

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 Divider.

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Divider build()
Returns
TypeDescription
Divider

buildPartial()

public Divider buildPartial()
Returns
TypeDescription
Divider

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Divider getDefaultInstanceForType()
Returns
TypeDescription
Divider

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Divider other)

public Divider.Builder mergeFrom(Divider other)
Parameter
NameDescription
otherDivider
Returns
TypeDescription
Divider.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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