public static final class GkeNetworkPolicyInfo.Builder extends GeneratedMessage.Builder<GkeNetworkPolicyInfo.Builder> implements GkeNetworkPolicyInfoOrBuilderFor display only. Metadata associated with a GKE Network Policy.
Protobuf type google.cloud.networkmanagement.v1beta1.GkeNetworkPolicyInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GkeNetworkPolicyInfo.BuilderImplements
GkeNetworkPolicyInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GkeNetworkPolicyInfo build()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
buildPartial()
public GkeNetworkPolicyInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo |
|
clear()
public GkeNetworkPolicyInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
clearAction()
public GkeNetworkPolicyInfo.Builder clearAction()Possible values: ALLOW, DENY
string action = 4;
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
clearDirection()
public GkeNetworkPolicyInfo.Builder clearDirection()Possible values: INGRESS, EGRESS
string direction = 3;
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
clearDisplayName()
public GkeNetworkPolicyInfo.Builder clearDisplayName()The name of the Network Policy.
string display_name = 1;
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
clearUri()
public GkeNetworkPolicyInfo.Builder clearUri() 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 |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GkeNetworkPolicyInfo other)
public GkeNetworkPolicyInfo.Builder mergeFrom(GkeNetworkPolicyInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
GkeNetworkPolicyInfo |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GkeNetworkPolicyInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GkeNetworkPolicyInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
|
setAction(String value)
public GkeNetworkPolicyInfo.Builder setAction(String value)Possible values: ALLOW, DENY
string action = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe action to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
setActionBytes(ByteString value)
public GkeNetworkPolicyInfo.Builder setActionBytes(ByteString value)Possible values: ALLOW, DENY
string action = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for action to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
setDirection(String value)
public GkeNetworkPolicyInfo.Builder setDirection(String value)Possible values: INGRESS, EGRESS
string direction = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe direction to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
setDirectionBytes(ByteString value)
public GkeNetworkPolicyInfo.Builder setDirectionBytes(ByteString value)Possible values: INGRESS, EGRESS
string direction = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for direction to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
setDisplayName(String value)
public GkeNetworkPolicyInfo.Builder setDisplayName(String value)The name of the Network Policy.
string display_name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public GkeNetworkPolicyInfo.Builder setDisplayNameBytes(ByteString value)The name of the Network Policy.
string display_name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
setUri(String value)
public GkeNetworkPolicyInfo.Builder setUri(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public GkeNetworkPolicyInfo.Builder setUriBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
GkeNetworkPolicyInfo.Builder |
This builder for chaining. |