public final class Annotation extends GeneratedMessageV3 implements AnnotationOrBuilder
A text annotation by a user.Protobuf type
google.cloud.irm.v1alpha2.Annotation| Modifier and Type | Class and Description |
|---|---|
static class |
Annotation.Builder
A text annotation by a user.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHOR_FIELD_NUMBER |
static int |
CONTENT_FIELD_NUMBER |
static int |
CONTENT_TYPE_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int AUTHOR_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int CONTENT_TYPE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public String getName()
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
string name = 1;getName in interface AnnotationOrBuilderpublic ByteString getNameBytes()
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
string name = 1;getNameBytes in interface AnnotationOrBuilderpublic boolean hasAuthor()
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;hasAuthor in interface AnnotationOrBuilderpublic User getAuthor()
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;getAuthor in interface AnnotationOrBuilderpublic UserOrBuilder getAuthorOrBuilder()
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;getAuthorOrBuilder in interface AnnotationOrBuilderpublic boolean hasCreateTime()
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;hasCreateTime in interface AnnotationOrBuilderpublic Timestamp getCreateTime()
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;getCreateTime in interface AnnotationOrBuilderpublic TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;getCreateTimeOrBuilder in interface AnnotationOrBuilderpublic String getContent()
Content of the annotation.
string content = 4;getContent in interface AnnotationOrBuilderpublic ByteString getContentBytes()
Content of the annotation.
string content = 4;getContentBytes in interface AnnotationOrBuilderpublic String getContentType()
Content type of the annotation, for example, 'text/plain' or 'text/markdown'.
string content_type = 5;getContentType in interface AnnotationOrBuilderpublic ByteString getContentTypeBytes()
Content type of the annotation, for example, 'text/plain' or 'text/markdown'.
string content_type = 5;getContentTypeBytes in interface AnnotationOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Annotation parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Annotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Annotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Annotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Annotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Annotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Annotation parseFrom(InputStream input) throws IOException
IOExceptionpublic static Annotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Annotation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Annotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Annotation parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static Annotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Annotation.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Annotation.Builder newBuilder()
public static Annotation.Builder newBuilder(Annotation prototype)
public Annotation.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Annotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Annotation getDefaultInstance()
public static Parser<Annotation> parser()
public Parser<Annotation> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Annotation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.