- 1.69.0 (latest)
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class RoutePolicy.Builder extends GeneratedMessageV3.Builder<RoutePolicy.Builder> implements RoutePolicyOrBuilder
Protobuf type google.cloud.compute.v1.RoutePolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RoutePolicy.BuilderImplements
RoutePolicyOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public RoutePolicy.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
RoutePolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RoutePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
RoutePolicy.Builder |
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 |
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 |
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 |