Class CreateOccurrenceRequest (2.52.0)

public final class CreateOccurrenceRequest extends GeneratedMessageV3 implements CreateOccurrenceRequestOrBuilder

Request to create a new occurrence.

Protobuf type grafeas.v1.CreateOccurrenceRequest

Static Fields

OCCURRENCE_FIELD_NUMBER

public static final int OCCURRENCE_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateOccurrenceRequest getDefaultInstance()
Returns
Type Description
CreateOccurrenceRequest

getDescriptor()

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

newBuilder()

public static CreateOccurrenceRequest.Builder newBuilder()
Returns
Type Description
CreateOccurrenceRequest.Builder

newBuilder(CreateOccurrenceRequest prototype)

public static CreateOccurrenceRequest.Builder newBuilder(CreateOccurrenceRequest prototype)
Parameter
Name Description
prototype CreateOccurrenceRequest
Returns
Type Description
CreateOccurrenceRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateOccurrenceRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateOccurrenceRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateOccurrenceRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateOccurrenceRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateOccurrenceRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateOccurrenceRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateOccurrenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateOccurrenceRequest> parser()
Returns
Type Description
Parser<CreateOccurrenceRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateOccurrenceRequest getDefaultInstanceForType()
Returns
Type Description
CreateOccurrenceRequest

getOccurrence()

public Occurrence getOccurrence()

The occurrence to create.

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

Returns
Type Description
Occurrence

The occurrence.

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.

getParserForType()

public Parser<CreateOccurrenceRequest> getParserForType()
Returns
Type Description
Parser<CreateOccurrenceRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateOccurrenceRequest.Builder newBuilderForType()
Returns
Type Description
CreateOccurrenceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateOccurrenceRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateOccurrenceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateOccurrenceRequest.Builder toBuilder()
Returns
Type Description
CreateOccurrenceRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException