Class RecommenderType.Builder (2.45.0)

public static final class RecommenderType.Builder extends GeneratedMessageV3.Builder<RecommenderType.Builder> implements RecommenderTypeOrBuilder

The type of a recommender.

Protobuf type google.cloud.recommender.v1beta1.RecommenderType

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecommenderType build()
Returns
Type Description
RecommenderType

buildPartial()

public RecommenderType buildPartial()
Returns
Type Description
RecommenderType

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RecommenderType.Builder clearName()

The recommender's name in format RecommenderTypes/{recommender_type} eg: recommenderTypes/google.iam.policy.Recommender

string name = 1;

Returns
Type Description
RecommenderType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RecommenderType getDefaultInstanceForType()
Returns
Type Description
RecommenderType

getDescriptorForType()

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

getName()

public String getName()

The recommender's name in format RecommenderTypes/{recommender_type} eg: recommenderTypes/google.iam.policy.Recommender

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The recommender's name in format RecommenderTypes/{recommender_type} eg: recommenderTypes/google.iam.policy.Recommender

string name = 1;

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(RecommenderType other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RecommenderType.Builder setName(String value)

The recommender's name in format RecommenderTypes/{recommender_type} eg: recommenderTypes/google.iam.policy.Recommender

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RecommenderType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RecommenderType.Builder setNameBytes(ByteString value)

The recommender's name in format RecommenderTypes/{recommender_type} eg: recommenderTypes/google.iam.policy.Recommender

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RecommenderType.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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