Class CreateNoteRequest.Builder (2.40.0)

publicstaticfinalclass CreateNoteRequest.BuilderextendsGeneratedMessageV3.Builder<CreateNoteRequest.Builder>implementsCreateNoteRequestOrBuilder

Request to create a new note.

Protobuf type grafeas.v1beta1.CreateNoteRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCreateNoteRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateNoteRequest.Builder
Overrides

build()

publicCreateNoteRequestbuild()
Returns
Type Description
CreateNoteRequest

buildPartial()

publicCreateNoteRequestbuildPartial()
Returns
Type Description
CreateNoteRequest

clear()

publicCreateNoteRequest.Builderclear()
Returns
Type Description
CreateNoteRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateNoteRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateNoteRequest.Builder
Overrides

clearNote()

publicCreateNoteRequest.BuilderclearNote()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
Type Description
CreateNoteRequest.Builder

clearNoteId()

publicCreateNoteRequest.BuilderclearNoteId()

The ID to use for this note.

string note_id = 2;

Returns
Type Description
CreateNoteRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateNoteRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateNoteRequest.Builder
Overrides

clearParent()

publicCreateNoteRequest.BuilderclearParent()

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

string parent = 1;

Returns
Type Description
CreateNoteRequest.Builder

This builder for chaining.

clone()

publicCreateNoteRequest.Builderclone()
Returns
Type Description
CreateNoteRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateNoteRequestgetDefaultInstanceForType()
Returns
Type Description
CreateNoteRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNote()

publicNotegetNote()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
Type Description
Note

The note.

getNoteBuilder()

publicNote.BuildergetNoteBuilder()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
Type Description
Note.Builder

getNoteId()

publicStringgetNoteId()

The ID to use for this note.

string note_id = 2;

Returns
Type Description
String

The noteId.

getNoteIdBytes()

publicByteStringgetNoteIdBytes()

The ID to use for this note.

string note_id = 2;

Returns
Type Description
ByteString

The bytes for noteId.

getNoteOrBuilder()

publicNoteOrBuildergetNoteOrBuilder()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
Type Description
NoteOrBuilder

getParent()

publicStringgetParent()

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

hasNote()

publicbooleanhasNote()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
Type Description
boolean

Whether the note field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateNoteRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateNoteRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCreateNoteRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateNoteRequest.Builder
Overrides

mergeFrom(CreateNoteRequest other)

publicCreateNoteRequest.BuildermergeFrom(CreateNoteRequestother)
Parameter
Name Description
other CreateNoteRequest
Returns
Type Description
CreateNoteRequest.Builder

mergeNote(Note value)

publicCreateNoteRequest.BuildermergeNote(Notevalue)

The note to create.

.grafeas.v1beta1.Note note = 3;

Parameter
Name Description
value Note
Returns
Type Description
CreateNoteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateNoteRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateNoteRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateNoteRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateNoteRequest.Builder
Overrides

setNote(Note value)

publicCreateNoteRequest.BuildersetNote(Notevalue)

The note to create.

.grafeas.v1beta1.Note note = 3;

Parameter
Name Description
value Note
Returns
Type Description
CreateNoteRequest.Builder

setNote(Note.Builder builderForValue)

publicCreateNoteRequest.BuildersetNote(Note.BuilderbuilderForValue)

The note to create.

.grafeas.v1beta1.Note note = 3;

Parameter
Name Description
builderForValue Note.Builder
Returns
Type Description
CreateNoteRequest.Builder

setNoteId(String value)

publicCreateNoteRequest.BuildersetNoteId(Stringvalue)

The ID to use for this note.

string note_id = 2;

Parameter
Name Description
value String

The noteId to set.

Returns
Type Description
CreateNoteRequest.Builder

This builder for chaining.

setNoteIdBytes(ByteString value)

publicCreateNoteRequest.BuildersetNoteIdBytes(ByteStringvalue)

The ID to use for this note.

string note_id = 2;

Parameter
Name Description
value ByteString

The bytes for noteId to set.

Returns
Type Description
CreateNoteRequest.Builder

This builder for chaining.

setParent(String value)

publicCreateNoteRequest.BuildersetParent(Stringvalue)

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateNoteRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicCreateNoteRequest.BuildersetParentBytes(ByteStringvalue)

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateNoteRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicCreateNoteRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateNoteRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateNoteRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateNoteRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.