public final class GkeNetworkPolicyInfo extends GeneratedMessage implements GkeNetworkPolicyInfoOrBuilderFor display only. Metadata associated with a GKE Network Policy.
Protobuf type google.cloud.networkmanagement.v1beta1.GkeNetworkPolicyInfo
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GkeNetworkPolicyInfoImplements
GkeNetworkPolicyInfoOrBuilderStatic Fields
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DIRECTION_FIELD_NUMBER
public static final int DIRECTION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static GkeNetworkPolicyInfo getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static GkeNetworkPolicyInfo.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
newBuilder(GkeNetworkPolicyInfo prototype)
public static GkeNetworkPolicyInfo.Builder newBuilder(GkeNetworkPolicyInfo prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
GkeNetworkPolicyInfo |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
parseDelimitedFrom(InputStream input)
public static GkeNetworkPolicyInfo parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GkeNetworkPolicyInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static GkeNetworkPolicyInfo parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GkeNetworkPolicyInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static GkeNetworkPolicyInfo parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GkeNetworkPolicyInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static GkeNetworkPolicyInfo parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GkeNetworkPolicyInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static GkeNetworkPolicyInfo parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GkeNetworkPolicyInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static GkeNetworkPolicyInfo parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GkeNetworkPolicyInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<GkeNetworkPolicyInfo> parser()| Returns | |
|---|---|
| Type | Description |
Parser<GkeNetworkPolicyInfo> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAction()
public String getAction()Possible values: ALLOW, DENY
string action = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The action. |
getActionBytes()
public ByteString getActionBytes()Possible values: ALLOW, DENY
string action = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for action. |
getDefaultInstanceForType()
public GkeNetworkPolicyInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
getDirection()
public String getDirection()Possible values: INGRESS, EGRESS
string direction = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The direction. |
getDirectionBytes()
public ByteString getDirectionBytes()Possible values: INGRESS, EGRESS
string direction = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for direction. |
getDisplayName()
public String getDisplayName()The name of the Network Policy.
string display_name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()The name of the Network Policy.
string display_name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getParserForType()
public Parser<GkeNetworkPolicyInfo> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<GkeNetworkPolicyInfo> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getUri()
public String getUri() The URI of the Network Policy.
Format for a Network Policy in a zonal cluster:
projects/<project_id>/zones/<zone>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>
Format for a Network Policy in a regional cluster:
projects/<project_id>/locations/<location>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes() The URI of the Network Policy.
Format for a Network Policy in a zonal cluster:
projects/<project_id>/zones/<zone>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>
Format for a Network Policy in a regional cluster:
projects/<project_id>/locations/<location>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public GkeNetworkPolicyInfo.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected GkeNetworkPolicyInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
toBuilder()
public GkeNetworkPolicyInfo.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|