public static final class Annotation.Builder extends GeneratedMessageV3.Builder<Annotation.Builder> implements AnnotationOrBuilder
A text annotation by a user.Protobuf type
google.cloud.irm.v1alpha2.Annotation| Modifier and Type | Method and Description |
|---|---|
Annotation.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Annotation |
build() |
Annotation |
buildPartial() |
Annotation.Builder |
clear() |
Annotation.Builder |
clearAuthor()
Output only.
|
Annotation.Builder |
clearContent()
Content of the annotation.
|
Annotation.Builder |
clearContentType()
Content type of the annotation, for example, 'text/plain'
or 'text/markdown'.
|
Annotation.Builder |
clearCreateTime()
Output only.
|
Annotation.Builder |
clearField(Descriptors.FieldDescriptor field) |
Annotation.Builder |
clearName()
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
|
Annotation.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Annotation.Builder |
clone() |
User |
getAuthor()
Output only.
|
User.Builder |
getAuthorBuilder()
Output only.
|
UserOrBuilder |
getAuthorOrBuilder()
Output only.
|
String |
getContent()
Content of the annotation.
|
ByteString |
getContentBytes()
Content of the annotation.
|
String |
getContentType()
Content type of the annotation, for example, 'text/plain'
or 'text/markdown'.
|
ByteString |
getContentTypeBytes()
Content type of the annotation, for example, 'text/plain'
or 'text/markdown'.
|
Timestamp |
getCreateTime()
Output only.
|
Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Annotation |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
|
ByteString |
getNameBytes()
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
|
boolean |
hasAuthor()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Annotation.Builder |
mergeAuthor(User value)
Output only.
|
Annotation.Builder |
mergeCreateTime(Timestamp value)
Output only.
|
Annotation.Builder |
mergeFrom(Annotation other) |
Annotation.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Annotation.Builder |
mergeFrom(Message other) |
Annotation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Annotation.Builder |
setAuthor(User.Builder builderForValue)
Output only.
|
Annotation.Builder |
setAuthor(User value)
Output only.
|
Annotation.Builder |
setContent(String value)
Content of the annotation.
|
Annotation.Builder |
setContentBytes(ByteString value)
Content of the annotation.
|
Annotation.Builder |
setContentType(String value)
Content type of the annotation, for example, 'text/plain'
or 'text/markdown'.
|
Annotation.Builder |
setContentTypeBytes(ByteString value)
Content type of the annotation, for example, 'text/plain'
or 'text/markdown'.
|
Annotation.Builder |
setCreateTime(Timestamp.Builder builderForValue)
Output only.
|
Annotation.Builder |
setCreateTime(Timestamp value)
Output only.
|
Annotation.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Annotation.Builder |
setName(String value)
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
|
Annotation.Builder |
setNameBytes(ByteString value)
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
|
Annotation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Annotation.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Annotation.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Annotation build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Annotation buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Annotation.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Annotation.Builder>public Annotation.Builder mergeFrom(Annotation other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Annotation.Builder>IOExceptionpublic 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 Annotation.Builder setName(String value)
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
string name = 1;value - The name to set.public Annotation.Builder clearName()
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
string name = 1;public Annotation.Builder setNameBytes(ByteString value)
Resource name of the annotation, for example,
"projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
string name = 1;value - The bytes for name to set.public 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 Annotation.Builder setAuthor(User value)
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;public Annotation.Builder setAuthor(User.Builder builderForValue)
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;public Annotation.Builder mergeAuthor(User value)
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;public Annotation.Builder clearAuthor()
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;public User.Builder getAuthorBuilder()
Output only. Author of the annotation.
.google.cloud.irm.v1alpha2.User author = 2;public 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 Annotation.Builder setCreateTime(Timestamp value)
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;public Annotation.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;public Annotation.Builder mergeCreateTime(Timestamp value)
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;public Annotation.Builder clearCreateTime()
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;public Timestamp.Builder getCreateTimeBuilder()
Output only. Time the annotation was created.
.google.protobuf.Timestamp create_time = 3;public 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 Annotation.Builder setContent(String value)
Content of the annotation.
string content = 4;value - The content to set.public Annotation.Builder clearContent()
Content of the annotation.
string content = 4;public Annotation.Builder setContentBytes(ByteString value)
Content of the annotation.
string content = 4;value - The bytes for content to set.public 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 Annotation.Builder setContentType(String value)
Content type of the annotation, for example, 'text/plain' or 'text/markdown'.
string content_type = 5;value - The contentType to set.public Annotation.Builder clearContentType()
Content type of the annotation, for example, 'text/plain' or 'text/markdown'.
string content_type = 5;public Annotation.Builder setContentTypeBytes(ByteString value)
Content type of the annotation, for example, 'text/plain' or 'text/markdown'.
string content_type = 5;value - The bytes for contentType to set.public final Annotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Annotation.Builder>public final Annotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Annotation.Builder>Copyright © 2020 Google LLC. All rights reserved.