Class GetDefaultBranchResponse.Builder (2.51.0)

public static final class GetDefaultBranchResponse.Builder extends GeneratedMessageV3.Builder<GetDefaultBranchResponse.Builder> implements GetDefaultBranchResponseOrBuilder

Response message of CatalogService.GetDefaultBranch.

Protobuf type google.cloud.retail.v2alpha.GetDefaultBranchResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDefaultBranchResponse build()
Returns
Type Description
GetDefaultBranchResponse

buildPartial()

public GetDefaultBranchResponse buildPartial()
Returns
Type Description
GetDefaultBranchResponse

clear()

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

clearBranch()

public GetDefaultBranchResponse.Builder clearBranch()

Full resource name of the branch id currently set as default branch.

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

Returns
Type Description
GetDefaultBranchResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNote()

public GetDefaultBranchResponse.Builder clearNote()

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

string note = 3;

Returns
Type Description
GetDefaultBranchResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSetTime()

public GetDefaultBranchResponse.Builder clearSetTime()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
Type Description
GetDefaultBranchResponse.Builder

clone()

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

getBranch()

public String getBranch()

Full resource name of the branch id currently set as default branch.

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

Returns
Type Description
String

The branch.

getBranchBytes()

public ByteString getBranchBytes()

Full resource name of the branch id currently set as default branch.

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

Returns
Type Description
ByteString

The bytes for branch.

getDefaultInstanceForType()

public GetDefaultBranchResponse getDefaultInstanceForType()
Returns
Type Description
GetDefaultBranchResponse

getDescriptorForType()

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

getNote()

public String getNote()

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

string note = 3;

Returns
Type Description
String

The note.

getNoteBytes()

public ByteString getNoteBytes()

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

string note = 3;

Returns
Type Description
ByteString

The bytes for note.

getSetTime()

public Timestamp getSetTime()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
Type Description
Timestamp

The setTime.

getSetTimeBuilder()

public Timestamp.Builder getSetTimeBuilder()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
Type Description
Builder

getSetTimeOrBuilder()

public TimestampOrBuilder getSetTimeOrBuilder()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
Type Description
TimestampOrBuilder

hasSetTime()

public boolean hasSetTime()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
Type Description
boolean

Whether the setTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetDefaultBranchResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSetTime(Timestamp value)

public GetDefaultBranchResponse.Builder mergeSetTime(Timestamp value)

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GetDefaultBranchResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBranch(String value)

public GetDefaultBranchResponse.Builder setBranch(String value)

Full resource name of the branch id currently set as default branch.

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

Parameter
Name Description
value String

The branch to set.

Returns
Type Description
GetDefaultBranchResponse.Builder

This builder for chaining.

setBranchBytes(ByteString value)

public GetDefaultBranchResponse.Builder setBranchBytes(ByteString value)

Full resource name of the branch id currently set as default branch.

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

Parameter
Name Description
value ByteString

The bytes for branch to set.

Returns
Type Description
GetDefaultBranchResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNote(String value)

public GetDefaultBranchResponse.Builder setNote(String value)

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

string note = 3;

Parameter
Name Description
value String

The note to set.

Returns
Type Description
GetDefaultBranchResponse.Builder

This builder for chaining.

setNoteBytes(ByteString value)

public GetDefaultBranchResponse.Builder setNoteBytes(ByteString value)

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

string note = 3;

Parameter
Name Description
value ByteString

The bytes for note to set.

Returns
Type Description
GetDefaultBranchResponse.Builder

This builder for chaining.

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

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

setSetTime(Timestamp value)

public GetDefaultBranchResponse.Builder setSetTime(Timestamp value)

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GetDefaultBranchResponse.Builder

setSetTime(Timestamp.Builder builderForValue)

public GetDefaultBranchResponse.Builder setSetTime(Timestamp.Builder builderForValue)

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GetDefaultBranchResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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