Class SectionHeader (2.37.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
TypeDescription
int

SUBTITLE_FIELD_NUMBER

public static final int SUBTITLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SectionHeader getDefaultInstance()
Returns
TypeDescription
SectionHeader

getDescriptor()

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

newBuilder()

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

newBuilder(SectionHeader prototype)

public static SectionHeader.Builder newBuilder(SectionHeader prototype)
Parameter
NameDescription
prototypeSectionHeader
Returns
TypeDescription
SectionHeader.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SectionHeader getDefaultInstanceForType()
Returns
TypeDescription
SectionHeader

getDividerBelow()

public boolean getDividerBelow()

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

bool divider_below = 2;

Returns
TypeDescription
boolean

The dividerBelow.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubtitle()

public String getSubtitle()

The subtitle of the section

string subtitle = 1;

Returns
TypeDescription
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

The subtitle of the section

string subtitle = 1;

Returns
TypeDescription
ByteString

The bytes for subtitle.

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 SectionHeader.Builder newBuilderForType()
Returns
TypeDescription
SectionHeader.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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