Class GetRepositoryRequest.Builder (0.14.0)

public static final class GetRepositoryRequest.Builder extends GeneratedMessageV3.Builder<GetRepositoryRequest.Builder> implements GetRepositoryRequestOrBuilder

GetRepositoryRequest is the request for getting a repository.

Protobuf type google.cloud.securesourcemanager.v1.GetRepositoryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRepositoryRequest build()
Returns
Type Description
GetRepositoryRequest

buildPartial()

public GetRepositoryRequest buildPartial()
Returns
Type Description
GetRepositoryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetRepositoryRequest.Builder clearName()

Required. Name of the repository to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetRepositoryRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GetRepositoryRequest.Builder clone()
Returns
Type Description
GetRepositoryRequest.Builder
Overrides

getDefaultInstanceForType()

public GetRepositoryRequest getDefaultInstanceForType()
Returns
Type Description
GetRepositoryRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the repository to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the repository to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetRepositoryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetRepositoryRequest.Builder setName(String value)

Required. Name of the repository to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetRepositoryRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetRepositoryRequest.Builder setNameBytes(ByteString value)

Required. Name of the repository to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetRepositoryRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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