Class BatchCreateNotesRequest.Builder (2.84.0)

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

Request to create notes in batch.

Protobuf type grafeas.v1.BatchCreateNotesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public BatchCreateNotesRequest build()
Returns
Type Description
BatchCreateNotesRequest

buildPartial()

public BatchCreateNotesRequest buildPartial()
Returns
Type Description
BatchCreateNotesRequest

clear()

public BatchCreateNotesRequest.Builder clear()
Returns
Type Description
BatchCreateNotesRequest.Builder
Overrides

clearNotes()

public BatchCreateNotesRequest.Builder clearNotes()
Returns
Type Description
BatchCreateNotesRequest.Builder

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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
BatchCreateNotesRequest.Builder

This builder for chaining.

containsNotes(String key)

public boolean containsNotes(String key)

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public BatchCreateNotesRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateNotesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableNotes() (deprecated)

public Map<String,Note> getMutableNotes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Note>

getNotes() (deprecated)

public Map<String,Note> getNotes()

Use #getNotesMap() instead.

Returns
Type Description
Map<String,Note>

getNotesCount()

public int getNotesCount()

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getNotesMap()

public Map<String,Note> getNotesMap()

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Map<String,Note>

getNotesOrDefault(String key, Note defaultValue)

public Note getNotesOrDefault(String key, Note defaultValue)

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
defaultValue Note
Returns
Type Description
Note

getNotesOrThrow(String key)

public Note getNotesOrThrow(String key)

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateNotesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateNotesRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCreateNotesRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCreateNotesRequest.Builder
Overrides

mergeFrom(BatchCreateNotesRequest other)

public BatchCreateNotesRequest.Builder mergeFrom(BatchCreateNotesRequest other)
Parameter
Name Description
other BatchCreateNotesRequest
Returns
Type Description
BatchCreateNotesRequest.Builder

putAllNotes(Map<String,Note> values)

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

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Map<String,Note>
Returns
Type Description
BatchCreateNotesRequest.Builder

putNotes(String key, Note value)

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

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
value Note
Returns
Type Description
BatchCreateNotesRequest.Builder

putNotesBuilderIfAbsent(String key)

public Note.Builder putNotesBuilderIfAbsent(String key)

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
Note.Builder

removeNotes(String key)

public BatchCreateNotesRequest.Builder removeNotes(String key)

The notes to create. Max allowed length is 1000.

map<string, .grafeas.v1.Note> notes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
BatchCreateNotesRequest.Builder

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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchCreateNotesRequest.Builder

This builder for chaining.