Package com.google.monitoring.v3
Interface TextLocatorOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextLocator,TextLocator.Builder
public interface TextLocatorOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextLocator.PositiongetEndPosition()The position of the last byte within the text.TextLocator.PositionOrBuildergetEndPositionOrBuilder()The position of the last byte within the text.TextLocatorgetNestedLocator()If `source`, `start_position`, and `end_position` describe a call on some object (e.g.TextLocatorOrBuildergetNestedLocatorOrBuilder()If `source`, `start_position`, and `end_position` describe a call on some object (e.g.StringgetNestingReason()When `nested_locator` is set, this field gives the reason for the nesting.com.google.protobuf.ByteStringgetNestingReasonBytes()When `nested_locator` is set, this field gives the reason for the nesting.StringgetSource()The source of the text.com.google.protobuf.ByteStringgetSourceBytes()The source of the text.TextLocator.PositiongetStartPosition()The position of the first byte within the text.TextLocator.PositionOrBuildergetStartPositionOrBuilder()The position of the first byte within the text.booleanhasEndPosition()The position of the last byte within the text.booleanhasNestedLocator()If `source`, `start_position`, and `end_position` describe a call on some object (e.g.booleanhasStartPosition()The position of the first byte within the text.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getSource
String getSource()
The source of the text. The source may be a field in the request, in which case its format is the format of the google.rpc.BadRequest.FieldViolation.field field in https://cloud.google.com/apis/design/errors#error_details. It may also be be a source other than the request field (e.g. a macro definition referenced in the text of the query), in which case this is the name of the source (e.g. the macro name).
string source = 1;- Returns:
- The source.
-
getSourceBytes
com.google.protobuf.ByteString getSourceBytes()
The source of the text. The source may be a field in the request, in which case its format is the format of the google.rpc.BadRequest.FieldViolation.field field in https://cloud.google.com/apis/design/errors#error_details. It may also be be a source other than the request field (e.g. a macro definition referenced in the text of the query), in which case this is the name of the source (e.g. the macro name).
string source = 1;- Returns:
- The bytes for source.
-
hasStartPosition
boolean hasStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;- Returns:
- Whether the startPosition field is set.
-
getStartPosition
TextLocator.Position getStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;- Returns:
- The startPosition.
-
getStartPositionOrBuilder
TextLocator.PositionOrBuilder getStartPositionOrBuilder()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
-
hasEndPosition
boolean hasEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;- Returns:
- Whether the endPosition field is set.
-
getEndPosition
TextLocator.Position getEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;- Returns:
- The endPosition.
-
getEndPositionOrBuilder
TextLocator.PositionOrBuilder getEndPositionOrBuilder()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
-
hasNestedLocator
boolean hasNestedLocator()
If `source`, `start_position`, and `end_position` describe 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_locator` identifies the location within that object.
.google.monitoring.v3.TextLocator nested_locator = 4;- Returns:
- Whether the nestedLocator field is set.
-
getNestedLocator
TextLocator getNestedLocator()
If `source`, `start_position`, and `end_position` describe 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_locator` identifies the location within that object.
.google.monitoring.v3.TextLocator nested_locator = 4;- Returns:
- The nestedLocator.
-
getNestedLocatorOrBuilder
TextLocatorOrBuilder getNestedLocatorOrBuilder()
If `source`, `start_position`, and `end_position` describe 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_locator` identifies the location within that object.
.google.monitoring.v3.TextLocator nested_locator = 4;
-
getNestingReason
String getNestingReason()
When `nested_locator` is set, this field gives the reason for the nesting. Usually, the reason is a macro invocation. In that case, the macro name (including the leading '@') signals the location of the macro call in the text and a macro argument name (including the leading '$') signals the location of the macro argument inside the macro body that got substituted away.
string nesting_reason = 5;- Returns:
- The nestingReason.
-
getNestingReasonBytes
com.google.protobuf.ByteString getNestingReasonBytes()
When `nested_locator` is set, this field gives the reason for the nesting. Usually, the reason is a macro invocation. In that case, the macro name (including the leading '@') signals the location of the macro call in the text and a macro argument name (including the leading '$') signals the location of the macro argument inside the macro body that got substituted away.
string nesting_reason = 5;- Returns:
- The bytes for nestingReason.
-
-