protocol property

  1. @TagNumber.new(9)
String get protocol

The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2".

The default value is inferred from the scheme in the google.api.BackendRule.address field:

SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2

For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance.

Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends.

See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.

Implementation

@$pb.TagNumber(9)
$core.String get protocol => $_getSZ(8);
  1. @TagNumber.new(9)
set protocol (String value)

Implementation

@$pb.TagNumber(9)
set protocol($core.String value) => $_setString(8, value);