Send feedback
Class GetDefaultBranchResponse.Builder (2.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.1 keyboard_arrow_down
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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetDefaultBranchResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public GetDefaultBranchResponse build ()
Returns
buildPartial()
public GetDefaultBranchResponse buildPartial ()
Returns
clear()
public GetDefaultBranchResponse . Builder clear ()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public GetDefaultBranchResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearNote()
public GetDefaultBranchResponse . Builder clearNote ()
This corresponds to
SetDefaultBranchRequest.note
field, when this branch was set as default.
string note = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GetDefaultBranchResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearSetTime()
public GetDefaultBranchResponse . Builder clearSetTime ()
The time when this branch is set to default.
.google.protobuf.Timestamp set_time = 2;
Returns
clone()
public GetDefaultBranchResponse . Builder clone ()
Returns
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
getDefaultInstanceForType()
public GetDefaultBranchResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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
getSetTime()
public Timestamp getSetTime ()
The time when this branch is set to default.
.google.protobuf.Timestamp set_time = 2;
Returns
getSetTimeBuilder()
public Timestamp . Builder getSetTimeBuilder ()
The time when this branch is set to default.
.google.protobuf.Timestamp set_time = 2;
Returns
getSetTimeOrBuilder()
public TimestampOrBuilder getSetTimeOrBuilder ()
The time when this branch is set to default.
.google.protobuf.Timestamp set_time = 2;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(GetDefaultBranchResponse other)
public GetDefaultBranchResponse . Builder mergeFrom ( GetDefaultBranchResponse other )
Parameter
Returns
public GetDefaultBranchResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetDefaultBranchResponse . Builder mergeFrom ( Message other )
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetDefaultBranchResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public GetDefaultBranchResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetDefaultBranchResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final GetDefaultBranchResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]