Class: Google::Cloud::Monitoring::V3::TextLocator
- Inherits:
-
Object
- Object
- Google::Cloud::Monitoring::V3::TextLocator
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/monitoring/v3/metric.rb
Overview
A locator for text. Indicates a particular part of the text of a request or of an object referenced in the request.
For example, suppose the request field text contains:
text: "The quick brown fox jumps over the lazy dog."
Then the locator:
source: "text" start_position { line: 1 column: 17 } end_position { line: 1 column: 19 }
refers to the part of the text: "fox".
Defined Under Namespace
Classes: Position
Instance Attribute Summary collapse
-
#end_position ⇒ ::Google::Cloud::Monitoring::V3::TextLocator::Position
The position of the last byte within the text.
-
#nested_locator ⇒ ::Google::Cloud::Monitoring::V3::TextLocator
If
source,start_position, andend_positiondescribe a call on some object (e.g. a macro in the time series query language text) and a location is to be designated in that object's text,nested_locatoridentifies the location within that object. -
#nesting_reason ⇒ ::String
When
nested_locatoris set, this field gives the reason for the nesting. -
#source ⇒ ::String
The source of the text.
-
#start_position ⇒ ::Google::Cloud::Monitoring::V3::TextLocator::Position
The position of the first byte within the text.
Instance Attribute Details
#end_position ⇒ ::Google::Cloud::Monitoring::V3::TextLocator::Position
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'proto_docs/google/monitoring/v3/metric.rb', line 242 class TextLocator include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The position of a byte within the text. # @!attribute [rw] line # @return [::Integer] # The line, starting with 1, where the byte is positioned. # @!attribute [rw] column # @return [::Integer] # The column within the line, starting with 1, where the byte is # positioned. This is a byte index even though the text is UTF-8. class Position include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#nested_locator ⇒ ::Google::Cloud::Monitoring::V3::TextLocator
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'proto_docs/google/monitoring/v3/metric.rb', line 242 class TextLocator include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The position of a byte within the text. # @!attribute [rw] line # @return [::Integer] # The line, starting with 1, where the byte is positioned. # @!attribute [rw] column # @return [::Integer] # The column within the line, starting with 1, where the byte is # positioned. This is a byte index even though the text is UTF-8. class Position include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#nesting_reason ⇒ ::String
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'proto_docs/google/monitoring/v3/metric.rb', line 242 class TextLocator include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The position of a byte within the text. # @!attribute [rw] line # @return [::Integer] # The line, starting with 1, where the byte is positioned. # @!attribute [rw] column # @return [::Integer] # The column within the line, starting with 1, where the byte is # positioned. This is a byte index even though the text is UTF-8. class Position include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#source ⇒ ::String
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'proto_docs/google/monitoring/v3/metric.rb', line 242 class TextLocator include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The position of a byte within the text. # @!attribute [rw] line # @return [::Integer] # The line, starting with 1, where the byte is positioned. # @!attribute [rw] column # @return [::Integer] # The column within the line, starting with 1, where the byte is # positioned. This is a byte index even though the text is UTF-8. class Position include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#start_position ⇒ ::Google::Cloud::Monitoring::V3::TextLocator::Position
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'proto_docs/google/monitoring/v3/metric.rb', line 242 class TextLocator include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The position of a byte within the text. # @!attribute [rw] line # @return [::Integer] # The line, starting with 1, where the byte is positioned. # @!attribute [rw] column # @return [::Integer] # The column within the line, starting with 1, where the byte is # positioned. This is a byte index even though the text is UTF-8. class Position include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |