public static final class RoutePolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder> implements RoutePolicyOrBuilder
Protobuf type
google.cloud.compute.v1.RoutePolicy| Modifier and Type | Method and Description |
|---|---|
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).
|
RoutePolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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).
|
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).
|
RoutePolicy.Builder |
addTerms(RoutePolicyPolicyTerm.Builder builderForValue)
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicy.Builder |
addTerms(RoutePolicyPolicyTerm value)
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicyPolicyTerm.Builder |
addTermsBuilder()
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicyPolicyTerm.Builder |
addTermsBuilder(int index)
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicy |
build() |
RoutePolicy |
buildPartial() |
RoutePolicy.Builder |
clear() |
RoutePolicy.Builder |
clearDescription()
An optional description of route policy.
|
RoutePolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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.
|
RoutePolicy.Builder |
clearName()
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.
|
RoutePolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RoutePolicy.Builder |
clearTerms()
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicy.Builder |
clearType()
Check the Type enum for the list of possible values.
|
RoutePolicy.Builder |
clone() |
RoutePolicy |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of route policy.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of route policy.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
com.google.protobuf.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.
|
String |
getName()
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.
|
com.google.protobuf.ByteString |
getNameBytes()
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.
|
RoutePolicyPolicyTerm |
getTerms(int index)
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicyPolicyTerm.Builder |
getTermsBuilder(int index)
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
List<RoutePolicyPolicyTerm.Builder> |
getTermsBuilderList()
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
int |
getTermsCount()
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
List<RoutePolicyPolicyTerm> |
getTermsList()
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicyPolicyTermOrBuilder |
getTermsOrBuilder(int index)
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
List<? extends RoutePolicyPolicyTermOrBuilder> |
getTermsOrBuilderList()
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
String |
getType()
Check the Type enum for the list of possible values.
|
com.google.protobuf.ByteString |
getTypeBytes()
Check the Type enum for the list of possible values.
|
boolean |
hasDescription()
An optional description of route policy.
|
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.
|
boolean |
hasName()
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.
|
boolean |
hasType()
Check the Type enum for the list of possible values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RoutePolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RoutePolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
RoutePolicy.Builder |
mergeFrom(RoutePolicy other) |
RoutePolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RoutePolicy.Builder |
removeTerms(int index)
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
RoutePolicy.Builder |
setDescription(String value)
An optional description of route policy.
|
RoutePolicy.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of route policy.
|
RoutePolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
RoutePolicy.Builder |
setFingerprintBytes(com.google.protobuf.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.
|
RoutePolicy.Builder |
setName(String value)
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.
|
RoutePolicy.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.
|
RoutePolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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).
|
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).
|
RoutePolicy.Builder |
setType(String value)
Check the Type enum for the list of possible values.
|
RoutePolicy.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
Check the Type enum for the list of possible values.
|
RoutePolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RoutePolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RoutePolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RoutePolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RoutePolicy.Builder>public RoutePolicy.Builder mergeFrom(RoutePolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public RoutePolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RoutePolicy.Builder>IOExceptionpublic boolean hasDescription()
An optional description of route policy.
optional string description = 422937596;hasDescription in interface RoutePolicyOrBuilderpublic String getDescription()
An optional description of route policy.
optional string description = 422937596;getDescription in interface RoutePolicyOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of route policy.
optional string description = 422937596;getDescriptionBytes in interface RoutePolicyOrBuilderpublic RoutePolicy.Builder setDescription(String value)
An optional description of route policy.
optional string description = 422937596;value - The description to set.public RoutePolicy.Builder clearDescription()
An optional description of route policy.
optional string description = 422937596;public RoutePolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of route policy.
optional string description = 422937596;value - The bytes for description to set.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;hasFingerprint in interface RoutePolicyOrBuilderpublic 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;getFingerprint in interface RoutePolicyOrBuilderpublic com.google.protobuf.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;getFingerprintBytes in interface RoutePolicyOrBuilderpublic 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;value - The fingerprint to set.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;public RoutePolicy.Builder setFingerprintBytes(com.google.protobuf.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;value - The bytes for fingerprint to set.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;hasName in interface RoutePolicyOrBuilderpublic 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;getName in interface RoutePolicyOrBuilderpublic com.google.protobuf.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;getNameBytes in interface RoutePolicyOrBuilderpublic 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;value - The name to set.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;public RoutePolicy.Builder setNameBytes(com.google.protobuf.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;value - The bytes for name to set.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;getTermsList in interface RoutePolicyOrBuilderpublic 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;getTermsCount in interface RoutePolicyOrBuilderpublic 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;getTerms in interface RoutePolicyOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getTermsOrBuilder in interface RoutePolicyOrBuilderpublic 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;getTermsOrBuilderList in interface RoutePolicyOrBuilderpublic 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;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;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;public boolean hasType()
Check the Type enum for the list of possible values.
optional string type = 3575610;hasType in interface RoutePolicyOrBuilderpublic String getType()
Check the Type enum for the list of possible values.
optional string type = 3575610;getType in interface RoutePolicyOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Check the Type enum for the list of possible values.
optional string type = 3575610;getTypeBytes in interface RoutePolicyOrBuilderpublic RoutePolicy.Builder setType(String value)
Check the Type enum for the list of possible values.
optional string type = 3575610;value - The type to set.public RoutePolicy.Builder clearType()
Check the Type enum for the list of possible values.
optional string type = 3575610;public RoutePolicy.Builder setTypeBytes(com.google.protobuf.ByteString value)
Check the Type enum for the list of possible values.
optional string type = 3575610;value - The bytes for type to set.public final RoutePolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>public final RoutePolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RoutePolicy.Builder>Copyright © 2025 Google LLC. All rights reserved.