Package com.google.devtools.source.v1
Class GerritSourceContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
- com.google.devtools.source.v1.GerritSourceContext.Builder
-
- All Implemented Interfaces:
GerritSourceContextOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GerritSourceContext
public static final class GerritSourceContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder> implements GerritSourceContextOrBuilder
A SourceContext referring to a Gerrit project.
Protobuf typegoogle.devtools.source.v1.GerritSourceContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GerritSourceContext.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GerritSourceContext
build()
GerritSourceContext
buildPartial()
GerritSourceContext.Builder
clear()
GerritSourceContext.Builder
clearAliasContext()
An alias, which may be a branch or tag.GerritSourceContext.Builder
clearAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContext.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GerritSourceContext.Builder
clearGerritProject()
The full project name within the host.GerritSourceContext.Builder
clearHostUri()
The URI of a running Gerrit instance.GerritSourceContext.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GerritSourceContext.Builder
clearRevision()
GerritSourceContext.Builder
clearRevisionId()
A revision (commit) ID.GerritSourceContext.Builder
clone()
AliasContext
getAliasContext()
An alias, which may be a branch or tag.AliasContext.Builder
getAliasContextBuilder()
An alias, which may be a branch or tag.AliasContextOrBuilder
getAliasContextOrBuilder()
An alias, which may be a branch or tag.String
getAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.com.google.protobuf.ByteString
getAliasNameBytes()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContext
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getGerritProject()
The full project name within the host.com.google.protobuf.ByteString
getGerritProjectBytes()
The full project name within the host.String
getHostUri()
The URI of a running Gerrit instance.com.google.protobuf.ByteString
getHostUriBytes()
The URI of a running Gerrit instance.GerritSourceContext.RevisionCase
getRevisionCase()
String
getRevisionId()
A revision (commit) ID.com.google.protobuf.ByteString
getRevisionIdBytes()
A revision (commit) ID.boolean
hasAliasContext()
An alias, which may be a branch or tag.boolean
hasAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.boolean
hasRevisionId()
A revision (commit) ID.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GerritSourceContext.Builder
mergeAliasContext(AliasContext value)
An alias, which may be a branch or tag.GerritSourceContext.Builder
mergeFrom(GerritSourceContext other)
GerritSourceContext.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GerritSourceContext.Builder
mergeFrom(com.google.protobuf.Message other)
GerritSourceContext.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GerritSourceContext.Builder
setAliasContext(AliasContext value)
An alias, which may be a branch or tag.GerritSourceContext.Builder
setAliasContext(AliasContext.Builder builderForValue)
An alias, which may be a branch or tag.GerritSourceContext.Builder
setAliasName(String value)
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContext.Builder
setAliasNameBytes(com.google.protobuf.ByteString value)
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContext.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GerritSourceContext.Builder
setGerritProject(String value)
The full project name within the host.GerritSourceContext.Builder
setGerritProjectBytes(com.google.protobuf.ByteString value)
The full project name within the host.GerritSourceContext.Builder
setHostUri(String value)
The URI of a running Gerrit instance.GerritSourceContext.Builder
setHostUriBytes(com.google.protobuf.ByteString value)
The URI of a running Gerrit instance.GerritSourceContext.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GerritSourceContext.Builder
setRevisionId(String value)
A revision (commit) ID.GerritSourceContext.Builder
setRevisionIdBytes(com.google.protobuf.ByteString value)
A revision (commit) ID.GerritSourceContext.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
clear
public GerritSourceContext.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
getDefaultInstanceForType
public GerritSourceContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GerritSourceContext build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GerritSourceContext buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GerritSourceContext.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
setField
public GerritSourceContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
clearField
public GerritSourceContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
clearOneof
public GerritSourceContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
setRepeatedField
public GerritSourceContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
addRepeatedField
public GerritSourceContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
mergeFrom
public GerritSourceContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
-
mergeFrom
public GerritSourceContext.Builder mergeFrom(GerritSourceContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
mergeFrom
public GerritSourceContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
- Throws:
IOException
-
getRevisionCase
public GerritSourceContext.RevisionCase getRevisionCase()
- Specified by:
getRevisionCase
in interfaceGerritSourceContextOrBuilder
-
clearRevision
public GerritSourceContext.Builder clearRevision()
-
getHostUri
public String getHostUri()
The URI of a running Gerrit instance.
string host_uri = 1;
- Specified by:
getHostUri
in interfaceGerritSourceContextOrBuilder
- Returns:
- The hostUri.
-
getHostUriBytes
public com.google.protobuf.ByteString getHostUriBytes()
The URI of a running Gerrit instance.
string host_uri = 1;
- Specified by:
getHostUriBytes
in interfaceGerritSourceContextOrBuilder
- Returns:
- The bytes for hostUri.
-
setHostUri
public GerritSourceContext.Builder setHostUri(String value)
The URI of a running Gerrit instance.
string host_uri = 1;
- Parameters:
value
- The hostUri to set.- Returns:
- This builder for chaining.
-
clearHostUri
public GerritSourceContext.Builder clearHostUri()
The URI of a running Gerrit instance.
string host_uri = 1;
- Returns:
- This builder for chaining.
-
setHostUriBytes
public GerritSourceContext.Builder setHostUriBytes(com.google.protobuf.ByteString value)
The URI of a running Gerrit instance.
string host_uri = 1;
- Parameters:
value
- The bytes for hostUri to set.- Returns:
- This builder for chaining.
-
getGerritProject
public String getGerritProject()
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.
string gerrit_project = 2;
- Specified by:
getGerritProject
in interfaceGerritSourceContextOrBuilder
- Returns:
- The gerritProject.
-
getGerritProjectBytes
public com.google.protobuf.ByteString getGerritProjectBytes()
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.
string gerrit_project = 2;
- Specified by:
getGerritProjectBytes
in interfaceGerritSourceContextOrBuilder
- Returns:
- The bytes for gerritProject.
-
setGerritProject
public GerritSourceContext.Builder setGerritProject(String value)
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.
string gerrit_project = 2;
- Parameters:
value
- The gerritProject to set.- Returns:
- This builder for chaining.
-
clearGerritProject
public GerritSourceContext.Builder clearGerritProject()
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.
string gerrit_project = 2;
- Returns:
- This builder for chaining.
-
setGerritProjectBytes
public GerritSourceContext.Builder setGerritProjectBytes(com.google.protobuf.ByteString value)
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.
string gerrit_project = 2;
- Parameters:
value
- The bytes for gerritProject to set.- Returns:
- This builder for chaining.
-
hasRevisionId
public boolean hasRevisionId()
A revision (commit) ID.
string revision_id = 3;
- Specified by:
hasRevisionId
in interfaceGerritSourceContextOrBuilder
- Returns:
- Whether the revisionId field is set.
-
getRevisionId
public String getRevisionId()
A revision (commit) ID.
string revision_id = 3;
- Specified by:
getRevisionId
in interfaceGerritSourceContextOrBuilder
- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()
A revision (commit) ID.
string revision_id = 3;
- Specified by:
getRevisionIdBytes
in interfaceGerritSourceContextOrBuilder
- Returns:
- The bytes for revisionId.
-
setRevisionId
public GerritSourceContext.Builder setRevisionId(String value)
A revision (commit) ID.
string revision_id = 3;
- Parameters:
value
- The revisionId to set.- Returns:
- This builder for chaining.
-
clearRevisionId
public GerritSourceContext.Builder clearRevisionId()
A revision (commit) ID.
string revision_id = 3;
- Returns:
- This builder for chaining.
-
setRevisionIdBytes
public GerritSourceContext.Builder setRevisionIdBytes(com.google.protobuf.ByteString value)
A revision (commit) ID.
string revision_id = 3;
- Parameters:
value
- The bytes for revisionId to set.- Returns:
- This builder for chaining.
-
hasAliasName
@Deprecated public boolean hasAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];
- Specified by:
hasAliasName
in interfaceGerritSourceContextOrBuilder
- Returns:
- Whether the aliasName field is set.
-
getAliasName
@Deprecated public String getAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];
- Specified by:
getAliasName
in interfaceGerritSourceContextOrBuilder
- Returns:
- The aliasName.
-
getAliasNameBytes
@Deprecated public com.google.protobuf.ByteString getAliasNameBytes()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];
- Specified by:
getAliasNameBytes
in interfaceGerritSourceContextOrBuilder
- Returns:
- The bytes for aliasName.
-
setAliasName
@Deprecated public GerritSourceContext.Builder setAliasName(String value)
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];
- Parameters:
value
- The aliasName to set.- Returns:
- This builder for chaining.
-
clearAliasName
@Deprecated public GerritSourceContext.Builder clearAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];
- Returns:
- This builder for chaining.
-
setAliasNameBytes
@Deprecated public GerritSourceContext.Builder setAliasNameBytes(com.google.protobuf.ByteString value)
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];
- Parameters:
value
- The bytes for aliasName to set.- Returns:
- This builder for chaining.
-
hasAliasContext
public boolean hasAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
- Specified by:
hasAliasContext
in interfaceGerritSourceContextOrBuilder
- Returns:
- Whether the aliasContext field is set.
-
getAliasContext
public AliasContext getAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
- Specified by:
getAliasContext
in interfaceGerritSourceContextOrBuilder
- Returns:
- The aliasContext.
-
setAliasContext
public GerritSourceContext.Builder setAliasContext(AliasContext value)
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
setAliasContext
public GerritSourceContext.Builder setAliasContext(AliasContext.Builder builderForValue)
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
mergeAliasContext
public GerritSourceContext.Builder mergeAliasContext(AliasContext value)
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
clearAliasContext
public GerritSourceContext.Builder clearAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
getAliasContextBuilder
public AliasContext.Builder getAliasContextBuilder()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
getAliasContextOrBuilder
public AliasContextOrBuilder getAliasContextOrBuilder()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
- Specified by:
getAliasContextOrBuilder
in interfaceGerritSourceContextOrBuilder
-
setUnknownFields
public final GerritSourceContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
mergeUnknownFields
public final GerritSourceContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
-