Class RoutePolicy.Builder (1.69.0)

public static final class RoutePolicy.Builder extends GeneratedMessageV3.Builder<RoutePolicy.Builder> implements RoutePolicyOrBuilder

Protobuf type google.cloud.compute.v1.RoutePolicy

Static Methods

getDescriptor()

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

Methods

addAllTerms(Iterable<? extends RoutePolicyPolicyTerm> values)

public RoutePolicy.Builder addAllTerms(Iterable<? extends RoutePolicyPolicyTerm> values)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.RoutePolicyPolicyTerm>
Returns
Type Description
RoutePolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTerms(RoutePolicyPolicyTerm value)

public RoutePolicy.Builder addTerms(RoutePolicyPolicyTerm value)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
value RoutePolicyPolicyTerm
Returns
Type Description
RoutePolicy.Builder

addTerms(RoutePolicyPolicyTerm.Builder builderForValue)

public RoutePolicy.Builder addTerms(RoutePolicyPolicyTerm.Builder builderForValue)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
builderForValue RoutePolicyPolicyTerm.Builder
Returns
Type Description
RoutePolicy.Builder

addTerms(int index, RoutePolicyPolicyTerm value)

public RoutePolicy.Builder addTerms(int index, RoutePolicyPolicyTerm value)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameters
Name Description
index int
value RoutePolicyPolicyTerm
Returns
Type Description
RoutePolicy.Builder

addTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue)

public RoutePolicy.Builder addTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameters
Name Description
index int
builderForValue RoutePolicyPolicyTerm.Builder
Returns
Type Description
RoutePolicy.Builder

addTermsBuilder()

public RoutePolicyPolicyTerm.Builder addTermsBuilder()

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Returns
Type Description
RoutePolicyPolicyTerm.Builder

addTermsBuilder(int index)

public RoutePolicyPolicyTerm.Builder addTermsBuilder(int index)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
index int
Returns
Type Description
RoutePolicyPolicyTerm.Builder

build()

public RoutePolicy build()
Returns
Type Description
RoutePolicy

buildPartial()

public RoutePolicy buildPartial()
Returns
Type Description
RoutePolicy

clear()

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

clearDescription()

public RoutePolicy.Builder clearDescription()

An optional description of route policy.

optional string description = 422937596;

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public RoutePolicy.Builder clearFingerprint()

A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.

optional string fingerprint = 234678500;

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

clearName()

public RoutePolicy.Builder clearName()

Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTerms()

public RoutePolicy.Builder clearTerms()

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Returns
Type Description
RoutePolicy.Builder

clearType()

public RoutePolicy.Builder clearType()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RoutePolicy getDefaultInstanceForType()
Returns
Type Description
RoutePolicy

getDescription()

public String getDescription()

An optional description of route policy.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of route policy.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getFingerprint()

public String getFingerprint()

A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.

optional string fingerprint = 234678500;

Returns
Type Description
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.

optional string fingerprint = 234678500;

Returns
Type Description
ByteString

The bytes for fingerprint.

getName()

public String getName()

Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getTerms(int index)

public RoutePolicyPolicyTerm getTerms(int index)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
index int
Returns
Type Description
RoutePolicyPolicyTerm

getTermsBuilder(int index)

public RoutePolicyPolicyTerm.Builder getTermsBuilder(int index)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
index int
Returns
Type Description
RoutePolicyPolicyTerm.Builder

getTermsBuilderList()

public List<RoutePolicyPolicyTerm.Builder> getTermsBuilderList()

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Returns
Type Description
List<Builder>

getTermsCount()

public int getTermsCount()

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Returns
Type Description
int

getTermsList()

public List<RoutePolicyPolicyTerm> getTermsList()

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Returns
Type Description
List<RoutePolicyPolicyTerm>

getTermsOrBuilder(int index)

public RoutePolicyPolicyTermOrBuilder getTermsOrBuilder(int index)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
index int
Returns
Type Description
RoutePolicyPolicyTermOrBuilder

getTermsOrBuilderList()

public List<? extends RoutePolicyPolicyTermOrBuilder> getTermsOrBuilderList()

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.RoutePolicyPolicyTermOrBuilder>

getType()

public String getType()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasDescription()

public boolean hasDescription()

An optional description of route policy.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasFingerprint()

public boolean hasFingerprint()

A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.

optional string fingerprint = 234678500;

Returns
Type Description
boolean

Whether the fingerprint field is set.

hasName()

public boolean hasName()

Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasType()

public boolean hasType()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RoutePolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTerms(int index)

public RoutePolicy.Builder removeTerms(int index)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameter
Name Description
index int
Returns
Type Description
RoutePolicy.Builder

setDescription(String value)

public RoutePolicy.Builder setDescription(String value)

An optional description of route policy.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public RoutePolicy.Builder setDescriptionBytes(ByteString value)

An optional description of route policy.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(String value)

public RoutePolicy.Builder setFingerprint(String value)

A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.

optional string fingerprint = 234678500;

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public RoutePolicy.Builder setFingerprintBytes(ByteString value)

A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.

optional string fingerprint = 234678500;

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

setName(String value)

public RoutePolicy.Builder setName(String value)

Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RoutePolicy.Builder setNameBytes(ByteString value)

Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

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

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

setTerms(int index, RoutePolicyPolicyTerm value)

public RoutePolicy.Builder setTerms(int index, RoutePolicyPolicyTerm value)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameters
Name Description
index int
value RoutePolicyPolicyTerm
Returns
Type Description
RoutePolicy.Builder

setTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue)

public RoutePolicy.Builder setTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue)

List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.

repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;

Parameters
Name Description
index int
builderForValue RoutePolicyPolicyTerm.Builder
Returns
Type Description
RoutePolicy.Builder

setType(String value)

public RoutePolicy.Builder setType(String value)

Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public RoutePolicy.Builder setTypeBytes(ByteString value)

Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
RoutePolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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