Class PolicyBasedRoute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
com.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Builder
- All Implemented Interfaces:
PolicyBasedRouteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PolicyBasedRoute
public static final class PolicyBasedRoute.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
implements PolicyBasedRouteOrBuilder
Policy-based routes route L4 network traffic based on not just destination IP address, but also source IP address, protocol, and more. If a policy-based route conflicts with other types of routes, the policy-based route always takes precedence.Protobuf type
google.cloud.networkconnectivity.v1beta.PolicyBasedRoute-
Method Summary
Modifier and TypeMethodDescriptionaddAllWarnings(Iterable<? extends PolicyBasedRoute.Warnings> values) Output only.addWarnings(int index, PolicyBasedRoute.Warnings value) Output only.addWarnings(int index, PolicyBasedRoute.Warnings.Builder builderForValue) Output only.Output only.addWarnings(PolicyBasedRoute.Warnings.Builder builderForValue) Output only.Output only.addWarningsBuilder(int index) Output only.build()clear()Output only.Optional.Required.Optional.Output only.Immutable.Required.Optional.Optional.Optional.Output only.Output only.Optional.Output only.booleancontainsLabels(String key) User-defined labels.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.Optional.Optional.Optional.getKind()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.intUser-defined labels.User-defined labels.getLabelsOrDefault(String key, String defaultValue) User-defined labels.getLabelsOrThrow(String key) User-defined labels.Deprecated.getName()Immutable.com.google.protobuf.ByteStringImmutable.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.intOptional.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.Optional.Optional.getWarnings(int index) Output only.getWarningsBuilder(int index) Output only.Output only.intOutput only.Output only.getWarningsOrBuilder(int index) Output only.List<? extends PolicyBasedRoute.WarningsOrBuilder>Output only.booleanOutput only.booleanRequired.booleanOptional.booleanOptional.booleanOptional.booleanOutput only.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.Required.mergeFrom(PolicyBasedRoute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.Optional.putAllLabels(Map<String, String> values) User-defined labels.User-defined labels.removeLabels(String key) User-defined labels.removeWarnings(int index) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setFilter(PolicyBasedRoute.Filter value) Required.setFilter(PolicyBasedRoute.Filter.Builder builderForValue) Required.Optional.setInterconnectAttachment(PolicyBasedRoute.InterconnectAttachment.Builder builderForValue) Optional.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.setNetwork(String value) Required.setNetworkBytes(com.google.protobuf.ByteString value) Required.setNextHopIlbIp(String value) Optional.setNextHopIlbIpBytes(com.google.protobuf.ByteString value) Optional.Optional.setNextHopOtherRoutesValue(int value) Optional.setPriority(int value) Optional.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Optional.setVirtualMachine(PolicyBasedRoute.VirtualMachine.Builder builderForValue) Optional.setWarnings(int index, PolicyBasedRoute.Warnings value) Output only.setWarnings(int index, PolicyBasedRoute.Warnings.Builder builderForValue) Output only.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.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<PolicyBasedRoute.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<PolicyBasedRoute.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<PolicyBasedRoute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
-
mergeFrom
public PolicyBasedRoute.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<PolicyBasedRoute.Builder>- Throws:
IOException
-
getTargetCase
- Specified by:
getTargetCasein interfacePolicyBasedRouteOrBuilder
-
clearTarget
-
getNextHopCase
- Specified by:
getNextHopCasein interfacePolicyBasedRouteOrBuilder
-
clearNextHop
-
hasVirtualMachine
public boolean hasVirtualMachine()Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVirtualMachinein interfacePolicyBasedRouteOrBuilder- Returns:
- Whether the virtualMachine field is set.
-
getVirtualMachine
Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVirtualMachinein interfacePolicyBasedRouteOrBuilder- Returns:
- The virtualMachine.
-
setVirtualMachine
Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; -
setVirtualMachine
public PolicyBasedRoute.Builder setVirtualMachine(PolicyBasedRoute.VirtualMachine.Builder builderForValue) Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; -
mergeVirtualMachine
Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; -
clearVirtualMachine
Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; -
getVirtualMachineBuilder
Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; -
getVirtualMachineOrBuilder
Optional. VM instances that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVirtualMachineOrBuilderin interfacePolicyBasedRouteOrBuilder
-
hasInterconnectAttachment
public boolean hasInterconnectAttachment()Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasInterconnectAttachmentin interfacePolicyBasedRouteOrBuilder- Returns:
- Whether the interconnectAttachment field is set.
-
getInterconnectAttachment
Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInterconnectAttachmentin interfacePolicyBasedRouteOrBuilder- Returns:
- The interconnectAttachment.
-
setInterconnectAttachment
public PolicyBasedRoute.Builder setInterconnectAttachment(PolicyBasedRoute.InterconnectAttachment value) Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; -
setInterconnectAttachment
public PolicyBasedRoute.Builder setInterconnectAttachment(PolicyBasedRoute.InterconnectAttachment.Builder builderForValue) Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; -
mergeInterconnectAttachment
public PolicyBasedRoute.Builder mergeInterconnectAttachment(PolicyBasedRoute.InterconnectAttachment value) Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; -
clearInterconnectAttachment
Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getInterconnectAttachmentBuilder
Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getInterconnectAttachmentOrBuilder
Optional. The interconnect attachments that this policy-based route applies to.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInterconnectAttachmentOrBuilderin interfacePolicyBasedRouteOrBuilder
-
hasNextHopIlbIp
public boolean hasNextHopIlbIp()Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasNextHopIlbIpin interfacePolicyBasedRouteOrBuilder- Returns:
- Whether the nextHopIlbIp field is set.
-
getNextHopIlbIp
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNextHopIlbIpin interfacePolicyBasedRouteOrBuilder- Returns:
- The nextHopIlbIp.
-
getNextHopIlbIpBytes
public com.google.protobuf.ByteString getNextHopIlbIpBytes()Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNextHopIlbIpBytesin interfacePolicyBasedRouteOrBuilder- Returns:
- The bytes for nextHopIlbIp.
-
setNextHopIlbIp
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The nextHopIlbIp to set.- Returns:
- This builder for chaining.
-
clearNextHopIlbIp
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setNextHopIlbIpBytes
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for nextHopIlbIp to set.- Returns:
- This builder for chaining.
-
hasNextHopOtherRoutes
public boolean hasNextHopOtherRoutes()Optional. Other routes that will be referenced to determine the next hop of the packet.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.OtherRoutes next_hop_other_routes = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasNextHopOtherRoutesin interfacePolicyBasedRouteOrBuilder- Returns:
- Whether the nextHopOtherRoutes field is set.
-
getNextHopOtherRoutesValue
public int getNextHopOtherRoutesValue()Optional. Other routes that will be referenced to determine the next hop of the packet.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.OtherRoutes next_hop_other_routes = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNextHopOtherRoutesValuein interfacePolicyBasedRouteOrBuilder- Returns:
- The enum numeric value on the wire for nextHopOtherRoutes.
-
setNextHopOtherRoutesValue
Optional. Other routes that will be referenced to determine the next hop of the packet.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.OtherRoutes next_hop_other_routes = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for nextHopOtherRoutes to set.- Returns:
- This builder for chaining.
-
getNextHopOtherRoutes
Optional. Other routes that will be referenced to determine the next hop of the packet.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.OtherRoutes next_hop_other_routes = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNextHopOtherRoutesin interfacePolicyBasedRouteOrBuilder- Returns:
- The nextHopOtherRoutes.
-
setNextHopOtherRoutes
Optional. Other routes that will be referenced to determine the next hop of the packet.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.OtherRoutes next_hop_other_routes = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The nextHopOtherRoutes to set.- Returns:
- This builder for chaining.
-
clearNextHopOtherRoutes
Optional. Other routes that will be referenced to determine the next hop of the packet.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.OtherRoutes next_hop_other_routes = 21 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getName
Immutable. Identifier. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfacePolicyBasedRouteOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Immutable. Identifier. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfacePolicyBasedRouteOrBuilder- Returns:
- The bytes for name.
-
setName
Immutable. Identifier. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Immutable. Identifier. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Immutable. Identifier. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfacePolicyBasedRouteOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfacePolicyBasedRouteOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public PolicyBasedRoute.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when the policy-based route was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfacePolicyBasedRouteOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfacePolicyBasedRouteOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfacePolicyBasedRouteOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
public PolicyBasedRoute.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time when the policy-based route was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfacePolicyBasedRouteOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:PolicyBasedRouteOrBuilderUser-defined labels.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfacePolicyBasedRouteOrBuilder
-
containsLabels
User-defined labels.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfacePolicyBasedRouteOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfacePolicyBasedRouteOrBuilder
-
getLabelsMap
User-defined labels.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfacePolicyBasedRouteOrBuilder
-
getLabelsOrDefault
User-defined labels.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfacePolicyBasedRouteOrBuilder
-
getLabelsOrThrow
User-defined labels.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfacePolicyBasedRouteOrBuilder
-
clearLabels
-
removeLabels
User-defined labels.
map<string, string> labels = 4; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
User-defined labels.
map<string, string> labels = 4; -
putAllLabels
User-defined labels.
map<string, string> labels = 4; -
getDescription
Optional. An optional description of this resource. Provide this field when you create the resource.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfacePolicyBasedRouteOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. An optional description of this resource. Provide this field when you create the resource.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfacePolicyBasedRouteOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. An optional description of this resource. Provide this field when you create the resource.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. An optional description of this resource. Provide this field when you create the resource.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. An optional description of this resource. Provide this field when you create the resource.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getNetwork
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNetworkin interfacePolicyBasedRouteOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNetworkBytesin interfacePolicyBasedRouteOrBuilder- Returns:
- The bytes for network.
-
setNetwork
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNetworkBytes
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasFilter
public boolean hasFilter()Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasFilterin interfacePolicyBasedRouteOrBuilder- Returns:
- Whether the filter field is set.
-
getFilter
Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFilterin interfacePolicyBasedRouteOrBuilder- Returns:
- The filter.
-
setFilter
Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; -
setFilter
Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; -
mergeFilter
Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; -
clearFilter
Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; -
getFilterBuilder
Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; -
getFilterOrBuilder
Required. The filter to match L4 traffic.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFilterOrBuilderin interfacePolicyBasedRouteOrBuilder
-
getPriority
public int getPriority()Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPriorityin interfacePolicyBasedRouteOrBuilder- Returns:
- The priority.
-
setPriority
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getWarningsList
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWarningsListin interfacePolicyBasedRouteOrBuilder
-
getWarningsCount
public int getWarningsCount()Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWarningsCountin interfacePolicyBasedRouteOrBuilder
-
getWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWarningsin interfacePolicyBasedRouteOrBuilder
-
setWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setWarnings
public PolicyBasedRoute.Builder setWarnings(int index, PolicyBasedRoute.Warnings.Builder builderForValue) Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addWarnings
public PolicyBasedRoute.Builder addWarnings(int index, PolicyBasedRoute.Warnings.Builder builderForValue) Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllWarnings
public PolicyBasedRoute.Builder addAllWarnings(Iterable<? extends PolicyBasedRoute.Warnings> values) Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getWarningsBuilder
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getWarningsOrBuilder
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWarningsOrBuilderin interfacePolicyBasedRouteOrBuilder
-
getWarningsOrBuilderList
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getWarningsOrBuilderListin interfacePolicyBasedRouteOrBuilder
-
addWarningsBuilder
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addWarningsBuilder
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getWarningsBuilderList
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
repeated .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSelfLink
Output only. Server-defined fully-qualified URL for this resource.
string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSelfLinkin interfacePolicyBasedRouteOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. Server-defined fully-qualified URL for this resource.
string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSelfLinkBytesin interfacePolicyBasedRouteOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. Server-defined fully-qualified URL for this resource.
string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. Server-defined fully-qualified URL for this resource.
string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. Server-defined fully-qualified URL for this resource.
string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
getKind
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKindin interfacePolicyBasedRouteOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKindBytesin interfacePolicyBasedRouteOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setKindBytes
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-