public static final class AlertPolicy.Documentation.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder> implements AlertPolicy.DocumentationOrBuilderA content string and a MIME type that describes the content string's format.
Protobuf type google.monitoring.v3.AlertPolicy.Documentation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlertPolicy.Documentation.BuilderImplements
AlertPolicy.DocumentationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Documentation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AlertPolicy.Documentation.Builder |
build()
public AlertPolicy.Documentation build()| Type | Description |
| AlertPolicy.Documentation |
buildPartial()
public AlertPolicy.Documentation buildPartial()| Type | Description |
| AlertPolicy.Documentation |
clear()
public AlertPolicy.Documentation.Builder clear()| Type | Description |
| AlertPolicy.Documentation.Builder |
clearContent()
public AlertPolicy.Documentation.Builder clearContent() The text of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
string content = 1;
| Type | Description |
| AlertPolicy.Documentation.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.Documentation.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| AlertPolicy.Documentation.Builder |
clearMimeType()
public AlertPolicy.Documentation.Builder clearMimeType() The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
string mime_type = 2;
| Type | Description |
| AlertPolicy.Documentation.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.Documentation.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| AlertPolicy.Documentation.Builder |
clone()
public AlertPolicy.Documentation.Builder clone()| Type | Description |
| AlertPolicy.Documentation.Builder |
getContent()
public String getContent() The text of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
string content = 1;
| Type | Description |
| String | The content. |
getContentBytes()
public ByteString getContentBytes() The text of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
string content = 1;
| Type | Description |
| ByteString | The bytes for content. |
getDefaultInstanceForType()
public AlertPolicy.Documentation getDefaultInstanceForType()| Type | Description |
| AlertPolicy.Documentation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getMimeType()
public String getMimeType() The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
string mime_type = 2;
| Type | Description |
| String | The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes() The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
string mime_type = 2;
| Type | Description |
| ByteString | The bytes for mimeType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(AlertPolicy.Documentation other)
public AlertPolicy.Documentation.Builder mergeFrom(AlertPolicy.Documentation other)| Name | Description |
| other | AlertPolicy.Documentation |
| Type | Description |
| AlertPolicy.Documentation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AlertPolicy.Documentation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| AlertPolicy.Documentation.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public AlertPolicy.Documentation.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| AlertPolicy.Documentation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Documentation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AlertPolicy.Documentation.Builder |
setContent(String value)
public AlertPolicy.Documentation.Builder setContent(String value) The text of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
string content = 1;
| Name | Description |
| value | StringThe content to set. |
| Type | Description |
| AlertPolicy.Documentation.Builder | This builder for chaining. |
setContentBytes(ByteString value)
public AlertPolicy.Documentation.Builder setContentBytes(ByteString value) The text of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
string content = 1;
| Name | Description |
| value | ByteStringThe bytes for content to set. |
| Type | Description |
| AlertPolicy.Documentation.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Documentation.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AlertPolicy.Documentation.Builder |
setMimeType(String value)
public AlertPolicy.Documentation.Builder setMimeType(String value) The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
string mime_type = 2;
| Name | Description |
| value | StringThe mimeType to set. |
| Type | Description |
| AlertPolicy.Documentation.Builder | This builder for chaining. |
setMimeTypeBytes(ByteString value)
public AlertPolicy.Documentation.Builder setMimeTypeBytes(ByteString value) The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
string mime_type = 2;
| Name | Description |
| value | ByteStringThe bytes for mimeType to set. |
| Type | Description |
| AlertPolicy.Documentation.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.Documentation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| AlertPolicy.Documentation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Documentation.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AlertPolicy.Documentation.Builder |