com.google.apphosting.base.protos.RepoId Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: source_context.proto
package com.google.apphosting.base.protos;
/**
*
* A unique identifier for a cloud repo.
*
*
* Protobuf type {@code google.devtools.source.v1.RepoId}
*/
public final class RepoId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.devtools.source.v1.RepoId)
RepoIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use RepoId.newBuilder() to construct.
private RepoId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RepoId() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RepoId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.SourceContextProto.internal_static_google_devtools_source_v1_RepoId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.SourceContextProto.internal_static_google_devtools_source_v1_RepoId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.RepoId.class, com.google.apphosting.base.protos.RepoId.Builder.class);
}
private int idCase_ = 0;
private java.lang.Object id_;
public enum IdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PROJECT_REPO_ID(1),
UID(2),
ID_NOT_SET(0);
private final int value;
private IdCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdCase valueOf(int value) {
return forNumber(value);
}
public static IdCase forNumber(int value) {
switch (value) {
case 1: return PROJECT_REPO_ID;
case 2: return UID;
case 0: return ID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public static final int PROJECT_REPO_ID_FIELD_NUMBER = 1;
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
* @return Whether the projectRepoId field is set.
*/
@java.lang.Override
public boolean hasProjectRepoId() {
return idCase_ == 1;
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
* @return The projectRepoId.
*/
@java.lang.Override
public com.google.apphosting.base.protos.ProjectRepoId getProjectRepoId() {
if (idCase_ == 1) {
return (com.google.apphosting.base.protos.ProjectRepoId) id_;
}
return com.google.apphosting.base.protos.ProjectRepoId.getDefaultInstance();
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
@java.lang.Override
public com.google.apphosting.base.protos.ProjectRepoIdOrBuilder getProjectRepoIdOrBuilder() {
if (idCase_ == 1) {
return (com.google.apphosting.base.protos.ProjectRepoId) id_;
}
return com.google.apphosting.base.protos.ProjectRepoId.getDefaultInstance();
}
public static final int UID_FIELD_NUMBER = 2;
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @return Whether the uid field is set.
*/
public boolean hasUid() {
return idCase_ == 2;
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @return The uid.
*/
public java.lang.String getUid() {
java.lang.Object ref = "";
if (idCase_ == 2) {
ref = id_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (idCase_ == 2) {
id_ = s;
}
return s;
}
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @return The bytes for uid.
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = "";
if (idCase_ == 2) {
ref = id_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (idCase_ == 2) {
id_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (idCase_ == 1) {
output.writeMessage(1, (com.google.apphosting.base.protos.ProjectRepoId) id_);
}
if (idCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (idCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.apphosting.base.protos.ProjectRepoId) id_);
}
if (idCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.base.protos.RepoId)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.RepoId other = (com.google.apphosting.base.protos.RepoId) obj;
if (!getIdCase().equals(other.getIdCase())) return false;
switch (idCase_) {
case 1:
if (!getProjectRepoId()
.equals(other.getProjectRepoId())) return false;
break;
case 2:
if (!getUid()
.equals(other.getUid())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (idCase_) {
case 1:
hash = (37 * hash) + PROJECT_REPO_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectRepoId().hashCode();
break;
case 2:
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.RepoId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.RepoId parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.RepoId parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.base.protos.RepoId prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A unique identifier for a cloud repo.
*
*
* Protobuf type {@code google.devtools.source.v1.RepoId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.devtools.source.v1.RepoId)
com.google.apphosting.base.protos.RepoIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.SourceContextProto.internal_static_google_devtools_source_v1_RepoId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.SourceContextProto.internal_static_google_devtools_source_v1_RepoId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.RepoId.class, com.google.apphosting.base.protos.RepoId.Builder.class);
}
// Construct using com.google.apphosting.base.protos.RepoId.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (projectRepoIdBuilder_ != null) {
projectRepoIdBuilder_.clear();
}
idCase_ = 0;
id_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.SourceContextProto.internal_static_google_devtools_source_v1_RepoId_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.RepoId getDefaultInstanceForType() {
return com.google.apphosting.base.protos.RepoId.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.RepoId build() {
com.google.apphosting.base.protos.RepoId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.RepoId buildPartial() {
com.google.apphosting.base.protos.RepoId result = new com.google.apphosting.base.protos.RepoId(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.RepoId result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.google.apphosting.base.protos.RepoId result) {
result.idCase_ = idCase_;
result.id_ = this.id_;
if (idCase_ == 1 &&
projectRepoIdBuilder_ != null) {
result.id_ = projectRepoIdBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.RepoId) {
return mergeFrom((com.google.apphosting.base.protos.RepoId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.RepoId other) {
if (other == com.google.apphosting.base.protos.RepoId.getDefaultInstance()) return this;
switch (other.getIdCase()) {
case PROJECT_REPO_ID: {
mergeProjectRepoId(other.getProjectRepoId());
break;
}
case UID: {
idCase_ = 2;
id_ = other.id_;
onChanged();
break;
}
case ID_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getProjectRepoIdFieldBuilder().getBuilder(),
extensionRegistry);
idCase_ = 1;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
idCase_ = 2;
id_ = s;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int idCase_ = 0;
private java.lang.Object id_;
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public Builder clearId() {
idCase_ = 0;
id_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.ProjectRepoId, com.google.apphosting.base.protos.ProjectRepoId.Builder, com.google.apphosting.base.protos.ProjectRepoIdOrBuilder> projectRepoIdBuilder_;
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
* @return Whether the projectRepoId field is set.
*/
@java.lang.Override
public boolean hasProjectRepoId() {
return idCase_ == 1;
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
* @return The projectRepoId.
*/
@java.lang.Override
public com.google.apphosting.base.protos.ProjectRepoId getProjectRepoId() {
if (projectRepoIdBuilder_ == null) {
if (idCase_ == 1) {
return (com.google.apphosting.base.protos.ProjectRepoId) id_;
}
return com.google.apphosting.base.protos.ProjectRepoId.getDefaultInstance();
} else {
if (idCase_ == 1) {
return projectRepoIdBuilder_.getMessage();
}
return com.google.apphosting.base.protos.ProjectRepoId.getDefaultInstance();
}
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
public Builder setProjectRepoId(com.google.apphosting.base.protos.ProjectRepoId value) {
if (projectRepoIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
projectRepoIdBuilder_.setMessage(value);
}
idCase_ = 1;
return this;
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
public Builder setProjectRepoId(
com.google.apphosting.base.protos.ProjectRepoId.Builder builderForValue) {
if (projectRepoIdBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
projectRepoIdBuilder_.setMessage(builderForValue.build());
}
idCase_ = 1;
return this;
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
public Builder mergeProjectRepoId(com.google.apphosting.base.protos.ProjectRepoId value) {
if (projectRepoIdBuilder_ == null) {
if (idCase_ == 1 &&
id_ != com.google.apphosting.base.protos.ProjectRepoId.getDefaultInstance()) {
id_ = com.google.apphosting.base.protos.ProjectRepoId.newBuilder((com.google.apphosting.base.protos.ProjectRepoId) id_)
.mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
if (idCase_ == 1) {
projectRepoIdBuilder_.mergeFrom(value);
} else {
projectRepoIdBuilder_.setMessage(value);
}
}
idCase_ = 1;
return this;
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
public Builder clearProjectRepoId() {
if (projectRepoIdBuilder_ == null) {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
onChanged();
}
} else {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
}
projectRepoIdBuilder_.clear();
}
return this;
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
public com.google.apphosting.base.protos.ProjectRepoId.Builder getProjectRepoIdBuilder() {
return getProjectRepoIdFieldBuilder().getBuilder();
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
@java.lang.Override
public com.google.apphosting.base.protos.ProjectRepoIdOrBuilder getProjectRepoIdOrBuilder() {
if ((idCase_ == 1) && (projectRepoIdBuilder_ != null)) {
return projectRepoIdBuilder_.getMessageOrBuilder();
} else {
if (idCase_ == 1) {
return (com.google.apphosting.base.protos.ProjectRepoId) id_;
}
return com.google.apphosting.base.protos.ProjectRepoId.getDefaultInstance();
}
}
/**
*
* A combination of a project ID and a repo name.
*
*
* .google.devtools.source.v1.ProjectRepoId project_repo_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.ProjectRepoId, com.google.apphosting.base.protos.ProjectRepoId.Builder, com.google.apphosting.base.protos.ProjectRepoIdOrBuilder>
getProjectRepoIdFieldBuilder() {
if (projectRepoIdBuilder_ == null) {
if (!(idCase_ == 1)) {
id_ = com.google.apphosting.base.protos.ProjectRepoId.getDefaultInstance();
}
projectRepoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.ProjectRepoId, com.google.apphosting.base.protos.ProjectRepoId.Builder, com.google.apphosting.base.protos.ProjectRepoIdOrBuilder>(
(com.google.apphosting.base.protos.ProjectRepoId) id_,
getParentForChildren(),
isClean());
id_ = null;
}
idCase_ = 1;
onChanged();
return projectRepoIdBuilder_;
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @return Whether the uid field is set.
*/
@java.lang.Override
public boolean hasUid() {
return idCase_ == 2;
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @return The uid.
*/
@java.lang.Override
public java.lang.String getUid() {
java.lang.Object ref = "";
if (idCase_ == 2) {
ref = id_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (idCase_ == 2) {
id_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = "";
if (idCase_ == 2) {
ref = id_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (idCase_ == 2) {
id_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
idCase_ = 2;
id_ = value;
onChanged();
return this;
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @return This builder for chaining.
*/
public Builder clearUid() {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
onChanged();
}
return this;
}
/**
*
* A server-assigned, globally unique identifier.
*
*
* string uid = 2;
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
idCase_ = 2;
id_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.devtools.source.v1.RepoId)
}
// @@protoc_insertion_point(class_scope:google.devtools.source.v1.RepoId)
private static final com.google.apphosting.base.protos.RepoId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.RepoId();
}
public static com.google.apphosting.base.protos.RepoId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RepoId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.RepoId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy