Class ForwardingRuleInfo.Builder (1.54.0)

public static final class ForwardingRuleInfo.Builder extends GeneratedMessageV3.Builder<ForwardingRuleInfo.Builder> implements ForwardingRuleInfoOrBuilder

For display only. Metadata associated with a Compute Engine forwarding rule.

Protobuf type google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ForwardingRuleInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

build()

public ForwardingRuleInfo build()
Returns
Type Description
ForwardingRuleInfo

buildPartial()

public ForwardingRuleInfo buildPartial()
Returns
Type Description
ForwardingRuleInfo

clear()

public ForwardingRuleInfo.Builder clear()
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

clearDisplayName()

public ForwardingRuleInfo.Builder clearDisplayName()

Name of the forwarding rule.

string display_name = 1;

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ForwardingRuleInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

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
Type Description
ForwardingRuleInfo.Builder

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
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearMatchedProtocol()

public ForwardingRuleInfo.Builder clearMatchedProtocol()

Protocol defined in the forwarding rule that matches the packet.

string matched_protocol = 3;

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearNetworkUri()

public ForwardingRuleInfo.Builder clearNetworkUri()

Network URI.

string network_uri = 7;

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ForwardingRuleInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

clearPscGoogleApiTarget()

public ForwardingRuleInfo.Builder clearPscGoogleApiTarget()

PSC Google API target this forwarding rule targets (if applicable).

string psc_google_api_target = 11;

Returns
Type Description
ForwardingRuleInfo.Builder

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
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearRegion()

public ForwardingRuleInfo.Builder clearRegion()

Region of the forwarding rule. Set only for regional forwarding rules.

string region = 8;

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearTarget()

public ForwardingRuleInfo.Builder clearTarget()

Target type of the forwarding rule.

string target = 5;

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearUri()

public ForwardingRuleInfo.Builder clearUri()

URI of the forwarding rule.

string uri = 2;

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clearVip()

public ForwardingRuleInfo.Builder clearVip()

VIP of the forwarding rule.

string vip = 4;

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

clone()

public ForwardingRuleInfo.Builder clone()
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

getDefaultInstanceForType()

public ForwardingRuleInfo getDefaultInstanceForType()
Returns
Type Description
ForwardingRuleInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of the forwarding rule.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of the forwarding rule.

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

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;

Returns
Type Description
String

The loadBalancerName.

getLoadBalancerNameBytes()

public 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;

Returns
Type Description
ByteString

The bytes for loadBalancerName.

getMatchedPortRange()

public String getMatchedPortRange()

Port range defined in the forwarding rule that matches the packet.

string matched_port_range = 6;

Returns
Type Description
String

The matchedPortRange.

getMatchedPortRangeBytes()

public ByteString getMatchedPortRangeBytes()

Port range defined in the forwarding rule that matches the packet.

string matched_port_range = 6;

Returns
Type Description
ByteString

The bytes for matchedPortRange.

getMatchedProtocol()

public String getMatchedProtocol()

Protocol defined in the forwarding rule that matches the packet.

string matched_protocol = 3;

Returns
Type Description
String

The matchedProtocol.

getMatchedProtocolBytes()

public ByteString getMatchedProtocolBytes()

Protocol defined in the forwarding rule that matches the packet.

string matched_protocol = 3;

Returns
Type Description
ByteString

The bytes for matchedProtocol.

getNetworkUri()

public String getNetworkUri()

Network URI.

string network_uri = 7;

Returns
Type Description
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

Network URI.

string network_uri = 7;

Returns
Type Description
ByteString

The bytes for networkUri.

getPscGoogleApiTarget()

public String getPscGoogleApiTarget()

PSC Google API target this forwarding rule targets (if applicable).

string psc_google_api_target = 11;

Returns
Type Description
String

The pscGoogleApiTarget.

getPscGoogleApiTargetBytes()

public ByteString getPscGoogleApiTargetBytes()

PSC Google API target this forwarding rule targets (if applicable).

string psc_google_api_target = 11;

Returns
Type Description
ByteString

The bytes for pscGoogleApiTarget.

getPscServiceAttachmentUri()

public String getPscServiceAttachmentUri()

URI of the PSC service attachment this forwarding rule targets (if applicable).

string psc_service_attachment_uri = 10;

Returns
Type Description
String

The pscServiceAttachmentUri.

getPscServiceAttachmentUriBytes()

public ByteString getPscServiceAttachmentUriBytes()

URI of the PSC service attachment this forwarding rule targets (if applicable).

string psc_service_attachment_uri = 10;

Returns
Type Description
ByteString

The bytes for pscServiceAttachmentUri.

getRegion()

public String getRegion()

Region of the forwarding rule. Set only for regional forwarding rules.

string region = 8;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Region of the forwarding rule. Set only for regional forwarding rules.

string region = 8;

Returns
Type Description
ByteString

The bytes for region.

getTarget()

public String getTarget()

Target type of the forwarding rule.

string target = 5;

Returns
Type Description
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

Target type of the forwarding rule.

string target = 5;

Returns
Type Description
ByteString

The bytes for target.

getUri()

public String getUri()

URI of the forwarding rule.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of the forwarding rule.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

getVip()

public String getVip()

VIP of the forwarding rule.

string vip = 4;

Returns
Type Description
String

The vip.

getVipBytes()

public ByteString getVipBytes()

VIP of the forwarding rule.

string vip = 4;

Returns
Type Description
ByteString

The bytes for vip.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ForwardingRuleInfo other)

public ForwardingRuleInfo.Builder mergeFrom(ForwardingRuleInfo other)
Parameter
Name Description
other ForwardingRuleInfo
Returns
Type Description
ForwardingRuleInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ForwardingRuleInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ForwardingRuleInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ForwardingRuleInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

setDisplayName(String value)

public ForwardingRuleInfo.Builder setDisplayName(String value)

Name of the forwarding rule.

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ForwardingRuleInfo.Builder setDisplayNameBytes(ByteString value)

Name of the forwarding rule.

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ForwardingRuleInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

setLoadBalancerName(String value)

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;

Parameter
Name Description
value String

The loadBalancerName to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setLoadBalancerNameBytes(ByteString value)

public ForwardingRuleInfo.Builder setLoadBalancerNameBytes(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;

Parameter
Name Description
value ByteString

The bytes for loadBalancerName to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setMatchedPortRange(String value)

public ForwardingRuleInfo.Builder setMatchedPortRange(String value)

Port range defined in the forwarding rule that matches the packet.

string matched_port_range = 6;

Parameter
Name Description
value String

The matchedPortRange to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setMatchedPortRangeBytes(ByteString value)

public ForwardingRuleInfo.Builder setMatchedPortRangeBytes(ByteString value)

Port range defined in the forwarding rule that matches the packet.

string matched_port_range = 6;

Parameter
Name Description
value ByteString

The bytes for matchedPortRange to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setMatchedProtocol(String value)

public ForwardingRuleInfo.Builder setMatchedProtocol(String value)

Protocol defined in the forwarding rule that matches the packet.

string matched_protocol = 3;

Parameter
Name Description
value String

The matchedProtocol to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setMatchedProtocolBytes(ByteString value)

public ForwardingRuleInfo.Builder setMatchedProtocolBytes(ByteString value)

Protocol defined in the forwarding rule that matches the packet.

string matched_protocol = 3;

Parameter
Name Description
value ByteString

The bytes for matchedProtocol to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setNetworkUri(String value)

public ForwardingRuleInfo.Builder setNetworkUri(String value)

Network URI.

string network_uri = 7;

Parameter
Name Description
value String

The networkUri to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public ForwardingRuleInfo.Builder setNetworkUriBytes(ByteString value)

Network URI.

string network_uri = 7;

Parameter
Name Description
value ByteString

The bytes for networkUri to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setPscGoogleApiTarget(String value)

public ForwardingRuleInfo.Builder setPscGoogleApiTarget(String value)

PSC Google API target this forwarding rule targets (if applicable).

string psc_google_api_target = 11;

Parameter
Name Description
value String

The pscGoogleApiTarget to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setPscGoogleApiTargetBytes(ByteString value)

public ForwardingRuleInfo.Builder setPscGoogleApiTargetBytes(ByteString value)

PSC Google API target this forwarding rule targets (if applicable).

string psc_google_api_target = 11;

Parameter
Name Description
value ByteString

The bytes for pscGoogleApiTarget to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setPscServiceAttachmentUri(String value)

public ForwardingRuleInfo.Builder setPscServiceAttachmentUri(String value)

URI of the PSC service attachment this forwarding rule targets (if applicable).

string psc_service_attachment_uri = 10;

Parameter
Name Description
value String

The pscServiceAttachmentUri to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setPscServiceAttachmentUriBytes(ByteString value)

public ForwardingRuleInfo.Builder setPscServiceAttachmentUriBytes(ByteString value)

URI of the PSC service attachment this forwarding rule targets (if applicable).

string psc_service_attachment_uri = 10;

Parameter
Name Description
value ByteString

The bytes for pscServiceAttachmentUri to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setRegion(String value)

public ForwardingRuleInfo.Builder setRegion(String value)

Region of the forwarding rule. Set only for regional forwarding rules.

string region = 8;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public ForwardingRuleInfo.Builder setRegionBytes(ByteString value)

Region of the forwarding rule. Set only for regional forwarding rules.

string region = 8;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ForwardingRuleInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

setTarget(String value)

public ForwardingRuleInfo.Builder setTarget(String value)

Target type of the forwarding rule.

string target = 5;

Parameter
Name Description
value String

The target to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setTargetBytes(ByteString value)

public ForwardingRuleInfo.Builder setTargetBytes(ByteString value)

Target type of the forwarding rule.

string target = 5;

Parameter
Name Description
value ByteString

The bytes for target to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ForwardingRuleInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ForwardingRuleInfo.Builder
Overrides

setUri(String value)

public ForwardingRuleInfo.Builder setUri(String value)

URI of the forwarding rule.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public ForwardingRuleInfo.Builder setUriBytes(ByteString value)

URI of the forwarding rule.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setVip(String value)

public ForwardingRuleInfo.Builder setVip(String value)

VIP of the forwarding rule.

string vip = 4;

Parameter
Name Description
value String

The vip to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.

setVipBytes(ByteString value)

public ForwardingRuleInfo.Builder setVipBytes(ByteString value)

VIP of the forwarding rule.

string vip = 4;

Parameter
Name Description
value ByteString

The bytes for vip to set.

Returns
Type Description
ForwardingRuleInfo.Builder

This builder for chaining.