public static final class AlertPolicy.Documentation extends com.google.protobuf.GeneratedMessageV3 implements AlertPolicy.DocumentationOrBuilder
Documentation that is included in the notifications and incidents pertaining to this policy.Protobuf type
google.monitoring.v3.AlertPolicy.Documentation| Modifier and Type | Class and Description |
|---|---|
static class |
AlertPolicy.Documentation.Builder
Documentation that is included in the notifications and incidents
pertaining to this policy.
|
static class |
AlertPolicy.Documentation.Link
Links to content such as playbooks, repositories, and other resources.
|
static interface |
AlertPolicy.Documentation.LinkOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_FIELD_NUMBER |
static int |
LINKS_FIELD_NUMBER |
static int |
MIME_TYPE_FIELD_NUMBER |
static int |
SUBJECT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent()
The body of the documentation, interpreted according to `mime_type`.
|
com.google.protobuf.ByteString |
getContentBytes()
The body of the documentation, interpreted according to `mime_type`.
|
static AlertPolicy.Documentation |
getDefaultInstance() |
AlertPolicy.Documentation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AlertPolicy.Documentation.Link |
getLinks(int index)
Optional.
|
int |
getLinksCount()
Optional.
|
List<AlertPolicy.Documentation.Link> |
getLinksList()
Optional.
|
AlertPolicy.Documentation.LinkOrBuilder |
getLinksOrBuilder(int index)
Optional.
|
List<? extends AlertPolicy.Documentation.LinkOrBuilder> |
getLinksOrBuilderList()
Optional.
|
String |
getMimeType()
The format of the `content` field.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
The format of the `content` field.
|
com.google.protobuf.Parser<AlertPolicy.Documentation> |
getParserForType() |
int |
getSerializedSize() |
String |
getSubject()
Optional.
|
com.google.protobuf.ByteString |
getSubjectBytes()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AlertPolicy.Documentation.Builder |
newBuilder() |
static AlertPolicy.Documentation.Builder |
newBuilder(AlertPolicy.Documentation prototype) |
AlertPolicy.Documentation.Builder |
newBuilderForType() |
protected AlertPolicy.Documentation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AlertPolicy.Documentation |
parseDelimitedFrom(InputStream input) |
static AlertPolicy.Documentation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Documentation |
parseFrom(byte[] data) |
static AlertPolicy.Documentation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Documentation |
parseFrom(ByteBuffer data) |
static AlertPolicy.Documentation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Documentation |
parseFrom(com.google.protobuf.ByteString data) |
static AlertPolicy.Documentation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Documentation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AlertPolicy.Documentation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Documentation |
parseFrom(InputStream input) |
static AlertPolicy.Documentation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AlertPolicy.Documentation> |
parser() |
AlertPolicy.Documentation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CONTENT_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER
public static final int LINKS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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.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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AlertPolicy.Documentation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Documentation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Documentation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Documentation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Documentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Documentation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Documentation parseFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Documentation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Documentation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Documentation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Documentation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Documentation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AlertPolicy.Documentation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AlertPolicy.Documentation.Builder newBuilder()
public static AlertPolicy.Documentation.Builder newBuilder(AlertPolicy.Documentation prototype)
public AlertPolicy.Documentation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AlertPolicy.Documentation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AlertPolicy.Documentation getDefaultInstance()
public static com.google.protobuf.Parser<AlertPolicy.Documentation> parser()
public com.google.protobuf.Parser<AlertPolicy.Documentation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AlertPolicy.Documentation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.