Class CreateOccurrenceRequest.Builder (2.6.0)

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

Request to create a new occurrence.

Protobuf type grafeas.v1beta1.CreateOccurrenceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateOccurrenceRequest build()
Returns
TypeDescription
CreateOccurrenceRequest

buildPartial()

public CreateOccurrenceRequest buildPartial()
Returns
TypeDescription
CreateOccurrenceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOccurrence()

public CreateOccurrenceRequest.Builder clearOccurrence()

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
CreateOccurrenceRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateOccurrenceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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;

Returns
TypeDescription
CreateOccurrenceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateOccurrenceRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateOccurrenceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOccurrence()

public Occurrence getOccurrence()

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
Occurrence

The occurrence.

getOccurrenceBuilder()

public Occurrence.Builder getOccurrenceBuilder()

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
Occurrence.Builder

getOccurrenceOrBuilder()

public OccurrenceOrBuilder getOccurrenceOrBuilder()

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

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

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasOccurrence()

public boolean hasOccurrence()

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

Returns
TypeDescription
boolean

Whether the occurrence 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 CreateOccurrenceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateOccurrenceRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(CreateOccurrenceRequest other)

public CreateOccurrenceRequest.Builder mergeFrom(CreateOccurrenceRequest other)
Parameter
NameDescription
otherCreateOccurrenceRequest
Returns
TypeDescription
CreateOccurrenceRequest.Builder

mergeOccurrence(Occurrence value)

public CreateOccurrenceRequest.Builder mergeOccurrence(Occurrence value)

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

Parameter
NameDescription
valueOccurrence
Returns
TypeDescription
CreateOccurrenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOccurrence(Occurrence value)

public CreateOccurrenceRequest.Builder setOccurrence(Occurrence value)

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

Parameter
NameDescription
valueOccurrence
Returns
TypeDescription
CreateOccurrenceRequest.Builder

setOccurrence(Occurrence.Builder builderForValue)

public CreateOccurrenceRequest.Builder setOccurrence(Occurrence.Builder builderForValue)

The occurrence to create.

.grafeas.v1beta1.Occurrence occurrence = 2;

Parameter
NameDescription
builderForValueOccurrence.Builder
Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The parent to set.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateOccurrenceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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