Class InsightType.Builder (2.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InsightType build()
Returns
TypeDescription
InsightType

buildPartial()

public InsightType buildPartial()
Returns
TypeDescription
InsightType

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InsightType getDefaultInstanceForType()
Returns
TypeDescription
InsightType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
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(InsightType other)

public InsightType.Builder mergeFrom(InsightType other)
Parameter
NameDescription
otherInsightType
Returns
TypeDescription
InsightType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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