Class OpenApiToolset.Builder (0.1.0)

public static final class OpenApiToolset.Builder extends GeneratedMessage.Builder<OpenApiToolset.Builder> implements OpenApiToolsetOrBuilder

A toolset that contains a list of tools that are defined by an OpenAPI schema.

Protobuf type google.cloud.ces.v1.OpenApiToolset

Static Methods

getDescriptor()

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

Methods

build()

public OpenApiToolset build()
Returns
Type Description
OpenApiToolset

buildPartial()

public OpenApiToolset buildPartial()
Returns
Type Description
OpenApiToolset

clear()

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

clearApiAuthentication()

public OpenApiToolset.Builder clearApiAuthentication()

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OpenApiToolset.Builder

clearIgnoreUnknownFields()

public OpenApiToolset.Builder clearIgnoreUnknownFields()

Optional. If true, the agent will ignore unknown fields in the API response for all operations defined in the OpenAPI schema.

bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.

clearOpenApiSchema()

public OpenApiToolset.Builder clearOpenApiSchema()

Required. The OpenAPI schema of the toolset.

string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.

clearServiceDirectoryConfig()

public OpenApiToolset.Builder clearServiceDirectoryConfig()

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OpenApiToolset.Builder

clearTlsConfig()

public OpenApiToolset.Builder clearTlsConfig()

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OpenApiToolset.Builder

clearUrl()

public OpenApiToolset.Builder clearUrl()

Optional. The server URL of the Open API schema. This field is only set in toolsets in the environment dependencies during the export process if the schema contains a server url. During the import process, if this url is present in the environment dependencies and the schema has the $env_var placeholder, it will replace the placeholder in the schema.

string url = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.

getApiAuthentication()

public ApiAuthentication getApiAuthentication()

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication

The apiAuthentication.

getApiAuthenticationBuilder()

public ApiAuthentication.Builder getApiAuthenticationBuilder()

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication.Builder

getApiAuthenticationOrBuilder()

public ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder()

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthenticationOrBuilder

getDefaultInstanceForType()

public OpenApiToolset getDefaultInstanceForType()
Returns
Type Description
OpenApiToolset

getDescriptorForType()

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

getIgnoreUnknownFields()

public boolean getIgnoreUnknownFields()

Optional. If true, the agent will ignore unknown fields in the API response for all operations defined in the OpenAPI schema.

bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ignoreUnknownFields.

getOpenApiSchema()

public String getOpenApiSchema()

Required. The OpenAPI schema of the toolset.

string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The openApiSchema.

getOpenApiSchemaBytes()

public ByteString getOpenApiSchemaBytes()

Required. The OpenAPI schema of the toolset.

string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for openApiSchema.

getServiceDirectoryConfig()

public ServiceDirectoryConfig getServiceDirectoryConfig()

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfig

The serviceDirectoryConfig.

getServiceDirectoryConfigBuilder()

public ServiceDirectoryConfig.Builder getServiceDirectoryConfigBuilder()

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfig.Builder

getServiceDirectoryConfigOrBuilder()

public ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfigOrBuilder

getTlsConfig()

public TlsConfig getTlsConfig()

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TlsConfig

The tlsConfig.

getTlsConfigBuilder()

public TlsConfig.Builder getTlsConfigBuilder()

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TlsConfig.Builder

getTlsConfigOrBuilder()

public TlsConfigOrBuilder getTlsConfigOrBuilder()

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TlsConfigOrBuilder

getUrl()

public String getUrl()

Optional. The server URL of the Open API schema. This field is only set in toolsets in the environment dependencies during the export process if the schema contains a server url. During the import process, if this url is present in the environment dependencies and the schema has the $env_var placeholder, it will replace the placeholder in the schema.

string url = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Optional. The server URL of the Open API schema. This field is only set in toolsets in the environment dependencies during the export process if the schema contains a server url. During the import process, if this url is present in the environment dependencies and the schema has the $env_var placeholder, it will replace the placeholder in the schema.

string url = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for url.

hasApiAuthentication()

public boolean hasApiAuthentication()

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiAuthentication field is set.

hasServiceDirectoryConfig()

public boolean hasServiceDirectoryConfig()

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serviceDirectoryConfig field is set.

hasTlsConfig()

public boolean hasTlsConfig()

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the tlsConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiAuthentication(ApiAuthentication value)

public OpenApiToolset.Builder mergeApiAuthentication(ApiAuthentication value)

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
OpenApiToolset.Builder

mergeFrom(OpenApiToolset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

public OpenApiToolset.Builder mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
OpenApiToolset.Builder

mergeTlsConfig(TlsConfig value)

public OpenApiToolset.Builder mergeTlsConfig(TlsConfig value)

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TlsConfig
Returns
Type Description
OpenApiToolset.Builder

setApiAuthentication(ApiAuthentication value)

public OpenApiToolset.Builder setApiAuthentication(ApiAuthentication value)

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
OpenApiToolset.Builder

setApiAuthentication(ApiAuthentication.Builder builderForValue)

public OpenApiToolset.Builder setApiAuthentication(ApiAuthentication.Builder builderForValue)

Optional. Authentication information required by the API.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ApiAuthentication.Builder
Returns
Type Description
OpenApiToolset.Builder

setIgnoreUnknownFields(boolean value)

public OpenApiToolset.Builder setIgnoreUnknownFields(boolean value)

Optional. If true, the agent will ignore unknown fields in the API response for all operations defined in the OpenAPI schema.

bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The ignoreUnknownFields to set.

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.

setOpenApiSchema(String value)

public OpenApiToolset.Builder setOpenApiSchema(String value)

Required. The OpenAPI schema of the toolset.

string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The openApiSchema to set.

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.

setOpenApiSchemaBytes(ByteString value)

public OpenApiToolset.Builder setOpenApiSchemaBytes(ByteString value)

Required. The OpenAPI schema of the toolset.

string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for openApiSchema to set.

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.

setServiceDirectoryConfig(ServiceDirectoryConfig value)

public OpenApiToolset.Builder setServiceDirectoryConfig(ServiceDirectoryConfig value)

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
OpenApiToolset.Builder

setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

public OpenApiToolset.Builder setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

Optional. Service Directory configuration.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ServiceDirectoryConfig.Builder
Returns
Type Description
OpenApiToolset.Builder

setTlsConfig(TlsConfig value)

public OpenApiToolset.Builder setTlsConfig(TlsConfig value)

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TlsConfig
Returns
Type Description
OpenApiToolset.Builder

setTlsConfig(TlsConfig.Builder builderForValue)

public OpenApiToolset.Builder setTlsConfig(TlsConfig.Builder builderForValue)

Optional. The TLS configuration. Includes the custom server certificates

.google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TlsConfig.Builder
Returns
Type Description
OpenApiToolset.Builder

setUrl(String value)

public OpenApiToolset.Builder setUrl(String value)

Optional. The server URL of the Open API schema. This field is only set in toolsets in the environment dependencies during the export process if the schema contains a server url. During the import process, if this url is present in the environment dependencies and the schema has the $env_var placeholder, it will replace the placeholder in the schema.

string url = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The url to set.

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public OpenApiToolset.Builder setUrlBytes(ByteString value)

Optional. The server URL of the Open API schema. This field is only set in toolsets in the environment dependencies during the export process if the schema contains a server url. During the import process, if this url is present in the environment dependencies and the schema has the $env_var placeholder, it will replace the placeholder in the schema.

string url = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
OpenApiToolset.Builder

This builder for chaining.