- 3.55.0 (latest)
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.6
- 3.3.6
- 3.2.10
public static final class TextLocator.Builder extends GeneratedMessageV3.Builder<TextLocator.Builder> implements TextLocatorOrBuilder
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".
Protobuf type google.monitoring.v3.TextLocator
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextLocator.BuilderImplements
TextLocatorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextLocator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextLocator.Builder |
build()
public TextLocator build()
Type | Description |
TextLocator |
buildPartial()
public TextLocator buildPartial()
Type | Description |
TextLocator |
clear()
public TextLocator.Builder clear()
Type | Description |
TextLocator.Builder |
clearEndPosition()
public TextLocator.Builder clearEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Type | Description |
TextLocator.Builder |
clearField(Descriptors.FieldDescriptor field)
public TextLocator.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TextLocator.Builder |
clearNestedLocator()
public TextLocator.Builder clearNestedLocator()
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;
Type | Description |
TextLocator.Builder |
clearNestingReason()
public TextLocator.Builder clearNestingReason()
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;
Type | Description |
TextLocator.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TextLocator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TextLocator.Builder |
clearSource()
public TextLocator.Builder clearSource()
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;
Type | Description |
TextLocator.Builder | This builder for chaining. |
clearStartPosition()
public TextLocator.Builder clearStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Type | Description |
TextLocator.Builder |
clone()
public TextLocator.Builder clone()
Type | Description |
TextLocator.Builder |
getDefaultInstanceForType()
public TextLocator getDefaultInstanceForType()
Type | Description |
TextLocator |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEndPosition()
public TextLocator.Position getEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Type | Description |
TextLocator.Position | The endPosition. |
getEndPositionBuilder()
public TextLocator.Position.Builder getEndPositionBuilder()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Type | Description |
TextLocator.Position.Builder |
getEndPositionOrBuilder()
public TextLocator.PositionOrBuilder getEndPositionOrBuilder()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Type | Description |
TextLocator.PositionOrBuilder |
getNestedLocator()
public 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;
Type | Description |
TextLocator | The nestedLocator. |
getNestedLocatorBuilder()
public TextLocator.Builder getNestedLocatorBuilder()
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;
Type | Description |
TextLocator.Builder |
getNestedLocatorOrBuilder()
public 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;
Type | Description |
TextLocatorOrBuilder |
getNestingReason()
public 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;
Type | Description |
String | The nestingReason. |
getNestingReasonBytes()
public 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;
Type | Description |
ByteString | The bytes for nestingReason. |
getSource()
public 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;
Type | Description |
String | The source. |
getSourceBytes()
public 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;
Type | Description |
ByteString | The bytes for source. |
getStartPosition()
public TextLocator.Position getStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Type | Description |
TextLocator.Position | The startPosition. |
getStartPositionBuilder()
public TextLocator.Position.Builder getStartPositionBuilder()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Type | Description |
TextLocator.Position.Builder |
getStartPositionOrBuilder()
public TextLocator.PositionOrBuilder getStartPositionOrBuilder()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Type | Description |
TextLocator.PositionOrBuilder |
hasEndPosition()
public boolean hasEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Type | Description |
boolean | Whether the endPosition field is set. |
hasNestedLocator()
public 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;
Type | Description |
boolean | Whether the nestedLocator field is set. |
hasStartPosition()
public boolean hasStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Type | Description |
boolean | Whether the startPosition field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEndPosition(TextLocator.Position value)
public TextLocator.Builder mergeEndPosition(TextLocator.Position value)
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Name | Description |
value | TextLocator.Position |
Type | Description |
TextLocator.Builder |
mergeFrom(TextLocator other)
public TextLocator.Builder mergeFrom(TextLocator other)
Name | Description |
other | TextLocator |
Type | Description |
TextLocator.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextLocator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TextLocator.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TextLocator.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TextLocator.Builder |
mergeNestedLocator(TextLocator value)
public TextLocator.Builder mergeNestedLocator(TextLocator value)
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;
Name | Description |
value | TextLocator |
Type | Description |
TextLocator.Builder |
mergeStartPosition(TextLocator.Position value)
public TextLocator.Builder mergeStartPosition(TextLocator.Position value)
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Name | Description |
value | TextLocator.Position |
Type | Description |
TextLocator.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextLocator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextLocator.Builder |
setEndPosition(TextLocator.Position value)
public TextLocator.Builder setEndPosition(TextLocator.Position value)
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Name | Description |
value | TextLocator.Position |
Type | Description |
TextLocator.Builder |
setEndPosition(TextLocator.Position.Builder builderForValue)
public TextLocator.Builder setEndPosition(TextLocator.Position.Builder builderForValue)
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
Name | Description |
builderForValue | TextLocator.Position.Builder |
Type | Description |
TextLocator.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TextLocator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextLocator.Builder |
setNestedLocator(TextLocator value)
public TextLocator.Builder setNestedLocator(TextLocator value)
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;
Name | Description |
value | TextLocator |
Type | Description |
TextLocator.Builder |
setNestedLocator(TextLocator.Builder builderForValue)
public TextLocator.Builder setNestedLocator(TextLocator.Builder builderForValue)
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;
Name | Description |
builderForValue | TextLocator.Builder |
Type | Description |
TextLocator.Builder |
setNestingReason(String value)
public TextLocator.Builder setNestingReason(String value)
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;
Name | Description |
value | String The nestingReason to set. |
Type | Description |
TextLocator.Builder | This builder for chaining. |
setNestingReasonBytes(ByteString value)
public TextLocator.Builder setNestingReasonBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for nestingReason to set. |
Type | Description |
TextLocator.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextLocator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TextLocator.Builder |
setSource(String value)
public TextLocator.Builder setSource(String value)
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;
Name | Description |
value | String The source to set. |
Type | Description |
TextLocator.Builder | This builder for chaining. |
setSourceBytes(ByteString value)
public TextLocator.Builder setSourceBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for source to set. |
Type | Description |
TextLocator.Builder | This builder for chaining. |
setStartPosition(TextLocator.Position value)
public TextLocator.Builder setStartPosition(TextLocator.Position value)
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Name | Description |
value | TextLocator.Position |
Type | Description |
TextLocator.Builder |
setStartPosition(TextLocator.Position.Builder builderForValue)
public TextLocator.Builder setStartPosition(TextLocator.Position.Builder builderForValue)
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
Name | Description |
builderForValue | TextLocator.Position.Builder |
Type | Description |
TextLocator.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TextLocator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextLocator.Builder |