class ServiceInstancePublication
Defined at line 2876 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
Describes an initial instance announcement or query response. In typical
use, the default SRV priority, SRV weight and TTL values should be used. TTL
values are rounded down to the nearest second. TTL values less than one
second are not permitted and will result in the `ServiceInstancePublicationResponder`
channel being closed.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
ServiceInstancePublication & set_port (uint16_t _value)
ServiceInstancePublication & set_text (::std::vector< ::std::vector<uint8_t>> _value)
ServiceInstancePublication & set_srv_priority (uint16_t _value)
ServiceInstancePublication & set_srv_weight (uint16_t _value)
ServiceInstancePublication & set_ptr_ttl (int64_t _value)
ServiceInstancePublication & set_srv_ttl (int64_t _value)
ServiceInstancePublication & set_txt_ttl (int64_t _value)
void ServiceInstancePublication ()
void ServiceInstancePublication (ServiceInstancePublication && other)
void ~ServiceInstancePublication ()
ServiceInstancePublication & operator= (ServiceInstancePublication && other)
::std::unique_ptr<ServiceInstancePublication> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ServiceInstancePublication * _value, size_t _offset)
zx_status_t Clone (ServiceInstancePublication * _result)
const uint16_t & port ()
The port at which the service instance is addressable. This value is required.
Defined at line 2883 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
bool has_port ()
Defined at line 2887 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
uint16_t * mutable_port ()
The port at which the service instance is addressable. This value is required.
Defined at line 2892 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
void clear_port ()
Defined at line 2900 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
const ::std::vector< ::std::vector<uint8_t>> & text ()
Text strings describing the instance. If this value is not supplied, no text strings are
associated with the instance in this publication.
Defined at line 2910 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
bool has_text ()
Defined at line 2914 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
::std::vector< ::std::vector<uint8_t>> * mutable_text ()
Text strings describing the instance. If this value is not supplied, no text strings are
associated with the instance in this publication.
Defined at line 2920 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
void clear_text ()
Defined at line 2928 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
const uint16_t & srv_priority ()
The priority of the SRV resource record for this publication. See
[RFC6763](https://tools.ietf.org/html/rfc6763) for details. If this value is not supplied,
the default SRV priority of 0 is used.
Defined at line 2939 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
bool has_srv_priority ()
Defined at line 2943 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
uint16_t * mutable_srv_priority ()
The priority of the SRV resource record for this publication. See
[RFC6763](https://tools.ietf.org/html/rfc6763) for details. If this value is not supplied,
the default SRV priority of 0 is used.
Defined at line 2950 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
void clear_srv_priority ()
Defined at line 2958 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
const uint16_t & srv_weight ()
The weight of the SRV resource record for this publication. See
[RFC6763](https://tools.ietf.org/html/rfc6763) for details. If this value is not supplied,
the default SRV weight of 0 is used.
Defined at line 2969 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
bool has_srv_weight ()
Defined at line 2973 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
uint16_t * mutable_srv_weight ()
The weight of the SRV resource record for this publication. See
[RFC6763](https://tools.ietf.org/html/rfc6763) for details. If this value is not supplied,
the default SRV weight of 0 is used.
Defined at line 2980 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
void clear_srv_weight ()
Defined at line 2988 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
const int64_t & ptr_ttl ()
Time-to-live for PTR resource records. If this value is not supplied, the default PTR TTL
of 2 minutes is used. This value is rounded down to the nearest second.
Defined at line 2998 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
bool has_ptr_ttl ()
Defined at line 3002 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
int64_t * mutable_ptr_ttl ()
Time-to-live for PTR resource records. If this value is not supplied, the default PTR TTL
of 2 minutes is used. This value is rounded down to the nearest second.
Defined at line 3008 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
void clear_ptr_ttl ()
Defined at line 3016 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
const int64_t & srv_ttl ()
Time-to-live for SRV resource records. If this value is not supplied, the default SRV TTL
of 2 minutes is used. This value is rounded down to the nearest second.
Defined at line 3026 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
bool has_srv_ttl ()
Defined at line 3030 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
int64_t * mutable_srv_ttl ()
Time-to-live for SRV resource records. If this value is not supplied, the default SRV TTL
of 2 minutes is used. This value is rounded down to the nearest second.
Defined at line 3036 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
void clear_srv_ttl ()
Defined at line 3044 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
const int64_t & txt_ttl ()
Time-to-live for TXT resource records. If this value is not supplied, the default TXT TTL
of 75 minutes is used. This value is rounded down to the nearest second.
Defined at line 3054 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
bool has_txt_ttl ()
Defined at line 3058 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
int64_t * mutable_txt_ttl ()
Time-to-live for TXT resource records. If this value is not supplied, the default TXT TTL
of 75 minutes is used. This value is rounded down to the nearest second.
Defined at line 3064 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
void clear_txt_ttl ()
Defined at line 3072 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h