Class AlertPolicy.Documentation.Link.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Link.Builder>
com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder
All Implemented Interfaces:
AlertPolicy.Documentation.LinkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AlertPolicy.Documentation.Link

public static final class AlertPolicy.Documentation.Link.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Link.Builder> implements AlertPolicy.Documentation.LinkOrBuilder
 Links to content such as playbooks, repositories, and other resources.
 
Protobuf type google.monitoring.v3.AlertPolicy.Documentation.Link
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Link.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Link.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Link.Builder>
    • getDefaultInstanceForType

      public AlertPolicy.Documentation.Link getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AlertPolicy.Documentation.Link buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AlertPolicy.Documentation.Link.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlertPolicy.Documentation.Link.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Documentation.Link.Builder>
    • mergeFrom

      public AlertPolicy.Documentation.Link.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlertPolicy.Documentation.Link.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       A short display name for the link. The display name must not be empty
       or exceed 63 characters. Example: "playbook".
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface AlertPolicy.Documentation.LinkOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       A short display name for the link. The display name must not be empty
       or exceed 63 characters. Example: "playbook".
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface AlertPolicy.Documentation.LinkOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public AlertPolicy.Documentation.Link.Builder setDisplayName(String value)
       A short display name for the link. The display name must not be empty
       or exceed 63 characters. Example: "playbook".
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public AlertPolicy.Documentation.Link.Builder clearDisplayName()
       A short display name for the link. The display name must not be empty
       or exceed 63 characters. Example: "playbook".
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public AlertPolicy.Documentation.Link.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       A short display name for the link. The display name must not be empty
       or exceed 63 characters. Example: "playbook".
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getUrl

      public String getUrl()
       The url of a webpage.
       A url can be templatized by using variables
       in the path or the query parameters. The total length of a URL should
       not exceed 2083 characters before and after variable expansion.
       Example: "https://my_domain.com/playbook?name=${resource.name}"
       
      string url = 2;
      Specified by:
      getUrl in interface AlertPolicy.Documentation.LinkOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       The url of a webpage.
       A url can be templatized by using variables
       in the path or the query parameters. The total length of a URL should
       not exceed 2083 characters before and after variable expansion.
       Example: "https://my_domain.com/playbook?name=${resource.name}"
       
      string url = 2;
      Specified by:
      getUrlBytes in interface AlertPolicy.Documentation.LinkOrBuilder
      Returns:
      The bytes for url.
    • setUrl

       The url of a webpage.
       A url can be templatized by using variables
       in the path or the query parameters. The total length of a URL should
       not exceed 2083 characters before and after variable expansion.
       Example: "https://my_domain.com/playbook?name=${resource.name}"
       
      string url = 2;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

       The url of a webpage.
       A url can be templatized by using variables
       in the path or the query parameters. The total length of a URL should
       not exceed 2083 characters before and after variable expansion.
       Example: "https://my_domain.com/playbook?name=${resource.name}"
       
      string url = 2;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public AlertPolicy.Documentation.Link.Builder setUrlBytes(com.google.protobuf.ByteString value)
       The url of a webpage.
       A url can be templatized by using variables
       in the path or the query parameters. The total length of a URL should
       not exceed 2083 characters before and after variable expansion.
       Example: "https://my_domain.com/playbook?name=${resource.name}"
       
      string url = 2;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.