Class DnsTable.DnsService

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DnsTable.DnsServiceOrBuilder, Serializable
Enclosing class:
DnsTable

public static final class DnsTable.DnsService extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • getProtocol

      public DnsTable.DnsServiceProtocol getProtocol()
       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:
      getProtocol in interface DnsTable.DnsServiceOrBuilder
      Returns:
      The protocol.
    • getProtocolOrBuilder

      public DnsTable.DnsServiceProtocolOrBuilder getProtocolOrBuilder()
       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:
      getProtocolOrBuilder in interface DnsTable.DnsServiceOrBuilder
    • 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.
    • 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
    • getTargetsList

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

      public List<? extends DnsTable.DnsServiceTargetOrBuilder> getTargetsOrBuilderList()
       The list of targets hosting the service
       
      repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
      Specified by:
      getTargetsOrBuilderList 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
    • getTargets

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

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DnsTable.DnsService parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DnsTable.DnsService parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DnsTable.DnsService parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DnsTable.DnsService parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DnsTable.DnsService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DnsTable.DnsService parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DnsTable.DnsService parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DnsTable.DnsService parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DnsTable.DnsService parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DnsTable.DnsService parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DnsTable.DnsService parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DnsTable.DnsService parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DnsTable.DnsService.Builder newBuilder()
    • newBuilder

      public static DnsTable.DnsService.Builder newBuilder(DnsTable.DnsService prototype)
    • toBuilder

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

      protected DnsTable.DnsService.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static DnsTable.DnsService getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DnsTable.DnsService> parser()
    • getParserForType

      public com.google.protobuf.Parser<DnsTable.DnsService> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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