Class FetchGitHubInstallationsResponse.Installation.Builder (0.1.0)

public static final class FetchGitHubInstallationsResponse.Installation.Builder extends GeneratedMessageV3.Builder<FetchGitHubInstallationsResponse.Installation.Builder> implements FetchGitHubInstallationsResponse.InstallationOrBuilder

Represents an installation of the GitHub App.

Protobuf type google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchGitHubInstallationsResponse.Installation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

build()

public FetchGitHubInstallationsResponse.Installation build()
Returns
Type Description
FetchGitHubInstallationsResponse.Installation

buildPartial()

public FetchGitHubInstallationsResponse.Installation buildPartial()
Returns
Type Description
FetchGitHubInstallationsResponse.Installation

clear()

public FetchGitHubInstallationsResponse.Installation.Builder clear()
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FetchGitHubInstallationsResponse.Installation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

clearId()

public FetchGitHubInstallationsResponse.Installation.Builder clearId()

ID of the installation in GitHub.

int64 id = 1;

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

clearName()

public FetchGitHubInstallationsResponse.Installation.Builder clearName()

Name of the GitHub user or organization that owns this installation.

string name = 2;

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchGitHubInstallationsResponse.Installation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

clearType()

public FetchGitHubInstallationsResponse.Installation.Builder clearType()

Either "user" or "organization".

string type = 3;

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

clone()

public FetchGitHubInstallationsResponse.Installation.Builder clone()
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

getDefaultInstanceForType()

public FetchGitHubInstallationsResponse.Installation getDefaultInstanceForType()
Returns
Type Description
FetchGitHubInstallationsResponse.Installation

getDescriptorForType()

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

getId()

public long getId()

ID of the installation in GitHub.

int64 id = 1;

Returns
Type Description
long

The id.

getName()

public String getName()

Name of the GitHub user or organization that owns this installation.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the GitHub user or organization that owns this installation.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getType()

public String getType()

Either "user" or "organization".

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Either "user" or "organization".

string type = 3;

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchGitHubInstallationsResponse.Installation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitHubInstallationsResponse.Installation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FetchGitHubInstallationsResponse.Installation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

setId(long value)

public FetchGitHubInstallationsResponse.Installation.Builder setId(long value)

ID of the installation in GitHub.

int64 id = 1;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

setName(String value)

public FetchGitHubInstallationsResponse.Installation.Builder setName(String value)

Name of the GitHub user or organization that owns this installation.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FetchGitHubInstallationsResponse.Installation.Builder setNameBytes(ByteString value)

Name of the GitHub user or organization that owns this installation.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

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

public FetchGitHubInstallationsResponse.Installation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides

setType(String value)

public FetchGitHubInstallationsResponse.Installation.Builder setType(String value)

Either "user" or "organization".

string type = 3;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public FetchGitHubInstallationsResponse.Installation.Builder setTypeBytes(ByteString value)

Either "user" or "organization".

string type = 3;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitHubInstallationsResponse.Installation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchGitHubInstallationsResponse.Installation.Builder
Overrides