Class NamedPort (1.2.0)

public sealed class NamedPort : IMessage<NamedPort>, IEquatable<NamedPort>, IDeepCloneable<NamedPort>, IBufferMessage, IMessage

The named port. For example: <"http", 80>.

Inheritance

Object > NamedPort

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

NamedPort()

public NamedPort()

NamedPort(NamedPort)

public NamedPort(NamedPort other)
Parameter
NameDescription
otherNamedPort

Properties

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasPort

public bool HasPort { get; }

Gets whether the "port" field is set

Property Value
TypeDescription
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
TypeDescription
String

Port

public int Port { get; set; }

The port number, which can be a value between 1 and 65535.

Property Value
TypeDescription
Int32