Class InsightType.Builder (2.47.0)

public static final class InsightType.Builder extends GeneratedMessageV3.Builder<InsightType.Builder> implements InsightTypeOrBuilder

The type of insight.

Protobuf type google.cloud.recommender.v1beta1.InsightType

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InsightType build()
Returns
Type Description
InsightType

buildPartial()

public InsightType buildPartial()
Returns
Type Description
InsightType

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public InsightType.Builder clearName()

The insight_type’s name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight

string name = 1;

Returns
Type Description
InsightType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InsightType getDefaultInstanceForType()
Returns
Type Description
InsightType

getDescriptorForType()

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

getName()

public String getName()

The insight_type’s name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The insight_type’s name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public InsightType.Builder setName(String value)

The insight_type’s name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InsightType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InsightType.Builder setNameBytes(ByteString value)

The insight_type’s name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InsightType.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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