Class GetRecommendationRequest.Builder (2.32.0)

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

Request to the GetRecommendation method.

Protobuf type google.cloud.recommender.v1beta1.GetRecommendationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRecommendationRequest build()
Returns
TypeDescription
GetRecommendationRequest

buildPartial()

public GetRecommendationRequest buildPartial()
Returns
TypeDescription
GetRecommendationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetRecommendationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetRecommendationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetRecommendationRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRecommendationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Name of the recommendation.

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

Returns
TypeDescription
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
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(GetRecommendationRequest other)

public GetRecommendationRequest.Builder mergeFrom(GetRecommendationRequest other)
Parameter
NameDescription
otherGetRecommendationRequest
Returns
TypeDescription
GetRecommendationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetRecommendationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetRecommendationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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