Class GetRecommendationRequest.Builder (2.48.0)

public static final class GetRecommendationRequest.Builder extends GeneratedMessageV3.Builder<GetRecommendationRequest.Builder> implements GetRecommendationRequestOrBuilder

Request to the GetRecommendation method.

Protobuf type google.cloud.recommender.v1.GetRecommendationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetRecommendationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

build()

public GetRecommendationRequest build()
Returns
Type Description
GetRecommendationRequest

buildPartial()

public GetRecommendationRequest buildPartial()
Returns
Type Description
GetRecommendationRequest

clear()

public GetRecommendationRequest.Builder clear()
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetRecommendationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

clearName()

public GetRecommendationRequest.Builder clearName()

Required. Name of the recommendation.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetRecommendationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetRecommendationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

clone()

public GetRecommendationRequest.Builder clone()
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

getDefaultInstanceForType()

public GetRecommendationRequest getDefaultInstanceForType()
Returns
Type Description
GetRecommendationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Name of the recommendation.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the recommendation.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetRecommendationRequest other)

public GetRecommendationRequest.Builder mergeFrom(GetRecommendationRequest other)
Parameter
Name Description
other GetRecommendationRequest
Returns
Type Description
GetRecommendationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetRecommendationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetRecommendationRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetRecommendationRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetRecommendationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetRecommendationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

setName(String value)

public GetRecommendationRequest.Builder setName(String value)

Required. Name of the recommendation.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetRecommendationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetRecommendationRequest.Builder setNameBytes(ByteString value)

Required. Name of the recommendation.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetRecommendationRequest.Builder

This builder for chaining.

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

public GetRecommendationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetRecommendationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetRecommendationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetRecommendationRequest.Builder
Overrides