public sealed class NamedPort : IMessage<NamedPort>, IEquatable<NamedPort>, IDeepCloneable<NamedPort>, IBufferMessage, IMessage
The named port. For example: <"http", 80>.
Implements
IMessage<NamedPort>, IEquatable<NamedPort>, IDeepCloneable<NamedPort>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
NamedPort()
public NamedPort()
NamedPort(NamedPort)
public NamedPort(NamedPort other)
Parameter | |
---|---|
Name | Description |
other | NamedPort |
Properties
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasPort
public bool HasPort { get; }
Gets whether the "port" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
Name
public string Name { get; set; }
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
Property Value | |
---|---|
Type | Description |
String |
Port
public int Port { get; set; }
The port number, which can be a value between 1 and 65535.
Property Value | |
---|---|
Type | Description |
Int32 |