Class ForwardingRuleInfo.Builder (1.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ForwardingRuleInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

build()

public ForwardingRuleInfo build()
Returns
TypeDescription
ForwardingRuleInfo

buildPartial()

public ForwardingRuleInfo buildPartial()
Returns
TypeDescription
ForwardingRuleInfo

clear()

public ForwardingRuleInfo.Builder clear()
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

clearDisplayName()

public ForwardingRuleInfo.Builder clearDisplayName()

Name of a Compute Engine forwarding rule.

string display_name = 1;

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ForwardingRuleInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

clearMatchedPortRange()

public ForwardingRuleInfo.Builder clearMatchedPortRange()

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

string matched_port_range = 6;

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

clearMatchedProtocol()

public ForwardingRuleInfo.Builder clearMatchedProtocol()

Protocol defined in the forwarding rule that matches the test.

string matched_protocol = 3;

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

clearNetworkUri()

public ForwardingRuleInfo.Builder clearNetworkUri()

Network URI. Only valid for Internal Load Balancer.

string network_uri = 7;

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ForwardingRuleInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

clearTarget()

public ForwardingRuleInfo.Builder clearTarget()

Target type of the forwarding rule.

string target = 5;

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

clearUri()

public ForwardingRuleInfo.Builder clearUri()

URI of a Compute Engine forwarding rule.

string uri = 2;

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

clearVip()

public ForwardingRuleInfo.Builder clearVip()

VIP of the forwarding rule.

string vip = 4;

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

clone()

public ForwardingRuleInfo.Builder clone()
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

getDefaultInstanceForType()

public ForwardingRuleInfo getDefaultInstanceForType()
Returns
TypeDescription
ForwardingRuleInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a Compute Engine forwarding rule.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a Compute Engine forwarding rule.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getMatchedPortRange()

public String getMatchedPortRange()

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

string matched_port_range = 6;

Returns
TypeDescription
String

The matchedPortRange.

getMatchedPortRangeBytes()

public ByteString getMatchedPortRangeBytes()

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

string matched_port_range = 6;

Returns
TypeDescription
ByteString

The bytes for matchedPortRange.

getMatchedProtocol()

public String getMatchedProtocol()

Protocol defined in the forwarding rule that matches the test.

string matched_protocol = 3;

Returns
TypeDescription
String

The matchedProtocol.

getMatchedProtocolBytes()

public ByteString getMatchedProtocolBytes()

Protocol defined in the forwarding rule that matches the test.

string matched_protocol = 3;

Returns
TypeDescription
ByteString

The bytes for matchedProtocol.

getNetworkUri()

public String getNetworkUri()

Network URI. Only valid for Internal Load Balancer.

string network_uri = 7;

Returns
TypeDescription
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

Network URI. Only valid for Internal Load Balancer.

string network_uri = 7;

Returns
TypeDescription
ByteString

The bytes for networkUri.

getTarget()

public String getTarget()

Target type of the forwarding rule.

string target = 5;

Returns
TypeDescription
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

Target type of the forwarding rule.

string target = 5;

Returns
TypeDescription
ByteString

The bytes for target.

getUri()

public String getUri()

URI of a Compute Engine forwarding rule.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a Compute Engine forwarding rule.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

getVip()

public String getVip()

VIP of the forwarding rule.

string vip = 4;

Returns
TypeDescription
String

The vip.

getVipBytes()

public ByteString getVipBytes()

VIP of the forwarding rule.

string vip = 4;

Returns
TypeDescription
ByteString

The bytes for vip.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ForwardingRuleInfo other)

public ForwardingRuleInfo.Builder mergeFrom(ForwardingRuleInfo other)
Parameter
NameDescription
otherForwardingRuleInfo
Returns
TypeDescription
ForwardingRuleInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ForwardingRuleInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ForwardingRuleInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ForwardingRuleInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

setDisplayName(String value)

public ForwardingRuleInfo.Builder setDisplayName(String value)

Name of a Compute Engine forwarding rule.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ForwardingRuleInfo.Builder setDisplayNameBytes(ByteString value)

Name of a Compute Engine forwarding rule.

string display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ForwardingRuleInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

setMatchedPortRange(String value)

public ForwardingRuleInfo.Builder setMatchedPortRange(String value)

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

string matched_port_range = 6;

Parameter
NameDescription
valueString

The matchedPortRange to set.

Returns
TypeDescription
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 test.

string matched_port_range = 6;

Parameter
NameDescription
valueByteString

The bytes for matchedPortRange to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setMatchedProtocol(String value)

public ForwardingRuleInfo.Builder setMatchedProtocol(String value)

Protocol defined in the forwarding rule that matches the test.

string matched_protocol = 3;

Parameter
NameDescription
valueString

The matchedProtocol to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setMatchedProtocolBytes(ByteString value)

public ForwardingRuleInfo.Builder setMatchedProtocolBytes(ByteString value)

Protocol defined in the forwarding rule that matches the test.

string matched_protocol = 3;

Parameter
NameDescription
valueByteString

The bytes for matchedProtocol to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setNetworkUri(String value)

public ForwardingRuleInfo.Builder setNetworkUri(String value)

Network URI. Only valid for Internal Load Balancer.

string network_uri = 7;

Parameter
NameDescription
valueString

The networkUri to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public ForwardingRuleInfo.Builder setNetworkUriBytes(ByteString value)

Network URI. Only valid for Internal Load Balancer.

string network_uri = 7;

Parameter
NameDescription
valueByteString

The bytes for networkUri to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

setTarget(String value)

public ForwardingRuleInfo.Builder setTarget(String value)

Target type of the forwarding rule.

string target = 5;

Parameter
NameDescription
valueString

The target to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for target to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ForwardingRuleInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ForwardingRuleInfo.Builder
Overrides

setUri(String value)

public ForwardingRuleInfo.Builder setUri(String value)

URI of a Compute Engine forwarding rule.

string uri = 2;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public ForwardingRuleInfo.Builder setUriBytes(ByteString value)

URI of a Compute Engine forwarding rule.

string uri = 2;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setVip(String value)

public ForwardingRuleInfo.Builder setVip(String value)

VIP of the forwarding rule.

string vip = 4;

Parameter
NameDescription
valueString

The vip to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.

setVipBytes(ByteString value)

public ForwardingRuleInfo.Builder setVipBytes(ByteString value)

VIP of the forwarding rule.

string vip = 4;

Parameter
NameDescription
valueByteString

The bytes for vip to set.

Returns
TypeDescription
ForwardingRuleInfo.Builder

This builder for chaining.