public static final class AlertPolicy.Documentation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder> implements AlertPolicy.DocumentationOrBuilder
Documentation that is included in the notifications and incidents pertaining to this policy.Protobuf type
google.monitoring.v3.AlertPolicy.DocumentationgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AlertPolicy.Documentation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AlertPolicy.Documentation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AlertPolicy.Documentation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder mergeFrom(AlertPolicy.Documentation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public AlertPolicy.Documentation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlertPolicy.Documentation.Builder>IOExceptionpublic String getContent()
The body 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](https://cloud.google.com/monitoring/alerts/doc-variables).
string content = 1;getContent in interface AlertPolicy.DocumentationOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
The body 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](https://cloud.google.com/monitoring/alerts/doc-variables).
string content = 1;getContentBytes in interface AlertPolicy.DocumentationOrBuilderpublic AlertPolicy.Documentation.Builder setContent(String value)
The body 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](https://cloud.google.com/monitoring/alerts/doc-variables).
string content = 1;value - The content to set.public AlertPolicy.Documentation.Builder clearContent()
The body 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](https://cloud.google.com/monitoring/alerts/doc-variables).
string content = 1;public AlertPolicy.Documentation.Builder setContentBytes(com.google.protobuf.ByteString value)
The body 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](https://cloud.google.com/monitoring/alerts/doc-variables).
string content = 1;value - The bytes for content to set.public String getMimeType()
The format of the `content` field. Presently, only the value `"text/markdown"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
string mime_type = 2;getMimeType in interface AlertPolicy.DocumentationOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
The format of the `content` field. Presently, only the value `"text/markdown"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
string mime_type = 2;getMimeTypeBytes in interface AlertPolicy.DocumentationOrBuilderpublic AlertPolicy.Documentation.Builder setMimeType(String value)
The format of the `content` field. Presently, only the value `"text/markdown"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
string mime_type = 2;value - The mimeType to set.public AlertPolicy.Documentation.Builder clearMimeType()
The format of the `content` field. Presently, only the value `"text/markdown"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
string mime_type = 2;public AlertPolicy.Documentation.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
The format of the `content` field. Presently, only the value `"text/markdown"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
string mime_type = 2;value - The bytes for mimeType to set.public String getSubject()
Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255). The contents of the subject line can be [templatized by using variables](https://cloud.google.com/monitoring/alerts/doc-variables). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];getSubject in interface AlertPolicy.DocumentationOrBuilderpublic com.google.protobuf.ByteString getSubjectBytes()
Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255). The contents of the subject line can be [templatized by using variables](https://cloud.google.com/monitoring/alerts/doc-variables). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];getSubjectBytes in interface AlertPolicy.DocumentationOrBuilderpublic AlertPolicy.Documentation.Builder setSubject(String value)
Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255). The contents of the subject line can be [templatized by using variables](https://cloud.google.com/monitoring/alerts/doc-variables). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];value - The subject to set.public AlertPolicy.Documentation.Builder clearSubject()
Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255). The contents of the subject line can be [templatized by using variables](https://cloud.google.com/monitoring/alerts/doc-variables). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];public AlertPolicy.Documentation.Builder setSubjectBytes(com.google.protobuf.ByteString value)
Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255). The contents of the subject line can be [templatized by using variables](https://cloud.google.com/monitoring/alerts/doc-variables). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for subject to set.public List<AlertPolicy.Documentation.Link> getLinksList()
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
getLinksList in interface AlertPolicy.DocumentationOrBuilderpublic int getLinksCount()
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
getLinksCount in interface AlertPolicy.DocumentationOrBuilderpublic AlertPolicy.Documentation.Link getLinks(int index)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
getLinks in interface AlertPolicy.DocumentationOrBuilderpublic AlertPolicy.Documentation.Builder setLinks(int index, AlertPolicy.Documentation.Link value)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder setLinks(int index, AlertPolicy.Documentation.Link.Builder builderForValue)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder addLinks(AlertPolicy.Documentation.Link value)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder addLinks(int index, AlertPolicy.Documentation.Link value)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder addLinks(AlertPolicy.Documentation.Link.Builder builderForValue)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder addLinks(int index, AlertPolicy.Documentation.Link.Builder builderForValue)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder addAllLinks(Iterable<? extends AlertPolicy.Documentation.Link> values)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder clearLinks()
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Builder removeLinks(int index)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Link.Builder getLinksBuilder(int index)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.LinkOrBuilder getLinksOrBuilder(int index)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
getLinksOrBuilder in interface AlertPolicy.DocumentationOrBuilderpublic List<? extends AlertPolicy.Documentation.LinkOrBuilder> getLinksOrBuilderList()
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
getLinksOrBuilderList in interface AlertPolicy.DocumentationOrBuilderpublic AlertPolicy.Documentation.Link.Builder addLinksBuilder()
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public AlertPolicy.Documentation.Link.Builder addLinksBuilder(int index)
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public List<AlertPolicy.Documentation.Link.Builder> getLinksBuilderList()
Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
public final AlertPolicy.Documentation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>public final AlertPolicy.Documentation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Documentation.Builder>Copyright © 2024 Google LLC. All rights reserved.