Class AuthzExtension.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthzExtension.Builder>
com.google.cloud.networkservices.v1.AuthzExtension.Builder
All Implemented Interfaces:
AuthzExtensionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AuthzExtension

public static final class AuthzExtension.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzExtension.Builder> implements AuthzExtensionOrBuilder
 `AuthzExtension` is a resource that allows traffic forwarding
 to a callout backend service to make an authorization decision.
 
Protobuf type google.cloud.networkservices.v1.AuthzExtension
  • 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<AuthzExtension.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public AuthzExtension.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<AuthzExtension.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<AuthzExtension.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AuthzExtension.Builder mergeFrom(AuthzExtension other)
    • isInitialized

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

      public AuthzExtension.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<AuthzExtension.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Identifier. Name of the `AuthzExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface AuthzExtensionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Identifier. Name of the `AuthzExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface AuthzExtensionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AuthzExtension.Builder setName(String value)
       Required. Identifier. Name of the `AuthzExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AuthzExtension.Builder clearName()
       Required. Identifier. Name of the `AuthzExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AuthzExtension.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Identifier. Name of the `AuthzExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AuthzExtensionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AuthzExtensionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public AuthzExtension.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public AuthzExtension.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public AuthzExtension.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public AuthzExtension.Builder clearCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AuthzExtensionOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AuthzExtensionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AuthzExtensionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public AuthzExtension.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public AuthzExtension.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public AuthzExtension.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public AuthzExtension.Builder clearUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AuthzExtensionOrBuilder
    • getDescription

      public String getDescription()
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface AuthzExtensionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface AuthzExtensionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public AuthzExtension.Builder setDescription(String value)
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public AuthzExtension.Builder clearDescription()
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public AuthzExtension.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A human-readable description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AuthzExtensionOrBuilder
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface AuthzExtensionOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface AuthzExtensionOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface AuthzExtensionOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface AuthzExtensionOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface AuthzExtensionOrBuilder
    • clearLabels

      public AuthzExtension.Builder clearLabels()
    • removeLabels

      public AuthzExtension.Builder removeLabels(String key)
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public AuthzExtension.Builder putLabels(String key, String value)
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public AuthzExtension.Builder putAllLabels(Map<String,String> values)
       Optional. Set of labels associated with the `AuthzExtension`
       resource.
      
       The format must comply with [the requirements for
       labels](/compute/docs/labeling-resources#requirements) for Google Cloud
       resources.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getLoadBalancingSchemeValue

      public int getLoadBalancingSchemeValue()
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLoadBalancingSchemeValue in interface AuthzExtensionOrBuilder
      Returns:
      The enum numeric value on the wire for loadBalancingScheme.
    • setLoadBalancingSchemeValue

      public AuthzExtension.Builder setLoadBalancingSchemeValue(int value)
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • getLoadBalancingScheme

      public LoadBalancingScheme getLoadBalancingScheme()
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLoadBalancingScheme in interface AuthzExtensionOrBuilder
      Returns:
      The loadBalancingScheme.
    • setLoadBalancingScheme

      public AuthzExtension.Builder setLoadBalancingScheme(LoadBalancingScheme value)
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • clearLoadBalancingScheme

      public AuthzExtension.Builder clearLoadBalancingScheme()
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getAuthority

      public String getAuthority()
       Required. The `:authority` header in the gRPC request sent from Envoy
       to the extension service.
       
      string authority = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthority in interface AuthzExtensionOrBuilder
      Returns:
      The authority.
    • getAuthorityBytes

      public com.google.protobuf.ByteString getAuthorityBytes()
       Required. The `:authority` header in the gRPC request sent from Envoy
       to the extension service.
       
      string authority = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorityBytes in interface AuthzExtensionOrBuilder
      Returns:
      The bytes for authority.
    • setAuthority

      public AuthzExtension.Builder setAuthority(String value)
       Required. The `:authority` header in the gRPC request sent from Envoy
       to the extension service.
       
      string authority = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The authority to set.
      Returns:
      This builder for chaining.
    • clearAuthority

      public AuthzExtension.Builder clearAuthority()
       Required. The `:authority` header in the gRPC request sent from Envoy
       to the extension service.
       
      string authority = 7 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAuthorityBytes

      public AuthzExtension.Builder setAuthorityBytes(com.google.protobuf.ByteString value)
       Required. The `:authority` header in the gRPC request sent from Envoy
       to the extension service.
       
      string authority = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for authority to set.
      Returns:
      This builder for chaining.
    • getService

      public String getService()
       Required. The reference to the service that runs the extension.
      
       To configure a callout extension, `service` must be a fully-qualified
       reference
       to a [backend
       service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
       in the format:
       `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}`
       or
       `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.
       
      string service = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getService in interface AuthzExtensionOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Required. The reference to the service that runs the extension.
      
       To configure a callout extension, `service` must be a fully-qualified
       reference
       to a [backend
       service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
       in the format:
       `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}`
       or
       `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.
       
      string service = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceBytes in interface AuthzExtensionOrBuilder
      Returns:
      The bytes for service.
    • setService

      public AuthzExtension.Builder setService(String value)
       Required. The reference to the service that runs the extension.
      
       To configure a callout extension, `service` must be a fully-qualified
       reference
       to a [backend
       service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
       in the format:
       `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}`
       or
       `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.
       
      string service = 8 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public AuthzExtension.Builder clearService()
       Required. The reference to the service that runs the extension.
      
       To configure a callout extension, `service` must be a fully-qualified
       reference
       to a [backend
       service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
       in the format:
       `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}`
       or
       `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.
       
      string service = 8 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setServiceBytes

      public AuthzExtension.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Required. The reference to the service that runs the extension.
      
       To configure a callout extension, `service` must be a fully-qualified
       reference
       to a [backend
       service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
       in the format:
       `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}`
       or
       `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.
       
      string service = 8 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • hasTimeout

      public boolean hasTimeout()
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTimeout in interface AuthzExtensionOrBuilder
      Returns:
      Whether the timeout field is set.
    • getTimeout

      public com.google.protobuf.Duration getTimeout()
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeout in interface AuthzExtensionOrBuilder
      Returns:
      The timeout.
    • setTimeout

      public AuthzExtension.Builder setTimeout(com.google.protobuf.Duration value)
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
    • setTimeout

      public AuthzExtension.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
    • mergeTimeout

      public AuthzExtension.Builder mergeTimeout(com.google.protobuf.Duration value)
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
    • clearTimeout

      public AuthzExtension.Builder clearTimeout()
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
    • getTimeoutBuilder

      public com.google.protobuf.Duration.Builder getTimeoutBuilder()
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
    • getTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
       Required. Specifies the timeout for each individual message on the stream.
       The timeout must be between 10-10000 milliseconds.
       
      .google.protobuf.Duration timeout = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeoutOrBuilder in interface AuthzExtensionOrBuilder
    • getFailOpen

      public boolean getFailOpen()
       Optional. Determines how the proxy behaves if the call to the extension
       fails or times out.
      
       When set to `TRUE`, request or response processing continues without
       error. Any subsequent extensions in the extension chain are also
       executed. When set to `FALSE` or the default setting of `FALSE` is used,
       one of the following happens:
      
       * If response headers have not been delivered to the downstream client,
       a generic 500 error is returned to the client. The error response can be
       tailored by configuring a custom error response in the load balancer.
      
       * If response headers have been delivered, then the HTTP stream to the
       downstream client is reset.
       
      bool fail_open = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFailOpen in interface AuthzExtensionOrBuilder
      Returns:
      The failOpen.
    • setFailOpen

      public AuthzExtension.Builder setFailOpen(boolean value)
       Optional. Determines how the proxy behaves if the call to the extension
       fails or times out.
      
       When set to `TRUE`, request or response processing continues without
       error. Any subsequent extensions in the extension chain are also
       executed. When set to `FALSE` or the default setting of `FALSE` is used,
       one of the following happens:
      
       * If response headers have not been delivered to the downstream client,
       a generic 500 error is returned to the client. The error response can be
       tailored by configuring a custom error response in the load balancer.
      
       * If response headers have been delivered, then the HTTP stream to the
       downstream client is reset.
       
      bool fail_open = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The failOpen to set.
      Returns:
      This builder for chaining.
    • clearFailOpen

      public AuthzExtension.Builder clearFailOpen()
       Optional. Determines how the proxy behaves if the call to the extension
       fails or times out.
      
       When set to `TRUE`, request or response processing continues without
       error. Any subsequent extensions in the extension chain are also
       executed. When set to `FALSE` or the default setting of `FALSE` is used,
       one of the following happens:
      
       * If response headers have not been delivered to the downstream client,
       a generic 500 error is returned to the client. The error response can be
       tailored by configuring a custom error response in the load balancer.
      
       * If response headers have been delivered, then the HTTP stream to the
       downstream client is reset.
       
      bool fail_open = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasMetadata

      public boolean hasMetadata()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMetadata in interface AuthzExtensionOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public com.google.protobuf.Struct getMetadata()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadata in interface AuthzExtensionOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public AuthzExtension.Builder setMetadata(com.google.protobuf.Struct value)
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setMetadata

      public AuthzExtension.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMetadata

      public AuthzExtension.Builder mergeMetadata(com.google.protobuf.Struct value)
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearMetadata

      public AuthzExtension.Builder clearMetadata()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getMetadataBuilder

      public com.google.protobuf.Struct.Builder getMetadataBuilder()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension
       server. The metadata is available under the namespace
       `com.google.authz_extension.<resource_name>`.
       The following variables are supported in the metadata Struct:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
       
      .google.protobuf.Struct metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataOrBuilder in interface AuthzExtensionOrBuilder
    • getForwardHeadersList

      public com.google.protobuf.ProtocolStringList getForwardHeadersList()
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getForwardHeadersList in interface AuthzExtensionOrBuilder
      Returns:
      A list containing the forwardHeaders.
    • getForwardHeadersCount

      public int getForwardHeadersCount()
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getForwardHeadersCount in interface AuthzExtensionOrBuilder
      Returns:
      The count of forwardHeaders.
    • getForwardHeaders

      public String getForwardHeaders(int index)
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getForwardHeaders in interface AuthzExtensionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The forwardHeaders at the given index.
    • getForwardHeadersBytes

      public com.google.protobuf.ByteString getForwardHeadersBytes(int index)
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getForwardHeadersBytes in interface AuthzExtensionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the forwardHeaders at the given index.
    • setForwardHeaders

      public AuthzExtension.Builder setForwardHeaders(int index, String value)
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The forwardHeaders to set.
      Returns:
      This builder for chaining.
    • addForwardHeaders

      public AuthzExtension.Builder addForwardHeaders(String value)
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The forwardHeaders to add.
      Returns:
      This builder for chaining.
    • addAllForwardHeaders

      public AuthzExtension.Builder addAllForwardHeaders(Iterable<String> values)
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The forwardHeaders to add.
      Returns:
      This builder for chaining.
    • clearForwardHeaders

      public AuthzExtension.Builder clearForwardHeaders()
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addForwardHeadersBytes

      public AuthzExtension.Builder addForwardHeadersBytes(com.google.protobuf.ByteString value)
       Optional. List of the HTTP headers to forward to the extension
       (from the client). If omitted, all headers are sent.
       Each element is a string indicating the header name.
       
      repeated string forward_headers = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the forwardHeaders to add.
      Returns:
      This builder for chaining.
    • getWireFormatValue

      public int getWireFormatValue()
       Optional. The format of communication supported by the callout extension.
       If not specified, the default value `EXT_PROC_GRPC` is used.
       
      .google.cloud.networkservices.v1.WireFormat wire_format = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWireFormatValue in interface AuthzExtensionOrBuilder
      Returns:
      The enum numeric value on the wire for wireFormat.
    • setWireFormatValue

      public AuthzExtension.Builder setWireFormatValue(int value)
       Optional. The format of communication supported by the callout extension.
       If not specified, the default value `EXT_PROC_GRPC` is used.
       
      .google.cloud.networkservices.v1.WireFormat wire_format = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for wireFormat to set.
      Returns:
      This builder for chaining.
    • getWireFormat

      public WireFormat getWireFormat()
       Optional. The format of communication supported by the callout extension.
       If not specified, the default value `EXT_PROC_GRPC` is used.
       
      .google.cloud.networkservices.v1.WireFormat wire_format = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWireFormat in interface AuthzExtensionOrBuilder
      Returns:
      The wireFormat.
    • setWireFormat

      public AuthzExtension.Builder setWireFormat(WireFormat value)
       Optional. The format of communication supported by the callout extension.
       If not specified, the default value `EXT_PROC_GRPC` is used.
       
      .google.cloud.networkservices.v1.WireFormat wire_format = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The wireFormat to set.
      Returns:
      This builder for chaining.
    • clearWireFormat

      public AuthzExtension.Builder clearWireFormat()
       Optional. The format of communication supported by the callout extension.
       If not specified, the default value `EXT_PROC_GRPC` is used.
       
      .google.cloud.networkservices.v1.WireFormat wire_format = 14 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.