Class GetDefaultBranchResponse.Builder (2.5.1)

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

Response message of CatalogService.GetDefaultBranch.

Protobuf type google.cloud.retail.v2.GetDefaultBranchResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDefaultBranchResponse build()
Returns
TypeDescription
GetDefaultBranchResponse

buildPartial()

public GetDefaultBranchResponse buildPartial()
Returns
TypeDescription
GetDefaultBranchResponse

clear()

public GetDefaultBranchResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
GetDefaultBranchResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GetDefaultBranchResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetDefaultBranchResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSetTime()

public GetDefaultBranchResponse.Builder clearSetTime()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
TypeDescription
GetDefaultBranchResponse.Builder

clone()

public GetDefaultBranchResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for branch.

getDefaultInstanceForType()

public GetDefaultBranchResponse getDefaultInstanceForType()
Returns
TypeDescription
GetDefaultBranchResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNote()

public String getNote()

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

string note = 3;

Returns
TypeDescription
String

The note.

getNoteBytes()

public ByteString getNoteBytes()

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

string note = 3;

Returns
TypeDescription
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
TypeDescription
Timestamp

The setTime.

getSetTimeBuilder()

public Timestamp.Builder getSetTimeBuilder()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
TypeDescription
Builder

getSetTimeOrBuilder()

public TimestampOrBuilder getSetTimeOrBuilder()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
TypeDescription
TimestampOrBuilder

hasSetTime()

public boolean hasSetTime()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
TypeDescription
boolean

Whether the setTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetDefaultBranchResponse other)

public GetDefaultBranchResponse.Builder mergeFrom(GetDefaultBranchResponse other)
Parameter
NameDescription
otherGetDefaultBranchResponse
Returns
TypeDescription
GetDefaultBranchResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GetDefaultBranchResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
GetDefaultBranchResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetDefaultBranchResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The branch to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for branch to set.

Returns
TypeDescription
GetDefaultBranchResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GetDefaultBranchResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The note to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for note to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
GetDefaultBranchResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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