Class ForwardingRuleInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ForwardingRuleInfo.Builder>
com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.Builder
All Implemented Interfaces:
ForwardingRuleInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ForwardingRuleInfo

public static final class ForwardingRuleInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ForwardingRuleInfo.Builder> implements ForwardingRuleInfoOrBuilder
 For display only. Metadata associated with a Compute Engine forwarding rule.
 
Protobuf type google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo
  • 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<ForwardingRuleInfo.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<ForwardingRuleInfo.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<ForwardingRuleInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ForwardingRuleInfo.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<ForwardingRuleInfo.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       Name of the forwarding rule.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface ForwardingRuleInfoOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Name of the forwarding rule.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public ForwardingRuleInfo.Builder setDisplayName(String value)
       Name of the forwarding rule.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public ForwardingRuleInfo.Builder clearDisplayName()
       Name of the forwarding rule.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public ForwardingRuleInfo.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Name of the forwarding rule.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getUri

      public String getUri()
       URI of the forwarding rule.
       
      string uri = 2;
      Specified by:
      getUri in interface ForwardingRuleInfoOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       URI of the forwarding rule.
       
      string uri = 2;
      Specified by:
      getUriBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public ForwardingRuleInfo.Builder setUri(String value)
       URI of the forwarding rule.
       
      string uri = 2;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public ForwardingRuleInfo.Builder clearUri()
       URI of the forwarding rule.
       
      string uri = 2;
      Returns:
      This builder for chaining.
    • setUriBytes

      public ForwardingRuleInfo.Builder setUriBytes(com.google.protobuf.ByteString value)
       URI of the forwarding rule.
       
      string uri = 2;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getMatchedProtocol

      public String getMatchedProtocol()
       Protocol defined in the forwarding rule that matches the packet.
       
      string matched_protocol = 3;
      Specified by:
      getMatchedProtocol in interface ForwardingRuleInfoOrBuilder
      Returns:
      The matchedProtocol.
    • getMatchedProtocolBytes

      public com.google.protobuf.ByteString getMatchedProtocolBytes()
       Protocol defined in the forwarding rule that matches the packet.
       
      string matched_protocol = 3;
      Specified by:
      getMatchedProtocolBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for matchedProtocol.
    • setMatchedProtocol

      public ForwardingRuleInfo.Builder setMatchedProtocol(String value)
       Protocol defined in the forwarding rule that matches the packet.
       
      string matched_protocol = 3;
      Parameters:
      value - The matchedProtocol to set.
      Returns:
      This builder for chaining.
    • clearMatchedProtocol

      public ForwardingRuleInfo.Builder clearMatchedProtocol()
       Protocol defined in the forwarding rule that matches the packet.
       
      string matched_protocol = 3;
      Returns:
      This builder for chaining.
    • setMatchedProtocolBytes

      public ForwardingRuleInfo.Builder setMatchedProtocolBytes(com.google.protobuf.ByteString value)
       Protocol defined in the forwarding rule that matches the packet.
       
      string matched_protocol = 3;
      Parameters:
      value - The bytes for matchedProtocol to set.
      Returns:
      This builder for chaining.
    • getMatchedPortRange

      public String getMatchedPortRange()
       Port range defined in the forwarding rule that matches the packet.
       
      string matched_port_range = 6;
      Specified by:
      getMatchedPortRange in interface ForwardingRuleInfoOrBuilder
      Returns:
      The matchedPortRange.
    • getMatchedPortRangeBytes

      public com.google.protobuf.ByteString getMatchedPortRangeBytes()
       Port range defined in the forwarding rule that matches the packet.
       
      string matched_port_range = 6;
      Specified by:
      getMatchedPortRangeBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for matchedPortRange.
    • setMatchedPortRange

      public ForwardingRuleInfo.Builder setMatchedPortRange(String value)
       Port range defined in the forwarding rule that matches the packet.
       
      string matched_port_range = 6;
      Parameters:
      value - The matchedPortRange to set.
      Returns:
      This builder for chaining.
    • clearMatchedPortRange

      public ForwardingRuleInfo.Builder clearMatchedPortRange()
       Port range defined in the forwarding rule that matches the packet.
       
      string matched_port_range = 6;
      Returns:
      This builder for chaining.
    • setMatchedPortRangeBytes

      public ForwardingRuleInfo.Builder setMatchedPortRangeBytes(com.google.protobuf.ByteString value)
       Port range defined in the forwarding rule that matches the packet.
       
      string matched_port_range = 6;
      Parameters:
      value - The bytes for matchedPortRange to set.
      Returns:
      This builder for chaining.
    • getVip

      public String getVip()
       VIP of the forwarding rule.
       
      string vip = 4;
      Specified by:
      getVip in interface ForwardingRuleInfoOrBuilder
      Returns:
      The vip.
    • getVipBytes

      public com.google.protobuf.ByteString getVipBytes()
       VIP of the forwarding rule.
       
      string vip = 4;
      Specified by:
      getVipBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for vip.
    • setVip

      public ForwardingRuleInfo.Builder setVip(String value)
       VIP of the forwarding rule.
       
      string vip = 4;
      Parameters:
      value - The vip to set.
      Returns:
      This builder for chaining.
    • clearVip

      public ForwardingRuleInfo.Builder clearVip()
       VIP of the forwarding rule.
       
      string vip = 4;
      Returns:
      This builder for chaining.
    • setVipBytes

      public ForwardingRuleInfo.Builder setVipBytes(com.google.protobuf.ByteString value)
       VIP of the forwarding rule.
       
      string vip = 4;
      Parameters:
      value - The bytes for vip to set.
      Returns:
      This builder for chaining.
    • getTarget

      public String getTarget()
       Target type of the forwarding rule.
       
      string target = 5;
      Specified by:
      getTarget in interface ForwardingRuleInfoOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       Target type of the forwarding rule.
       
      string target = 5;
      Specified by:
      getTargetBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public ForwardingRuleInfo.Builder setTarget(String value)
       Target type of the forwarding rule.
       
      string target = 5;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public ForwardingRuleInfo.Builder clearTarget()
       Target type of the forwarding rule.
       
      string target = 5;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public ForwardingRuleInfo.Builder setTargetBytes(com.google.protobuf.ByteString value)
       Target type of the forwarding rule.
       
      string target = 5;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • getNetworkUri

      public String getNetworkUri()
       Network URI.
       
      string network_uri = 7;
      Specified by:
      getNetworkUri in interface ForwardingRuleInfoOrBuilder
      Returns:
      The networkUri.
    • getNetworkUriBytes

      public com.google.protobuf.ByteString getNetworkUriBytes()
       Network URI.
       
      string network_uri = 7;
      Specified by:
      getNetworkUriBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for networkUri.
    • setNetworkUri

      public ForwardingRuleInfo.Builder setNetworkUri(String value)
       Network URI.
       
      string network_uri = 7;
      Parameters:
      value - The networkUri to set.
      Returns:
      This builder for chaining.
    • clearNetworkUri

      public ForwardingRuleInfo.Builder clearNetworkUri()
       Network URI.
       
      string network_uri = 7;
      Returns:
      This builder for chaining.
    • setNetworkUriBytes

      public ForwardingRuleInfo.Builder setNetworkUriBytes(com.google.protobuf.ByteString value)
       Network URI.
       
      string network_uri = 7;
      Parameters:
      value - The bytes for networkUri to set.
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       Region of the forwarding rule. Set only for regional forwarding rules.
       
      string region = 8;
      Specified by:
      getRegion in interface ForwardingRuleInfoOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Region of the forwarding rule. Set only for regional forwarding rules.
       
      string region = 8;
      Specified by:
      getRegionBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public ForwardingRuleInfo.Builder setRegion(String value)
       Region of the forwarding rule. Set only for regional forwarding rules.
       
      string region = 8;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public ForwardingRuleInfo.Builder clearRegion()
       Region of the forwarding rule. Set only for regional forwarding rules.
       
      string region = 8;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public ForwardingRuleInfo.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Region of the forwarding rule. Set only for regional forwarding rules.
       
      string region = 8;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getLoadBalancerName

      public String getLoadBalancerName()
       Name of the load balancer the forwarding rule belongs to. Empty for
       forwarding rules not related to load balancers (like PSC forwarding rules).
       
      string load_balancer_name = 9;
      Specified by:
      getLoadBalancerName in interface ForwardingRuleInfoOrBuilder
      Returns:
      The loadBalancerName.
    • getLoadBalancerNameBytes

      public com.google.protobuf.ByteString getLoadBalancerNameBytes()
       Name of the load balancer the forwarding rule belongs to. Empty for
       forwarding rules not related to load balancers (like PSC forwarding rules).
       
      string load_balancer_name = 9;
      Specified by:
      getLoadBalancerNameBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for loadBalancerName.
    • setLoadBalancerName

      public ForwardingRuleInfo.Builder setLoadBalancerName(String value)
       Name of the load balancer the forwarding rule belongs to. Empty for
       forwarding rules not related to load balancers (like PSC forwarding rules).
       
      string load_balancer_name = 9;
      Parameters:
      value - The loadBalancerName to set.
      Returns:
      This builder for chaining.
    • clearLoadBalancerName

      public ForwardingRuleInfo.Builder clearLoadBalancerName()
       Name of the load balancer the forwarding rule belongs to. Empty for
       forwarding rules not related to load balancers (like PSC forwarding rules).
       
      string load_balancer_name = 9;
      Returns:
      This builder for chaining.
    • setLoadBalancerNameBytes

      public ForwardingRuleInfo.Builder setLoadBalancerNameBytes(com.google.protobuf.ByteString value)
       Name of the load balancer the forwarding rule belongs to. Empty for
       forwarding rules not related to load balancers (like PSC forwarding rules).
       
      string load_balancer_name = 9;
      Parameters:
      value - The bytes for loadBalancerName to set.
      Returns:
      This builder for chaining.
    • getPscServiceAttachmentUri

      public String getPscServiceAttachmentUri()
       URI of the PSC service attachment this forwarding rule targets (if
       applicable).
       
      string psc_service_attachment_uri = 10;
      Specified by:
      getPscServiceAttachmentUri in interface ForwardingRuleInfoOrBuilder
      Returns:
      The pscServiceAttachmentUri.
    • getPscServiceAttachmentUriBytes

      public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes()
       URI of the PSC service attachment this forwarding rule targets (if
       applicable).
       
      string psc_service_attachment_uri = 10;
      Specified by:
      getPscServiceAttachmentUriBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for pscServiceAttachmentUri.
    • setPscServiceAttachmentUri

      public ForwardingRuleInfo.Builder setPscServiceAttachmentUri(String value)
       URI of the PSC service attachment this forwarding rule targets (if
       applicable).
       
      string psc_service_attachment_uri = 10;
      Parameters:
      value - The pscServiceAttachmentUri to set.
      Returns:
      This builder for chaining.
    • clearPscServiceAttachmentUri

      public ForwardingRuleInfo.Builder clearPscServiceAttachmentUri()
       URI of the PSC service attachment this forwarding rule targets (if
       applicable).
       
      string psc_service_attachment_uri = 10;
      Returns:
      This builder for chaining.
    • setPscServiceAttachmentUriBytes

      public ForwardingRuleInfo.Builder setPscServiceAttachmentUriBytes(com.google.protobuf.ByteString value)
       URI of the PSC service attachment this forwarding rule targets (if
       applicable).
       
      string psc_service_attachment_uri = 10;
      Parameters:
      value - The bytes for pscServiceAttachmentUri to set.
      Returns:
      This builder for chaining.
    • getPscGoogleApiTarget

      public String getPscGoogleApiTarget()
       PSC Google API target this forwarding rule targets (if applicable).
       
      string psc_google_api_target = 11;
      Specified by:
      getPscGoogleApiTarget in interface ForwardingRuleInfoOrBuilder
      Returns:
      The pscGoogleApiTarget.
    • getPscGoogleApiTargetBytes

      public com.google.protobuf.ByteString getPscGoogleApiTargetBytes()
       PSC Google API target this forwarding rule targets (if applicable).
       
      string psc_google_api_target = 11;
      Specified by:
      getPscGoogleApiTargetBytes in interface ForwardingRuleInfoOrBuilder
      Returns:
      The bytes for pscGoogleApiTarget.
    • setPscGoogleApiTarget

      public ForwardingRuleInfo.Builder setPscGoogleApiTarget(String value)
       PSC Google API target this forwarding rule targets (if applicable).
       
      string psc_google_api_target = 11;
      Parameters:
      value - The pscGoogleApiTarget to set.
      Returns:
      This builder for chaining.
    • clearPscGoogleApiTarget

      public ForwardingRuleInfo.Builder clearPscGoogleApiTarget()
       PSC Google API target this forwarding rule targets (if applicable).
       
      string psc_google_api_target = 11;
      Returns:
      This builder for chaining.
    • setPscGoogleApiTargetBytes

      public ForwardingRuleInfo.Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value)
       PSC Google API target this forwarding rule targets (if applicable).
       
      string psc_google_api_target = 11;
      Parameters:
      value - The bytes for pscGoogleApiTarget to set.
      Returns:
      This builder for chaining.