Class CreatePolicyBasedRouteRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreatePolicyBasedRouteRequest.Builder>
com.google.cloud.networkconnectivity.v1beta.CreatePolicyBasedRouteRequest.Builder
All Implemented Interfaces:
CreatePolicyBasedRouteRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreatePolicyBasedRouteRequest

public static final class CreatePolicyBasedRouteRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreatePolicyBasedRouteRequest.Builder> implements CreatePolicyBasedRouteRequestOrBuilder
 Request for
 [PolicyBasedRoutingService.CreatePolicyBasedRoute][google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.CreatePolicyBasedRoute]
 method.
 
Protobuf type google.cloud.networkconnectivity.v1beta.CreatePolicyBasedRouteRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreatePolicyBasedRouteRequest.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<CreatePolicyBasedRouteRequest.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<CreatePolicyBasedRouteRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public CreatePolicyBasedRouteRequest.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<CreatePolicyBasedRouteRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreatePolicyBasedRouteRequest.Builder>
    • mergeFrom

      public CreatePolicyBasedRouteRequest.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<CreatePolicyBasedRouteRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource's name of the PolicyBasedRoute.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource's name of the PolicyBasedRoute.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The parent resource's name of the PolicyBasedRoute.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent resource's name of the PolicyBasedRoute.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreatePolicyBasedRouteRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource's name of the PolicyBasedRoute.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getPolicyBasedRouteId

      public String getPolicyBasedRouteId()
       Required. Unique id for the policy-based route to create. Provided by the
       client when the resource is created. The name must comply with
       https://google.aip.dev/122#resource-id-segments. Specifically, the name
       must be 1-63 characters long and match the regular expression
       [a-z]([a-z0-9-]*[a-z0-9])?. The first character must be a lowercase letter,
       and all following characters (except for the last character) must be a
       dash, lowercase letter, or digit. The last character must be a lowercase
       letter or digit.
       
      string policy_based_route_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPolicyBasedRouteId in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      The policyBasedRouteId.
    • getPolicyBasedRouteIdBytes

      public com.google.protobuf.ByteString getPolicyBasedRouteIdBytes()
       Required. Unique id for the policy-based route to create. Provided by the
       client when the resource is created. The name must comply with
       https://google.aip.dev/122#resource-id-segments. Specifically, the name
       must be 1-63 characters long and match the regular expression
       [a-z]([a-z0-9-]*[a-z0-9])?. The first character must be a lowercase letter,
       and all following characters (except for the last character) must be a
       dash, lowercase letter, or digit. The last character must be a lowercase
       letter or digit.
       
      string policy_based_route_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPolicyBasedRouteIdBytes in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      The bytes for policyBasedRouteId.
    • setPolicyBasedRouteId

      public CreatePolicyBasedRouteRequest.Builder setPolicyBasedRouteId(String value)
       Required. Unique id for the policy-based route to create. Provided by the
       client when the resource is created. The name must comply with
       https://google.aip.dev/122#resource-id-segments. Specifically, the name
       must be 1-63 characters long and match the regular expression
       [a-z]([a-z0-9-]*[a-z0-9])?. The first character must be a lowercase letter,
       and all following characters (except for the last character) must be a
       dash, lowercase letter, or digit. The last character must be a lowercase
       letter or digit.
       
      string policy_based_route_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The policyBasedRouteId to set.
      Returns:
      This builder for chaining.
    • clearPolicyBasedRouteId

      public CreatePolicyBasedRouteRequest.Builder clearPolicyBasedRouteId()
       Required. Unique id for the policy-based route to create. Provided by the
       client when the resource is created. The name must comply with
       https://google.aip.dev/122#resource-id-segments. Specifically, the name
       must be 1-63 characters long and match the regular expression
       [a-z]([a-z0-9-]*[a-z0-9])?. The first character must be a lowercase letter,
       and all following characters (except for the last character) must be a
       dash, lowercase letter, or digit. The last character must be a lowercase
       letter or digit.
       
      string policy_based_route_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPolicyBasedRouteIdBytes

      public CreatePolicyBasedRouteRequest.Builder setPolicyBasedRouteIdBytes(com.google.protobuf.ByteString value)
       Required. Unique id for the policy-based route to create. Provided by the
       client when the resource is created. The name must comply with
       https://google.aip.dev/122#resource-id-segments. Specifically, the name
       must be 1-63 characters long and match the regular expression
       [a-z]([a-z0-9-]*[a-z0-9])?. The first character must be a lowercase letter,
       and all following characters (except for the last character) must be a
       dash, lowercase letter, or digit. The last character must be a lowercase
       letter or digit.
       
      string policy_based_route_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for policyBasedRouteId to set.
      Returns:
      This builder for chaining.
    • hasPolicyBasedRoute

      public boolean hasPolicyBasedRoute()
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPolicyBasedRoute in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      Whether the policyBasedRoute field is set.
    • getPolicyBasedRoute

      public PolicyBasedRoute getPolicyBasedRoute()
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPolicyBasedRoute in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      The policyBasedRoute.
    • setPolicyBasedRoute

      public CreatePolicyBasedRouteRequest.Builder setPolicyBasedRoute(PolicyBasedRoute value)
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
    • setPolicyBasedRoute

      public CreatePolicyBasedRouteRequest.Builder setPolicyBasedRoute(PolicyBasedRoute.Builder builderForValue)
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergePolicyBasedRoute

      public CreatePolicyBasedRouteRequest.Builder mergePolicyBasedRoute(PolicyBasedRoute value)
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearPolicyBasedRoute

      public CreatePolicyBasedRouteRequest.Builder clearPolicyBasedRoute()
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPolicyBasedRouteBuilder

      public PolicyBasedRoute.Builder getPolicyBasedRouteBuilder()
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPolicyBasedRouteOrBuilder

      public PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder()
       Required. Initial values for a new policy-based route.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPolicyBasedRouteOrBuilder in interface CreatePolicyBasedRouteRequestOrBuilder
    • getRequestId

      public String getRequestId()
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server knows to
       ignore the request if it has already been completed. The server guarantees
       that for at least 60 minutes since the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, ignores the second request. This prevents clients
       from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestId in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server knows to
       ignore the request if it has already been completed. The server guarantees
       that for at least 60 minutes since the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, ignores the second request. This prevents clients
       from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestIdBytes in interface CreatePolicyBasedRouteRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreatePolicyBasedRouteRequest.Builder setRequestId(String value)
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server knows to
       ignore the request if it has already been completed. The server guarantees
       that for at least 60 minutes since the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, ignores the second request. This prevents clients
       from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public CreatePolicyBasedRouteRequest.Builder clearRequestId()
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server knows to
       ignore the request if it has already been completed. The server guarantees
       that for at least 60 minutes since the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, ignores the second request. This prevents clients
       from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public CreatePolicyBasedRouteRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server knows to
       ignore the request if it has already been completed. The server guarantees
       that for at least 60 minutes since the first request.
      
       For example, consider a situation where you make an initial request and
       the request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, ignores the second request. This prevents clients
       from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.