Class: Google::Api::ContextRule

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/context.rb

Overview

A context rule provides information about the context for an individual API element.

Instance Attribute Summary collapse

Instance Attribute Details

#allowed_request_extensions::Array<::String>

Returns A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.

Returns:

  • (::Array<::String>)

    A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.



92
93
94
95
# File 'proto_docs/google/api/context.rb', line 92

class ContextRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#allowed_response_extensions::Array<::String>

Returns A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.

Returns:

  • (::Array<::String>)

    A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.



92
93
94
95
# File 'proto_docs/google/api/context.rb', line 92

class ContextRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#provided::Array<::String>

Returns A list of full type names of provided contexts. It is used to support propagating HTTP headers and ETags from the response extension.

Returns:

  • (::Array<::String>)

    A list of full type names of provided contexts. It is used to support propagating HTTP headers and ETags from the response extension.



92
93
94
95
# File 'proto_docs/google/api/context.rb', line 92

class ContextRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#requested::Array<::String>

Returns A list of full type names of requested contexts, only the requested context will be made available to the backend.

Returns:

  • (::Array<::String>)

    A list of full type names of requested contexts, only the requested context will be made available to the backend.



92
93
94
95
# File 'proto_docs/google/api/context.rb', line 92

class ContextRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#selector::String

Returns Selects the methods to which this rule applies.

Refer to selector for syntax details.

Returns:

  • (::String)

    Selects the methods to which this rule applies.

    Refer to selector for syntax details.



92
93
94
95
# File 'proto_docs/google/api/context.rb', line 92

class ContextRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end