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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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