public static final class Service.EndpointSpec.Builder extends GeneratedMessage.Builder<Service.EndpointSpec.Builder> implements Service.EndpointSpecOrBuilderThe spec of the endpoint.
Protobuf type google.cloud.agentregistry.v1.Service.EndpointSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Service.EndpointSpec.BuilderImplements
Service.EndpointSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Service.EndpointSpec build()| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec |
|
buildPartial()
public Service.EndpointSpec buildPartial()| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec |
|
clear()
public Service.EndpointSpec.Builder clear()| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
clearContent()
public Service.EndpointSpec.Builder clearContent()Optional. The content of the endpoint spec. Reserved for future use.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
clearType()
public Service.EndpointSpec.Builder clearType()Required. The type of the endpoint spec content.
.google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
This builder for chaining. |
getContent()
public Struct getContent()Optional. The content of the endpoint spec. Reserved for future use.
.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 endpoint spec. Reserved for future use.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getContentOrBuilder()
public StructOrBuilder getContentOrBuilder()Optional. The content of the endpoint spec. Reserved for future use.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getDefaultInstanceForType()
public Service.EndpointSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getType()
public Service.EndpointSpec.Type getType()Required. The type of the endpoint spec content.
.google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Type |
The type. |
getTypeValue()
public int getTypeValue()Required. The type of the endpoint spec content.
.google.cloud.agentregistry.v1.Service.EndpointSpec.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 endpoint spec. Reserved for future use.
.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.EndpointSpec.Builder mergeContent(Struct value)Optional. The content of the endpoint spec. Reserved for future use.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
mergeFrom(Service.EndpointSpec other)
public Service.EndpointSpec.Builder mergeFrom(Service.EndpointSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
Service.EndpointSpec |
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Service.EndpointSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Service.EndpointSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
setContent(Struct value)
public Service.EndpointSpec.Builder setContent(Struct value)Optional. The content of the endpoint spec. Reserved for future use.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
setContent(Struct.Builder builderForValue)
public Service.EndpointSpec.Builder setContent(Struct.Builder builderForValue)Optional. The content of the endpoint spec. Reserved for future use.
.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
|
setType(Service.EndpointSpec.Type value)
public Service.EndpointSpec.Builder setType(Service.EndpointSpec.Type value)Required. The type of the endpoint spec content.
.google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Service.EndpointSpec.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Service.EndpointSpec.Builder |
This builder for chaining. |
setTypeValue(int value)
public Service.EndpointSpec.Builder setTypeValue(int value)Required. The type of the endpoint spec content.
.google.cloud.agentregistry.v1.Service.EndpointSpec.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.EndpointSpec.Builder |
This builder for chaining. |