Class SectionHeader (2.46.0)

public final class SectionHeader extends GeneratedMessageV3 implements SectionHeaderOrBuilder

A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content.

Protobuf type google.monitoring.dashboard.v1.SectionHeader

Static Fields

DIVIDER_BELOW_FIELD_NUMBER

public static final int DIVIDER_BELOW_FIELD_NUMBER
Field Value
Type Description
int

SUBTITLE_FIELD_NUMBER

public static final int SUBTITLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SectionHeader getDefaultInstance()
Returns
Type Description
SectionHeader

getDescriptor()

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

newBuilder()

public static SectionHeader.Builder newBuilder()
Returns
Type Description
SectionHeader.Builder

newBuilder(SectionHeader prototype)

public static SectionHeader.Builder newBuilder(SectionHeader prototype)
Parameter
Name Description
prototype SectionHeader
Returns
Type Description
SectionHeader.Builder

parseDelimitedFrom(InputStream input)

public static SectionHeader parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SectionHeader
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SectionHeader parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SectionHeader
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SectionHeader parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SectionHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SectionHeader parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SectionHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SectionHeader parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SectionHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SectionHeader parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SectionHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SectionHeader parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SectionHeader
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SectionHeader parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SectionHeader
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SectionHeader parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SectionHeader
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SectionHeader parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SectionHeader
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SectionHeader parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SectionHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SectionHeader parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SectionHeader
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SectionHeader> parser()
Returns
Type Description
Parser<SectionHeader>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SectionHeader getDefaultInstanceForType()
Returns
Type Description
SectionHeader

getDividerBelow()

public boolean getDividerBelow()

Whether to insert a divider below the section in the table of contents

bool divider_below = 2;

Returns
Type Description
boolean

The dividerBelow.

getParserForType()

public Parser<SectionHeader> getParserForType()
Returns
Type Description
Parser<SectionHeader>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubtitle()

public String getSubtitle()

The subtitle of the section

string subtitle = 1;

Returns
Type Description
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

The subtitle of the section

string subtitle = 1;

Returns
Type Description
ByteString

The bytes for subtitle.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SectionHeader.Builder newBuilderForType()
Returns
Type Description
SectionHeader.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SectionHeader.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SectionHeader.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SectionHeader.Builder toBuilder()
Returns
Type Description
SectionHeader.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException