Class CreateOccurrenceRequest.Builder (2.50.0)

public static final class CreateOccurrenceRequest.Builder extends GeneratedMessageV3.Builder<CreateOccurrenceRequest.Builder> implements CreateOccurrenceRequestOrBuilder

Request to create a new occurrence.

Protobuf type grafeas.v1.CreateOccurrenceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateOccurrenceRequest build()
Returns
Type Description
CreateOccurrenceRequest

buildPartial()

public CreateOccurrenceRequest buildPartial()
Returns
Type Description
CreateOccurrenceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOccurrence()

public CreateOccurrenceRequest.Builder clearOccurrence()

The occurrence to create.

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

Returns
Type Description
CreateOccurrenceRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateOccurrenceRequest.Builder clearParent()

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

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

Returns
Type Description
CreateOccurrenceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateOccurrenceRequest getDefaultInstanceForType()
Returns
Type Description
CreateOccurrenceRequest

getDescriptorForType()

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

getOccurrence()

public Occurrence getOccurrence()

The occurrence to create.

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

Returns
Type Description
Occurrence

The occurrence.

getOccurrenceBuilder()

public Occurrence.Builder getOccurrenceBuilder()

The occurrence to create.

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

Returns
Type Description
Occurrence.Builder

getOccurrenceOrBuilder()

public OccurrenceOrBuilder getOccurrenceOrBuilder()

The occurrence to create.

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

Returns
Type Description
OccurrenceOrBuilder

getParent()

public String getParent()

The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is 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 occurrence is to be created.

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

Returns
Type Description
ByteString

The bytes for parent.

hasOccurrence()

public boolean hasOccurrence()

The occurrence to create.

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

Returns
Type Description
boolean

Whether the occurrence 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 CreateOccurrenceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateOccurrenceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(CreateOccurrenceRequest other)

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

mergeOccurrence(Occurrence value)

public CreateOccurrenceRequest.Builder mergeOccurrence(Occurrence value)

The occurrence to create.

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

Parameter
Name Description
value Occurrence
Returns
Type Description
CreateOccurrenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOccurrence(Occurrence value)

public CreateOccurrenceRequest.Builder setOccurrence(Occurrence value)

The occurrence to create.

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

Parameter
Name Description
value Occurrence
Returns
Type Description
CreateOccurrenceRequest.Builder

setOccurrence(Occurrence.Builder builderForValue)

public CreateOccurrenceRequest.Builder setOccurrence(Occurrence.Builder builderForValue)

The occurrence to create.

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

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

setParent(String value)

public CreateOccurrenceRequest.Builder setParent(String value)

The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is 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
CreateOccurrenceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateOccurrenceRequest.Builder setParentBytes(ByteString value)

The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is 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
CreateOccurrenceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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