Class CreateOccurrenceRequest (2.8.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
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateOccurrenceRequest getDefaultInstance()
Returns
TypeDescription
CreateOccurrenceRequest

getDescriptor()

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

newBuilder()

public static CreateOccurrenceRequest.Builder newBuilder()
Returns
TypeDescription
CreateOccurrenceRequest.Builder

newBuilder(CreateOccurrenceRequest prototype)

public static CreateOccurrenceRequest.Builder newBuilder(CreateOccurrenceRequest prototype)
Parameter
NameDescription
prototypeCreateOccurrenceRequest
Returns
TypeDescription
CreateOccurrenceRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateOccurrenceRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateOccurrenceRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateOccurrenceRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateOccurrenceRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateOccurrenceRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateOccurrenceRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateOccurrenceRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateOccurrenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateOccurrenceRequest> parser()
Returns
TypeDescription
Parser<CreateOccurrenceRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateOccurrenceRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateOccurrenceRequest

getOccurrence()

public Occurrence getOccurrence()

The occurrence to create.

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

Returns
TypeDescription
Occurrence

The occurrence.

getOccurrenceOrBuilder()

public OccurrenceOrBuilder getOccurrenceOrBuilder()

The occurrence to create.

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

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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateOccurrenceRequest> getParserForType()
Returns
TypeDescription
Parser<CreateOccurrenceRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasOccurrence()

public boolean hasOccurrence()

The occurrence to create.

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

Returns
TypeDescription
boolean

Whether the occurrence field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateOccurrenceRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateOccurrenceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateOccurrenceRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateOccurrenceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateOccurrenceRequest.Builder toBuilder()
Returns
TypeDescription
CreateOccurrenceRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException