Class PublisherModel.Documentation.Builder (3.44.0)

public static final class PublisherModel.Documentation.Builder extends GeneratedMessageV3.Builder<PublisherModel.Documentation.Builder> implements PublisherModel.DocumentationOrBuilder

A named piece of documentation.

Protobuf type google.cloud.aiplatform.v1beta1.PublisherModel.Documentation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.Documentation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

build()

public PublisherModel.Documentation build()
Returns
Type Description
PublisherModel.Documentation

buildPartial()

public PublisherModel.Documentation buildPartial()
Returns
Type Description
PublisherModel.Documentation

clear()

public PublisherModel.Documentation.Builder clear()
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

clearContent()

public PublisherModel.Documentation.Builder clearContent()

Required. Content of this piece of document (in Markdown format).

string content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PublisherModel.Documentation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PublisherModel.Documentation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PublisherModel.Documentation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

clearTitle()

public PublisherModel.Documentation.Builder clearTitle()

Required. E.g., OVERVIEW, USE CASES, DOCUMENTATION, SDK & SAMPLES, JAVA, NODE.JS, etc..

string title = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PublisherModel.Documentation.Builder

This builder for chaining.

clone()

public PublisherModel.Documentation.Builder clone()
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

getContent()

public String getContent()

Required. Content of this piece of document (in Markdown format).

string content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

Required. Content of this piece of document (in Markdown format).

string content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public PublisherModel.Documentation getDefaultInstanceForType()
Returns
Type Description
PublisherModel.Documentation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTitle()

public String getTitle()

Required. E.g., OVERVIEW, USE CASES, DOCUMENTATION, SDK & SAMPLES, JAVA, NODE.JS, etc..

string title = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. E.g., OVERVIEW, USE CASES, DOCUMENTATION, SDK & SAMPLES, JAVA, NODE.JS, etc..

string title = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PublisherModel.Documentation other)

public PublisherModel.Documentation.Builder mergeFrom(PublisherModel.Documentation other)
Parameter
Name Description
other PublisherModel.Documentation
Returns
Type Description
PublisherModel.Documentation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublisherModel.Documentation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PublisherModel.Documentation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.Documentation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

setContent(String value)

public PublisherModel.Documentation.Builder setContent(String value)

Required. Content of this piece of document (in Markdown format).

string content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The content to set.

Returns
Type Description
PublisherModel.Documentation.Builder

This builder for chaining.

setContentBytes(ByteString value)

public PublisherModel.Documentation.Builder setContentBytes(ByteString value)

Required. Content of this piece of document (in Markdown format).

string content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
PublisherModel.Documentation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.Documentation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PublisherModel.Documentation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides

setTitle(String value)

public PublisherModel.Documentation.Builder setTitle(String value)

Required. E.g., OVERVIEW, USE CASES, DOCUMENTATION, SDK & SAMPLES, JAVA, NODE.JS, etc..

string title = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
PublisherModel.Documentation.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public PublisherModel.Documentation.Builder setTitleBytes(ByteString value)

Required. E.g., OVERVIEW, USE CASES, DOCUMENTATION, SDK & SAMPLES, JAVA, NODE.JS, etc..

string title = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
PublisherModel.Documentation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.Documentation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublisherModel.Documentation.Builder
Overrides