Class Publishing.Builder (2.21.1)

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
TypeDescription
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
NameDescription
valuesIterable<String>

The codeownerGithubTeams to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.ClientLibrarySettings>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.MethodSettings>
Returns
TypeDescription
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
NameDescription
valueString

The codeownerGithubTeams to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the codeownerGithubTeams to add.

Returns
TypeDescription
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
NameDescription
valueClientLibrarySettings
Returns
TypeDescription
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
NameDescription
builderForValueClientLibrarySettings.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueClientLibrarySettings
Returns
TypeDescription
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
NameDescription
indexint
builderForValueClientLibrarySettings.Builder
Returns
TypeDescription
Publishing.Builder

addLibrarySettingsBuilder()

public ClientLibrarySettings.Builder addLibrarySettingsBuilder()

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;

Returns
TypeDescription
ClientLibrarySettings.Builder

addLibrarySettingsBuilder(int index)

public ClientLibrarySettings.Builder addLibrarySettingsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
ClientLibrarySettings.Builder

addMethodSettings(MethodSettings value)

public Publishing.Builder addMethodSettings(MethodSettings value)

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
NameDescription
valueMethodSettings
Returns
TypeDescription
Publishing.Builder

addMethodSettings(MethodSettings.Builder builderForValue)

public Publishing.Builder addMethodSettings(MethodSettings.Builder builderForValue)

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
NameDescription
builderForValueMethodSettings.Builder
Returns
TypeDescription
Publishing.Builder

addMethodSettings(int index, MethodSettings value)

public Publishing.Builder addMethodSettings(int index, MethodSettings value)

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;

Parameters
NameDescription
indexint
valueMethodSettings
Returns
TypeDescription
Publishing.Builder

addMethodSettings(int index, MethodSettings.Builder builderForValue)

public Publishing.Builder addMethodSettings(int index, MethodSettings.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueMethodSettings.Builder
Returns
TypeDescription
Publishing.Builder

addMethodSettingsBuilder()

public MethodSettings.Builder addMethodSettingsBuilder()

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;

Returns
TypeDescription
MethodSettings.Builder

addMethodSettingsBuilder(int index)

public MethodSettings.Builder addMethodSettingsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
MethodSettings.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Publishing.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Publishing.Builder
Overrides

build()

public Publishing build()
Returns
TypeDescription
Publishing

buildPartial()

public Publishing buildPartial()
Returns
TypeDescription
Publishing

clear()

public Publishing.Builder clear()
Returns
TypeDescription
Publishing.Builder
Overrides

clearApiShortName()

public Publishing.Builder clearApiShortName()

Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech".

string api_short_name = 103;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clearCodeownerGithubTeams()

public Publishing.Builder clearCodeownerGithubTeams()

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;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clearDocTagPrefix()

public Publishing.Builder clearDocTagPrefix()

A prefix used in sample code when demarking regions to be included in documentation.

string doc_tag_prefix = 106;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clearDocumentationUri()

public Publishing.Builder clearDocumentationUri()

Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview

string documentation_uri = 102;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Publishing.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Publishing.Builder
Overrides

clearGithubLabel()

public Publishing.Builder clearGithubLabel()

GitHub label to apply to issues and pull requests opened for this API.

string github_label = 104;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clearLibrarySettings()

public Publishing.Builder clearLibrarySettings()

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;

Returns
TypeDescription
Publishing.Builder

clearMethodSettings()

public Publishing.Builder clearMethodSettings()

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;

Returns
TypeDescription
Publishing.Builder

clearNewIssueUri()

public Publishing.Builder clearNewIssueUri()

Link to a public URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103

string new_issue_uri = 101;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Publishing.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Publishing.Builder
Overrides

clearOrganization()

public Publishing.Builder clearOrganization()

For whom the client library is being published.

.google.api.ClientLibraryOrganization organization = 107;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clearProtoReferenceDocumentationUri()

public Publishing.Builder clearProtoReferenceDocumentationUri()

Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc

string proto_reference_documentation_uri = 110;

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

clone()

public Publishing.Builder clone()
Returns
TypeDescription
Publishing.Builder
Overrides

getApiShortName()

public String getApiShortName()

Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech".

string api_short_name = 103;

Returns
TypeDescription
String

The apiShortName.

getApiShortNameBytes()

public ByteString getApiShortNameBytes()

Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech".

string api_short_name = 103;

Returns
TypeDescription
ByteString

The bytes for apiShortName.

getCodeownerGithubTeams(int index)

public String getCodeownerGithubTeams(int index)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The codeownerGithubTeams at the given index.

getCodeownerGithubTeamsBytes(int index)

public ByteString getCodeownerGithubTeamsBytes(int index)

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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the codeownerGithubTeams at the given index.

getCodeownerGithubTeamsCount()

public int getCodeownerGithubTeamsCount()

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;

Returns
TypeDescription
int

The count of codeownerGithubTeams.

getCodeownerGithubTeamsList()

public ProtocolStringList getCodeownerGithubTeamsList()

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;

Returns
TypeDescription
ProtocolStringList

A list containing the codeownerGithubTeams.

getDefaultInstanceForType()

public Publishing getDefaultInstanceForType()
Returns
TypeDescription
Publishing

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocTagPrefix()

public String getDocTagPrefix()

A prefix used in sample code when demarking regions to be included in documentation.

string doc_tag_prefix = 106;

Returns
TypeDescription
String

The docTagPrefix.

getDocTagPrefixBytes()

public ByteString getDocTagPrefixBytes()

A prefix used in sample code when demarking regions to be included in documentation.

string doc_tag_prefix = 106;

Returns
TypeDescription
ByteString

The bytes for docTagPrefix.

getDocumentationUri()

public String getDocumentationUri()

Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview

string documentation_uri = 102;

Returns
TypeDescription
String

The documentationUri.

getDocumentationUriBytes()

public ByteString getDocumentationUriBytes()

Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview

string documentation_uri = 102;

Returns
TypeDescription
ByteString

The bytes for documentationUri.

getGithubLabel()

public String getGithubLabel()

GitHub label to apply to issues and pull requests opened for this API.

string github_label = 104;

Returns
TypeDescription
String

The githubLabel.

getGithubLabelBytes()

public ByteString getGithubLabelBytes()

GitHub label to apply to issues and pull requests opened for this API.

string github_label = 104;

Returns
TypeDescription
ByteString

The bytes for githubLabel.

getLibrarySettings(int index)

public ClientLibrarySettings getLibrarySettings(int index)

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
NameDescription
indexint
Returns
TypeDescription
ClientLibrarySettings

getLibrarySettingsBuilder(int index)

public ClientLibrarySettings.Builder getLibrarySettingsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
ClientLibrarySettings.Builder

getLibrarySettingsBuilderList()

public List<ClientLibrarySettings.Builder> getLibrarySettingsBuilderList()

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;

Returns
TypeDescription
List<Builder>

getLibrarySettingsCount()

public int getLibrarySettingsCount()

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;

Returns
TypeDescription
int

getLibrarySettingsList()

public List<ClientLibrarySettings> getLibrarySettingsList()

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;

Returns
TypeDescription
List<ClientLibrarySettings>

getLibrarySettingsOrBuilder(int index)

public ClientLibrarySettingsOrBuilder getLibrarySettingsOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
ClientLibrarySettingsOrBuilder

getLibrarySettingsOrBuilderList()

public List<? extends ClientLibrarySettingsOrBuilder> getLibrarySettingsOrBuilderList()

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;

Returns
TypeDescription
List<? extends com.google.api.ClientLibrarySettingsOrBuilder>

getMethodSettings(int index)

public MethodSettings getMethodSettings(int index)

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
NameDescription
indexint
Returns
TypeDescription
MethodSettings

getMethodSettingsBuilder(int index)

public MethodSettings.Builder getMethodSettingsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
MethodSettings.Builder

getMethodSettingsBuilderList()

public List<MethodSettings.Builder> getMethodSettingsBuilderList()

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;

Returns
TypeDescription
List<Builder>

getMethodSettingsCount()

public int getMethodSettingsCount()

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;

Returns
TypeDescription
int

getMethodSettingsList()

public List<MethodSettings> getMethodSettingsList()

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;

Returns
TypeDescription
List<MethodSettings>

getMethodSettingsOrBuilder(int index)

public MethodSettingsOrBuilder getMethodSettingsOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
MethodSettingsOrBuilder

getMethodSettingsOrBuilderList()

public List<? extends MethodSettingsOrBuilder> getMethodSettingsOrBuilderList()

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;

Returns
TypeDescription
List<? extends com.google.api.MethodSettingsOrBuilder>

getNewIssueUri()

public String getNewIssueUri()

Link to a public URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103

string new_issue_uri = 101;

Returns
TypeDescription
String

The newIssueUri.

getNewIssueUriBytes()

public ByteString getNewIssueUriBytes()

Link to a public URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103

string new_issue_uri = 101;

Returns
TypeDescription
ByteString

The bytes for newIssueUri.

getOrganization()

public ClientLibraryOrganization getOrganization()

For whom the client library is being published.

.google.api.ClientLibraryOrganization organization = 107;

Returns
TypeDescription
ClientLibraryOrganization

The organization.

getOrganizationValue()

public int getOrganizationValue()

For whom the client library is being published.

.google.api.ClientLibraryOrganization organization = 107;

Returns
TypeDescription
int

The enum numeric value on the wire for organization.

getProtoReferenceDocumentationUri()

public String getProtoReferenceDocumentationUri()

Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc

string proto_reference_documentation_uri = 110;

Returns
TypeDescription
String

The protoReferenceDocumentationUri.

getProtoReferenceDocumentationUriBytes()

public ByteString getProtoReferenceDocumentationUriBytes()

Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc

string proto_reference_documentation_uri = 110;

Returns
TypeDescription
ByteString

The bytes for protoReferenceDocumentationUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Publishing other)

public Publishing.Builder mergeFrom(Publishing other)
Parameter
NameDescription
otherPublishing
Returns
TypeDescription
Publishing.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Publishing.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Publishing.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Publishing.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Publishing.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Publishing.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Publishing.Builder
Overrides

removeLibrarySettings(int index)

public Publishing.Builder removeLibrarySettings(int index)

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
NameDescription
indexint
Returns
TypeDescription
Publishing.Builder

removeMethodSettings(int index)

public Publishing.Builder removeMethodSettings(int index)

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
NameDescription
indexint
Returns
TypeDescription
Publishing.Builder

setApiShortName(String value)

public Publishing.Builder setApiShortName(String value)

Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech".

string api_short_name = 103;

Parameter
NameDescription
valueString

The apiShortName to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setApiShortNameBytes(ByteString value)

public Publishing.Builder setApiShortNameBytes(ByteString value)

Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech".

string api_short_name = 103;

Parameter
NameDescription
valueByteString

The bytes for apiShortName to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setCodeownerGithubTeams(int index, String value)

public Publishing.Builder setCodeownerGithubTeams(int index, 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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The codeownerGithubTeams to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setDocTagPrefix(String value)

public Publishing.Builder setDocTagPrefix(String value)

A prefix used in sample code when demarking regions to be included in documentation.

string doc_tag_prefix = 106;

Parameter
NameDescription
valueString

The docTagPrefix to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setDocTagPrefixBytes(ByteString value)

public Publishing.Builder setDocTagPrefixBytes(ByteString value)

A prefix used in sample code when demarking regions to be included in documentation.

string doc_tag_prefix = 106;

Parameter
NameDescription
valueByteString

The bytes for docTagPrefix to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setDocumentationUri(String value)

public Publishing.Builder setDocumentationUri(String value)

Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview

string documentation_uri = 102;

Parameter
NameDescription
valueString

The documentationUri to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setDocumentationUriBytes(ByteString value)

public Publishing.Builder setDocumentationUriBytes(ByteString value)

Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview

string documentation_uri = 102;

Parameter
NameDescription
valueByteString

The bytes for documentationUri to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Publishing.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Publishing.Builder
Overrides

setGithubLabel(String value)

public Publishing.Builder setGithubLabel(String value)

GitHub label to apply to issues and pull requests opened for this API.

string github_label = 104;

Parameter
NameDescription
valueString

The githubLabel to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setGithubLabelBytes(ByteString value)

public Publishing.Builder setGithubLabelBytes(ByteString value)

GitHub label to apply to issues and pull requests opened for this API.

string github_label = 104;

Parameter
NameDescription
valueByteString

The bytes for githubLabel to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setLibrarySettings(int index, ClientLibrarySettings value)

public Publishing.Builder setLibrarySettings(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
NameDescription
indexint
valueClientLibrarySettings
Returns
TypeDescription
Publishing.Builder

setLibrarySettings(int index, ClientLibrarySettings.Builder builderForValue)

public Publishing.Builder setLibrarySettings(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
NameDescription
indexint
builderForValueClientLibrarySettings.Builder
Returns
TypeDescription
Publishing.Builder

setMethodSettings(int index, MethodSettings value)

public Publishing.Builder setMethodSettings(int index, MethodSettings value)

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;

Parameters
NameDescription
indexint
valueMethodSettings
Returns
TypeDescription
Publishing.Builder

setMethodSettings(int index, MethodSettings.Builder builderForValue)

public Publishing.Builder setMethodSettings(int index, MethodSettings.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueMethodSettings.Builder
Returns
TypeDescription
Publishing.Builder

setNewIssueUri(String value)

public Publishing.Builder setNewIssueUri(String value)

Link to a public URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103

string new_issue_uri = 101;

Parameter
NameDescription
valueString

The newIssueUri to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setNewIssueUriBytes(ByteString value)

public Publishing.Builder setNewIssueUriBytes(ByteString value)

Link to a public URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103

string new_issue_uri = 101;

Parameter
NameDescription
valueByteString

The bytes for newIssueUri to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setOrganization(ClientLibraryOrganization value)

public Publishing.Builder setOrganization(ClientLibraryOrganization value)

For whom the client library is being published.

.google.api.ClientLibraryOrganization organization = 107;

Parameter
NameDescription
valueClientLibraryOrganization

The organization to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setOrganizationValue(int value)

public Publishing.Builder setOrganizationValue(int value)

For whom the client library is being published.

.google.api.ClientLibraryOrganization organization = 107;

Parameter
NameDescription
valueint

The enum numeric value on the wire for organization to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setProtoReferenceDocumentationUri(String value)

public Publishing.Builder setProtoReferenceDocumentationUri(String value)

Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc

string proto_reference_documentation_uri = 110;

Parameter
NameDescription
valueString

The protoReferenceDocumentationUri to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setProtoReferenceDocumentationUriBytes(ByteString value)

public Publishing.Builder setProtoReferenceDocumentationUriBytes(ByteString value)

Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc

string proto_reference_documentation_uri = 110;

Parameter
NameDescription
valueByteString

The bytes for protoReferenceDocumentationUri to set.

Returns
TypeDescription
Publishing.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Publishing.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Publishing.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Publishing.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Publishing.Builder
Overrides