Interface TextLocatorOrBuilder (3.30.0)

public interface TextLocatorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndPosition()

public abstract TextLocator.Position getEndPosition()

The position of the last byte within the text.

.google.monitoring.v3.TextLocator.Position end_position = 3;

Returns
TypeDescription
TextLocator.Position

The endPosition.

getEndPositionOrBuilder()

public abstract TextLocator.PositionOrBuilder getEndPositionOrBuilder()

The position of the last byte within the text.

.google.monitoring.v3.TextLocator.Position end_position = 3;

Returns
TypeDescription
TextLocator.PositionOrBuilder

getNestedLocator()

public abstract 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
TypeDescription
TextLocator

The nestedLocator.

getNestedLocatorOrBuilder()

public abstract 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;

Returns
TypeDescription
TextLocatorOrBuilder

getNestingReason()

public abstract 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
TypeDescription
String

The nestingReason.

getNestingReasonBytes()

public abstract 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
TypeDescription
ByteString

The bytes for nestingReason.

getSource()

public abstract 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
TypeDescription
String

The source.

getSourceBytes()

public abstract 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
TypeDescription
ByteString

The bytes for source.

getStartPosition()

public abstract TextLocator.Position getStartPosition()

The position of the first byte within the text.

.google.monitoring.v3.TextLocator.Position start_position = 2;

Returns
TypeDescription
TextLocator.Position

The startPosition.

getStartPositionOrBuilder()

public abstract TextLocator.PositionOrBuilder getStartPositionOrBuilder()

The position of the first byte within the text.

.google.monitoring.v3.TextLocator.Position start_position = 2;

Returns
TypeDescription
TextLocator.PositionOrBuilder

hasEndPosition()

public abstract boolean hasEndPosition()

The position of the last byte within the text.

.google.monitoring.v3.TextLocator.Position end_position = 3;

Returns
TypeDescription
boolean

Whether the endPosition field is set.

hasNestedLocator()

public abstract 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
TypeDescription
boolean

Whether the nestedLocator field is set.

hasStartPosition()

public abstract boolean hasStartPosition()

The position of the first byte within the text.

.google.monitoring.v3.TextLocator.Position start_position = 2;

Returns
TypeDescription
boolean

Whether the startPosition field is set.