Class AgentExtension.Builder (0.27.0)

public static final class AgentExtension.Builder extends GeneratedMessage.Builder<AgentExtension.Builder> implements AgentExtensionOrBuilder

A declaration of an extension supported by an Agent.

Protobuf type google.cloud.geminidataanalytics.v1beta.AgentExtension

Static Methods

getDescriptor()

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

Methods

build()

public AgentExtension build()
Returns
Type Description
AgentExtension

buildPartial()

public AgentExtension buildPartial()
Returns
Type Description
AgentExtension

clear()

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

clearDescription()

public AgentExtension.Builder clearDescription()

Optional. A description of how this agent uses this extension.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentExtension.Builder

This builder for chaining.

clearParams()

public AgentExtension.Builder clearParams()

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentExtension.Builder

clearRequired()

public AgentExtension.Builder clearRequired()

Optional. Whether the client must follow specific requirements of the extension.

bool required = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentExtension.Builder

This builder for chaining.

clearUri()

public AgentExtension.Builder clearUri()

Optional. The URI of the extension.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentExtension.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentExtension getDefaultInstanceForType()
Returns
Type Description
AgentExtension

getDescription()

public String getDescription()

Optional. A description of how this agent uses this extension.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A description of how this agent uses this extension.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getParams()

public Struct getParams()

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The params.

getParamsBuilder()

public Struct.Builder getParamsBuilder()

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getParamsOrBuilder()

public StructOrBuilder getParamsOrBuilder()

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getRequired()

public boolean getRequired()

Optional. Whether the client must follow specific requirements of the extension.

bool required = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The required.

getUri()

public String getUri()

Optional. The URI of the extension.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Optional. The URI of the extension.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for uri.

hasParams()

public boolean hasParams()

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the params field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentExtension other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParams(Struct value)

public AgentExtension.Builder mergeParams(Struct value)

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
AgentExtension.Builder

setDescription(String value)

public AgentExtension.Builder setDescription(String value)

Optional. A description of how this agent uses this extension.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AgentExtension.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AgentExtension.Builder setDescriptionBytes(ByteString value)

Optional. A description of how this agent uses this extension.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AgentExtension.Builder

This builder for chaining.

setParams(Struct value)

public AgentExtension.Builder setParams(Struct value)

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
AgentExtension.Builder

setParams(Struct.Builder builderForValue)

public AgentExtension.Builder setParams(Struct.Builder builderForValue)

Optional. Optional configuration for the extension.

.google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AgentExtension.Builder

setRequired(boolean value)

public AgentExtension.Builder setRequired(boolean value)

Optional. Whether the client must follow specific requirements of the extension.

bool required = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The required to set.

Returns
Type Description
AgentExtension.Builder

This builder for chaining.

setUri(String value)

public AgentExtension.Builder setUri(String value)

Optional. The URI of the extension.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
AgentExtension.Builder

This builder for chaining.

setUriBytes(ByteString value)

public AgentExtension.Builder setUriBytes(ByteString value)

Optional. The URI of the extension.

string uri = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
AgentExtension.Builder

This builder for chaining.