Class UptimeCheckIp.Builder

  • All Implemented Interfaces:
    UptimeCheckIpOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    UptimeCheckIp

    public static final class UptimeCheckIp.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
    implements UptimeCheckIpOrBuilder
     Contains the region, location, and list of IP
     addresses where checkers in the location run from.
     
    Protobuf type google.monitoring.v3.UptimeCheckIp
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • clear

        public UptimeCheckIp.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.GeneratedMessageV3.Builder<UptimeCheckIp.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.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • getDefaultInstanceForType

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

        public UptimeCheckIp build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public UptimeCheckIp buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public UptimeCheckIp.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • setField

        public UptimeCheckIp.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • clearField

        public UptimeCheckIp.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • clearOneof

        public UptimeCheckIp.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • setRepeatedField

        public UptimeCheckIp.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • addRepeatedField

        public UptimeCheckIp.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • mergeFrom

        public UptimeCheckIp.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<UptimeCheckIp.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • mergeFrom

        public UptimeCheckIp.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<UptimeCheckIp.Builder>
        Throws:
        IOException
      • getRegionValue

        public int getRegionValue()
         A broad region category in which the IP address is located.
         
        .google.monitoring.v3.UptimeCheckRegion region = 1;
        Specified by:
        getRegionValue in interface UptimeCheckIpOrBuilder
        Returns:
        The enum numeric value on the wire for region.
      • setRegionValue

        public UptimeCheckIp.Builder setRegionValue​(int value)
         A broad region category in which the IP address is located.
         
        .google.monitoring.v3.UptimeCheckRegion region = 1;
        Parameters:
        value - The enum numeric value on the wire for region to set.
        Returns:
        This builder for chaining.
      • getRegion

        public UptimeCheckRegion getRegion()
         A broad region category in which the IP address is located.
         
        .google.monitoring.v3.UptimeCheckRegion region = 1;
        Specified by:
        getRegion in interface UptimeCheckIpOrBuilder
        Returns:
        The region.
      • setRegion

        public UptimeCheckIp.Builder setRegion​(UptimeCheckRegion value)
         A broad region category in which the IP address is located.
         
        .google.monitoring.v3.UptimeCheckRegion region = 1;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public UptimeCheckIp.Builder clearRegion()
         A broad region category in which the IP address is located.
         
        .google.monitoring.v3.UptimeCheckRegion region = 1;
        Returns:
        This builder for chaining.
      • getLocation

        public String getLocation()
         A more specific location within the region that typically encodes
         a particular city/town/metro (and its containing state/province or country)
         within the broader umbrella region category.
         
        string location = 2;
        Specified by:
        getLocation in interface UptimeCheckIpOrBuilder
        Returns:
        The location.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         A more specific location within the region that typically encodes
         a particular city/town/metro (and its containing state/province or country)
         within the broader umbrella region category.
         
        string location = 2;
        Specified by:
        getLocationBytes in interface UptimeCheckIpOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public UptimeCheckIp.Builder setLocation​(String value)
         A more specific location within the region that typically encodes
         a particular city/town/metro (and its containing state/province or country)
         within the broader umbrella region category.
         
        string location = 2;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public UptimeCheckIp.Builder clearLocation()
         A more specific location within the region that typically encodes
         a particular city/town/metro (and its containing state/province or country)
         within the broader umbrella region category.
         
        string location = 2;
        Returns:
        This builder for chaining.
      • setLocationBytes

        public UptimeCheckIp.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         A more specific location within the region that typically encodes
         a particular city/town/metro (and its containing state/province or country)
         within the broader umbrella region category.
         
        string location = 2;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • getIpAddress

        public String getIpAddress()
         The IP address from which the Uptime check originates. This is a fully
         specified IP address (not an IP address range). Most IP addresses, as of
         this publication, are in IPv4 format; however, one should not rely on the
         IP addresses being in IPv4 format indefinitely, and should support
         interpreting this field in either IPv4 or IPv6 format.
         
        string ip_address = 3;
        Specified by:
        getIpAddress in interface UptimeCheckIpOrBuilder
        Returns:
        The ipAddress.
      • getIpAddressBytes

        public com.google.protobuf.ByteString getIpAddressBytes()
         The IP address from which the Uptime check originates. This is a fully
         specified IP address (not an IP address range). Most IP addresses, as of
         this publication, are in IPv4 format; however, one should not rely on the
         IP addresses being in IPv4 format indefinitely, and should support
         interpreting this field in either IPv4 or IPv6 format.
         
        string ip_address = 3;
        Specified by:
        getIpAddressBytes in interface UptimeCheckIpOrBuilder
        Returns:
        The bytes for ipAddress.
      • setIpAddress

        public UptimeCheckIp.Builder setIpAddress​(String value)
         The IP address from which the Uptime check originates. This is a fully
         specified IP address (not an IP address range). Most IP addresses, as of
         this publication, are in IPv4 format; however, one should not rely on the
         IP addresses being in IPv4 format indefinitely, and should support
         interpreting this field in either IPv4 or IPv6 format.
         
        string ip_address = 3;
        Parameters:
        value - The ipAddress to set.
        Returns:
        This builder for chaining.
      • clearIpAddress

        public UptimeCheckIp.Builder clearIpAddress()
         The IP address from which the Uptime check originates. This is a fully
         specified IP address (not an IP address range). Most IP addresses, as of
         this publication, are in IPv4 format; however, one should not rely on the
         IP addresses being in IPv4 format indefinitely, and should support
         interpreting this field in either IPv4 or IPv6 format.
         
        string ip_address = 3;
        Returns:
        This builder for chaining.
      • setIpAddressBytes

        public UptimeCheckIp.Builder setIpAddressBytes​(com.google.protobuf.ByteString value)
         The IP address from which the Uptime check originates. This is a fully
         specified IP address (not an IP address range). Most IP addresses, as of
         this publication, are in IPv4 format; however, one should not rely on the
         IP addresses being in IPv4 format indefinitely, and should support
         interpreting this field in either IPv4 or IPv6 format.
         
        string ip_address = 3;
        Parameters:
        value - The bytes for ipAddress to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final UptimeCheckIp.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>
      • mergeUnknownFields

        public final UptimeCheckIp.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UptimeCheckIp.Builder>