Send feedback
Class CreateOccurrenceRequest.Builder (2.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.17.0 keyboard_arrow_down
public static final class CreateOccurrenceRequest . Builder extends GeneratedMessageV3 . Builder<CreateOccurrenceRequest . Builder > implements CreateOccurrenceRequestOrBuilder
Request to create a new occurrence.
Protobuf type grafeas.v1beta1.CreateOccurrenceRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateOccurrenceRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public CreateOccurrenceRequest build ()
buildPartial()
public CreateOccurrenceRequest buildPartial ()
clear()
public CreateOccurrenceRequest . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateOccurrenceRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOccurrence()
public CreateOccurrenceRequest . Builder clearOccurrence ()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateOccurrenceRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public CreateOccurrenceRequest . Builder clone ()
Overrides
getDefaultInstanceForType()
public CreateOccurrenceRequest getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getOccurrence()
public Occurrence getOccurrence ()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
getOccurrenceBuilder()
public Occurrence . Builder getOccurrenceBuilder ()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
getOccurrenceOrBuilder()
public OccurrenceOrBuilder getOccurrenceOrBuilder ()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
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 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;
Returns Type Description ByteString
The bytes for parent.
hasOccurrence()
public boolean hasOccurrence ()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Returns Type Description boolean
Whether the occurrence field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
public CreateOccurrenceRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CreateOccurrenceRequest . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeFrom(CreateOccurrenceRequest other)
public CreateOccurrenceRequest . Builder mergeFrom ( CreateOccurrenceRequest other )
mergeOccurrence(Occurrence value)
public CreateOccurrenceRequest . Builder mergeOccurrence ( Occurrence value )
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateOccurrenceRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateOccurrenceRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setOccurrence(Occurrence value)
public CreateOccurrenceRequest . Builder setOccurrence ( Occurrence value )
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
setOccurrence(Occurrence.Builder builderForValue)
public CreateOccurrenceRequest . Builder setOccurrence ( Occurrence . Builder builderForValue )
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
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 Name Description value
String
The parent to set.
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 Name Description value
ByteString
The bytes for parent to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateOccurrenceRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateOccurrenceRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]