Class FirewallPolicyRuleSecureTag.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FirewallPolicyRuleSecureTag.Builder>
com.google.cloud.compute.v1.FirewallPolicyRuleSecureTag.Builder
All Implemented Interfaces:
FirewallPolicyRuleSecureTagOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FirewallPolicyRuleSecureTag

public static final class FirewallPolicyRuleSecureTag.Builder extends com.google.protobuf.GeneratedMessage.Builder<FirewallPolicyRuleSecureTag.Builder> implements FirewallPolicyRuleSecureTagOrBuilder
 
Protobuf type google.cloud.compute.v1.FirewallPolicyRuleSecureTag
  • 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<FirewallPolicyRuleSecureTag.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<FirewallPolicyRuleSecureTag.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<FirewallPolicyRuleSecureTag.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public FirewallPolicyRuleSecureTag.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<FirewallPolicyRuleSecureTag.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<FirewallPolicyRuleSecureTag.Builder>
    • mergeFrom

      public FirewallPolicyRuleSecureTag.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<FirewallPolicyRuleSecureTag.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Name of the secure tag, created with TagManager's TagValue API.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface FirewallPolicyRuleSecureTagOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the secure tag, created with TagManager's TagValue API.
       
      optional string name = 3373707;
      Specified by:
      getName in interface FirewallPolicyRuleSecureTagOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the secure tag, created with TagManager's TagValue API.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface FirewallPolicyRuleSecureTagOrBuilder
      Returns:
      The bytes for name.
    • setName

       Name of the secure tag, created with TagManager's TagValue API.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name of the secure tag, created with TagManager's TagValue API.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public FirewallPolicyRuleSecureTag.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the secure tag, created with TagManager's TagValue API.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasState

      public boolean hasState()
       Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
       `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
       or its network is deleted.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      hasState in interface FirewallPolicyRuleSecureTagOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public String getState()
       Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
       `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
       or its network is deleted.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getState in interface FirewallPolicyRuleSecureTagOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
       `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
       or its network is deleted.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getStateBytes in interface FirewallPolicyRuleSecureTagOrBuilder
      Returns:
      The bytes for state.
    • setState

       Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
       `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
       or its network is deleted.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
       `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
       or its network is deleted.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Returns:
      This builder for chaining.
    • setStateBytes

      public FirewallPolicyRuleSecureTag.Builder setStateBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
       `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
       or its network is deleted.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The bytes for state to set.
      Returns:
      This builder for chaining.