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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
    • clear

      public PolicyBasedRoute.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Builder>
    • getDefaultInstanceForType

      public PolicyBasedRoute getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PolicyBasedRoute build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PolicyBasedRoute buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PolicyBasedRoute.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyBasedRoute.Builder>
    • mergeFrom

      public PolicyBasedRoute.Builder mergeFrom(PolicyBasedRoute other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyBasedRoute.Builder>
      Throws:
      IOException
    • getTargetCase

      public PolicyBasedRoute.TargetCase getTargetCase()
      Specified by:
      getTargetCase in interface PolicyBasedRouteOrBuilder
    • clearTarget

      public PolicyBasedRoute.Builder clearTarget()
    • getNextHopCase

      public PolicyBasedRoute.NextHopCase getNextHopCase()
      Specified by:
      getNextHopCase in interface PolicyBasedRouteOrBuilder
    • clearNextHop

      public PolicyBasedRoute.Builder 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:
      hasVirtualMachine in interface PolicyBasedRouteOrBuilder
      Returns:
      Whether the virtualMachine field is set.
    • getVirtualMachine

      public PolicyBasedRoute.VirtualMachine 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:
      getVirtualMachine in interface PolicyBasedRouteOrBuilder
      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

      public PolicyBasedRoute.Builder mergeVirtualMachine(PolicyBasedRoute.VirtualMachine value)
       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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.VirtualMachine.Builder 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

      public PolicyBasedRoute.VirtualMachineOrBuilder 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:
      getVirtualMachineOrBuilder in interface PolicyBasedRouteOrBuilder
    • 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:
      hasInterconnectAttachment in interface PolicyBasedRouteOrBuilder
      Returns:
      Whether the interconnectAttachment field is set.
    • getInterconnectAttachment

      public PolicyBasedRoute.InterconnectAttachment 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:
      getInterconnectAttachment in interface PolicyBasedRouteOrBuilder
      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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.InterconnectAttachment.Builder 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

      public PolicyBasedRoute.InterconnectAttachmentOrBuilder 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:
      getInterconnectAttachmentOrBuilder in interface PolicyBasedRouteOrBuilder
    • 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:
      hasNextHopIlbIp in interface PolicyBasedRouteOrBuilder
      Returns:
      Whether the nextHopIlbIp field is set.
    • getNextHopIlbIp

      public String 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:
      getNextHopIlbIp in interface PolicyBasedRouteOrBuilder
      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:
      getNextHopIlbIpBytes in interface PolicyBasedRouteOrBuilder
      Returns:
      The bytes for nextHopIlbIp.
    • setNextHopIlbIp

      public PolicyBasedRoute.Builder setNextHopIlbIp(String value)
       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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.Builder setNextHopIlbIpBytes(com.google.protobuf.ByteString value)
       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:
      hasNextHopOtherRoutes in interface PolicyBasedRouteOrBuilder
      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:
      getNextHopOtherRoutesValue in interface PolicyBasedRouteOrBuilder
      Returns:
      The enum numeric value on the wire for nextHopOtherRoutes.
    • setNextHopOtherRoutesValue

      public PolicyBasedRoute.Builder setNextHopOtherRoutesValue(int value)
       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

      public PolicyBasedRoute.OtherRoutes 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:
      getNextHopOtherRoutes in interface PolicyBasedRouteOrBuilder
      Returns:
      The nextHopOtherRoutes.
    • setNextHopOtherRoutes

      public PolicyBasedRoute.Builder setNextHopOtherRoutes(PolicyBasedRoute.OtherRoutes value)
       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

      public PolicyBasedRoute.Builder 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

      public String 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:
      getName in interface PolicyBasedRouteOrBuilder
      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:
      getNameBytes in interface PolicyBasedRouteOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PolicyBasedRoute.Builder setName(String value)
       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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface PolicyBasedRouteOrBuilder
      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:
      getCreateTime in interface PolicyBasedRouteOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public PolicyBasedRoute.Builder setCreateTime(com.google.protobuf.Timestamp value)
       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

      public PolicyBasedRoute.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the policy-based route was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public PolicyBasedRoute.Builder 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:
      getCreateTimeOrBuilder in interface PolicyBasedRouteOrBuilder
    • 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:
      hasUpdateTime in interface PolicyBasedRouteOrBuilder
      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:
      getUpdateTime in interface PolicyBasedRouteOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PolicyBasedRoute.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       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

      public PolicyBasedRoute.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the policy-based route was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public PolicyBasedRoute.Builder 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:
      getUpdateTimeOrBuilder in interface PolicyBasedRouteOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: PolicyBasedRouteOrBuilder
       User-defined labels.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface PolicyBasedRouteOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       User-defined labels.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface PolicyBasedRouteOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface PolicyBasedRouteOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       User-defined labels.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface PolicyBasedRouteOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       User-defined labels.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface PolicyBasedRouteOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       User-defined labels.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface PolicyBasedRouteOrBuilder
    • clearLabels

      public PolicyBasedRoute.Builder clearLabels()
    • removeLabels

      public PolicyBasedRoute.Builder removeLabels(String key)
       User-defined labels.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public PolicyBasedRoute.Builder putLabels(String key, String value)
       User-defined labels.
       
      map<string, string> labels = 4;
    • putAllLabels

      public PolicyBasedRoute.Builder putAllLabels(Map<String,String> values)
       User-defined labels.
       
      map<string, string> labels = 4;
    • getDescription

      public String 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:
      getDescription in interface PolicyBasedRouteOrBuilder
      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:
      getDescriptionBytes in interface PolicyBasedRouteOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public PolicyBasedRoute.Builder setDescription(String value)
       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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getNetwork in interface PolicyBasedRouteOrBuilder
      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:
      getNetworkBytes in interface PolicyBasedRouteOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public PolicyBasedRoute.Builder setNetwork(String value)
       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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       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:
      hasFilter in interface PolicyBasedRouteOrBuilder
      Returns:
      Whether the filter field is set.
    • getFilter

      public PolicyBasedRoute.Filter getFilter()
       Required. The filter to match L4 traffic.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilter in interface PolicyBasedRouteOrBuilder
      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

      public PolicyBasedRoute.Builder setFilter(PolicyBasedRoute.Filter.Builder builderForValue)
       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

      public PolicyBasedRoute.Builder clearFilter()
       Required. The filter to match L4 traffic.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED];
    • getFilterBuilder

      public PolicyBasedRoute.Filter.Builder getFilterBuilder()
       Required. The filter to match L4 traffic.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED];
    • getFilterOrBuilder

      public PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder()
       Required. The filter to match L4 traffic.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilterOrBuilder in interface PolicyBasedRouteOrBuilder
    • 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:
      getPriority in interface PolicyBasedRouteOrBuilder
      Returns:
      The priority.
    • setPriority

      public PolicyBasedRoute.Builder setPriority(int value)
       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

      public PolicyBasedRoute.Builder 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

      public List<PolicyBasedRoute.Warnings> 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:
      getWarningsList in interface PolicyBasedRouteOrBuilder
    • 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:
      getWarningsCount in interface PolicyBasedRouteOrBuilder
    • getWarnings

      public PolicyBasedRoute.Warnings getWarnings(int index)
       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:
      getWarnings in interface PolicyBasedRouteOrBuilder
    • setWarnings

      public PolicyBasedRoute.Builder setWarnings(int index, PolicyBasedRoute.Warnings value)
       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

      public PolicyBasedRoute.Builder addWarnings(int index, PolicyBasedRoute.Warnings value)
       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(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

      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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.Builder removeWarnings(int index)
       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

      public PolicyBasedRoute.Warnings.Builder getWarningsBuilder(int index)
       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

      public PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder(int index)
       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:
      getWarningsOrBuilder in interface PolicyBasedRouteOrBuilder
    • getWarningsOrBuilderList

      public List<? extends PolicyBasedRoute.WarningsOrBuilder> 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:
      getWarningsOrBuilderList in interface PolicyBasedRouteOrBuilder
    • addWarningsBuilder

      public PolicyBasedRoute.Warnings.Builder 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

      public PolicyBasedRoute.Warnings.Builder addWarningsBuilder(int index)
       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

      public List<PolicyBasedRoute.Warnings.Builder> 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

      public String getSelfLink()
       Output only. Server-defined fully-qualified URL for this resource.
       
      string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLink in interface PolicyBasedRouteOrBuilder
      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:
      getSelfLinkBytes in interface PolicyBasedRouteOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public PolicyBasedRoute.Builder setSelfLink(String value)
       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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getKind in interface PolicyBasedRouteOrBuilder
      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:
      getKindBytes in interface PolicyBasedRouteOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public PolicyBasedRoute.Builder setKind(String value)
       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

      public PolicyBasedRoute.Builder 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

      public PolicyBasedRoute.Builder setKindBytes(com.google.protobuf.ByteString value)
       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.