Class Projects.Builder (0.44.0)

public static final class Projects.Builder extends GeneratedMessage.Builder<Projects.Builder> implements ProjectsOrBuilder

Projects represents the projects to track with the InsightsConfig.

Protobuf type google.cloud.developerconnect.v1.Projects

Implements

ProjectsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllProjectIds(Iterable<String> values)

public Projects.Builder addAllProjectIds(Iterable<String> values)

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The projectIds to add.

Returns
Type Description
Projects.Builder

This builder for chaining.

addProjectIds(String value)

public Projects.Builder addProjectIds(String value)

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The projectIds to add.

Returns
Type Description
Projects.Builder

This builder for chaining.

addProjectIdsBytes(ByteString value)

public Projects.Builder addProjectIdsBytes(ByteString value)

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the projectIds to add.

Returns
Type Description
Projects.Builder

This builder for chaining.

build()

public Projects build()
Returns
Type Description
Projects

buildPartial()

public Projects buildPartial()
Returns
Type Description
Projects

clear()

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

clearProjectIds()

public Projects.Builder clearProjectIds()

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Projects.Builder

This builder for chaining.

getDefaultInstanceForType()

public Projects getDefaultInstanceForType()
Returns
Type Description
Projects

getDescriptorForType()

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

getProjectIds(int index)

public String getProjectIds(int index)

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The projectIds at the given index.

getProjectIdsBytes(int index)

public ByteString getProjectIdsBytes(int index)

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the projectIds at the given index.

getProjectIdsCount()

public int getProjectIdsCount()

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of projectIds.

getProjectIdsList()

public ProtocolStringList getProjectIdsList()

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the projectIds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Projects other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setProjectIds(int index, String value)

public Projects.Builder setProjectIds(int index, String value)

Optional. The project IDs. Format: {project}

repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The projectIds to set.

Returns
Type Description
Projects.Builder

This builder for chaining.