Class GetDefaultBranchResponse (2.26.0)

public final class GetDefaultBranchResponse extends GeneratedMessageV3 implements GetDefaultBranchResponseOrBuilder

Response message of CatalogService.GetDefaultBranch.

Protobuf type google.cloud.retail.v2beta.GetDefaultBranchResponse

Static Fields

BRANCH_FIELD_NUMBER

public static final int BRANCH_FIELD_NUMBER
Field Value
TypeDescription
int

NOTE_FIELD_NUMBER

public static final int NOTE_FIELD_NUMBER
Field Value
TypeDescription
int

SET_TIME_FIELD_NUMBER

public static final int SET_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GetDefaultBranchResponse getDefaultInstance()
Returns
TypeDescription
GetDefaultBranchResponse

getDescriptor()

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

newBuilder()

public static GetDefaultBranchResponse.Builder newBuilder()
Returns
TypeDescription
GetDefaultBranchResponse.Builder

newBuilder(GetDefaultBranchResponse prototype)

public static GetDefaultBranchResponse.Builder newBuilder(GetDefaultBranchResponse prototype)
Parameter
NameDescription
prototypeGetDefaultBranchResponse
Returns
TypeDescription
GetDefaultBranchResponse.Builder

parseDelimitedFrom(InputStream input)

public static GetDefaultBranchResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetDefaultBranchResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GetDefaultBranchResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GetDefaultBranchResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GetDefaultBranchResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GetDefaultBranchResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GetDefaultBranchResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GetDefaultBranchResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GetDefaultBranchResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetDefaultBranchResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GetDefaultBranchResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GetDefaultBranchResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDefaultBranchResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GetDefaultBranchResponse> parser()
Returns
TypeDescription
Parser<GetDefaultBranchResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<GetDefaultBranchResponse> getParserForType()
Returns
TypeDescription
Parser<GetDefaultBranchResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSetTime()

public Timestamp getSetTime()

The time when this branch is set to default.

.google.protobuf.Timestamp set_time = 2;

Returns
TypeDescription
Timestamp

The setTime.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GetDefaultBranchResponse.Builder newBuilderForType()
Returns
TypeDescription
GetDefaultBranchResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GetDefaultBranchResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GetDefaultBranchResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GetDefaultBranchResponse.Builder toBuilder()
Returns
TypeDescription
GetDefaultBranchResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException