Class FirewallEndpointAssociation.Builder

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

public static final class FirewallEndpointAssociation.Builder extends com.google.protobuf.GeneratedMessage.Builder<FirewallEndpointAssociation.Builder> implements FirewallEndpointAssociationOrBuilder
 Message describing Association object
 
Protobuf type google.cloud.networksecurity.v1.FirewallEndpointAssociation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<FirewallEndpointAssociation.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<FirewallEndpointAssociation.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FirewallEndpointAssociation.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<FirewallEndpointAssociation.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<FirewallEndpointAssociation.Builder>
    • getDefaultInstanceForType

      public FirewallEndpointAssociation 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 FirewallEndpointAssociation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public FirewallEndpointAssociation.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<FirewallEndpointAssociation.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Immutable. Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The bytes for name.
    • setName

       Immutable. Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Immutable. Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public FirewallEndpointAssociation.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. Identifier. name of resource
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface FirewallEndpointAssociationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public FirewallEndpointAssociation.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public FirewallEndpointAssociation.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public FirewallEndpointAssociation.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public FirewallEndpointAssociation.Builder clearCreateTime()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface FirewallEndpointAssociationOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface FirewallEndpointAssociationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public FirewallEndpointAssociation.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public FirewallEndpointAssociation.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public FirewallEndpointAssociation.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public FirewallEndpointAssociation.Builder clearUpdateTime()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface FirewallEndpointAssociationOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: FirewallEndpointAssociationOrBuilder
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface FirewallEndpointAssociationOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface FirewallEndpointAssociationOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface FirewallEndpointAssociationOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface FirewallEndpointAssociationOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface FirewallEndpointAssociationOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface FirewallEndpointAssociationOrBuilder
    • clearLabels

    • removeLabels

      public FirewallEndpointAssociation.Builder removeLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public FirewallEndpointAssociation.Builder putLabels(String key, String value)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public FirewallEndpointAssociation.Builder putAllLabels(Map<String,String> values)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getStateValue

      public int getStateValue()
       Output only. Current state of the association.
       
      .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public FirewallEndpointAssociation.Builder setStateValue(int value)
       Output only. Current state of the association.
       
      .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Output only. Current state of the association.
       
      .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The state.
    • setState

       Output only. Current state of the association.
       
      .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Output only. Current state of the association.
       
      .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getNetwork

      public String getNetwork()
       Required. The URL of the network that is being associated.
       
      string network = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNetwork in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Required. The URL of the network that is being associated.
       
      string network = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNetworkBytes in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public FirewallEndpointAssociation.Builder setNetwork(String value)
       Required. The URL of the network that is being associated.
       
      string network = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

      public FirewallEndpointAssociation.Builder clearNetwork()
       Required. The URL of the network that is being associated.
       
      string network = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public FirewallEndpointAssociation.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Required. The URL of the network that is being associated.
       
      string network = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getFirewallEndpoint

      public String getFirewallEndpoint()
       Required. The URL of the FirewallEndpoint that is being associated.
       
      string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFirewallEndpoint in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The firewallEndpoint.
    • getFirewallEndpointBytes

      public com.google.protobuf.ByteString getFirewallEndpointBytes()
       Required. The URL of the FirewallEndpoint that is being associated.
       
      string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFirewallEndpointBytes in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The bytes for firewallEndpoint.
    • setFirewallEndpoint

      public FirewallEndpointAssociation.Builder setFirewallEndpoint(String value)
       Required. The URL of the FirewallEndpoint that is being associated.
       
      string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The firewallEndpoint to set.
      Returns:
      This builder for chaining.
    • clearFirewallEndpoint

      public FirewallEndpointAssociation.Builder clearFirewallEndpoint()
       Required. The URL of the FirewallEndpoint that is being associated.
       
      string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setFirewallEndpointBytes

      public FirewallEndpointAssociation.Builder setFirewallEndpointBytes(com.google.protobuf.ByteString value)
       Required. The URL of the FirewallEndpoint that is being associated.
       
      string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for firewallEndpoint to set.
      Returns:
      This builder for chaining.
    • getTlsInspectionPolicy

      public String getTlsInspectionPolicy()
       Optional. The URL of the TlsInspectionPolicy that is being associated.
       
      string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getTlsInspectionPolicy in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The tlsInspectionPolicy.
    • getTlsInspectionPolicyBytes

      public com.google.protobuf.ByteString getTlsInspectionPolicyBytes()
       Optional. The URL of the TlsInspectionPolicy that is being associated.
       
      string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getTlsInspectionPolicyBytes in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The bytes for tlsInspectionPolicy.
    • setTlsInspectionPolicy

      public FirewallEndpointAssociation.Builder setTlsInspectionPolicy(String value)
       Optional. The URL of the TlsInspectionPolicy that is being associated.
       
      string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The tlsInspectionPolicy to set.
      Returns:
      This builder for chaining.
    • clearTlsInspectionPolicy

      public FirewallEndpointAssociation.Builder clearTlsInspectionPolicy()
       Optional. The URL of the TlsInspectionPolicy that is being associated.
       
      string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setTlsInspectionPolicyBytes

      public FirewallEndpointAssociation.Builder setTlsInspectionPolicyBytes(com.google.protobuf.ByteString value)
       Optional. The URL of the TlsInspectionPolicy that is being associated.
       
      string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for tlsInspectionPolicy to set.
      Returns:
      This builder for chaining.
    • getReconciling

      public boolean getReconciling()
       Output only. Whether reconciling is in progress, recommended per
       https://google.aip.dev/128.
       
      bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReconciling in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The reconciling.
    • setReconciling

      public FirewallEndpointAssociation.Builder setReconciling(boolean value)
       Output only. Whether reconciling is in progress, recommended per
       https://google.aip.dev/128.
       
      bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The reconciling to set.
      Returns:
      This builder for chaining.
    • clearReconciling

      public FirewallEndpointAssociation.Builder clearReconciling()
       Output only. Whether reconciling is in progress, recommended per
       https://google.aip.dev/128.
       
      bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDisabled

      public boolean getDisabled()
       Optional. Whether the association is disabled.
       True indicates that traffic won't be intercepted
       
      bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisabled in interface FirewallEndpointAssociationOrBuilder
      Returns:
      The disabled.
    • setDisabled

      public FirewallEndpointAssociation.Builder setDisabled(boolean value)
       Optional. Whether the association is disabled.
       True indicates that traffic won't be intercepted
       
      bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The disabled to set.
      Returns:
      This builder for chaining.
    • clearDisabled

      public FirewallEndpointAssociation.Builder clearDisabled()
       Optional. Whether the association is disabled.
       True indicates that traffic won't be intercepted
       
      bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.