public static final class Projects.Builder extends GeneratedMessage.Builder<Projects.Builder> implements ProjectsOrBuilderProjects represents the projects to track with the InsightsConfig.
Protobuf type google.cloud.developerconnect.v1.Projects
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Projects.BuilderImplements
ProjectsOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Projects.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Projects.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe projectIds to set. |
| Returns | |
|---|---|
| Type | Description |
Projects.Builder |
This builder for chaining. |