public final class Page extends GeneratedMessageV3 implements PageOrBuilder
Represents a documentation page. A page can contain subpages to represent nested documentation set structure.
Protobuf type google.api.Page
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PageImplements
PageOrBuilderStatic Fields
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
SUBPAGES_FIELD_NUMBER
public static final int SUBPAGES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Page getDefaultInstance()
Type | Description |
Page |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Page.Builder newBuilder()
Type | Description |
Page.Builder |
newBuilder(Page prototype)
public static Page.Builder newBuilder(Page prototype)
Name | Description |
prototype | Page |
Type | Description |
Page.Builder |
parseDelimitedFrom(InputStream input)
public static Page parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Page |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Page |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Page parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Page |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Page |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Page parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Page |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Page |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Page parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Page |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Page |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Page parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Page |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Page |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Page parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Page |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Page parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Page |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Page> parser()
Type | Description |
Parser<Page> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getContent()
public String getContent()
The Markdown content of the page. You can use <code>(== include {path} ==)</code> to include content from a Markdown file. The content can be used to produce the documentation page such as HTML format page.
string content = 2;
Type | Description |
String | The content. |
getContentBytes()
public ByteString getContentBytes()
The Markdown content of the page. You can use <code>(== include {path} ==)</code> to include content from a Markdown file. The content can be used to produce the documentation page such as HTML format page.
string content = 2;
Type | Description |
ByteString | The bytes for content. |
getDefaultInstanceForType()
public Page getDefaultInstanceForType()
Type | Description |
Page |
getName()
public String getName()
The name of the page. It will be used as an identity of the page to
generate URI of the page, text of the link to this page in navigation,
etc. The full page name (start from the root page name to this page
concatenated with .
) can be used as reference to the page in your
documentation. For example:
<pre><code>pages:
- name: Tutorial
content: (== include tutorial.md ==)
subpages:
- name: Java
content: (== include tutorial_java.md ==)
</code></pre>
You can reference
Java
page using Markdown reference link syntax:Java
.
- name: Java
content: (== include tutorial_java.md ==)
</code></pre>
You can reference
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the page. It will be used as an identity of the page to
generate URI of the page, text of the link to this page in navigation,
etc. The full page name (start from the root page name to this page
concatenated with .
) can be used as reference to the page in your
documentation. For example:
<pre><code>pages:
- name: Tutorial
content: (== include tutorial.md ==)
subpages:
- name: Java
content: (== include tutorial_java.md ==)
</code></pre>
You can reference
Java
page using Markdown reference link syntax:Java
.
- name: Java
content: (== include tutorial_java.md ==)
</code></pre>
You can reference
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<Page> getParserForType()
Type | Description |
Parser<Page> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getSubpages(int index)
public Page getSubpages(int index)
Subpages of this page. The order of subpages specified here will be honored in the generated docset.
repeated .google.api.Page subpages = 3;
Name | Description |
index | int |
Type | Description |
Page |
getSubpagesCount()
public int getSubpagesCount()
Subpages of this page. The order of subpages specified here will be honored in the generated docset.
repeated .google.api.Page subpages = 3;
Type | Description |
int |
getSubpagesList()
public List<Page> getSubpagesList()
Subpages of this page. The order of subpages specified here will be honored in the generated docset.
repeated .google.api.Page subpages = 3;
Type | Description |
List<Page> |
getSubpagesOrBuilder(int index)
public PageOrBuilder getSubpagesOrBuilder(int index)
Subpages of this page. The order of subpages specified here will be honored in the generated docset.
repeated .google.api.Page subpages = 3;
Name | Description |
index | int |
Type | Description |
PageOrBuilder |
getSubpagesOrBuilderList()
public List<? extends PageOrBuilder> getSubpagesOrBuilderList()
Subpages of this page. The order of subpages specified here will be honored in the generated docset.
repeated .google.api.Page subpages = 3;
Type | Description |
List<? extends com.google.api.PageOrBuilder> |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Page.Builder newBuilderForType()
Type | Description |
Page.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Page.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Page.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Page.Builder toBuilder()
Type | Description |
Page.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |