Class Advice.Builder

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Advice build()
Returns
TypeDescription
Advice

buildPartial()

public Advice buildPartial()
Returns
TypeDescription
Advice

clear()

public Advice.Builder clear()
Returns
TypeDescription
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
TypeDescription
Advice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Advice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Advice.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Advice getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Advice other)

public Advice.Builder mergeFrom(Advice other)
Parameter
NameDescription
otherAdvice
Returns
TypeDescription
Advice.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Advice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
Advice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Advice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Advice.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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