Class DocumentSchemaServiceStubSettings.Builder (0.31.0)

public static class DocumentSchemaServiceStubSettings.Builder extends StubSettings.Builder<DocumentSchemaServiceStubSettings,DocumentSchemaServiceStubSettings.Builder>

Builder for DocumentSchemaServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > DocumentSchemaServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(DocumentSchemaServiceStubSettings settings)

protected Builder(DocumentSchemaServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentSchemaServiceStubSettings

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public DocumentSchemaServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
DocumentSchemaServiceStubSettings.Builder

build()

public DocumentSchemaServiceStubSettings build()
Returns
TypeDescription
DocumentSchemaServiceStubSettings
Overrides
Exceptions
TypeDescription
IOException

createDocumentSchemaSettings()

public UnaryCallSettings.Builder<CreateDocumentSchemaRequest,DocumentSchema> createDocumentSchemaSettings()

Returns the builder for the settings used for calls to createDocumentSchema.

Returns
TypeDescription
Builder<CreateDocumentSchemaRequest,DocumentSchema>

deleteDocumentSchemaSettings()

public UnaryCallSettings.Builder<DeleteDocumentSchemaRequest,Empty> deleteDocumentSchemaSettings()

Returns the builder for the settings used for calls to deleteDocumentSchema.

Returns
TypeDescription
Builder<DeleteDocumentSchemaRequest,Empty>

getDocumentSchemaSettings()

public UnaryCallSettings.Builder<GetDocumentSchemaRequest,DocumentSchema> getDocumentSchemaSettings()

Returns the builder for the settings used for calls to getDocumentSchema.

Returns
TypeDescription
Builder<GetDocumentSchemaRequest,DocumentSchema>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

listDocumentSchemasSettings()

public PagedCallSettings.Builder<ListDocumentSchemasRequest,ListDocumentSchemasResponse,DocumentSchemaServiceClient.ListDocumentSchemasPagedResponse> listDocumentSchemasSettings()

Returns the builder for the settings used for calls to listDocumentSchemas.

Returns
TypeDescription
Builder<ListDocumentSchemasRequest,ListDocumentSchemasResponse,ListDocumentSchemasPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

updateDocumentSchemaSettings()

public UnaryCallSettings.Builder<UpdateDocumentSchemaRequest,DocumentSchema> updateDocumentSchemaSettings()

Returns the builder for the settings used for calls to updateDocumentSchema.

Returns
TypeDescription
Builder<UpdateDocumentSchemaRequest,DocumentSchema>