Class Advice.Builder (2.43.0)

public static final class Advice.Builder extends GeneratedMessageV3.Builder<Advice.Builder> implements AdviceOrBuilder

Generated advice about this change, used for providing more information about how a change will affect the existing service.

Protobuf type google.api.Advice

Implements

AdviceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Advice build()
Returns
Type Description
Advice

buildPartial()

public Advice buildPartial()
Returns
Type Description
Advice

clear()

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

clearDescription()

public Advice.Builder clearDescription()

Useful description for why this advice was applied and what actions should be taken to mitigate any implied risks.

string description = 2;

Returns
Type Description
Advice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Advice getDefaultInstanceForType()
Returns
Type Description
Advice

getDescription()

public String getDescription()

Useful description for why this advice was applied and what actions should be taken to mitigate any implied risks.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Useful description for why this advice was applied and what actions should be taken to mitigate any implied risks.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Advice other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public Advice.Builder setDescription(String value)

Useful description for why this advice was applied and what actions should be taken to mitigate any implied risks.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Advice.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Advice.Builder setDescriptionBytes(ByteString value)

Useful description for why this advice was applied and what actions should be taken to mitigate any implied risks.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Advice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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