Class PolicyBasedRoute.Filter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Filter.Builder>
com.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.Builder
- All Implemented Interfaces:
PolicyBasedRoute.FilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PolicyBasedRoute.Filter
public static final class PolicyBasedRoute.Filter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Filter.Builder>
implements PolicyBasedRoute.FilterOrBuilder
Filter matches L4 traffic.Protobuf type
google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Required.intRequired.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PolicyBasedRoute.Filter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDestRange(String value) Optional.setDestRangeBytes(com.google.protobuf.ByteString value) Optional.setIpProtocol(String value) Optional.setIpProtocolBytes(com.google.protobuf.ByteString value) Optional.Required.setProtocolVersionValue(int value) Required.setSrcRange(String value) Optional.setSrcRangeBytes(com.google.protobuf.ByteString value) Optional.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<PolicyBasedRoute.Filter.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.Filter.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.Filter.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.Filter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Filter.Builder>
-
mergeFrom
public PolicyBasedRoute.Filter.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.Filter.Builder>- Throws:
IOException
-
getIpProtocol
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIpProtocolin interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The ipProtocol.
-
getIpProtocolBytes
public com.google.protobuf.ByteString getIpProtocolBytes()Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIpProtocolBytesin interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The bytes for ipProtocol.
-
setIpProtocol
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ipProtocol to set.- Returns:
- This builder for chaining.
-
clearIpProtocol
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setIpProtocolBytes
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for ipProtocol to set.- Returns:
- This builder for chaining.
-
getSrcRange
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSrcRangein interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The srcRange.
-
getSrcRangeBytes
public com.google.protobuf.ByteString getSrcRangeBytes()Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSrcRangeBytesin interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The bytes for srcRange.
-
setSrcRange
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The srcRange to set.- Returns:
- This builder for chaining.
-
clearSrcRange
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSrcRangeBytes
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for srcRange to set.- Returns:
- This builder for chaining.
-
getDestRange
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestRangein interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The destRange.
-
getDestRangeBytes
public com.google.protobuf.ByteString getDestRangeBytes()Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestRangeBytesin interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The bytes for destRange.
-
setDestRange
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The destRange to set.- Returns:
- This builder for chaining.
-
clearDestRange
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDestRangeBytes
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if protocol version is IPv6.
string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for destRange to set.- Returns:
- This builder for chaining.
-
getProtocolVersionValue
public int getProtocolVersionValue()Required. Internet protocol versions this policy-based route applies to. IPV4 and IPV6 is supported.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProtocolVersionValuein interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The enum numeric value on the wire for protocolVersion.
-
setProtocolVersionValue
Required. Internet protocol versions this policy-based route applies to. IPV4 and IPV6 is supported.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for protocolVersion to set.- Returns:
- This builder for chaining.
-
getProtocolVersion
Required. Internet protocol versions this policy-based route applies to. IPV4 and IPV6 is supported.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProtocolVersionin interfacePolicyBasedRoute.FilterOrBuilder- Returns:
- The protocolVersion.
-
setProtocolVersion
public PolicyBasedRoute.Filter.Builder setProtocolVersion(PolicyBasedRoute.Filter.ProtocolVersion value) Required. Internet protocol versions this policy-based route applies to. IPV4 and IPV6 is supported.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The protocolVersion to set.- Returns:
- This builder for chaining.
-
clearProtocolVersion
Required. Internet protocol versions this policy-based route applies to. IPV4 and IPV6 is supported.
.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-