Class BatchCreateNotesRequest.Builder (2.6.0)

public static final class BatchCreateNotesRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateNotesRequest.Builder> implements BatchCreateNotesRequestOrBuilder

Request to create notes in batch.

Protobuf type grafeas.v1beta1.BatchCreateNotesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateNotesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

build()

public BatchCreateNotesRequest build()
Returns
TypeDescription
BatchCreateNotesRequest

buildPartial()

public BatchCreateNotesRequest buildPartial()
Returns
TypeDescription
BatchCreateNotesRequest

clear()

public BatchCreateNotesRequest.Builder clear()
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateNotesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

clearNotes()

public BatchCreateNotesRequest.Builder clearNotes()
Returns
TypeDescription
BatchCreateNotesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateNotesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

clearParent()

public BatchCreateNotesRequest.Builder clearParent()

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

string parent = 1;

Returns
TypeDescription
BatchCreateNotesRequest.Builder

This builder for chaining.

clone()

public BatchCreateNotesRequest.Builder clone()
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

containsNotes(String key)

public boolean containsNotes(String key)

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public BatchCreateNotesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateNotesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableNotes()

public Map<String,Note> getMutableNotes()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,Note>

getNotes()

public Map<String,Note> getNotes()

Use #getNotesMap() instead.

Returns
TypeDescription
Map<String,Note>

getNotesCount()

public int getNotesCount()

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Returns
TypeDescription
int

getNotesMap()

public Map<String,Note> getNotesMap()

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Returns
TypeDescription
Map<String,Note>

getNotesOrDefault(String key, Note defaultValue)

public Note getNotesOrDefault(String key, Note defaultValue)

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Parameters
NameDescription
keyString
defaultValueNote
Returns
TypeDescription
Note

getNotesOrThrow(String key)

public Note getNotesOrThrow(String key)

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
Note

getParent()

public String getParent()

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

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateNotesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchCreateNotesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

mergeFrom(BatchCreateNotesRequest other)

public BatchCreateNotesRequest.Builder mergeFrom(BatchCreateNotesRequest other)
Parameter
NameDescription
otherBatchCreateNotesRequest
Returns
TypeDescription
BatchCreateNotesRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateNotesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

putAllNotes(Map<String,Note> values)

public BatchCreateNotesRequest.Builder putAllNotes(Map<String,Note> values)

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Parameter
NameDescription
valuesMap<String,Note>
Returns
TypeDescription
BatchCreateNotesRequest.Builder

putNotes(String key, Note value)

public BatchCreateNotesRequest.Builder putNotes(String key, Note value)

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Parameters
NameDescription
keyString
valueNote
Returns
TypeDescription
BatchCreateNotesRequest.Builder

removeNotes(String key)

public BatchCreateNotesRequest.Builder removeNotes(String key)

The notes to create.

map<string, .grafeas.v1beta1.Note> notes = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchCreateNotesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateNotesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

setParent(String value)

public BatchCreateNotesRequest.Builder setParent(String value)

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

string parent = 1;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchCreateNotesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateNotesRequest.Builder setParentBytes(ByteString value)

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

string parent = 1;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchCreateNotesRequest.Builder

This builder for chaining.

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

public BatchCreateNotesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateNotesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateNotesRequest.Builder
Overrides