Class Publishing.Builder (2.51.0)

public static final class Publishing.Builder extends GeneratedMessageV3.Builder<Publishing.Builder> implements PublishingOrBuilder

This message configures the settings for publishing Google Cloud Client libraries generated from the service config.

Protobuf type google.api.Publishing

Implements

PublishingOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllCodeownerGithubTeams(Iterable<String> values)

public Publishing.Builder addAllCodeownerGithubTeams(Iterable<String> values)

GitHub teams to be added to CODEOWNERS in the directory in GitHub containing source code for the client libraries for this API.

repeated string codeowner_github_teams = 105;

Parameter
Name Description
values Iterable<String>

The codeownerGithubTeams to add.

Returns
Type Description
Publishing.Builder

This builder for chaining.

addAllLibrarySettings(Iterable<? extends ClientLibrarySettings> values)

public Publishing.Builder addAllLibrarySettings(Iterable<? extends ClientLibrarySettings> values)

Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded.

repeated .google.api.ClientLibrarySettings library_settings = 109;

Parameter
Name Description
values Iterable<? extends com.google.api.ClientLibrarySettings>
Returns
Type Description
Publishing.Builder

addAllMethodSettings(Iterable<? extends MethodSettings> values)

public Publishing.Builder addAllMethodSettings(Iterable<? extends MethodSettings> values)

A list of API method settings, e.g. the behavior for methods that use the long-running operation pattern.

repeated .google.api.MethodSettings method_settings = 2;

Parameter
Name Description
values Iterable<? extends com.google.api.MethodSettings>
Returns
Type Description
Publishing.Builder

addCodeownerGithubTeams(String value)

public Publishing.Builder addCodeownerGithubTeams(String value)

GitHub teams to be added to CODEOWNERS in the directory in GitHub containing source code for the client libraries for this API.

repeated string codeowner_github_teams = 105;

Parameter
Name Description
value String

The codeownerGithubTeams to add.

Returns
Type Description
Publishing.Builder

This builder for chaining.

addCodeownerGithubTeamsBytes(ByteString value)

public Publishing.Builder addCodeownerGithubTeamsBytes(ByteString value)

GitHub teams to be added to CODEOWNERS in the directory in GitHub containing source code for the client libraries for this API.

repeated string codeowner_github_teams = 105;

Parameter
Name Description
value ByteString

The bytes of the codeownerGithubTeams to add.

Returns
Type Description
Publishing.Builder

This builder for chaining.

addLibrarySettings(ClientLibrarySettings value)

public Publishing.Builder addLibrarySettings(ClientLibrarySettings value)

Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded.

repeated .google.api.ClientLibrarySettings library_settings = 109;

Parameter
Name Description
value ClientLibrarySettings
Returns
Type Description
Publishing.Builder

addLibrarySettings(ClientLibrarySettings.Builder builderForValue)

public Publishing.Builder addLibrarySettings(ClientLibrarySettings.Builder builderForValue)

Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded.

repeated .google.api.ClientLibrarySettings library_settings = 109;

Parameter
Name Description
builderForValue ClientLibrarySettings.Builder
Returns
Type Description
Publishing.Builder

addLibrarySettings(int index, ClientLibrarySettings value)

public Publishing.Builder addLibrarySettings(int index, ClientLibrarySettings value)

Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded.

repeated .google.api.ClientLibrarySettings library_settings = 109;

Parameters
Name Description
index int
value ClientLibrarySettings
Returns
Type Description
Publishing.Builder

addLibrarySettings(int index, ClientLibrarySettings.Builder builderForValue)

public Publishing.Builder addLibrarySettings(int index, ClientLibrarySettings.Builder builderForValue)

Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded.

repeated .google.api.ClientLibrarySettings library_settings = 109;

Parameters
Name Description
index int
builderForValue