public static final class AlertPolicy.Documentation.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder> implements AlertPolicy.DocumentationOrBuilder
A content string and a MIME type that describes the content string's
format.
Protobuf type google.monitoring.v3.AlertPolicy.Documentation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Documentation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AlertPolicy.Documentation build()
buildPartial()
public AlertPolicy.Documentation buildPartial()
clear()
public AlertPolicy.Documentation.Builder clear()
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.Documentation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.Documentation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AlertPolicy.Documentation.Builder clone()
Overrides
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;
Returns |
---|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for content.
|
getDefaultInstanceForType()
public AlertPolicy.Documentation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
Returns |
---|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for mimeType.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AlertPolicy.Documentation other)
public AlertPolicy.Documentation.Builder mergeFrom(AlertPolicy.Documentation other)
public AlertPolicy.Documentation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AlertPolicy.Documentation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Documentation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
Parameter |
---|
Name | Description |
value | String
The content to set.
|
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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for content to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Documentation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
Parameter |
---|
Name | Description |
value | String
The mimeType to set.
|
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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for mimeType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.Documentation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Documentation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides