Package com.google.monitoring.v3
Class TextLocator.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextLocator.Builder>
com.google.monitoring.v3.TextLocator.Builder
- All Implemented Interfaces:
TextLocatorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextLocator
public static final class TextLocator.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The position of the last byte within the text.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.When `nested_locator` is set, this field gives the reason for the nesting.The source of the text.The position of the first byte within the text.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe position of the last byte within the text.The position of the last byte within the text.The position of the last byte within the text.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.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.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.When `nested_locator` is set, this field gives the reason for the nesting.com.google.protobuf.ByteStringWhen `nested_locator` is set, this field gives the reason for the nesting.The source of the text.com.google.protobuf.ByteStringThe source of the text.The position of the first byte within the text.The position of the first byte within the text.The position of the first byte within the text.booleanThe position of the last byte within the text.booleanIf `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.booleanThe position of the first byte within the text.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe position of the last byte within the text.mergeFrom(TextLocator other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.The position of the first byte within the text.The position of the last byte within the text.setEndPosition(TextLocator.Position.Builder builderForValue) The position of the last byte within the text.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.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.setNestingReason(String value) When `nested_locator` is set, this field gives the reason for the nesting.setNestingReasonBytes(com.google.protobuf.ByteString value) When `nested_locator` is set, this field gives the reason for the nesting.The source of the text.setSourceBytes(com.google.protobuf.ByteString value) The source of the text.The position of the first byte within the text.setStartPosition(TextLocator.Position.Builder builderForValue) The position of the first byte within the text.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TextLocator.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TextLocator.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TextLocator.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextLocator.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextLocator.Builder>
-
mergeFrom
public TextLocator.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextLocator.Builder>- Throws:
IOException
-
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;- Specified by:
getSourcein interfaceTextLocatorOrBuilder- Returns:
- The source.
-
getSourceBytes
public 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;- Specified by:
getSourceBytesin interfaceTextLocatorOrBuilder- Returns:
- The bytes for source.
-
setSource
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;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setSourceBytes
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;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasStartPosition
public boolean hasStartPosition()The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;- Specified by:
hasStartPositionin interfaceTextLocatorOrBuilder- Returns:
- Whether the startPosition field is set.
-
getStartPosition
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;- Specified by:
getStartPositionin interfaceTextLocatorOrBuilder- Returns:
- The startPosition.
-
setStartPosition
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2; -
setStartPosition
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2; -
mergeStartPosition
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2; -
clearStartPosition
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2; -
getStartPositionBuilder
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2; -
getStartPositionOrBuilder
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;- Specified by:
getStartPositionOrBuilderin interfaceTextLocatorOrBuilder
-
hasEndPosition
public boolean hasEndPosition()The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;- Specified by:
hasEndPositionin interfaceTextLocatorOrBuilder- Returns:
- Whether the endPosition field is set.
-
getEndPosition
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;- Specified by:
getEndPositionin interfaceTextLocatorOrBuilder- Returns:
- The endPosition.
-
setEndPosition
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3; -
setEndPosition
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3; -
mergeEndPosition
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3; -
clearEndPosition
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3; -
getEndPositionBuilder
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3; -
getEndPositionOrBuilder
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;- Specified by:
getEndPositionOrBuilderin interfaceTextLocatorOrBuilder
-
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;- Specified by:
hasNestedLocatorin interfaceTextLocatorOrBuilder- Returns:
- Whether the nestedLocator field is set.
-
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;- Specified by:
getNestedLocatorin interfaceTextLocatorOrBuilder- Returns:
- The nestedLocator.
-
setNestedLocator
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; -
setNestedLocator
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; -
mergeNestedLocator
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; -
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; -
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; -
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;- Specified by:
getNestedLocatorOrBuilderin interfaceTextLocatorOrBuilder
-
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;- Specified by:
getNestingReasonin interfaceTextLocatorOrBuilder- Returns:
- The nestingReason.
-
getNestingReasonBytes
public 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;- Specified by:
getNestingReasonBytesin interfaceTextLocatorOrBuilder- Returns:
- The bytes for nestingReason.
-
setNestingReason
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;- Parameters:
value- The nestingReason to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNestingReasonBytes
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;- Parameters:
value- The bytes for nestingReason to set.- Returns:
- This builder for chaining.
-