/** * * * <pre> * 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. * </pre> * * <code>string mime_type = 2;</code> */ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; onChanged(); return this; }
/** * * * <pre> * 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. * </pre> * * <code>string mime_type = 2;</code> */ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } mimeType_ = value; onChanged(); return this; } /**
/** * * * <pre> * 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. * </pre> * * <code>string content = 1;</code> */ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /**
/** * * * <pre> * 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. * </pre> * * <code>string content = 1;</code> */ public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; }
/** * * * <pre> * 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. * </pre> * * <code>string content = 1;</code> */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /**
/** * * * <pre> * 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. * </pre> * * <code>string mime_type = 2;</code> */ public Builder clearMimeType() { mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Documentation other) { if (other == com.google.monitoring.v3.AlertPolicy.Documentation.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }