Class Divider (0.1.0)

public final class Divider extends GeneratedMessageV3 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

getDefaultInstance()

public static Divider getDefaultInstance()
Returns
TypeDescription
Divider

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Divider.Builder newBuilder()
Returns
TypeDescription
Divider.Builder

newBuilder(Divider prototype)

public static Divider.Builder newBuilder(Divider prototype)
Parameter
NameDescription
prototypeDivider
Returns
TypeDescription
Divider.Builder

parseDelimitedFrom(InputStream input)

public static Divider parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Divider
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Divider parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Divider
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Divider parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Divider
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Divider parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Divider
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Divider parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Divider
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Divider parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Divider
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Divider parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Divider
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Divider parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Divider
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Divider parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Divider
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Divider parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Divider
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Divider parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Divider
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Divider parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Divider
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Divider> parser()
Returns
TypeDescription
Parser<Divider>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Divider getDefaultInstanceForType()
Returns
TypeDescription
Divider

getParserForType()

public Parser<Divider> getParserForType()
Returns
TypeDescription
Parser<Divider>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Divider.Builder newBuilderForType()
Returns
TypeDescription
Divider.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Divider.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Divider.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Divider.Builder toBuilder()
Returns
TypeDescription
Divider.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException