Package com.google.monitoring.v3
Class AlertPolicy.Documentation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Builder>
com.google.monitoring.v3.AlertPolicy.Documentation.Builder
- All Implemented Interfaces:
AlertPolicy.DocumentationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AlertPolicy.Documentation
public static final class AlertPolicy.Documentation.Builder
extends com.google.protobuf.GeneratedMessage.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.Documentation-
Method Summary
Modifier and TypeMethodDescriptionaddAllLinks(Iterable<? extends AlertPolicy.Documentation.Link> values) Optional.addLinks(int index, AlertPolicy.Documentation.Link value) Optional.addLinks(int index, AlertPolicy.Documentation.Link.Builder builderForValue) Optional.Optional.addLinks(AlertPolicy.Documentation.Link.Builder builderForValue) Optional.Optional.addLinksBuilder(int index) Optional.build()clear()The body of the documentation, interpreted according to `mime_type`.Optional.The format of the `content` field.Optional.The body of the documentation, interpreted according to `mime_type`.com.google.protobuf.ByteStringThe body of the documentation, interpreted according to `mime_type`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLinks(int index) Optional.getLinksBuilder(int index) Optional.Optional.intOptional.Optional.getLinksOrBuilder(int index) Optional.List<? extends AlertPolicy.Documentation.LinkOrBuilder>Optional.The format of the `content` field.com.google.protobuf.ByteStringThe format of the `content` field.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeLinks(int index) Optional.setContent(String value) The body of the documentation, interpreted according to `mime_type`.setContentBytes(com.google.protobuf.ByteString value) The body of the documentation, interpreted according to `mime_type`.setLinks(int index, AlertPolicy.Documentation.Link value) Optional.setLinks(int index, AlertPolicy.Documentation.Link.Builder builderForValue) Optional.setMimeType(String value) The format of the `content` field.setMimeTypeBytes(com.google.protobuf.ByteString value) The format of the `content` field.setSubject(String value) Optional.setSubjectBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Documentation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Builder>
-
mergeFrom
public AlertPolicy.Documentation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Documentation.Builder>- Throws:
IOException
-
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#doc-vars).
string content = 1;- Specified by:
getContentin interfaceAlertPolicy.DocumentationOrBuilder- Returns:
- The content.
-
getContentBytes
public 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#doc-vars).
string content = 1;- Specified by:
getContentBytesin interfaceAlertPolicy.DocumentationOrBuilder- Returns:
- The bytes for content.
-
setContent
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#doc-vars).
string content = 1;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
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#doc-vars).
string content = 1;- Returns:
- This builder for chaining.
-
setContentBytes
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#doc-vars).
string content = 1;- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getMimeTypein interfaceAlertPolicy.DocumentationOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public 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;- Specified by:
getMimeTypeBytesin interfaceAlertPolicy.DocumentationOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
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;- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setMimeTypeBytes
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;- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
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#doc-vars). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubjectin interfaceAlertPolicy.DocumentationOrBuilder- Returns:
- The subject.
-
getSubjectBytes
public 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#doc-vars). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubjectBytesin interfaceAlertPolicy.DocumentationOrBuilder- Returns:
- The bytes for subject.
-
setSubject
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#doc-vars). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The subject to set.- Returns:
- This builder for chaining.
-
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#doc-vars). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSubjectBytes
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#doc-vars). If this field is missing or empty, a default subject line will be generated.
string subject = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for subject to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getLinksListin interfaceAlertPolicy.DocumentationOrBuilder
-
getLinksCount
public 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];- Specified by:
getLinksCountin interfaceAlertPolicy.DocumentationOrBuilder
-
getLinks
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];- Specified by:
getLinksin interfaceAlertPolicy.DocumentationOrBuilder
-
setLinks
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]; -
setLinks
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]; -
addLinks
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]; -
addLinks
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]; -
addLinks
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]; -
addLinks
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]; -
addAllLinks
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]; -
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]; -
removeLinks
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]; -
getLinksBuilder
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
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];- Specified by:
getLinksOrBuilderin interfaceAlertPolicy.DocumentationOrBuilder
-
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];- Specified by:
getLinksOrBuilderListin interfaceAlertPolicy.DocumentationOrBuilder
-
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]; -
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]; -
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];
-