Class GetDefaultBranchRequest.Builder (2.19.0)

public static final class GetDefaultBranchRequest.Builder extends GeneratedMessageV3.Builder<GetDefaultBranchRequest.Builder> implements GetDefaultBranchRequestOrBuilder

Request message to show which branch is currently the default branch.

Protobuf type google.cloud.retail.v2.GetDefaultBranchRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetDefaultBranchRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

build()

public GetDefaultBranchRequest build()
Returns
TypeDescription
GetDefaultBranchRequest

buildPartial()

public GetDefaultBranchRequest buildPartial()
Returns
TypeDescription
GetDefaultBranchRequest

clear()

public GetDefaultBranchRequest.Builder clear()
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

clearCatalog()

public GetDefaultBranchRequest.Builder clearCatalog()

The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

string catalog = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetDefaultBranchRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GetDefaultBranchRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GetDefaultBranchRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

clone()

public GetDefaultBranchRequest.Builder clone()
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

getCatalog()

public String getCatalog()

The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

string catalog = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The catalog.

getCatalogBytes()

public ByteString getCatalogBytes()

The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

string catalog = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for catalog.

getDefaultInstanceForType()

public GetDefaultBranchRequest getDefaultInstanceForType()
Returns
TypeDescription
GetDefaultBranchRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetDefaultBranchRequest other)

public GetDefaultBranchRequest.Builder mergeFrom(GetDefaultBranchRequest other)
Parameter
NameDescription
otherGetDefaultBranchRequest
Returns
TypeDescription
GetDefaultBranchRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetDefaultBranchRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetDefaultBranchRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetDefaultBranchRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

setCatalog(String value)

public GetDefaultBranchRequest.Builder setCatalog(String value)

The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

string catalog = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The catalog to set.

Returns
TypeDescription
GetDefaultBranchRequest.Builder

This builder for chaining.

setCatalogBytes(ByteString value)

public GetDefaultBranchRequest.Builder setCatalogBytes(ByteString value)

The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

string catalog = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for catalog to set.

Returns
TypeDescription
GetDefaultBranchRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GetDefaultBranchRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

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

public GetDefaultBranchRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetDefaultBranchRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDefaultBranchRequest.Builder
Overrides