public static final class TextLocator.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
TextLocator.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextLocator |
build() |
TextLocator |
buildPartial() |
TextLocator.Builder |
clear() |
TextLocator.Builder |
clearEndPosition()
The position of the last byte within the text.
|
TextLocator.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TextLocator.Builder |
clearNestedLocator()
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
TextLocator.Builder |
clearNestingReason()
When `nested_locator` is set, this field gives the reason for the nesting.
|
TextLocator.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TextLocator.Builder |
clearSource()
The source of the text.
|
TextLocator.Builder |
clearStartPosition()
The position of the first byte within the text.
|
TextLocator.Builder |
clone() |
TextLocator |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TextLocator.Position |
getEndPosition()
The position of the last byte within the text.
|
TextLocator.Position.Builder |
getEndPositionBuilder()
The position of the last byte within the text.
|
TextLocator.PositionOrBuilder |
getEndPositionOrBuilder()
The position of the last byte within the text.
|
TextLocator |
getNestedLocator()
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
TextLocator.Builder |
getNestedLocatorBuilder()
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
TextLocatorOrBuilder |
getNestedLocatorOrBuilder()
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
String |
getNestingReason()
When `nested_locator` is set, this field gives the reason for the nesting.
|
com.google.protobuf.ByteString |
getNestingReasonBytes()
When `nested_locator` is set, this field gives the reason for the nesting.
|
String |
getSource()
The source of the text.
|
com.google.protobuf.ByteString |
getSourceBytes()
The source of the text.
|
TextLocator.Position |
getStartPosition()
The position of the first byte within the text.
|
TextLocator.Position.Builder |
getStartPositionBuilder()
The position of the first byte within the text.
|
TextLocator.PositionOrBuilder |
getStartPositionOrBuilder()
The position of the first byte within the text.
|
boolean |
hasEndPosition()
The position of the last byte within the text.
|
boolean |
hasNestedLocator()
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
boolean |
hasStartPosition()
The position of the first byte within the text.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TextLocator.Builder |
mergeEndPosition(TextLocator.Position value)
The position of the last byte within the text.
|
TextLocator.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TextLocator.Builder |
mergeFrom(com.google.protobuf.Message other) |
TextLocator.Builder |
mergeFrom(TextLocator other) |
TextLocator.Builder |
mergeNestedLocator(TextLocator value)
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
TextLocator.Builder |
mergeStartPosition(TextLocator.Position value)
The position of the first byte within the text.
|
TextLocator.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TextLocator.Builder |
setEndPosition(TextLocator.Position.Builder builderForValue)
The position of the last byte within the text.
|
TextLocator.Builder |
setEndPosition(TextLocator.Position value)
The position of the last byte within the text.
|
TextLocator.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextLocator.Builder |
setNestedLocator(TextLocator.Builder builderForValue)
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
TextLocator.Builder |
setNestedLocator(TextLocator value)
If `source`, `start_position`, and `end_position` describe a call on
some object (e.g.
|
TextLocator.Builder |
setNestingReason(String value)
When `nested_locator` is set, this field gives the reason for the nesting.
|
TextLocator.Builder |
setNestingReasonBytes(com.google.protobuf.ByteString value)
When `nested_locator` is set, this field gives the reason for the nesting.
|
TextLocator.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TextLocator.Builder |
setSource(String value)
The source of the text.
|
TextLocator.Builder |
setSourceBytes(com.google.protobuf.ByteString value)
The source of the text.
|
TextLocator.Builder |
setStartPosition(TextLocator.Position.Builder builderForValue)
The position of the first byte within the text.
|
TextLocator.Builder |
setStartPosition(TextLocator.Position value)
The position of the first byte within the text.
|
TextLocator.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextLocator build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextLocator buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextLocator.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextLocator.Builder>public TextLocator.Builder mergeFrom(TextLocator other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public TextLocator.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextLocator.Builder>IOExceptionpublic 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;getSource in interface TextLocatorOrBuilderpublic 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;getSourceBytes in interface TextLocatorOrBuilderpublic 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;value - The source to set.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;public TextLocator.Builder setSourceBytes(com.google.protobuf.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;value - The bytes for source to set.public boolean hasStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;hasStartPosition in interface TextLocatorOrBuilderpublic TextLocator.Position getStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;getStartPosition in interface TextLocatorOrBuilderpublic TextLocator.Builder setStartPosition(TextLocator.Position value)
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;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;public TextLocator.Builder mergeStartPosition(TextLocator.Position value)
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;public TextLocator.Builder clearStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;public TextLocator.Position.Builder getStartPositionBuilder()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;public TextLocator.PositionOrBuilder getStartPositionOrBuilder()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;getStartPositionOrBuilder in interface TextLocatorOrBuilderpublic boolean hasEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;hasEndPosition in interface TextLocatorOrBuilderpublic TextLocator.Position getEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;getEndPosition in interface TextLocatorOrBuilderpublic TextLocator.Builder setEndPosition(TextLocator.Position value)
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;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;public TextLocator.Builder mergeEndPosition(TextLocator.Position value)
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;public TextLocator.Builder clearEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;public TextLocator.Position.Builder getEndPositionBuilder()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;public TextLocator.PositionOrBuilder getEndPositionOrBuilder()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;getEndPositionOrBuilder in interface TextLocatorOrBuilderpublic 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;hasNestedLocator in interface TextLocatorOrBuilderpublic 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;getNestedLocator in interface TextLocatorOrBuilderpublic 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;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;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;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;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;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;getNestedLocatorOrBuilder in interface TextLocatorOrBuilderpublic 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;getNestingReason in interface TextLocatorOrBuilderpublic 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;getNestingReasonBytes in interface TextLocatorOrBuilderpublic 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;value - The nestingReason to set.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;public TextLocator.Builder setNestingReasonBytes(com.google.protobuf.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;value - The bytes for nestingReason to set.public final TextLocator.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>public final TextLocator.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>Copyright © 2023 Google LLC. All rights reserved.