Package com.google.cloud.compute.v1
Class FirewallPolicyAssociation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
- com.google.cloud.compute.v1.FirewallPolicyAssociation.Builder
-
- All Implemented Interfaces:
FirewallPolicyAssociationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- FirewallPolicyAssociation
public static final class FirewallPolicyAssociation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder> implements FirewallPolicyAssociationOrBuilder
google.cloud.compute.v1.FirewallPolicyAssociation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FirewallPolicyAssociation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FirewallPolicyAssociation
build()
FirewallPolicyAssociation
buildPartial()
FirewallPolicyAssociation.Builder
clear()
FirewallPolicyAssociation.Builder
clearAttachmentTarget()
The target that the firewall policy is attached to.FirewallPolicyAssociation.Builder
clearDisplayName()
[Output Only] Deprecated, please use short name instead.FirewallPolicyAssociation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FirewallPolicyAssociation.Builder
clearFirewallPolicyId()
[Output Only] The firewall policy ID of the association.FirewallPolicyAssociation.Builder
clearName()
The name for an association.FirewallPolicyAssociation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
FirewallPolicyAssociation.Builder
clearShortName()
[Output Only] The short name of the firewall policy of the association.FirewallPolicyAssociation.Builder
clone()
String
getAttachmentTarget()
The target that the firewall policy is attached to.com.google.protobuf.ByteString
getAttachmentTargetBytes()
The target that the firewall policy is attached to.FirewallPolicyAssociation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
[Output Only] Deprecated, please use short name instead.com.google.protobuf.ByteString
getDisplayNameBytes()
[Output Only] Deprecated, please use short name instead.String
getFirewallPolicyId()
[Output Only] The firewall policy ID of the association.com.google.protobuf.ByteString
getFirewallPolicyIdBytes()
[Output Only] The firewall policy ID of the association.String
getName()
The name for an association.com.google.protobuf.ByteString
getNameBytes()
The name for an association.String
getShortName()
[Output Only] The short name of the firewall policy of the association.com.google.protobuf.ByteString
getShortNameBytes()
[Output Only] The short name of the firewall policy of the association.boolean
hasAttachmentTarget()
The target that the firewall policy is attached to.boolean
hasDisplayName()
[Output Only] Deprecated, please use short name instead.boolean
hasFirewallPolicyId()
[Output Only] The firewall policy ID of the association.boolean
hasName()
The name for an association.boolean
hasShortName()
[Output Only] The short name of the firewall policy of the association.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
FirewallPolicyAssociation.Builder
mergeFrom(FirewallPolicyAssociation other)
FirewallPolicyAssociation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FirewallPolicyAssociation.Builder
mergeFrom(com.google.protobuf.Message other)
FirewallPolicyAssociation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FirewallPolicyAssociation.Builder
setAttachmentTarget(String value)
The target that the firewall policy is attached to.FirewallPolicyAssociation.Builder
setAttachmentTargetBytes(com.google.protobuf.ByteString value)
The target that the firewall policy is attached to.FirewallPolicyAssociation.Builder
setDisplayName(String value)
[Output Only] Deprecated, please use short name instead.FirewallPolicyAssociation.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
[Output Only] Deprecated, please use short name instead.FirewallPolicyAssociation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FirewallPolicyAssociation.Builder
setFirewallPolicyId(String value)
[Output Only] The firewall policy ID of the association.FirewallPolicyAssociation.Builder
setFirewallPolicyIdBytes(com.google.protobuf.ByteString value)
[Output Only] The firewall policy ID of the association.FirewallPolicyAssociation.Builder
setName(String value)
The name for an association.FirewallPolicyAssociation.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name for an association.FirewallPolicyAssociation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
FirewallPolicyAssociation.Builder
setShortName(String value)
[Output Only] The short name of the firewall policy of the association.FirewallPolicyAssociation.Builder
setShortNameBytes(com.google.protobuf.ByteString value)
[Output Only] The short name of the firewall policy of the association.FirewallPolicyAssociation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
clear
public FirewallPolicyAssociation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
getDefaultInstanceForType
public FirewallPolicyAssociation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FirewallPolicyAssociation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FirewallPolicyAssociation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FirewallPolicyAssociation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
setField
public FirewallPolicyAssociation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
clearField
public FirewallPolicyAssociation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
clearOneof
public FirewallPolicyAssociation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
setRepeatedField
public FirewallPolicyAssociation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
addRepeatedField
public FirewallPolicyAssociation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
mergeFrom
public FirewallPolicyAssociation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FirewallPolicyAssociation.Builder>
-
mergeFrom
public FirewallPolicyAssociation.Builder mergeFrom(FirewallPolicyAssociation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
mergeFrom
public FirewallPolicyAssociation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FirewallPolicyAssociation.Builder>
- Throws:
IOException
-
hasAttachmentTarget
public boolean hasAttachmentTarget()
The target that the firewall policy is attached to.
optional string attachment_target = 175773741;
- Specified by:
hasAttachmentTarget
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- Whether the attachmentTarget field is set.
-
getAttachmentTarget
public String getAttachmentTarget()
The target that the firewall policy is attached to.
optional string attachment_target = 175773741;
- Specified by:
getAttachmentTarget
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The attachmentTarget.
-
getAttachmentTargetBytes
public com.google.protobuf.ByteString getAttachmentTargetBytes()
The target that the firewall policy is attached to.
optional string attachment_target = 175773741;
- Specified by:
getAttachmentTargetBytes
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The bytes for attachmentTarget.
-
setAttachmentTarget
public FirewallPolicyAssociation.Builder setAttachmentTarget(String value)
The target that the firewall policy is attached to.
optional string attachment_target = 175773741;
- Parameters:
value
- The attachmentTarget to set.- Returns:
- This builder for chaining.
-
clearAttachmentTarget
public FirewallPolicyAssociation.Builder clearAttachmentTarget()
The target that the firewall policy is attached to.
optional string attachment_target = 175773741;
- Returns:
- This builder for chaining.
-
setAttachmentTargetBytes
public FirewallPolicyAssociation.Builder setAttachmentTargetBytes(com.google.protobuf.ByteString value)
The target that the firewall policy is attached to.
optional string attachment_target = 175773741;
- Parameters:
value
- The bytes for attachmentTarget to set.- Returns:
- This builder for chaining.
-
hasDisplayName
public boolean hasDisplayName()
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
optional string display_name = 4473832;
- Specified by:
hasDisplayName
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- Whether the displayName field is set.
-
getDisplayName
public String getDisplayName()
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
optional string display_name = 4473832;
- Specified by:
getDisplayName
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
optional string display_name = 4473832;
- Specified by:
getDisplayNameBytes
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public FirewallPolicyAssociation.Builder setDisplayName(String value)
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
optional string display_name = 4473832;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public FirewallPolicyAssociation.Builder clearDisplayName()
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
optional string display_name = 4473832;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public FirewallPolicyAssociation.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
optional string display_name = 4473832;
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasFirewallPolicyId
public boolean hasFirewallPolicyId()
[Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;
- Specified by:
hasFirewallPolicyId
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- Whether the firewallPolicyId field is set.
-
getFirewallPolicyId
public String getFirewallPolicyId()
[Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;
- Specified by:
getFirewallPolicyId
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The firewallPolicyId.
-
getFirewallPolicyIdBytes
public com.google.protobuf.ByteString getFirewallPolicyIdBytes()
[Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;
- Specified by:
getFirewallPolicyIdBytes
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The bytes for firewallPolicyId.
-
setFirewallPolicyId
public FirewallPolicyAssociation.Builder setFirewallPolicyId(String value)
[Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;
- Parameters:
value
- The firewallPolicyId to set.- Returns:
- This builder for chaining.
-
clearFirewallPolicyId
public FirewallPolicyAssociation.Builder clearFirewallPolicyId()
[Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;
- Returns:
- This builder for chaining.
-
setFirewallPolicyIdBytes
public FirewallPolicyAssociation.Builder setFirewallPolicyIdBytes(com.google.protobuf.ByteString value)
[Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;
- Parameters:
value
- The bytes for firewallPolicyId to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
The name for an association.
optional string name = 3373707;
- Specified by:
hasName
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
The name for an association.
optional string name = 3373707;
- Specified by:
getName
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name for an association.
optional string name = 3373707;
- Specified by:
getNameBytes
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The bytes for name.
-
setName
public FirewallPolicyAssociation.Builder setName(String value)
The name for an association.
optional string name = 3373707;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public FirewallPolicyAssociation.Builder clearName()
The name for an association.
optional string name = 3373707;
- Returns:
- This builder for chaining.
-
setNameBytes
public FirewallPolicyAssociation.Builder setNameBytes(com.google.protobuf.ByteString value)
The name for an association.
optional string name = 3373707;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasShortName
public boolean hasShortName()
[Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;
- Specified by:
hasShortName
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- Whether the shortName field is set.
-
getShortName
public String getShortName()
[Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;
- Specified by:
getShortName
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The shortName.
-
getShortNameBytes
public com.google.protobuf.ByteString getShortNameBytes()
[Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;
- Specified by:
getShortNameBytes
in interfaceFirewallPolicyAssociationOrBuilder
- Returns:
- The bytes for shortName.
-
setShortName
public FirewallPolicyAssociation.Builder setShortName(String value)
[Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;
- Parameters:
value
- The shortName to set.- Returns:
- This builder for chaining.
-
clearShortName
public FirewallPolicyAssociation.Builder clearShortName()
[Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;
- Returns:
- This builder for chaining.
-
setShortNameBytes
public FirewallPolicyAssociation.Builder setShortNameBytes(com.google.protobuf.ByteString value)
[Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;
- Parameters:
value
- The bytes for shortName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FirewallPolicyAssociation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
mergeUnknownFields
public final FirewallPolicyAssociation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyAssociation.Builder>
-
-