Class FetchGitHubInstallationsResponse.Installation.Builder (0.15.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public FetchGitHubInstallationsResponse.Installation build()

buildPartial()

public FetchGitHubInstallationsResponse.Installation buildPartial()

clear()

public FetchGitHubInstallationsResponse.Installation.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public FetchGitHubInstallationsResponse.Installation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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
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()
Overrides

getDefaultInstanceForType()

public FetchGitHubInstallationsResponse.Installation getDefaultInstanceForType()

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public FetchGitHubInstallationsResponse.Installation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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
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
Overrides