public static final class Service.AgentSpec.Builder extends GeneratedMessage.Builder<Service.AgentSpec.Builder> implements Service.AgentSpecOrBuilderThe spec of the agent.
Protobuf type google.cloud.agentregistry.v1.Service.AgentSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Service.AgentSpec.BuilderImplements
Service.AgentSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Service.AgentSpec build()| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec |
|
buildPartial()
public Service.AgentSpec buildPartial()| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec |
|
clear()
public Service.AgentSpec.Builder clear()| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
clearContent()
public Service.AgentSpec.Builder clearContent() Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
clearType()
public Service.AgentSpec.Builder clearType()Required. The type of the agent spec content.
.google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
This builder for chaining. |
getContent()
public Struct getContent() Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The content. |
getContentBuilder()
public Struct.Builder getContentBuilder() Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getContentOrBuilder()
public StructOrBuilder getContentOrBuilder() Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getDefaultInstanceForType()
public Service.AgentSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getType()
public Service.AgentSpec.Type getType()Required. The type of the agent spec content.
.google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Type |
The type. |
getTypeValue()
public int getTypeValue()Required. The type of the agent spec content.
.google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasContent()
public boolean hasContent() Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the content field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeContent(Struct value)
public Service.AgentSpec.Builder mergeContent(Struct value) Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
mergeFrom(Service.AgentSpec other)
public Service.AgentSpec.Builder mergeFrom(Service.AgentSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
Service.AgentSpec |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Service.AgentSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Service.AgentSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
setContent(Struct value)
public Service.AgentSpec.Builder setContent(Struct value) Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
setContent(Struct.Builder builderForValue)
public Service.AgentSpec.Builder setContent(Struct.Builder builderForValue) Optional. The content of the Agent spec in the JSON format.
This payload is validated against the schema for the specified type.
The content size is limited to 10KB.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
|
setType(Service.AgentSpec.Type value)
public Service.AgentSpec.Builder setType(Service.AgentSpec.Type value)Required. The type of the agent spec content.
.google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Service.AgentSpec.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
This builder for chaining. |
setTypeValue(int value)
public Service.AgentSpec.Builder setTypeValue(int value)Required. The type of the agent spec content.
.google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Service.AgentSpec.Builder |
This builder for chaining. |