Class GetOccurrenceRequest.Builder (2.34.0)

public static final class GetOccurrenceRequest.Builder extends GeneratedMessageV3.Builder<GetOccurrenceRequest.Builder> implements GetOccurrenceRequestOrBuilder

Request to get an occurrence.

Protobuf type grafeas.v1beta1.GetOccurrenceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetOccurrenceRequest build()
Returns
TypeDescription
GetOccurrenceRequest

buildPartial()

public GetOccurrenceRequest buildPartial()
Returns
TypeDescription
GetOccurrenceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetOccurrenceRequest.Builder clearName()

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Returns
TypeDescription
GetOccurrenceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetOccurrenceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetOccurrenceRequest.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public GetOccurrenceRequest getDefaultInstanceForType()
Returns
TypeDescription
GetOccurrenceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetOccurrenceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetOccurrenceRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(GetOccurrenceRequest other)

public GetOccurrenceRequest.Builder mergeFrom(GetOccurrenceRequest other)
Parameter
NameDescription
otherGetOccurrenceRequest
Returns
TypeDescription
GetOccurrenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetOccurrenceRequest.Builder setName(String value)

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetOccurrenceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetOccurrenceRequest.Builder setNameBytes(ByteString value)

The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetOccurrenceRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetOccurrenceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetOccurrenceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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