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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Divider.BuilderImplements
DividerOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public Divider.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Divider.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Divider.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Divider.Builder |
clone()
public Divider.Builder clone()
Returns | |
---|---|
Type | Description |
Divider.Builder |
getDefaultInstanceForType()
public Divider getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Divider |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Divider.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Divider.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Divider.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Divider.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Divider.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Divider.Builder |