Class UpdateOccurrenceRequest.Builder (2.3.1)

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

Request to update an occurrence.

Protobuf type grafeas.v1beta1.UpdateOccurrenceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateOccurrenceRequest build()
Returns
TypeDescription
UpdateOccurrenceRequest

buildPartial()

public UpdateOccurrenceRequest buildPartial()
Returns
TypeDescription
UpdateOccurrenceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public UpdateOccurrenceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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;

Returns
TypeDescription
UpdateOccurrenceRequest.Builder

This builder for chaining.

clearOccurrence()

public UpdateOccurrenceRequest.Builder clearOccurrence()

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
UpdateOccurrenceRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateOccurrenceRequest.Builder clearUpdateMask()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
UpdateOccurrenceRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateOccurrenceRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateOccurrenceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
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;

Returns
TypeDescription
ByteString

The bytes for name.

getOccurrence()

public Occurrence getOccurrence()

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
Occurrence

The occurrence.

getOccurrenceBuilder()

public Occurrence.Builder getOccurrenceBuilder()

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
Occurrence.Builder

getOccurrenceOrBuilder()

public OccurrenceOrBuilder getOccurrenceOrBuilder()

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
OccurrenceOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMaskOrBuilder

hasOccurrence()

public boolean hasOccurrence()

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
boolean

Whether the occurrence field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateOccurrenceRequest other)

public UpdateOccurrenceRequest.Builder mergeFrom(UpdateOccurrenceRequest other)
Parameter
NameDescription
otherUpdateOccurrenceRequest
Returns
TypeDescription
UpdateOccurrenceRequest.Builder

mergeOccurrence(Occurrence value)

public UpdateOccurrenceRequest.Builder mergeOccurrence(Occurrence value)

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Parameter
NameDescription
valueOccurrence
Returns
TypeDescription
UpdateOccurrenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateOccurrenceRequest.Builder mergeUpdateMask(FieldMask value)

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateOccurrenceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateOccurrenceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateOccurrenceRequest.Builder

This builder for chaining.

setOccurrence(Occurrence value)

public UpdateOccurrenceRequest.Builder setOccurrence(Occurrence value)

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Parameter
NameDescription
valueOccurrence
Returns
TypeDescription
UpdateOccurrenceRequest.Builder

setOccurrence(Occurrence.Builder builderForValue)

public UpdateOccurrenceRequest.Builder setOccurrence(Occurrence.Builder builderForValue)

The updated occurrence.

.grafeas.v1beta1.Occurrence occurrence = 2;

Parameter
NameDescription
builderForValueOccurrence.Builder
Returns
TypeDescription
UpdateOccurrenceRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateOccurrenceRequest.Builder setUpdateMask(FieldMask value)

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateOccurrenceRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateOccurrenceRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The fields to update.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateOccurrenceRequest.Builder