Class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy (1.64.0)

public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends GeneratedMessageV3 implements InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicyOrBuilder

Protobuf type google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
Type Description
int

RULES_FIELD_NUMBER

public static final int RULES_FIELD_NUMBER
Field Value
Type Description
int

SHORT_NAME_FIELD_NUMBER

public static final int SHORT_NAME_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy getDefaultInstance()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder newBuilder()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

newBuilder(InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy prototype)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder newBuilder(InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy prototype)
Parameter
Name Description
prototype InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

parseDelimitedFrom(InputStream input)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy> parser()
Returns
Type Description
Parser<InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy getDefaultInstanceForType()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

getDisplayName()

public String getDisplayName()

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy> getParserForType()
Returns
Type Description
Parser<InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>
Overrides

getPriority()

public int getPriority()

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

optional int32 priority = 445151652;

Returns
Type Description
int

The priority.

getRules(int index)

public FirewallPolicyRule getRules(int index)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRule

getRulesCount()

public int getRulesCount()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
int

getRulesList()

public List<FirewallPolicyRule> getRulesList()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
List<FirewallPolicyRule>

getRulesOrBuilder(int index)

public FirewallPolicyRuleOrBuilder getRulesOrBuilder(int index)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRuleOrBuilder

getRulesOrBuilderList()

public List<? extends FirewallPolicyRuleOrBuilder> getRulesOrBuilderList()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShortName()

public String getShortName()

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Returns
Type Description
String

The shortName.

getShortNameBytes()

public ByteString getShortNameBytes()

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Returns
Type Description
ByteString

The bytes for shortName.

getType()

public String getType()

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasDisplayName()

public boolean hasDisplayName()

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Returns
Type Description
boolean

Whether the displayName field is set.

hasName()

public boolean hasName()

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasPriority()

public boolean hasPriority()

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

optional int32 priority = 445151652;

Returns
Type Description
boolean

Whether the priority field is set.

hasShortName()

public boolean hasShortName()

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Returns
Type Description
boolean

Whether the shortName field is set.

hasType()

public boolean hasType()

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder newBuilderForType()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder toBuilder()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException