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.GeneratedMessageV3.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.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 typegoogle.monitoring.v3.TextLocator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextLocator.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TextLocatorbuild()TextLocatorbuildPartial()TextLocator.Builderclear()TextLocator.BuilderclearEndPosition()The position of the last byte within the text.TextLocator.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TextLocator.BuilderclearNestedLocator()If `source`, `start_position`, and `end_position` describe a call on some object (e.g.TextLocator.BuilderclearNestingReason()When `nested_locator` is set, this field gives the reason for the nesting.TextLocator.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TextLocator.BuilderclearSource()The source of the text.TextLocator.BuilderclearStartPosition()The position of the first byte within the text.TextLocator.Builderclone()TextLocatorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TextLocator.PositiongetEndPosition()The position of the last byte within the text.TextLocator.Position.BuildergetEndPositionBuilder()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.TextLocator.BuildergetNestedLocatorBuilder()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.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.Position.BuildergetStartPositionBuilder()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.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()TextLocator.BuildermergeEndPosition(TextLocator.Position value)The position of the last byte within the text.TextLocator.BuildermergeFrom(TextLocator other)TextLocator.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TextLocator.BuildermergeFrom(com.google.protobuf.Message other)TextLocator.BuildermergeNestedLocator(TextLocator value)If `source`, `start_position`, and `end_position` describe a call on some object (e.g.TextLocator.BuildermergeStartPosition(TextLocator.Position value)The position of the first byte within the text.TextLocator.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TextLocator.BuildersetEndPosition(TextLocator.Position value)The position of the last byte within the text.TextLocator.BuildersetEndPosition(TextLocator.Position.Builder builderForValue)The position of the last byte within the text.TextLocator.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TextLocator.BuildersetNestedLocator(TextLocator value)If `source`, `start_position`, and `end_position` describe a call on some object (e.g.TextLocator.BuildersetNestedLocator(TextLocator.Builder builderForValue)If `source`, `start_position`, and `end_position` describe a call on some object (e.g.TextLocator.BuildersetNestingReason(String value)When `nested_locator` is set, this field gives the reason for the nesting.TextLocator.BuildersetNestingReasonBytes(com.google.protobuf.ByteString value)When `nested_locator` is set, this field gives the reason for the nesting.TextLocator.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TextLocator.BuildersetSource(String value)The source of the text.TextLocator.BuildersetSourceBytes(com.google.protobuf.ByteString value)The source of the text.TextLocator.BuildersetStartPosition(TextLocator.Position value)The position of the first byte within the text.TextLocator.BuildersetStartPosition(TextLocator.Position.Builder builderForValue)The position of the first byte within the text.TextLocator.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<TextLocator.Builder>
-
clear
public TextLocator.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<TextLocator.Builder>
-
getDefaultInstanceForType
public TextLocator getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TextLocator build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TextLocator buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TextLocator.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
setField
public TextLocator.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
clearField
public TextLocator.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
clearOneof
public TextLocator.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
setRepeatedField
public TextLocator.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
addRepeatedField
public TextLocator.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
mergeFrom
public TextLocator.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextLocator.Builder>
-
mergeFrom
public TextLocator.Builder mergeFrom(TextLocator other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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.
-
setSource
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;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setSourceBytes
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;- 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
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.
-
setStartPosition
public TextLocator.Builder setStartPosition(TextLocator.Position value)
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
-
setStartPosition
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;
-
mergeStartPosition
public TextLocator.Builder mergeStartPosition(TextLocator.Position value)
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
-
clearStartPosition
public TextLocator.Builder clearStartPosition()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
-
getStartPositionBuilder
public TextLocator.Position.Builder getStartPositionBuilder()
The position of the first byte within the text.
.google.monitoring.v3.TextLocator.Position start_position = 2;
-
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.
-
setEndPosition
public TextLocator.Builder setEndPosition(TextLocator.Position value)
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
-
setEndPosition
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;
-
mergeEndPosition
public TextLocator.Builder mergeEndPosition(TextLocator.Position value)
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
-
clearEndPosition
public TextLocator.Builder clearEndPosition()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
-
getEndPositionBuilder
public TextLocator.Position.Builder getEndPositionBuilder()
The position of the last byte within the text.
.google.monitoring.v3.TextLocator.Position end_position = 3;
-
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.
-
setNestedLocator
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;
-
setNestedLocator
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;
-
mergeNestedLocator
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;
-
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;
-
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;
-
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.
-
setNestingReason
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;- Parameters:
value- The nestingReason to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNestingReasonBytes
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;- Parameters:
value- The bytes for nestingReason to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TextLocator.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
mergeUnknownFields
public final TextLocator.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextLocator.Builder>
-
-