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.GeneratedMessage.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.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
implements FirewallPolicyAssociationOrBuilder
Protobuf type
google.cloud.compute.v1.FirewallPolicyAssociation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The target that the firewall policy is attached to.[Output Only] Deprecated, please use short name instead.Output only.The name for an association.Output only.The target that the firewall policy is attached to.com.google.protobuf.ByteStringThe target that the firewall policy is attached to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor[Output Only] Deprecated, please use short name instead.com.google.protobuf.ByteString[Output Only] Deprecated, please use short name instead.Output only.com.google.protobuf.ByteStringOutput only.getName()The name for an association.com.google.protobuf.ByteStringThe name for an association.Output only.com.google.protobuf.ByteStringOutput only.booleanThe target that the firewall policy is attached to.boolean[Output Only] Deprecated, please use short name instead.booleanOutput only.booleanhasName()The name for an association.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAttachmentTarget(String value) The target that the firewall policy is attached to.setAttachmentTargetBytes(com.google.protobuf.ByteString value) The target that the firewall policy is attached to.setDisplayName(String value) [Output Only] Deprecated, please use short name instead.setDisplayNameBytes(com.google.protobuf.ByteString value) [Output Only] Deprecated, please use short name instead.setFirewallPolicyId(String value) Output only.setFirewallPolicyIdBytes(com.google.protobuf.ByteString value) Output only.The name for an association.setNameBytes(com.google.protobuf.ByteString value) The name for an association.setShortName(String value) Output only.setShortNameBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FirewallPolicyAssociation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
-
mergeFrom
public FirewallPolicyAssociation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasAttachmentTargetin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- Whether the attachmentTarget field is set.
-
getAttachmentTarget
The target that the firewall policy is attached to.
optional string attachment_target = 175773741;- Specified by:
getAttachmentTargetin 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:
getAttachmentTargetBytesin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The bytes for attachmentTarget.
-
setAttachmentTarget
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
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:
hasDisplayNamein interfaceFirewallPolicyAssociationOrBuilder- Returns:
- Whether the displayName field is set.
-
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:
getDisplayNamein 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:
getDisplayNameBytesin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
[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
[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
[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. [Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;- Specified by:
hasFirewallPolicyIdin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- Whether the firewallPolicyId field is set.
-
getFirewallPolicyId
Output only. [Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;- Specified by:
getFirewallPolicyIdin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The firewallPolicyId.
-
getFirewallPolicyIdBytes
public com.google.protobuf.ByteString getFirewallPolicyIdBytes()Output only. [Output Only] The firewall policy ID of the association.
optional string firewall_policy_id = 357211849;- Specified by:
getFirewallPolicyIdBytesin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The bytes for firewallPolicyId.
-
setFirewallPolicyId
Output only. [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
Output only. [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. [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:
hasNamein interfaceFirewallPolicyAssociationOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name for an association.
optional string name = 3373707;- Specified by:
getNamein interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name for an association.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The bytes for name.
-
setName
The name for an association.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name for an association.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
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. [Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;- Specified by:
hasShortNamein interfaceFirewallPolicyAssociationOrBuilder- Returns:
- Whether the shortName field is set.
-
getShortName
Output only. [Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;- Specified by:
getShortNamein interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The shortName.
-
getShortNameBytes
public com.google.protobuf.ByteString getShortNameBytes()Output only. [Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;- Specified by:
getShortNameBytesin interfaceFirewallPolicyAssociationOrBuilder- Returns:
- The bytes for shortName.
-
setShortName
Output only. [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
Output only. [Output Only] The short name of the firewall policy of the association.
optional string short_name = 492051566;- Returns:
- This builder for chaining.
-
setShortNameBytes
Output only. [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.
-