Package com.google.cloud.compute.v1
Interface NamedPortOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NamedPort
,NamedPort.Builder
public interface NamedPortOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
The name for this named port.com.google.protobuf.ByteString
getNameBytes()
The name for this named port.int
getPort()
The port number, which can be a value between 1 and 65535.boolean
hasName()
The name for this named port.boolean
hasPort()
The port number, which can be a value between 1 and 65535.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasName
boolean hasName()
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;
- Returns:
- Whether the name field is set.
-
getName
String getName()
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
optional string name = 3373707;
- Returns:
- The bytes for name.
-
hasPort
boolean hasPort()
The port number, which can be a value between 1 and 65535.
optional int32 port = 3446913;
- Returns:
- Whether the port field is set.
-
getPort
int getPort()
The port number, which can be a value between 1 and 65535.
optional int32 port = 3446913;
- Returns:
- The port.
-
-