Package com.google.monitoring.v3
Class TextLocator
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.monitoring.v3.TextLocator
-
- All Implemented Interfaces:
TextLocatorOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class TextLocator extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.monitoring.v3.TextLocator- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextLocator.BuilderA locator for text.static classTextLocator.PositionThe position of a byte within the text.static interfaceTextLocator.PositionOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intEND_POSITION_FIELD_NUMBERstatic intNESTED_LOCATOR_FIELD_NUMBERstatic intNESTING_REASON_FIELD_NUMBERstatic intSOURCE_FIELD_NUMBERstatic intSTART_POSITION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static TextLocatorgetDefaultInstance()TextLocatorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<TextLocator>getParserForType()intgetSerializedSize()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.inthashCode()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TextLocator.BuildernewBuilder()static TextLocator.BuildernewBuilder(TextLocator prototype)TextLocator.BuildernewBuilderForType()protected TextLocator.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TextLocatorparseDelimitedFrom(InputStream input)static TextLocatorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TextLocatorparseFrom(byte[] data)static TextLocatorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TextLocatorparseFrom(com.google.protobuf.ByteString data)static TextLocatorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TextLocatorparseFrom(com.google.protobuf.CodedInputStream input)static TextLocatorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TextLocatorparseFrom(InputStream input)static TextLocatorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TextLocatorparseFrom(ByteBuffer data)static TextLocatorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TextLocator>parser()TextLocator.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_POSITION_FIELD_NUMBER
public static final int START_POSITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_POSITION_FIELD_NUMBER
public static final int END_POSITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NESTED_LOCATOR_FIELD_NUMBER
public static final int NESTED_LOCATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NESTING_REASON_FIELD_NUMBER
public static final int NESTING_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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;- 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.
-
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
public TextLocator.Position 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.
-
getStartPositionOrBuilder
public TextLocator.PositionOrBuilder 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
public TextLocator.Position 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.
-
getEndPositionOrBuilder
public TextLocator.PositionOrBuilder 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
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;- Specified by:
getNestedLocatorin interfaceTextLocatorOrBuilder- Returns:
- The nestedLocator.
-
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;- Specified by:
getNestedLocatorOrBuilderin interfaceTextLocatorOrBuilder
-
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;- 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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TextLocator parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextLocator parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextLocator parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextLocator parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextLocator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextLocator parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TextLocator parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TextLocator parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TextLocator parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TextLocator parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TextLocator parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TextLocator parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TextLocator.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TextLocator.Builder newBuilder()
-
newBuilder
public static TextLocator.Builder newBuilder(TextLocator prototype)
-
toBuilder
public TextLocator.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TextLocator.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TextLocator getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TextLocator> parser()
-
getParserForType
public com.google.protobuf.Parser<TextLocator> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TextLocator getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-