Class DnsTable.DnsService.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DnsTable.DnsServiceOrBuilder, Cloneable
    Enclosing class:
    DnsTable.DnsService

    public static final class DnsTable.DnsService.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.DnsService.Builder>
    implements DnsTable.DnsServiceOrBuilder
     This message defines a service selection record returned for a service query in a domain
     
    Protobuf type envoy.data.dns.v3.DnsTable.DnsService
    • 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<DnsTable.DnsService.Builder>
      • clear

        public DnsTable.DnsService.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<DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • getDefaultInstanceForType

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

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

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

        public DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • setField

        public DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • clearField

        public DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • clearOneof

        public DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • setRepeatedField

        public DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • addRepeatedField

        public DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • mergeFrom

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

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

        public DnsTable.DnsService.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<DnsTable.DnsService.Builder>
        Throws:
        IOException
      • getServiceName

        public String getServiceName()
         The name of the service without the protocol or domain name
         
        string service_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getServiceName in interface DnsTable.DnsServiceOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         The name of the service without the protocol or domain name
         
        string service_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getServiceNameBytes in interface DnsTable.DnsServiceOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public DnsTable.DnsService.Builder setServiceName​(String value)
         The name of the service without the protocol or domain name
         
        string service_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public DnsTable.DnsService.Builder clearServiceName()
         The name of the service without the protocol or domain name
         
        string service_name = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public DnsTable.DnsService.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         The name of the service without the protocol or domain name
         
        string service_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • hasProtocol

        public boolean hasProtocol()
         The service protocol. This can be specified as a string or the numeric value of the protocol
         
        .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
        Specified by:
        hasProtocol in interface DnsTable.DnsServiceOrBuilder
        Returns:
        Whether the protocol field is set.
      • clearProtocol

        public DnsTable.DnsService.Builder clearProtocol()
         The service protocol. This can be specified as a string or the numeric value of the protocol
         
        .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
      • getProtocolBuilder

        public DnsTable.DnsServiceProtocol.Builder getProtocolBuilder()
         The service protocol. This can be specified as a string or the numeric value of the protocol
         
        .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
      • hasTtl

        public boolean hasTtl()
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
        Specified by:
        hasTtl in interface DnsTable.DnsServiceOrBuilder
        Returns:
        Whether the ttl field is set.
      • getTtl

        public com.google.protobuf.Duration getTtl()
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
        Specified by:
        getTtl in interface DnsTable.DnsServiceOrBuilder
        Returns:
        The ttl.
      • setTtl

        public DnsTable.DnsService.Builder setTtl​(com.google.protobuf.Duration value)
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
      • setTtl

        public DnsTable.DnsService.Builder setTtl​(com.google.protobuf.Duration.Builder builderForValue)
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
      • mergeTtl

        public DnsTable.DnsService.Builder mergeTtl​(com.google.protobuf.Duration value)
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
      • clearTtl

        public DnsTable.DnsService.Builder clearTtl()
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
      • getTtlBuilder

        public com.google.protobuf.Duration.Builder getTtlBuilder()
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
      • getTtlOrBuilder

        public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
         The service entry time to live. This is independent from the DNS Answer record TTL
         
        .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
        Specified by:
        getTtlOrBuilder in interface DnsTable.DnsServiceOrBuilder
      • getTargetsCount

        public int getTargetsCount()
         The list of targets hosting the service
         
        repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
        Specified by:
        getTargetsCount in interface DnsTable.DnsServiceOrBuilder
      • clearTargets

        public DnsTable.DnsService.Builder clearTargets()
         The list of targets hosting the service
         
        repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
      • removeTargets

        public DnsTable.DnsService.Builder removeTargets​(int index)
         The list of targets hosting the service
         
        repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
      • getTargetsBuilder

        public DnsTable.DnsServiceTarget.Builder getTargetsBuilder​(int index)
         The list of targets hosting the service
         
        repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
      • addTargetsBuilder

        public DnsTable.DnsServiceTarget.Builder addTargetsBuilder()
         The list of targets hosting the service
         
        repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
      • addTargetsBuilder

        public DnsTable.DnsServiceTarget.Builder addTargetsBuilder​(int index)
         The list of targets hosting the service
         
        repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
      • getTargetsBuilderList

        public List<DnsTable.DnsServiceTarget.Builder> getTargetsBuilderList()
         The list of targets hosting the service
         
        repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
      • setUnknownFields

        public final DnsTable.DnsService.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<DnsTable.DnsService.Builder>
      • mergeUnknownFields

        public final DnsTable.DnsService.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<DnsTable.DnsService.Builder>