Package com.google.cloud.compute.v1
Class RoutePolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder>
com.google.cloud.compute.v1.RoutePolicy.Builder
- All Implemented Interfaces:
RoutePolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RoutePolicy
public static final class RoutePolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder>
implements RoutePolicyOrBuilder
Protobuf type
google.cloud.compute.v1.RoutePolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllTerms(Iterable<? extends RoutePolicyPolicyTerm> values) List of terms (the order in the list is not important, they are evaluated in order of priority).addTerms(int index, RoutePolicyPolicyTerm value) List of terms (the order in the list is not important, they are evaluated in order of priority).addTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue) List of terms (the order in the list is not important, they are evaluated in order of priority).addTerms(RoutePolicyPolicyTerm value) List of terms (the order in the list is not important, they are evaluated in order of priority).addTerms(RoutePolicyPolicyTerm.Builder builderForValue) List of terms (the order in the list is not important, they are evaluated in order of priority).List of terms (the order in the list is not important, they are evaluated in order of priority).addTermsBuilder(int index) List of terms (the order in the list is not important, they are evaluated in order of priority).build()clear()An optional description of route policy.A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking.Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.List of terms (the order in the list is not important, they are evaluated in order of priority).Check the Type enum for the list of possible values.An optional description of route policy.com.google.protobuf.ByteStringAn optional description of route policy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA 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.ByteStringA fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking.getName()Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.com.google.protobuf.ByteStringRoute Policy name, which must be a resource ID segment and unique within all the router's Route Policies.getTerms(int index) List of terms (the order in the list is not important, they are evaluated in order of priority).getTermsBuilder(int index) List of terms (the order in the list is not important, they are evaluated in order of priority).List of terms (the order in the list is not important, they are evaluated in order of priority).intList of terms (the order in the list is not important, they are evaluated in order of priority).List of terms (the order in the list is not important, they are evaluated in order of priority).getTermsOrBuilder(int index) List of terms (the order in the list is not important, they are evaluated in order of priority).List<? extends RoutePolicyPolicyTermOrBuilder>List of terms (the order in the list is not important, they are evaluated in order of priority).getType()Check the Type enum for the list of possible values.com.google.protobuf.ByteStringCheck the Type enum for the list of possible values.booleanAn optional description of route policy.booleanA fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking.booleanhasName()Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.booleanhasType()Check the Type enum for the list of possible values.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RoutePolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeTerms(int index) List of terms (the order in the list is not important, they are evaluated in order of priority).setDescription(String value) An optional description of route policy.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of route policy.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.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.Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies.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.setTerms(int index, RoutePolicyPolicyTerm value) List of terms (the order in the list is not important, they are evaluated in order of priority).setTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue) List of terms (the order in the list is not important, they are evaluated in order of priority).Check the Type enum for the list of possible values.setTypeBytes(com.google.protobuf.ByteString value) Check the Type enum for the list of possible values.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RoutePolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder>
-
mergeFrom
public RoutePolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RoutePolicy.Builder>- Throws:
IOException
-
hasDescription
public boolean hasDescription()An optional description of route policy.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceRoutePolicyOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of route policy.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceRoutePolicyOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of route policy.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceRoutePolicyOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of route policy.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of route policy.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of route policy.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasFingerprintin interfaceRoutePolicyOrBuilder- Returns:
- Whether the fingerprint field is set.
-
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;- Specified by:
getFingerprintin interfaceRoutePolicyOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public 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;- Specified by:
getFingerprintBytesin interfaceRoutePolicyOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
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;- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFingerprintBytes
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;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasNamein interfaceRoutePolicyOrBuilder- Returns:
- Whether the name field is set.
-
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;- Specified by:
getNamein interfaceRoutePolicyOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceRoutePolicyOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTermsListin interfaceRoutePolicyOrBuilder
-
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;- Specified by:
getTermsCountin interfaceRoutePolicyOrBuilder
-
getTerms
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;- Specified by:
getTermsin interfaceRoutePolicyOrBuilder
-
setTerms
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; -
setTerms
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; -
addTerms
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; -
addTerms
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; -
addTerms
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; -
addTerms
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; -
addAllTerms
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; -
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; -
removeTerms
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; -
getTermsBuilder
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
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;- Specified by:
getTermsOrBuilderin interfaceRoutePolicyOrBuilder
-
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;- Specified by:
getTermsOrBuilderListin interfaceRoutePolicyOrBuilder
-
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; -
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; -
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; -
hasType
public boolean hasType()Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceRoutePolicyOrBuilder- Returns:
- Whether the type field is set.
-
getType
Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceRoutePolicyOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceRoutePolicyOrBuilder- Returns:
- The bytes for type.
-
setType
Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-