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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateOccurrenceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateOccurrenceRequest build()
Returns
buildPartial()
public CreateOccurrenceRequest buildPartial()
Returns
clear()
public CreateOccurrenceRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateOccurrenceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOccurrence()
public CreateOccurrenceRequest.Builder clearOccurrence()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateOccurrenceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CreateOccurrenceRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateOccurrenceRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getOccurrence()
public Occurrence getOccurrence()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Returns
getOccurrenceBuilder()
public Occurrence.Builder getOccurrenceBuilder()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Returns
getOccurrenceOrBuilder()
public OccurrenceOrBuilder getOccurrenceOrBuilder()
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Returns
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
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public CreateOccurrenceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateOccurrenceRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(CreateOccurrenceRequest other)
public CreateOccurrenceRequest.Builder mergeFrom(CreateOccurrenceRequest other)
Parameter
Returns
mergeOccurrence(Occurrence value)
public CreateOccurrenceRequest.Builder mergeOccurrence(Occurrence value)
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateOccurrenceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateOccurrenceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setOccurrence(Occurrence value)
public CreateOccurrenceRequest.Builder setOccurrence(Occurrence value)
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Parameter
Returns
setOccurrence(Occurrence.Builder builderForValue)
public CreateOccurrenceRequest.Builder setOccurrence(Occurrence.Builder builderForValue)
The occurrence to create.
.grafeas.v1beta1.Occurrence occurrence = 2;
Parameter
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateOccurrenceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateOccurrenceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides