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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FirewallPolicyAssociation.Builder>
    • getDefaultInstanceForType

      public FirewallPolicyAssociation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FirewallPolicyAssociation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FirewallPolicyAssociation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FirewallPolicyAssociation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FirewallPolicyAssociation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface FirewallPolicyAssociationOrBuilder
      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 interface FirewallPolicyAssociationOrBuilder
      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 interface FirewallPolicyAssociationOrBuilder
      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 interface FirewallPolicyAssociationOrBuilder
      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 interface FirewallPolicyAssociationOrBuilder
      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 interface FirewallPolicyAssociationOrBuilder
      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. [Output Only] The firewall policy ID of the association.
       
      optional string firewall_policy_id = 357211849;
      Specified by:
      hasFirewallPolicyId in interface FirewallPolicyAssociationOrBuilder
      Returns:
      Whether the firewallPolicyId field is set.
    • getFirewallPolicyId

      public String getFirewallPolicyId()
       Output only. [Output Only] The firewall policy ID of the association.
       
      optional string firewall_policy_id = 357211849;
      Specified by:
      getFirewallPolicyId in interface FirewallPolicyAssociationOrBuilder
      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:
      getFirewallPolicyIdBytes in interface FirewallPolicyAssociationOrBuilder
      Returns:
      The bytes for firewallPolicyId.
    • setFirewallPolicyId

      public FirewallPolicyAssociation.Builder setFirewallPolicyId(String value)
       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

      public FirewallPolicyAssociation.Builder 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:
      hasName in interface FirewallPolicyAssociationOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name for an association.
       
      optional string name = 3373707;
      Specified by:
      getName in interface FirewallPolicyAssociationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name for an association.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface FirewallPolicyAssociationOrBuilder
      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

       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. [Output Only] The short name of the firewall policy of the association.
       
      optional string short_name = 492051566;
      Specified by:
      hasShortName in interface FirewallPolicyAssociationOrBuilder
      Returns:
      Whether the shortName field is set.
    • getShortName

      public String getShortName()
       Output only. [Output Only] The short name of the firewall policy of the association.
       
      optional string short_name = 492051566;
      Specified by:
      getShortName in interface FirewallPolicyAssociationOrBuilder
      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:
      getShortNameBytes in interface FirewallPolicyAssociationOrBuilder
      Returns:
      The bytes for shortName.
    • setShortName

      public FirewallPolicyAssociation.Builder setShortName(String value)
       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

      public FirewallPolicyAssociation.Builder 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

      public FirewallPolicyAssociation.Builder setShortNameBytes(com.google.protobuf.ByteString value)
       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.