Class UpdateOccurrenceRequest.Builder (2.48.0)

public static final class UpdateOccurrenceRequest.Builder extends GeneratedMessageV3.Builder<UpdateOccurrenceRequest.Builder> implements UpdateOccurrenceRequestOrBuilder

Request to update an occurrence.

Protobuf type grafeas.v1.UpdateOccurrenceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateOccurrenceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

build()

public UpdateOccurrenceRequest build()
Returns
Type Description
UpdateOccurrenceRequest

buildPartial()

public UpdateOccurrenceRequest buildPartial()
Returns
Type Description
UpdateOccurrenceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public UpdateOccurrenceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

clearName()

public UpdateOccurrenceRequest.Builder clearName()

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
UpdateOccurrenceRequest.Builder

This builder for chaining.

clearOccurrence()

public UpdateOccurrenceRequest.Builder clearOccurrence()

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateOccurrenceRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateOccurrenceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

clearUpdateMask()

public UpdateOccurrenceRequest.Builder clearUpdateMask()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
UpdateOccurrenceRequest.Builder

clone()

public UpdateOccurrenceRequest.Builder clone()
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateOccurrenceRequest getDefaultInstanceForType()
Returns
Type Description
UpdateOccurrenceRequest

getDescriptorForType()

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

getName()

public String getName()

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getOccurrence()

public Occurrence getOccurrence()

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Occurrence

The occurrence.

getOccurrenceBuilder()

public Occurrence.Builder getOccurrenceBuilder()

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Occurrence.Builder

getOccurrenceOrBuilder()

public OccurrenceOrBuilder getOccurrenceOrBuilder()

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OccurrenceOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMaskOrBuilder

hasOccurrence()

public boolean hasOccurrence()

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the occurrence field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateOccurrenceRequest other)

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

mergeOccurrence(Occurrence value)

public UpdateOccurrenceRequest.Builder mergeOccurrence(Occurrence value)

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Occurrence
Returns
Type Description
UpdateOccurrenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateOccurrenceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateOccurrenceRequest.Builder mergeUpdateMask(FieldMask value)

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateOccurrenceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateOccurrenceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

setName(String value)

public UpdateOccurrenceRequest.Builder setName(String value)

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateOccurrenceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateOccurrenceRequest.Builder setNameBytes(ByteString value)

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateOccurrenceRequest.Builder

This builder for chaining.

setOccurrence(Occurrence value)

public UpdateOccurrenceRequest.Builder setOccurrence(Occurrence value)

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Occurrence
Returns
Type Description
UpdateOccurrenceRequest.Builder

setOccurrence(Occurrence.Builder builderForValue)

public UpdateOccurrenceRequest.Builder setOccurrence(Occurrence.Builder builderForValue)

The updated occurrence.

.grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Occurrence.Builder
Returns
Type Description
UpdateOccurrenceRequest.Builder

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

public UpdateOccurrenceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateOccurrenceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateOccurrenceRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateOccurrenceRequest.Builder setUpdateMask(FieldMask value)

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateOccurrenceRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateOccurrenceRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateOccurrenceRequest.Builder